@@ -240,8 +240,7 @@ discard block |
||
| 240 | 240 | { |
| 241 | 241 | $this->handleEvent($level, $message, $context); |
| 242 | 242 | }); |
| 243 | - } |
|
| 244 | - else |
|
| 243 | + } else |
|
| 245 | 244 | { |
| 246 | 245 | // starting from L5.4 MessageLogged event class was introduced |
| 247 | 246 | // https://github.com/laravel/framework/commit/57c82d095c356a0fe0f9381536afec768cdcc072 |
@@ -268,8 +267,7 @@ discard block |
||
| 268 | 267 | if ($message instanceof Exceptions\HandlerException) |
| 269 | 268 | { |
| 270 | 269 | return; |
| 271 | - } |
|
| 272 | - else if ($message instanceof \Exception) |
|
| 270 | + } else if ($message instanceof \Exception) |
|
| 273 | 271 | { |
| 274 | 272 | $log = $this->app['understand.exception-encoder']->exceptionToArray($message); |
| 275 | 273 | $log['tags'] = ['exception_log']; |
@@ -279,8 +277,7 @@ discard block |
||
| 279 | 277 | { |
| 280 | 278 | $log['message'] = $message; |
| 281 | 279 | $log['tags'] = ['laravel_log']; |
| 282 | - } |
|
| 283 | - else |
|
| 280 | + } else |
|
| 284 | 281 | { |
| 285 | 282 | $log = (array)$message; |
| 286 | 283 | $log['tags'] = ['laravel_log']; |
@@ -323,8 +320,7 @@ discard block |
||
| 323 | 320 | |
| 324 | 321 | $modelLogger->logModelEvent($eventName, $model, $modelLevelEventName); |
| 325 | 322 | }); |
| 326 | - } |
|
| 327 | - else |
|
| 323 | + } else |
|
| 328 | 324 | { |
| 329 | 325 | $this->app['events']->listen($listenerName, function($modelLevelEventName, $eventPayload) use($modelLogger, $eventName) |
| 330 | 326 | { |