@@ -10,9 +10,9 @@ |
||
10 | 10 | { |
11 | 11 | public function authorizeMatchedRoutes() |
12 | 12 | { |
13 | - Route::matched(function (RouteMatched $eventObj) { |
|
13 | + Route::matched(function(RouteMatched $eventObj) { |
|
14 | 14 | $route = $eventObj->route; |
15 | - $this->setGuardFor($eventObj->request->method().$route->uri); |
|
15 | + $this->setGuardFor($eventObj->request->method() . $route->uri); |
|
16 | 16 | $this->setGuardFor($route->getName()); |
17 | 17 | $this->setGuardFor($route->getActionName()); |
18 | 18 | }); |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | } |
59 | 59 | |
60 | - return [function () { |
|
60 | + return [function() { |
|
61 | 61 | }]; |
62 | 62 | } |
63 | 63 | |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | */ |
69 | 69 | private function wrapCallbacksForIgnore($callbacks): array |
70 | 70 | { |
71 | - return array_map(function ($callback) { |
|
71 | + return array_map(function($callback) { |
|
72 | 72 | $c = $callback[1]; |
73 | - return function () use ($c) { |
|
73 | + return function() use ($c) { |
|
74 | 74 | if (!config('heyman_ignore_route', false)) { |
75 | 75 | $c(); |
76 | 76 | } |