@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $cb = $this->chain->predicate; |
44 | 44 | $this->chain->reset(); |
45 | 45 | |
46 | - return function (...$f) use ($responder, $cb, $beforeResponse) { |
|
46 | + return function(...$f) use ($responder, $cb, $beforeResponse) { |
|
47 | 47 | if ($cb($f)) { |
48 | 48 | return true; |
49 | 49 | } |
@@ -58,11 +58,11 @@ discard block |
||
58 | 58 | $calls = $this->chain->beforeResponse; |
59 | 59 | |
60 | 60 | if (!$calls) { |
61 | - return function () { |
|
61 | + return function() { |
|
62 | 62 | }; |
63 | 63 | } |
64 | 64 | |
65 | - return function () use ($calls) { |
|
65 | + return function() use ($calls) { |
|
66 | 66 | foreach ($calls as $call) { |
67 | 67 | $call(); |
68 | 68 | } |
@@ -55,14 +55,14 @@ |
||
55 | 55 | |
56 | 56 | public function addAfterCall($callback, $parameters) |
57 | 57 | { |
58 | - $this->beforeResponse[] = function () use ($callback, $parameters) { |
|
58 | + $this->beforeResponse[] = function() use ($callback, $parameters) { |
|
59 | 59 | app()->call($callback, $parameters); |
60 | 60 | }; |
61 | 61 | } |
62 | 62 | |
63 | 63 | public function eventFire($event, array $payload, bool $halt) |
64 | 64 | { |
65 | - $this->beforeResponse[] = function () use ($event, $payload, $halt) { |
|
65 | + $this->beforeResponse[] = function() use ($event, $payload, $halt) { |
|
66 | 66 | app('events')->dispatch($event, $payload, $halt); |
67 | 67 | }; |
68 | 68 | } |