Passed
Push — master ( c61266...84ac3f )
by Iman
11:29 queued 08:42
created
src/Reactions/ReactionFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
         $reaction = $this->makeReaction();
15 15
         $condition = resolve(ChainManager::class)->get('condition');
16 16
 
17
-        return function (...$f) use ($condition, $reaction) {
17
+        return function(...$f) use ($condition, $reaction) {
18 18
             if (!$condition($f)) {
19 19
                 $reaction();
20 20
             }
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
         $responder = resolve(ResponderFactory::class)->make();
34 34
 
35
-        return function () use ($beforeReaction, $responder, $debug, $termination) {
35
+        return function() use ($beforeReaction, $responder, $debug, $termination) {
36 36
             if ($termination) {
37 37
                 app()->terminating($termination);
38 38
             }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     private function makePreResponseActions($chain): \Closure
51 51
     {
52 52
         $tasks = $this->convertToClosures($chain);
53
-        $beforeReaction = function () use ($tasks) {
53
+        $beforeReaction = function() use ($tasks) {
54 54
             foreach ($tasks as $task) {
55 55
                 $task();
56 56
             }
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
         $r = [];
71 71
         foreach ($tasks as $task) {
72 72
             if ($task[1] == 'event') {
73
-                $r[] = function () use ($task) {
73
+                $r[] = function() use ($task) {
74 74
                     resolve('events')->dispatch(...$task[0]);
75 75
                 };
76 76
             } elseif ($task[1] == 'cb') {
77
-                $r[] = function () use ($task) {
77
+                $r[] = function() use ($task) {
78 78
                     app()->call(...$task[0]);
79 79
                 };
80 80
             }
Please login to merge, or discard this patch.