@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | $routeDetails = app()->router->getRoutes()[$request->method().$request->getPathInfo()]['action']; |
| 52 | 52 | |
| 53 | - if (! isset($routeDetails['uses']) && ! empty($routeDetails[0])) { |
|
| 53 | + if (!isset($routeDetails['uses']) && !empty($routeDetails[0])) { |
|
| 54 | 54 | $this->honeybadger->setComponent(get_class($routeDetails[0])); |
| 55 | 55 | |
| 56 | 56 | return; |
@@ -58,11 +58,11 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | $routeAction = explode('@', $routeDetails['uses']); |
| 60 | 60 | |
| 61 | - if (! empty($routeAction[0])) { |
|
| 61 | + if (!empty($routeAction[0])) { |
|
| 62 | 62 | $this->honeybadger->setComponent($routeAction[0] ?? ''); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - if (! empty($routeAction[1])) { |
|
| 65 | + if (!empty($routeAction[1])) { |
|
| 66 | 66 | $this->honeybadger->setAction($routeAction[1] ?? ''); |
| 67 | 67 | } |
| 68 | 68 | } |
@@ -72,11 +72,11 @@ discard block |
||
| 72 | 72 | if (Route::getCurrentRoute()) { |
| 73 | 73 | $routeAction = explode('@', Route::getCurrentRoute()->getActionName()); |
| 74 | 74 | |
| 75 | - if (! empty($routeAction[0])) { |
|
| 75 | + if (!empty($routeAction[0])) { |
|
| 76 | 76 | $this->honeybadger->setComponent($routeAction[0] ?? ''); |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - if (! empty($routeAction[1])) { |
|
| 79 | + if (!empty($routeAction[1])) { |
|
| 80 | 80 | $this->honeybadger->setAction($routeAction[1] ?? ''); |
| 81 | 81 | } |
| 82 | 82 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | 'url' => 'https://github.com/honeybadger-io/honeybadger-laravel', |
| 43 | 43 | 'version' => self::VERSION.'/'.Honeybadger::VERSION, |
| 44 | 44 | ], |
| 45 | - 'service_exception_handler' => function (ServiceException $e) { |
|
| 45 | + 'service_exception_handler' => function(ServiceException $e) { |
|
| 46 | 46 | Log::error($e); |
| 47 | 47 | }, |
| 48 | 48 | ], $config)); |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * To disable exception reporting, set this to false. |
| 18 | 18 | */ |
| 19 | - 'report_data' => ! in_array(env('APP_ENV'), ['local', 'testing']), |
|
| 19 | + 'report_data' => !in_array(env('APP_ENV'), ['local', 'testing']), |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * When reporting an exception, we'll automatically include relevant environment variables. |