Passed
Push — master ( 41129c...97589e )
by Iman
08:01
created
src/ListenerFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $cb = $this->chain->predicate;
43 43
         $this->chain->reset();
44 44
 
45
-        return function (...$f) use ($responder, $cb, $dispatcher, $calls) {
45
+        return function(...$f) use ($responder, $cb, $dispatcher, $calls) {
46 46
             if ($cb($f)) {
47 47
                 return true;
48 48
             }
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
         $events = $this->chain->events;
59 59
 
60 60
         if (!$events) {
61
-            return function () {
61
+            return function() {
62 62
             };
63 63
         }
64 64
 
65
-        return function () use ($events) {
65
+        return function() use ($events) {
66 66
             foreach ($events as $event) {
67 67
                 app('events')->dispatch(...$event);
68 68
             }
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
         $calls = $this->chain->calls;
75 75
 
76 76
         if (!$calls) {
77
-            return function () {
77
+            return function() {
78 78
             };
79 79
         }
80 80
 
81
-        return function () use ($calls) {
81
+        return function() use ($calls) {
82 82
             foreach ($calls as $call) {
83 83
                 app()->call(...$call);
84 84
             }
Please login to merge, or discard this patch.
src/Hooks/ViewHooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         $views = $this->normalizeInput($views);
40 40
 
41
-        $mapper = function ($view) {
41
+        $mapper = function($view) {
42 42
             $this->checkViewExists($view);
43 43
         };
44 44
 
Please login to merge, or discard this patch.
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/Hooks/RouteHooks.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function whenYouCallAction(...$action)
76 76
     {
77
-        $addNamespace = function ($action) {
77
+        $addNamespace = function($action) {
78 78
             if ($action = ltrim($action, '\\')) {
79 79
                 return $action;
80 80
             }
81 81
 
82
-            return app()->getNamespace().'\\Http\\Controllers\\'.$action;
82
+            return app()->getNamespace() . '\\Http\\Controllers\\' . $action;
83 83
         };
84 84
 
85 85
         $action = array_map($addNamespace, $this->normalizeInput($action));
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
      */
109 109
     private function authorizeURL($url, $verb): YouShouldHave
110 110
     {
111
-        $removeSlash = function ($url) use ($verb) {
112
-            return $verb.ltrim($url, '/');
111
+        $removeSlash = function($url) use ($verb) {
112
+            return $verb . ltrim($url, '/');
113 113
         };
114 114
 
115 115
         $url = array_map($removeSlash, $this->normalizeInput($url));
Please login to merge, or discard this patch.
src/RouteMatchListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@
 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
             $matchedRoute = [
15 15
                 $eventObj->route->getName(),
16 16
                 $eventObj->route->getActionName(),
17
-                $eventObj->request->method().$eventObj->route->uri,
17
+                $eventObj->request->method() . $eventObj->route->uri,
18 18
             ];
19 19
 
20 20
             $closures = app(RouterEventManager::class)->findMatchingCallbacks($matchedRoute);
Please login to merge, or discard this patch.
src/WatchingStrategies/BasicEventManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     private function wrapForIgnorance(callable $callback): \Closure
39 39
     {
40
-        return function () use ($callback) {
40
+        return function() use ($callback) {
41 41
             if (!config('heyman_ignore_event', false)) {
42 42
                 $callback();
43 43
             }
Please login to merge, or discard this patch.
src/WatchingStrategies/RouterEventManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     private function wrapCallbacksForIgnore(array $callbacks): array
33 33
     {
34
-        return array_map(function ($callback) {
34
+        return array_map(function($callback) {
35 35
             return $this->wrapForIgnorance($callback);
36 36
         }, $callbacks);
37 37
     }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     private function wrapForIgnorance(callable $callback): callable
64 64
     {
65
-        return function () use ($callback) {
65
+        return function() use ($callback) {
66 66
             if (!config('heyman_ignore_route', false)) {
67 67
                 $callback();
68 68
             }
Please login to merge, or discard this patch.
src/WatchingStrategies/ViewEventManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     private function wrapForIgnorance(callable $callback): callable
34 34
     {
35
-        return function (...$args) use ($callback) {
35
+        return function(...$args) use ($callback) {
36 36
             if (!config('heyman_ignore_view', false)) {
37 37
                 $callback(...$args);
38 38
             }
Please login to merge, or discard this patch.
src/WatchingStrategies/EloquentEventsManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     private function wrapForIgnorance(callable $callback): \Closure
45 45
     {
46
-        return function (...$args) use ($callback) {
46
+        return function(...$args) use ($callback) {
47 47
             if (!config('heyman_ignore_eloquent', false)) {
48 48
                 $callback(...$args);
49 49
             }
Please login to merge, or discard this patch.