@@ -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 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | public function allChecks() |
| 33 | 33 | { |
| 34 | - foreach($this->methods() as $method => $type){ |
|
| 34 | + foreach ($this->methods() as $method => $type) { |
|
| 35 | 35 | $this->$method(); |
| 36 | 36 | } |
| 37 | 37 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | */ |
| 43 | 43 | private function turn($key, callable $closure = null) |
| 44 | 44 | { |
| 45 | - $key = 'heyman_ignore_'.$key; |
|
| 45 | + $key = 'heyman_ignore_' . $key; |
|
| 46 | 46 | |
| 47 | 47 | $current = config($key); |
| 48 | 48 | $this->changeMode($key); |