Completed
Push — master ( d4e593...c1d04e )
by Iman
20:25 queued 13:41
created
src/ResponderFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -27,14 +27,14 @@  discard block
 block discarded – undo
27 27
         } elseif ($this->chain->redirect) {
28 28
             return $this->redirectCallback($this->chain->redirect);
29 29
         } else {
30
-            return function () {
30
+            return function() {
31 31
             };
32 32
         }
33 33
     }
34 34
 
35 35
     public function abortCallback($abort)
36 36
     {
37
-        $responder = function () use ($abort) {
37
+        $responder = function() use ($abort) {
38 38
             abort(...$abort);
39 39
         };
40 40
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function exceptionCallback($e): \Closure
51 51
     {
52
-        $responder = function () use ($e) {
52
+        $responder = function() use ($e) {
53 53
             $exClass = $e['class'];
54 54
 
55 55
             throw new $exClass($e['message']);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function responseCallback($resp): \Closure
68 68
     {
69
-        $responder = function () use ($resp) {
69
+        $responder = function() use ($resp) {
70 70
             $respObj = response();
71 71
             foreach ($resp as $call) {
72 72
                 list($method, $args) = $call;
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
     public function redirectCallback($resp): \Closure
82 82
     {
83
-        $responder = function () use ($resp) {
83
+        $responder = function() use ($resp) {
84 84
             $respObj = redirect();
85 85
             foreach ($resp as $call) {
86 86
                 list($method, $args) = $call;
Please login to merge, or discard this patch.
src/RouteAuthorizer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@  discard block
 block discarded – undo
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 15
             foreach (['GET', 'POST', 'PUT', 'PATCH', 'DELETE'] as $verb) {
16 16
                 if ($eventObj->request->method() === $verb) {
17
-                    $this->authorizeUrls($verb.$route->uri);
17
+                    $this->authorizeUrls($verb . $route->uri);
18 18
                 }
19 19
             }
20 20
             $this->authorizeRouteNames($route->getName());
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     private function setGuardFor(string $method, $key)
60 60
     {
61
-        $method = 'get'.$method;
61
+        $method = 'get' . $method;
62 62
         $closures = app(RouterEventManager::class)->{$method}($key);
63 63
         foreach ($closures as $cb) {
64 64
             $cb();
Please login to merge, or discard this patch.
src/WatchingStrategies/RouterEventManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             }
78 78
         }
79 79
 
80
-        return [function () {
80
+        return [function() {
81 81
         }];
82 82
     }
83 83
 
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
      */
89 89
     private function wrapCallbacksForIgnore($callbacks): array
90 90
     {
91
-        return array_map(function ($callback) {
92
-            return function () use ($callback) {
91
+        return array_map(function($callback) {
92
+            return function() use ($callback) {
93 93
                 if (!config('heyman_ignore_route', false)) {
94 94
                     $callback();
95 95
                 }
Please login to merge, or discard this patch.