@@ -218,8 +218,8 @@ discard block |
||
| 218 | 218 | /** |
| 219 | 219 | * Detect Laravel version |
| 220 | 220 | * |
| 221 | - * @param array $versions |
|
| 222 | - * @return type |
|
| 221 | + * @param string[] $versions |
|
| 222 | + * @return boolean |
|
| 223 | 223 | */ |
| 224 | 224 | protected function detectLaravelVersion(array $versions) |
| 225 | 225 | { |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | /** |
| 341 | 341 | * Get the services provided by the provider. |
| 342 | 342 | * |
| 343 | - * @return array |
|
| 343 | + * @return string[] |
|
| 344 | 344 | */ |
| 345 | 345 | public function provides() |
| 346 | 346 | { |
@@ -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 | { |