Completed
Push — master ( b1ac4b...36764f )
by Iman
03:38
created
src/ListenerFactory.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     private function exceptionCallback($e): \Closure
59 59
     {
60
-        $responder = function () use ($e) {
60
+        $responder = function() use ($e) {
61 61
             $exClass = $e['class'];
62 62
             throw new $exClass($e['message']);
63 63
         };
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     private function responseCallback($resp): \Closure
75 75
     {
76
-        $responder = function () use ($resp) {
76
+        $responder = function() use ($resp) {
77 77
             $respObj = response();
78 78
             foreach ($resp as $call) {
79 79
                 list($method, $args) = $call;
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
     private function redirectCallback($resp): \Closure
89 89
     {
90
-        $responder = function () use ($resp) {
90
+        $responder = function() use ($resp) {
91 91
             $respObj = redirect();
92 92
             foreach ($resp as $call) {
93 93
                 list($method, $args) = $call;
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
         $cb = $this->chain->predicate;
112 112
         $this->chain->reset();
113 113
 
114
-        $this->caller = $this->dispatcher = function () {
114
+        $this->caller = $this->dispatcher = function() {
115 115
         };
116
-        return function (...$f) use ($responder, $cb, $dispatcher, $calls) {
116
+        return function(...$f) use ($responder, $cb, $dispatcher, $calls) {
117 117
             if ($cb($f)) {
118 118
                 return true;
119 119
             }
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
     {
129 129
         $events = $this->chain->events;
130 130
 
131
-        if (! $events) {
132
-            return $this->dispatcher = function () {
131
+        if (!$events) {
132
+            return $this->dispatcher = function() {
133 133
             };
134 134
         }
135 135
 
136
-        return $this->dispatcher = function () use ($events) {
136
+        return $this->dispatcher = function() use ($events) {
137 137
             foreach ($events as $event) {
138 138
                 app('events')->dispatch(...$event);
139 139
             }
@@ -144,12 +144,12 @@  discard block
 block discarded – undo
144 144
     {
145 145
         $calls = $this->chain->calls;
146 146
 
147
-        if (! $calls) {
148
-            return $this->caller = function () {
147
+        if (!$calls) {
148
+            return $this->caller = function() {
149 149
             };
150 150
         }
151 151
 
152
-        return $this->caller = function () use ($calls) {
152
+        return $this->caller = function() use ($calls) {
153 153
             foreach ($calls as $call) {
154 154
                 app()->call(...$call);
155 155
             }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
     private function abortCallback($abort)
160 160
     {
161
-        $responder = function () use ($abort) {
161
+        $responder = function() use ($abort) {
162 162
             abort(...$abort);
163 163
         };
164 164
 
Please login to merge, or discard this patch.