@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('resolve')) { |
|
3 | +if (!function_exists('resolve')) { |
|
4 | 4 | /** |
5 | 5 | * Resolve a service from the container. |
6 | 6 | * |
@@ -23,14 +23,14 @@ discard block |
||
23 | 23 | |
24 | 24 | public function addAfterCall($callback, $parameters) |
25 | 25 | { |
26 | - $this->beforeResponse[] = function () use ($callback, $parameters) { |
|
26 | + $this->beforeResponse[] = function() use ($callback, $parameters) { |
|
27 | 27 | app()->call($callback, $parameters); |
28 | 28 | }; |
29 | 29 | } |
30 | 30 | |
31 | 31 | public function eventFire($event, array $payload, bool $halt) |
32 | 32 | { |
33 | - $this->beforeResponse[] = function () use ($event, $payload, $halt) { |
|
33 | + $this->beforeResponse[] = function() use ($event, $payload, $halt) { |
|
34 | 34 | resolve('events')->dispatch($event, $payload, $halt); |
35 | 35 | }; |
36 | 36 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $calls = $this->beforeResponse; |
47 | 47 | $this->beforeResponse = []; |
48 | 48 | |
49 | - return function () use ($calls) { |
|
49 | + return function() use ($calls) { |
|
50 | 50 | foreach ($calls as $call) { |
51 | 51 | $call(); |
52 | 52 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function __destruct() |
32 | 32 | { |
33 | 33 | $data = $this->validationData; |
34 | - $modifier = $this->modifier ?: function ($d) { |
|
34 | + $modifier = $this->modifier ?: function($d) { |
|
35 | 35 | return $d; |
36 | 36 | }; |
37 | 37 | $chain = resolve(Chain::class); |
@@ -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 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $beforeResponse = $chain->beforeResponse(); |
29 | 29 | $debug = $chain->debugInfo; |
30 | 30 | |
31 | - return function () use ($beforeResponse, $responder, $debug) { |
|
31 | + return function() use ($beforeResponse, $responder, $debug) { |
|
32 | 32 | event('heyman_reaction_is_happening', $debug); |
33 | 33 | $beforeResponse(); |
34 | 34 | $responder(); |