@@ -152,8 +152,7 @@ |
||
| 152 | 152 | try |
| 153 | 153 | { |
| 154 | 154 | return $this->handler->handle($event); |
| 155 | - } |
|
| 156 | - catch (\Exception $ex) |
|
| 155 | + } catch (\Exception $ex) |
|
| 157 | 156 | { |
| 158 | 157 | return false; |
| 159 | 158 | } |
@@ -90,8 +90,7 @@ |
||
| 90 | 90 | ]; |
| 91 | 91 | |
| 92 | 92 | $log = $this->encoder->setCurrentStackTrace($log); |
| 93 | - } |
|
| 94 | - else |
|
| 93 | + } else |
|
| 95 | 94 | { |
| 96 | 95 | $log = (array)$message; |
| 97 | 96 | $log = $this->encoder->setCurrentStackTrace($log); |
@@ -45,8 +45,7 @@ |
||
| 45 | 45 | $log = [ |
| 46 | 46 | 'message' => $message |
| 47 | 47 | ]; |
| 48 | - } |
|
| 49 | - else |
|
| 48 | + } else |
|
| 50 | 49 | { |
| 51 | 50 | $log = (array)$message; |
| 52 | 51 | } |
@@ -423,8 +423,7 @@ discard block |
||
| 423 | 423 | { |
| 424 | 424 | return $userId; |
| 425 | 425 | } |
| 426 | - } |
|
| 427 | - catch (\Exception $e) |
|
| 426 | + } catch (\Exception $e) |
|
| 428 | 427 | {} |
| 429 | 428 | |
| 430 | 429 | try |
@@ -433,8 +432,7 @@ discard block |
||
| 433 | 432 | { |
| 434 | 433 | return $user->id; |
| 435 | 434 | } |
| 436 | - } |
|
| 437 | - catch (\Exception $e) |
|
| 435 | + } catch (\Exception $e) |
|
| 438 | 436 | {} |
| 439 | 437 | |
| 440 | 438 | try |
@@ -443,8 +441,7 @@ discard block |
||
| 443 | 441 | { |
| 444 | 442 | return $user->id; |
| 445 | 443 | } |
| 446 | - } |
|
| 447 | - catch (\Exception $e) |
|
| 444 | + } catch (\Exception $e) |
|
| 448 | 445 | {} |
| 449 | 446 | } |
| 450 | 447 | |
@@ -237,8 +237,7 @@ discard block |
||
| 237 | 237 | { |
| 238 | 238 | $this->handleEvent($level, $message, $context); |
| 239 | 239 | }); |
| 240 | - } |
|
| 241 | - else |
|
| 240 | + } else |
|
| 242 | 241 | { |
| 243 | 242 | // starting from L5.4 MessageLogged event class was introduced |
| 244 | 243 | // https://github.com/laravel/framework/commit/57c82d095c356a0fe0f9381536afec768cdcc072 |
@@ -268,8 +267,7 @@ discard block |
||
| 268 | 267 | 'time' => $time, |
| 269 | 268 | ]); |
| 270 | 269 | }); |
| 271 | - } |
|
| 272 | - else |
|
| 270 | + } else |
|
| 273 | 271 | { |
| 274 | 272 | // https://laravel.com/api/5.3/Illuminate/Database/Events/QueryExecuted.html |
| 275 | 273 | $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function($event) |
@@ -107,8 +107,7 @@ discard block |
||
| 107 | 107 | if (strpos($trace['file'], $this->projectRoot . 'vendor' . DIRECTORY_SEPARATOR) === 0) |
| 108 | 108 | { |
| 109 | 109 | unset($stackTrace[$index]); |
| 110 | - } |
|
| 111 | - else |
|
| 110 | + } else |
|
| 112 | 111 | { |
| 113 | 112 | $vendorExcluded = true; |
| 114 | 113 | } |
@@ -194,8 +193,7 @@ discard block |
||
| 194 | 193 | } |
| 195 | 194 | |
| 196 | 195 | return $codeLines; |
| 197 | - } |
|
| 198 | - catch (\Exception $e) |
|
| 196 | + } catch (\Exception $e) |
|
| 199 | 197 | {} |
| 200 | 198 | } |
| 201 | 199 | |
@@ -271,32 +269,25 @@ discard block |
||
| 271 | 269 | if (is_array($arg)) |
| 272 | 270 | { |
| 273 | 271 | $params[] = 'array(' . count($arg) . ')'; |
| 274 | - } |
|
| 275 | - else if (is_object($arg)) |
|
| 272 | + } else if (is_object($arg)) |
|
| 276 | 273 | { |
| 277 | 274 | $params[] = get_class($arg); |
| 278 | - } |
|
| 279 | - else if (is_string($arg)) |
|
| 275 | + } else if (is_string($arg)) |
|
| 280 | 276 | { |
| 281 | 277 | $params[] = 'string(' . $arg . ')'; |
| 282 | - } |
|
| 283 | - else if (is_int($arg)) |
|
| 278 | + } else if (is_int($arg)) |
|
| 284 | 279 | { |
| 285 | 280 | $params[] = 'int(' . $arg . ')'; |
| 286 | - } |
|
| 287 | - else if (is_float($arg)) |
|
| 281 | + } else if (is_float($arg)) |
|
| 288 | 282 | { |
| 289 | 283 | $params[] = 'float(' . $arg . ')'; |
| 290 | - } |
|
| 291 | - else if (is_bool($arg)) |
|
| 284 | + } else if (is_bool($arg)) |
|
| 292 | 285 | { |
| 293 | 286 | $params[] = 'bool(' . ($arg ? 'true' : 'false') . ')'; |
| 294 | - } |
|
| 295 | - else if ($arg instanceof \__PHP_Incomplete_Class) |
|
| 287 | + } else if ($arg instanceof \__PHP_Incomplete_Class) |
|
| 296 | 288 | { |
| 297 | 289 | $params[] = 'object(__PHP_Incomplete_Class)'; |
| 298 | - } |
|
| 299 | - else |
|
| 290 | + } else |
|
| 300 | 291 | { |
| 301 | 292 | $params[] = gettype($arg); |
| 302 | 293 | } |