Completed
Push — master ( c3e82e...f2093f )
by Iman
08:39
created
src/Reactions/ReactionFactory.php 2 patches
Spacing   +3 added lines, -3 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(Chain::class)->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
             }
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
 
31 31
         $responder = resolve(ResponderFactory::class)->make();
32 32
 
33
-        return function () use ($beforeReaction, $responder, $debug, $termination) {
34
-            if($termination)
33
+        return function() use ($beforeReaction, $responder, $debug, $termination) {
34
+            if ($termination)
35 35
                 app()->terminating($termination);
36 36
             event('heyman_reaction_is_happening', $debug);
37 37
             $beforeReaction();
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,9 @@
 block discarded – undo
31 31
         $responder = resolve(ResponderFactory::class)->make();
32 32
 
33 33
         return function () use ($beforeReaction, $responder, $debug, $termination) {
34
-            if($termination)
35
-                app()->terminating($termination);
34
+            if($termination) {
35
+                            app()->terminating($termination);
36
+            }
36 37
             event('heyman_reaction_is_happening', $debug);
37 38
             $beforeReaction();
38 39
             $responder();
Please login to merge, or discard this patch.