@@ -125,28 +125,22 @@ |
||
| 125 | 125 | if (is_array($arg)) |
| 126 | 126 | { |
| 127 | 127 | $params[] = 'array(' . count($arg) . ')'; |
| 128 | - } |
|
| 129 | - else if (is_object($arg)) |
|
| 128 | + } else if (is_object($arg)) |
|
| 130 | 129 | { |
| 131 | 130 | $params[] = get_class($arg); |
| 132 | - } |
|
| 133 | - else if (is_string($arg)) |
|
| 131 | + } else if (is_string($arg)) |
|
| 134 | 132 | { |
| 135 | 133 | $params[] = 'string(' . $arg . ')'; |
| 136 | - } |
|
| 137 | - else if (is_int($arg)) |
|
| 134 | + } else if (is_int($arg)) |
|
| 138 | 135 | { |
| 139 | 136 | $params[] = 'int(' . $arg . ')'; |
| 140 | - } |
|
| 141 | - else if (is_float($arg)) |
|
| 137 | + } else if (is_float($arg)) |
|
| 142 | 138 | { |
| 143 | 139 | $params[] = 'float(' . $arg . ')'; |
| 144 | - } |
|
| 145 | - else if (is_bool($arg)) |
|
| 140 | + } else if (is_bool($arg)) |
|
| 146 | 141 | { |
| 147 | 142 | $params[] = 'bool(' . ($arg ? 'true' : 'false') . ')'; |
| 148 | - } |
|
| 149 | - else |
|
| 143 | + } else |
|
| 150 | 144 | { |
| 151 | 145 | $params[] = (string) $arg; |
| 152 | 146 | } |
@@ -315,8 +315,7 @@ discard block |
||
| 315 | 315 | { |
| 316 | 316 | return $userId; |
| 317 | 317 | } |
| 318 | - } |
|
| 319 | - catch (\Exception $e) |
|
| 318 | + } catch (\Exception $e) |
|
| 320 | 319 | {} |
| 321 | 320 | |
| 322 | 321 | try |
@@ -325,8 +324,7 @@ discard block |
||
| 325 | 324 | { |
| 326 | 325 | return $user->id; |
| 327 | 326 | } |
| 328 | - } |
|
| 329 | - catch (\Exception $e) |
|
| 327 | + } catch (\Exception $e) |
|
| 330 | 328 | {} |
| 331 | 329 | |
| 332 | 330 | try |
@@ -335,8 +333,7 @@ discard block |
||
| 335 | 333 | { |
| 336 | 334 | return $user->id; |
| 337 | 335 | } |
| 338 | - } |
|
| 339 | - catch (\Exception $e) |
|
| 336 | + } catch (\Exception $e) |
|
| 340 | 337 | {} |
| 341 | 338 | } |
| 342 | 339 | |
@@ -125,8 +125,7 @@ |
||
| 125 | 125 | try |
| 126 | 126 | { |
| 127 | 127 | return $this->handler->handle($event); |
| 128 | - } |
|
| 129 | - catch (\Exception $ex) |
|
| 128 | + } catch (\Exception $ex) |
|
| 130 | 129 | { |
| 131 | 130 | if (! $this->silent) |
| 132 | 131 | { |
@@ -125,8 +125,7 @@ |
||
| 125 | 125 | try |
| 126 | 126 | { |
| 127 | 127 | return $this->handler->handle($event); |
| 128 | - } |
|
| 129 | - catch (\Exception $ex) |
|
| 128 | + } catch (\Exception $ex) |
|
| 130 | 129 | { |
| 131 | 130 | if (! $this->silent) |
| 132 | 131 | { |
@@ -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']; |