From 97d92e663c5e8e391f701629a515951280e1b724 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Fri, 31 Oct 2014 21:36:44 +0100 Subject: [PATCH] Remove unneeded check Now we are on 1.10.x --- src/LaravelDebugBar.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/LaravelDebugBar.php b/src/LaravelDebugBar.php index b202f2ae7..5d25cfb06 100644 --- a/src/LaravelDebugBar.php +++ b/src/LaravelDebugBar.php @@ -154,11 +154,9 @@ function () use ($debugbar) { if ($this->shouldCollect('exceptions', true)) { try { $exceptionCollector = new ExceptionsCollector(); - if (method_exists($exceptionCollector, 'setChainExceptions')) { - $exceptionCollector->setChainExceptions( - $this->app['config']->get('laravel-debugbar::config.options.exceptions.chain', true) - ); - } + $exceptionCollector->setChainExceptions( + $this->app['config']->get('laravel-debugbar::config.options.exceptions.chain', true) + ); $this->addCollector($exceptionCollector); if ($this->checkVersion('5.0', '<')) { $this->app->error( @@ -302,7 +300,7 @@ function ($level, $message, $context) use ($logger) { $types = $this->app['config']->get('laravel-debugbar::config.options.db.explain.types'); $queryCollector->setExplainSource(true, $types); } - + if ($this->app['config']->get('laravel-debugbar::config.options.db.hints', true)) { $queryCollector->setShowHints(true); }