Completed
Push — master ( bc4718...6b5d35 )
by Iman
09:37
created
src/ListenerFactory.php 1 patch
Spacing   +6 added lines, -6 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
             }
@@ -57,12 +57,12 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $events = $this->chain->events;
59 59
 
60
-        if (! $events) {
61
-            return function () {
60
+        if (!$events) {
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/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): YouShouldHave
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));
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
      */
108 108
     private function authorizeURL($url, $verb): YouShouldHave
109 109
     {
110
-        $removeSlash = function ($url) use ($verb) {
111
-            return $verb.ltrim($url, '/');
110
+        $removeSlash = function($url) use ($verb) {
111
+            return $verb . ltrim($url, '/');
112 112
         };
113 113
 
114 114
         $url = array_map($removeSlash, $this->normalizeInput($url));
Please login to merge, or discard this patch.