@@ -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,7 +298,7 @@ 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 | } |
@@ -324,9 +324,9 @@ discard block |
||
| 324 | 324 | */ |
| 325 | 325 | protected function shouldIgnoreEvent($level, $message, $context) |
| 326 | 326 | { |
| 327 | - $ignoredEventTypes = (array)$this->app['config']->get('understand-laravel.ignored_logs'); |
|
| 327 | + $ignoredEventTypes = (array) $this->app['config']->get('understand-laravel.ignored_logs'); |
|
| 328 | 328 | |
| 329 | - if ( ! $ignoredEventTypes) |
|
| 329 | + if (!$ignoredEventTypes) |
|
| 330 | 330 | { |
| 331 | 331 | return false; |
| 332 | 332 | } |