@@ -228,8 +228,7 @@ discard block |
||
| 228 | 228 | { |
| 229 | 229 | $this->handleEvent($level, $message, $context); |
| 230 | 230 | }); |
| 231 | - } |
|
| 232 | - else |
|
| 231 | + } else |
|
| 233 | 232 | { |
| 234 | 233 | // starting from L5.4 MessageLogged event class was introduced |
| 235 | 234 | // https://github.com/laravel/framework/commit/57c82d095c356a0fe0f9381536afec768cdcc072 |
@@ -254,18 +253,15 @@ discard block |
||
| 254 | 253 | if ($message instanceof Exceptions\HandlerException) |
| 255 | 254 | { |
| 256 | 255 | return; |
| 257 | - } |
|
| 258 | - else if ($message instanceof \Exception) |
|
| 256 | + } else if ($message instanceof \Exception) |
|
| 259 | 257 | { |
| 260 | 258 | $log = $this->app['understand.exception-encoder']->exceptionToArray($message); |
| 261 | 259 | $log['tags'] = ['exception_log']; |
| 262 | - } |
|
| 263 | - else if (is_string($message)) |
|
| 260 | + } else if (is_string($message)) |
|
| 264 | 261 | { |
| 265 | 262 | $log['message'] = $message; |
| 266 | 263 | $log['tags'] = ['laravel_log']; |
| 267 | - } |
|
| 268 | - else |
|
| 264 | + } else |
|
| 269 | 265 | { |
| 270 | 266 | $log = $message; |
| 271 | 267 | $log['tags'] = ['laravel_log']; |