Completed
Push — master ( cd5a9f...12dfc9 )
by Iman
03:04
created
src/Reactions/ReactionFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $cb = $this->chain->predicate;
44 44
         $this->chain->reset();
45 45
 
46
-        return function (...$f) use ($responder, $cb, $beforeResponse) {
46
+        return function(...$f) use ($responder, $cb, $beforeResponse) {
47 47
             if ($cb($f)) {
48 48
                 return true;
49 49
             }
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
         $calls = $this->chain->beforeResponse;
59 59
 
60 60
         if (!$calls) {
61
-            return function () {
61
+            return function() {
62 62
             };
63 63
         }
64 64
 
65
-        return function () use ($calls) {
65
+        return function() use ($calls) {
66 66
             foreach ($calls as $call) {
67 67
                 $call();
68 68
             }
Please login to merge, or discard this patch.
src/Chain.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,14 +55,14 @@
 block discarded – undo
55 55
 
56 56
     public function addAfterCall($callback, $parameters)
57 57
     {
58
-        $this->beforeResponse[] = function () use ($callback, $parameters) {
58
+        $this->beforeResponse[] = function() use ($callback, $parameters) {
59 59
             app()->call($callback, $parameters);
60 60
         };
61 61
     }
62 62
 
63 63
     public function eventFire($event, array $payload, bool $halt)
64 64
     {
65
-        $this->beforeResponse[] = function () use ($event, $payload, $halt) {
65
+        $this->beforeResponse[] = function() use ($event, $payload, $halt) {
66 66
             app('events')->dispatch($event, $payload, $halt);
67 67
         };
68 68
     }
Please login to merge, or discard this patch.