@@ -56,7 +56,7 @@  | 
                                                    ||
| 56 | 56 | */  | 
                                                        
| 57 | 57 | private function turn($key, callable $closure = null)  | 
                                                        
| 58 | 58 |      { | 
                                                        
| 59 | - $key = 'heyman_ignore_'.$key;  | 
                                                        |
| 59 | + $key = 'heyman_ignore_' . $key;  | 
                                                        |
| 60 | 60 | |
| 61 | 61 | $current = config($key);  | 
                                                        
| 62 | 62 | $this->changeMode($key);  | 
                                                        
@@ -40,7 +40,7 @@  | 
                                                    ||
| 40 | 40 | $method = ltrim($method, 'about');  | 
                                                        
| 41 | 41 | |
| 42 | 42 |          if (in_array($method, ['Route', 'Action', 'Url'])) { | 
                                                        
| 43 | -            $args = resolve(RouteNormalizer::class)->{'normalize'.$method}($args); | 
                                                        |
| 43 | +            $args = resolve(RouteNormalizer::class)->{'normalize' . $method}($args); | 
                                                        |
| 44 | 44 | return resolve(RouterEventManager::class)->forgetAbout($args);  | 
                                                        
| 45 | 45 | }  | 
                                                        
| 46 | 46 | |
@@ -11,12 +11,12 @@ discard block  | 
                                                    ||
| 11 | 11 | */  | 
                                                        
| 12 | 12 | public function normalizeAction($actions): array  | 
                                                        
| 13 | 13 |      { | 
                                                        
| 14 | -        $addNamespace = function ($action) { | 
                                                        |
| 14 | +        $addNamespace = function($action) { | 
                                                        |
| 15 | 15 |              if ($action = ltrim($action, '\\')) { | 
                                                        
| 16 | 16 | return $action;  | 
                                                        
| 17 | 17 | }  | 
                                                        
| 18 | 18 | |
| 19 | - return app()->getNamespace().'\\Http\\Controllers\\'.$action;  | 
                                                        |
| 19 | + return app()->getNamespace() . '\\Http\\Controllers\\' . $action;  | 
                                                        |
| 20 | 20 | };  | 
                                                        
| 21 | 21 | |
| 22 | 22 | return array_map($addNamespace, $actions);  | 
                                                        
@@ -30,8 +30,8 @@ discard block  | 
                                                    ||
| 30 | 30 | */  | 
                                                        
| 31 | 31 | public function normalizeUrl($urls, $verb = 'GET'): array  | 
                                                        
| 32 | 32 |      { | 
                                                        
| 33 | -        $removeSlash = function ($url) use ($verb) { | 
                                                        |
| 34 | - return $verb.ltrim($url, '/');  | 
                                                        |
| 33 | +        $removeSlash = function($url) use ($verb) { | 
                                                        |
| 34 | + return $verb . ltrim($url, '/');  | 
                                                        |
| 35 | 35 | };  | 
                                                        
| 36 | 36 | |
| 37 | 37 | return array_map($removeSlash, $urls);  | 
                                                        
@@ -11,7 +11,7 @@  | 
                                                    ||
| 11 | 11 | */  | 
                                                        
| 12 | 12 | public function normalizeView(array $views): array  | 
                                                        
| 13 | 13 |      { | 
                                                        
| 14 | -        array_walk($views, function ($view) { | 
                                                        |
| 14 | +        array_walk($views, function($view) { | 
                                                        |
| 15 | 15 | $this->checkViewExists($view);  | 
                                                        
| 16 | 16 | });  | 
                                                        
| 17 | 17 | |
@@ -6,8 +6,8 @@  | 
                                                    ||
| 6 | 6 |  { | 
                                                        
| 7 | 7 | public function wrapForIgnorance(callable $callback, $key): \Closure  | 
                                                        
| 8 | 8 |      { | 
                                                        
| 9 | -        return function (...$args) use ($callback, $key) { | 
                                                        |
| 10 | -            if (!config('heyman_ignore_'.$key, false)) { | 
                                                        |
| 9 | +        return function(...$args) use ($callback, $key) { | 
                                                        |
| 10 | +            if (!config('heyman_ignore_' . $key, false)) { | 
                                                        |
| 11 | 11 | $callback(...$args);  | 
                                                        
| 12 | 12 | }  | 
                                                        
| 13 | 13 | };  | 
                                                        
@@ -10,11 +10,11 @@  | 
                                                    ||
| 10 | 10 |  { | 
                                                        
| 11 | 11 | public function start()  | 
                                                        
| 12 | 12 |      { | 
                                                        
| 13 | -        Route::matched(function (RouteMatched $eventObj) { | 
                                                        |
| 13 | +        Route::matched(function(RouteMatched $eventObj) { | 
                                                        |
| 14 | 14 | $matchedRoute = [  | 
                                                        
| 15 | 15 | $eventObj->route->getName(),  | 
                                                        
| 16 | 16 | $eventObj->route->getActionName(),  | 
                                                        
| 17 | - $eventObj->request->method().$eventObj->route->uri,  | 
                                                        |
| 17 | + $eventObj->request->method() . $eventObj->route->uri,  | 
                                                        |
| 18 | 18 | ];  | 
                                                        
| 19 | 19 | |
| 20 | 20 | resolve(RouteMatchListener::class)->execMatchedCallbacks($matchedRoute, $this->data);  | 
                                                        
@@ -10,15 +10,15 @@  | 
                                                    ||
| 10 | 10 | return;  | 
                                                        
| 11 | 11 | }  | 
                                                        
| 12 | 12 | |
| 13 | -        app()->singleton('heyman.debugger', function () { | 
                                                        |
| 13 | +        app()->singleton('heyman.debugger', function() { | 
                                                        |
| 14 | 14 |              return new \DebugBar\DataCollector\MessagesCollector('HeyMan'); | 
                                                        
| 15 | 15 | });  | 
                                                        
| 16 | 16 | |
| 17 | 17 |          app()->make('debugbar')->addCollector(app('heyman.debugger')); | 
                                                        
| 18 | 18 | |
| 19 | -        \Event::listen('heyman_reaction_is_happening', function (...$debug) { | 
                                                        |
| 20 | -            resolve('heyman.debugger')->addMessage('HeyMan Rule Matched in file: '.$debug[0]); | 
                                                        |
| 21 | -            resolve('heyman.debugger')->addMessage('on line: '.$debug[1]); | 
                                                        |
| 19 | +        \Event::listen('heyman_reaction_is_happening', function(...$debug) { | 
                                                        |
| 20 | +            resolve('heyman.debugger')->addMessage('HeyMan Rule Matched in file: ' . $debug[0]); | 
                                                        |
| 21 | +            resolve('heyman.debugger')->addMessage('on line: ' . $debug[1]); | 
                                                        |
| 22 | 22 |              resolve('heyman.debugger')->addMessage($debug[2]); | 
                                                        
| 23 | 23 | });  | 
                                                        
| 24 | 24 | }  | 
                                                        
@@ -31,7 +31,7 @@  | 
                                                    ||
| 31 | 31 | public function __destruct()  | 
                                                        
| 32 | 32 |      { | 
                                                        
| 33 | 33 | $data = $this->validationData;  | 
                                                        
| 34 | -        $modifier = $this->modifier ?: function ($d) { | 
                                                        |
| 34 | +        $modifier = $this->modifier ?: function($d) { | 
                                                        |
| 35 | 35 | return $d;  | 
                                                        
| 36 | 36 | };  | 
                                                        
| 37 | 37 | $chain = resolve(Chain::class);  | 
                                                        
@@ -29,14 +29,14 @@ discard block  | 
                                                    ||
| 29 | 29 | |
| 30 | 30 | protected function abort($abort): \Closure  | 
                                                        
| 31 | 31 |      { | 
                                                        
| 32 | -        return function () use ($abort) { | 
                                                        |
| 32 | +        return function() use ($abort) { | 
                                                        |
| 33 | 33 | abort(...$abort);  | 
                                                        
| 34 | 34 | };  | 
                                                        
| 35 | 35 | }  | 
                                                        
| 36 | 36 | |
| 37 | 37 | protected function nothing(): \Closure  | 
                                                        
| 38 | 38 |      { | 
                                                        
| 39 | -        return function () { | 
                                                        |
| 39 | +        return function() { | 
                                                        |
| 40 | 40 | };  | 
                                                        
| 41 | 41 | }  | 
                                                        
| 42 | 42 | |
@@ -47,7 +47,7 @@ discard block  | 
                                                    ||
| 47 | 47 | */  | 
                                                        
| 48 | 48 | protected function exception(array $e): \Closure  | 
                                                        
| 49 | 49 |      { | 
                                                        
| 50 | -        return function () use ($e) { | 
                                                        |
| 50 | +        return function() use ($e) { | 
                                                        |
| 51 | 51 | $exClass = $e[0];  | 
                                                        
| 52 | 52 | $message = $e[1];  | 
                                                        
| 53 | 53 | |
@@ -62,21 +62,21 @@ discard block  | 
                                                    ||
| 62 | 62 | */  | 
                                                        
| 63 | 63 | protected function response(...$resp): \Closure  | 
                                                        
| 64 | 64 |      { | 
                                                        
| 65 | -        return function () use ($resp) { | 
                                                        |
| 65 | +        return function() use ($resp) { | 
                                                        |
| 66 | 66 | $this->sendResponse($resp, response());  | 
                                                        
| 67 | 67 | };  | 
                                                        
| 68 | 68 | }  | 
                                                        
| 69 | 69 | |
| 70 | 70 | protected function redirect(...$resp): \Closure  | 
                                                        
| 71 | 71 |      { | 
                                                        
| 72 | -        return function () use ($resp) { | 
                                                        |
| 72 | +        return function() use ($resp) { | 
                                                        |
| 73 | 73 | $this->sendResponse($resp, redirect());  | 
                                                        
| 74 | 74 | };  | 
                                                        
| 75 | 75 | }  | 
                                                        
| 76 | 76 | |
| 77 | 77 | protected function respondFrom($method): \Closure  | 
                                                        
| 78 | 78 |      { | 
                                                        
| 79 | -        return function () use ($method) { | 
                                                        |
| 79 | +        return function() use ($method) { | 
                                                        |
| 80 | 80 | respondWith(app()->call(...$method));  | 
                                                        
| 81 | 81 | };  | 
                                                        
| 82 | 82 | }  | 
                                                        
@@ -108,7 +108,7 @@ discard block  | 
                                                    ||
| 108 | 108 | */  | 
                                                        
| 109 | 109 | public function validatorCallback($modifier, $rules, array $messages = [], array $customAttributes = []): \Closure  | 
                                                        
| 110 | 110 |      { | 
                                                        
| 111 | -        $validator = function () use ($modifier, $rules, $messages, $customAttributes) { | 
                                                        |
| 111 | +        $validator = function() use ($modifier, $rules, $messages, $customAttributes) { | 
                                                        |
| 112 | 112 |              if (is_callable($rules)) { | 
                                                        
| 113 | 113 | $rules = $rules();  | 
                                                        
| 114 | 114 | }  |