@@ -76,8 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | return preg_replace($pattern, $out, $view); |
78 | 78 | }); |
79 | - } |
|
80 | - else |
|
79 | + } else |
|
81 | 80 | { |
82 | 81 | Blade::directive('understandJsConfig', function () |
83 | 82 | { |
@@ -319,8 +318,7 @@ discard block |
||
319 | 318 | { |
320 | 319 | $this->handleEvent($level, $message, $context); |
321 | 320 | }); |
322 | - } |
|
323 | - else |
|
321 | + } else |
|
324 | 322 | { |
325 | 323 | // starting from L5.4 MessageLogged event class was introduced |
326 | 324 | // https://github.com/laravel/framework/commit/57c82d095c356a0fe0f9381536afec768cdcc072 |
@@ -348,8 +346,7 @@ discard block |
||
348 | 346 | $this->app['understand.tokenProvider']->generate(); |
349 | 347 | $this->app['understand.dataCollector']->reset(); |
350 | 348 | }); |
351 | - } |
|
352 | - else |
|
349 | + } else |
|
353 | 350 | { |
354 | 351 | $this->app['events']->listen('Illuminate\Queue\Events\JobProcessing', function() |
355 | 352 | { |
@@ -379,8 +376,7 @@ discard block |
||
379 | 376 | 'time' => $time, |
380 | 377 | ]); |
381 | 378 | }); |
382 | - } |
|
383 | - else |
|
379 | + } else |
|
384 | 380 | { |
385 | 381 | // https://laravel.com/api/5.3/Illuminate/Database/Events/QueryExecuted.html |
386 | 382 | $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function($event) |
@@ -422,8 +418,7 @@ discard block |
||
422 | 418 | unset($context['exception']); |
423 | 419 | |
424 | 420 | $this->app['understand.exceptionLogger']->logError($level, $exception, $context); |
425 | - } |
|
426 | - else |
|
421 | + } else |
|
427 | 422 | { |
428 | 423 | $this->app['understand.exceptionLogger']->logError($level, $message, $context); |
429 | 424 | } |