@@ -45,14 +45,14 @@ discard block |
||
45 | 45 | |
46 | 46 | public function addAfterCall($callback, $parameters) |
47 | 47 | { |
48 | - $this->beforeResponse[] = function () use ($callback, $parameters) { |
|
48 | + $this->beforeResponse[] = function() use ($callback, $parameters) { |
|
49 | 49 | app()->call($callback, $parameters); |
50 | 50 | }; |
51 | 51 | } |
52 | 52 | |
53 | 53 | public function eventFire($event, array $payload, bool $halt) |
54 | 54 | { |
55 | - $this->beforeResponse[] = function () use ($event, $payload, $halt) { |
|
55 | + $this->beforeResponse[] = function() use ($event, $payload, $halt) { |
|
56 | 56 | app('events')->dispatch($event, $payload, $halt); |
57 | 57 | }; |
58 | 58 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $calls = $this->beforeResponse; |
75 | 75 | $this->beforeResponse = []; |
76 | 76 | |
77 | - return function () use ($calls) { |
|
77 | + return function() use ($calls) { |
|
78 | 78 | foreach ($calls as $call) { |
79 | 79 | $call(); |
80 | 80 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $reaction = $this->makeReaction(); |
30 | 30 | $cb = $this->chain->predicate; |
31 | 31 | |
32 | - return function (...$f) use ($cb, $reaction) { |
|
32 | + return function(...$f) use ($cb, $reaction) { |
|
33 | 33 | if (!$cb($f)) { |
34 | 34 | $reaction(); |
35 | 35 | } |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $responder = app(ResponderFactory::class)->make(); |
42 | 42 | $beforeResponse = $this->chain->beforeResponse(); |
43 | 43 | |
44 | - return function () use ($beforeResponse, $responder) { |
|
44 | + return function() use ($beforeResponse, $responder) { |
|
45 | 45 | $beforeResponse(); |
46 | 46 | $responder(); |
47 | 47 | }; |