@@ -31,7 +31,7 @@ |
||
31 | 31 | private function normalizeView(array $views): array |
32 | 32 | { |
33 | 33 | $views = $this->normalizeInput($views); |
34 | - $mapper = function ($view) { |
|
34 | + $mapper = function($view) { |
|
35 | 35 | $this->checkViewExists($view); |
36 | 36 | return 'creating: '.\Illuminate\View\ViewName::normalize($view); |
37 | 37 | }; |
@@ -9,9 +9,9 @@ |
||
9 | 9 | { |
10 | 10 | public function authorizeMatchedRoutes(): void |
11 | 11 | { |
12 | - Route::matched(function (RouteMatched $eventObj) { |
|
12 | + Route::matched(function(RouteMatched $eventObj) { |
|
13 | 13 | $route = $eventObj->route; |
14 | - if($eventObj->request->method() === 'GET') |
|
14 | + if ($eventObj->request->method() === 'GET') |
|
15 | 15 | $this->authorizeUrls($route->uri); |
16 | 16 | $this->authorizeRouteNames($route->getName()); |
17 | 17 | $this->authorizeRouteActions($route->getActionName()); |
@@ -11,8 +11,9 @@ |
||
11 | 11 | { |
12 | 12 | Route::matched(function (RouteMatched $eventObj) { |
13 | 13 | $route = $eventObj->route; |
14 | - if($eventObj->request->method() === 'GET') |
|
15 | - $this->authorizeUrls($route->uri); |
|
14 | + if($eventObj->request->method() === 'GET') { |
|
15 | + $this->authorizeUrls($route->uri); |
|
16 | + } |
|
16 | 17 | $this->authorizeRouteNames($route->getName()); |
17 | 18 | $this->authorizeRouteActions($route->getActionName()); |
18 | 19 | }); |