@@ -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(); |