Passed
Push — master ( 29f0df...a04e7d )
by Iman
04:18
created
src/Hooks/ViewHooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
         };
Please login to merge, or discard this patch.
src/RouteAuthorizer.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,9 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.