@@ -29,7 +29,7 @@ |
||
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 | } |
@@ -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 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | { |
74 | 74 | $calls = $this->beforeResponse; |
75 | 75 | $this->beforeResponse = []; |
76 | - return function () use ($calls) { |
|
76 | + return function() use ($calls) { |
|
77 | 77 | foreach ($calls as $call) { |
78 | 78 | $call(); |
79 | 79 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | private function turn($key, callable $closure = null) |
53 | 53 | { |
54 | - $key = 'heyman_ignore_'.$key; |
|
54 | + $key = 'heyman_ignore_' . $key; |
|
55 | 55 | |
56 | 56 | $current = config($key); |
57 | 57 | config()->set($key, [ |