@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function boot() |
26 | 26 | { |
27 | - $configPath = __DIR__ . '/../../config/understand-laravel.php'; |
|
27 | + $configPath = __DIR__.'/../../config/understand-laravel.php'; |
|
28 | 28 | $this->publishes([$configPath => config_path('understand-laravel.php')], 'config'); |
29 | 29 | $enabled = $this->app['config']->get('understand-laravel.enabled'); |
30 | 30 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | protected function registerConfig() |
64 | 64 | { |
65 | - $configPath = __DIR__ . '/../../config/understand-laravel.php'; |
|
65 | + $configPath = __DIR__.'/../../config/understand-laravel.php'; |
|
66 | 66 | $this->mergeConfigFrom($configPath, 'understand-laravel'); |
67 | 67 | } |
68 | 68 | |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | return new Handlers\SyncHandler($inputToken, $apiUrl, $sslBundlePath); |
210 | 210 | } |
211 | 211 | |
212 | - throw new \ErrorException('understand-laravel handler misconfiguration:' . $handlerType); |
|
212 | + throw new \ErrorException('understand-laravel handler misconfiguration:'.$handlerType); |
|
213 | 213 | } |
214 | 214 | |
215 | 215 | /** |
@@ -298,13 +298,13 @@ discard block |
||
298 | 298 | } |
299 | 299 | |
300 | 300 | // `\Log::info`, `\Log::debug` and NOT `\Exception` or `\Throwable` |
301 | - if (in_array($level, ['info', 'debug']) && ! ($message instanceof Exception || $message instanceof Throwable)) |
|
301 | + if (in_array($level, ['info', 'debug']) && !($message instanceof Exception || $message instanceof Throwable)) |
|
302 | 302 | { |
303 | 303 | $this->app['understand.eventLogger']->logEvent($level, $message, $context); |
304 | 304 | } |
305 | 305 | // `\Log::notice`, `\Log::warning`, `\Log::error`, `\Log::critical`, `\Log::alert`, `\Log::emergency` and `\Exception`, `\Throwable` |
306 | 306 | // '5.5', '5.6', '5.7', '5.8' |
307 | - else if ( ! $this->detectLaravelVersion(['5.0', '5.1', '5.2', '5.3', '5.4']) && isset($context['exception']) && ($context['exception'] instanceof Exception || $context['exception'] instanceof Throwable)) |
|
307 | + else if (!$this->detectLaravelVersion(['5.0', '5.1', '5.2', '5.3', '5.4']) && isset($context['exception']) && ($context['exception'] instanceof Exception || $context['exception'] instanceof Throwable)) |
|
308 | 308 | { |
309 | 309 | $exception = $context['exception']; |
310 | 310 | unset($context['exception']); |
@@ -325,9 +325,9 @@ discard block |
||
325 | 325 | */ |
326 | 326 | protected function shouldIgnoreEvent($level, $message, $context) |
327 | 327 | { |
328 | - $ignoredEventTypes = (array)$this->app['config']->get('understand-laravel.ignored_logs'); |
|
328 | + $ignoredEventTypes = (array) $this->app['config']->get('understand-laravel.ignored_logs'); |
|
329 | 329 | |
330 | - if ( ! $ignoredEventTypes) |
|
330 | + if (!$ignoredEventTypes) |
|
331 | 331 | { |
332 | 332 | return false; |
333 | 333 | } |