@@ -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 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | $responder = resolve(ResponderFactory::class)->make(); |
| 31 | 31 | |
| 32 | - return function () use ($beforeResponse, $responder, $debug) { |
|
| 32 | + return function() use ($beforeResponse, $responder, $debug) { |
|
| 33 | 33 | event('heyman_reaction_is_happening', $debug); |
| 34 | 34 | $beforeResponse(); |
| 35 | 35 | $responder(); |
@@ -11,15 +11,15 @@ |
||
| 11 | 11 | |
| 12 | 12 | public function thisMethodShouldAllow($callback, array $parameters = []) |
| 13 | 13 | { |
| 14 | - return function (...$payload) use ($callback, $parameters) { |
|
| 15 | - return (bool) app()->call($callback, array_merge($parameters, ...$payload)); |
|
| 14 | + return function(...$payload) use ($callback, $parameters) { |
|
| 15 | + return (bool)app()->call($callback, array_merge($parameters, ...$payload)); |
|
| 16 | 16 | }; |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | public function thisValueShouldAllow($value) |
| 20 | 20 | { |
| 21 | - return function () use ($value) { |
|
| 22 | - return (bool) $value; |
|
| 21 | + return function() use ($value) { |
|
| 22 | + return (bool)$value; |
|
| 23 | 23 | }; |
| 24 | 24 | } |
| 25 | 25 | } |