@@ -14,7 +14,7 @@ discard block |
||
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 |
||
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(); |
@@ -31,8 +31,9 @@ |
||
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(); |