@@ -35,13 +35,13 @@ discard block  | 
                                                    ||
| 35 | 35 | $routes = app()->router->getRoutes();  | 
                                                        
| 36 | 36 | $routeIdentifier = $request->method().$request->getPathInfo();  | 
                                                        
| 37 | 37 | |
| 38 | -        if (! array_key_exists($routeIdentifier, $routes)) { | 
                                                        |
| 38 | +        if (!array_key_exists($routeIdentifier, $routes)) { | 
                                                        |
| 39 | 39 | return;  | 
                                                        
| 40 | 40 | }  | 
                                                        
| 41 | 41 | |
| 42 | 42 | $routeDetails = $routes[$routeIdentifier]['action'];  | 
                                                        
| 43 | 43 | |
| 44 | -        if (! isset($routeDetails['uses']) && ! empty($routeDetails[0])) { | 
                                                        |
| 44 | +        if (!isset($routeDetails['uses']) && !empty($routeDetails[0])) { | 
                                                        |
| 45 | 45 | $this->honeybadger->setComponent(get_class($routeDetails[0]));  | 
                                                        
| 46 | 46 | |
| 47 | 47 | return;  | 
                                                        
@@ -49,11 +49,11 @@ discard block  | 
                                                    ||
| 49 | 49 | |
| 50 | 50 |          $routeAction = explode('@', $routeDetails['uses']); | 
                                                        
| 51 | 51 | |
| 52 | -        if (! empty($routeAction[0])) { | 
                                                        |
| 52 | +        if (!empty($routeAction[0])) { | 
                                                        |
| 53 | 53 | $this->honeybadger->setComponent($routeAction[0] ?? '');  | 
                                                        
| 54 | 54 | }  | 
                                                        
| 55 | 55 | |
| 56 | -        if (! empty($routeAction[1])) { | 
                                                        |
| 56 | +        if (!empty($routeAction[1])) { | 
                                                        |
| 57 | 57 | $this->honeybadger->setAction($routeAction[1] ?? '');  | 
                                                        
| 58 | 58 | }  | 
                                                        
| 59 | 59 | }  | 
                                                        
@@ -63,11 +63,11 @@ discard block  | 
                                                    ||
| 63 | 63 |          if (Route::getCurrentRoute()) { | 
                                                        
| 64 | 64 |              $routeAction = explode('@', Route::getCurrentRoute()->getActionName()); | 
                                                        
| 65 | 65 | |
| 66 | -            if (! empty($routeAction[0])) { | 
                                                        |
| 66 | +            if (!empty($routeAction[0])) { | 
                                                        |
| 67 | 67 | $this->honeybadger->setComponent($routeAction[0] ?? '');  | 
                                                        
| 68 | 68 | }  | 
                                                        
| 69 | 69 | |
| 70 | -            if (! empty($routeAction[1])) { | 
                                                        |
| 70 | +            if (!empty($routeAction[1])) { | 
                                                        |
| 71 | 71 | $this->honeybadger->setAction($routeAction[1] ?? '');  | 
                                                        
| 72 | 72 | }  | 
                                                        
| 73 | 73 | }  | 
                                                        
@@ -29,7 +29,7 @@  | 
                                                    ||
| 29 | 29 |          $honeybadger = app('honeybadger.loud'); | 
                                                        
| 30 | 30 | |
| 31 | 31 |          try { | 
                                                        
| 32 | -            if (! config('honeybadger.report_data')) { | 
                                                        |
| 32 | +            if (!config('honeybadger.report_data')) { | 
                                                        |
| 33 | 33 |                  $this->info("You have `report_data` set to false in your config. Errors won't be reported in this environment."); | 
                                                        
| 34 | 34 |                  $this->info("We've switched it to true for this test, but you should check that it's enabled for your production environments."); | 
                                                        
| 35 | 35 | }  | 
                                                        
@@ -63,7 +63,7 @@ discard block  | 
                                                    ||
| 63 | 63 |          if ($this->installer->shouldPublishConfig()) { | 
                                                        
| 64 | 64 | $this->tasks->addTask(  | 
                                                        
| 65 | 65 | 'Publish the config file',  | 
                                                        
| 66 | -                function () { | 
                                                        |
| 66 | +                function() { | 
                                                        |
| 67 | 67 | return $this->publishConfig();  | 
                                                        
| 68 | 68 | }  | 
                                                        
| 69 | 69 | );  | 
                                                        
@@ -112,8 +112,8 @@ discard block  | 
                                                    ||
| 112 | 112 | |
| 113 | 113 | $this->tasks->addTask(  | 
                                                        
| 114 | 114 | 'Send test exception to Honeybadger',  | 
                                                        
| 115 | -            function () { | 
                                                        |
| 116 | -                if (! config('honeybadger.report_data')) { | 
                                                        |
| 115 | +            function() { | 
                                                        |
| 116 | +                if (!config('honeybadger.report_data')) { | 
                                                        |
| 117 | 117 |                      $this->info("You have `report_data` set to false in your config. Errors won't be reported in this environment."); | 
                                                        
| 118 | 118 |                      $this->info("We've switched it to true for this test, but you should check that it's enabled for your production environments."); | 
                                                        
| 119 | 119 | }  | 
                                                        
@@ -134,7 +134,7 @@ discard block  | 
                                                    ||
| 134 | 134 |      { | 
                                                        
| 135 | 135 | $this->tasks->addTask(  | 
                                                        
| 136 | 136 | 'Write HONEYBADGER_API_KEY to .env',  | 
                                                        
| 137 | -            function () { | 
                                                        |
| 137 | +            function() { | 
                                                        |
| 138 | 138 | return $this->installer->writeConfig(  | 
                                                        
| 139 | 139 | [  | 
                                                        
| 140 | 140 | 'HONEYBADGER_API_KEY' => $this->config['api_key'],  | 
                                                        
@@ -147,7 +147,7 @@ discard block  | 
                                                    ||
| 147 | 147 | |
| 148 | 148 | $this->tasks->addTask(  | 
                                                        
| 149 | 149 | 'Write HONEYBADGER_API_KEY placeholder to .env.example',  | 
                                                        
| 150 | -            function () { | 
                                                        |
| 150 | +            function() { | 
                                                        |
| 151 | 151 | return $this->installer->writeConfig(  | 
                                                        
| 152 | 152 | [  | 
                                                        
| 153 | 153 | 'HONEYBADGER_API_KEY' => '',  | 
                                                        
@@ -160,7 +160,7 @@ discard block  | 
                                                    ||
| 160 | 160 | |
| 161 | 161 | $this->tasks->addTask(  | 
                                                        
| 162 | 162 | 'Write HONEYBADGER_VERIFY_SSL placeholder to .env.example',  | 
                                                        
| 163 | -            function () { | 
                                                        |
| 163 | +            function() { | 
                                                        |
| 164 | 164 | return $this->installer->writeConfig(  | 
                                                        
| 165 | 165 | ['HONEYBADGER_VERIFY_SSL' => ''],  | 
                                                        
| 166 | 166 |                      base_path('.env.example') | 
                                                        
@@ -63,7 +63,7 @@ discard block  | 
                                                    ||
| 63 | 63 | */  | 
                                                        
| 64 | 64 | public function runTasks(): void  | 
                                                        
| 65 | 65 |      { | 
                                                        
| 66 | -        Collection::make($this->tasks)->each(function ($task, $description) { | 
                                                        |
| 66 | +        Collection::make($this->tasks)->each(function($task, $description) { | 
                                                        |
| 67 | 67 | $result = $task['task']();  | 
                                                        
| 68 | 68 | |
| 69 | 69 |              if ($this->output) { | 
                                                        
@@ -75,7 +75,7 @@ discard block  | 
                                                    ||
| 75 | 75 | |
| 76 | 76 | $this->results[$description] = $result;  | 
                                                        
| 77 | 77 | |
| 78 | -            if (! $result && $task['throw_on_fail'] && $this->throwOnError) { | 
                                                        |
| 78 | +            if (!$result && $task['throw_on_fail'] && $this->throwOnError) { | 
                                                        |
| 79 | 79 |                  throw new TaskFailed(sprintf('%s failed, please review output and try again.', $description)); | 
                                                        
| 80 | 80 | }  | 
                                                        
| 81 | 81 | });  | 
                                                        
@@ -22,7 +22,7 @@ discard block  | 
                                                    ||
| 22 | 22 | return false;  | 
                                                        
| 23 | 23 | }  | 
                                                        
| 24 | 24 | |
| 25 | -        collect($config)->each(function ($value, $key) use ($env) { | 
                                                        |
| 25 | +        collect($config)->each(function($value, $key) use ($env) { | 
                                                        |
| 26 | 26 | $env->set($key, $value);  | 
                                                        
| 27 | 27 | });  | 
                                                        
| 28 | 28 | |
@@ -52,7 +52,7 @@ discard block  | 
                                                    ||
| 52 | 52 | */  | 
                                                        
| 53 | 53 | public function shouldPublishConfig(): bool  | 
                                                        
| 54 | 54 |      { | 
                                                        
| 55 | -        return ! file_exists(base_path('config/honeybadger.php')); | 
                                                        |
| 55 | +        return !file_exists(base_path('config/honeybadger.php')); | 
                                                        |
| 56 | 56 | }  | 
                                                        
| 57 | 57 | |
| 58 | 58 | /**  | 
                                                        
@@ -60,7 +60,7 @@ discard block  | 
                                                    ||
| 60 | 60 | */  | 
                                                        
| 61 | 61 | public function publishLumenConfig(string $stubPath = null): bool  | 
                                                        
| 62 | 62 |      { | 
                                                        
| 63 | -        if (! is_dir(base_path('config'))) { | 
                                                        |
| 63 | +        if (!is_dir(base_path('config'))) { | 
                                                        |
| 64 | 64 |              mkdir(base_path('config')); | 
                                                        
| 65 | 65 | }  | 
                                                        
| 66 | 66 | |
@@ -25,9 +25,9 @@  | 
                                                    ||
| 25 | 25 | |
| 26 | 26 | private function formatCommand(string $command, array $parameters)  | 
                                                        
| 27 | 27 |      { | 
                                                        
| 28 | -        $parameters = collect($parameters)->map(function ($parameter) { | 
                                                        |
| 28 | +        $parameters = collect($parameters)->map(function($parameter) { | 
                                                        |
| 29 | 29 |              if (is_array($parameter)) { | 
                                                        
| 30 | -                return collect($parameter)->map(function ($value, $key) { | 
                                                        |
| 30 | +                return collect($parameter)->map(function($value, $key) { | 
                                                        |
| 31 | 31 |                      if (is_array($value)) { | 
                                                        
| 32 | 32 | return json_encode($value);  | 
                                                        
| 33 | 33 | }  | 
                                                        
@@ -11,7 +11,7 @@  | 
                                                    ||
| 11 | 11 | |
| 12 | 12 | public function handleEvent(string $eventName, array $data = [])  | 
                                                        
| 13 | 13 |      { | 
                                                        
| 14 | -        if (! empty($data)) { | 
                                                        |
| 14 | +        if (!empty($data)) { | 
                                                        |
| 15 | 15 | /** @var \Illuminate\View\View $view */  | 
                                                        
| 16 | 16 | $view = $data[0];  | 
                                                        
| 17 | 17 | $metadata = [  | 
                                                        
@@ -19,7 +19,7 @@  | 
                                                    ||
| 19 | 19 | // Doing this check again in case config was changed at runtime (also useful for tests)  | 
                                                        
| 20 | 20 | if (  | 
                                                        
| 21 | 21 |              config('honeybadger.breadcrumbs.enabled', true) === false | 
                                                        
| 22 | -            || ! in_array(static::class, config('honeybadger.breadcrumbs.automatic', HoneybadgerLaravel::DEFAULT_BREADCRUMBS)) | 
                                                        |
| 22 | +            || !in_array(static::class, config('honeybadger.breadcrumbs.automatic', HoneybadgerLaravel::DEFAULT_BREADCRUMBS)) | 
                                                        |
| 23 | 23 |          ) { | 
                                                        
| 24 | 24 | return;  | 
                                                        
| 25 | 25 | }  | 
                                                        
@@ -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 | }  |