@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | public static function respondFrom($method) |
19 | 19 | { |
20 | - return function ($meta = null) use ($method) { |
|
20 | + return function($meta = null) use ($method) { |
|
21 | 21 | array_push($method, [$meta]); |
22 | 22 | |
23 | 23 | if (is_array($method[0])) { |
@@ -6,8 +6,8 @@ |
||
6 | 6 | { |
7 | 7 | public function wrapForIgnorance(callable $callback, $key) |
8 | 8 | { |
9 | - return function (...$args) use ($callback, $key) { |
|
10 | - if (config('heyman_ignore_'.$key, false)) { |
|
9 | + return function(...$args) use ($callback, $key) { |
|
10 | + if (config('heyman_ignore_' . $key, false)) { |
|
11 | 11 | return true; |
12 | 12 | } |
13 | 13 |
@@ -11,8 +11,8 @@ discard block |
||
11 | 11 | $reaction = $this->makeReaction(); |
12 | 12 | $condition = resolve('heyman.chain')->get('condition'); |
13 | 13 | |
14 | - return function (...$f) use ($condition, $reaction) { |
|
15 | - if (! $condition($f)) { |
|
14 | + return function(...$f) use ($condition, $reaction) { |
|
15 | + if (!$condition($f)) { |
|
16 | 16 | $conditionMeta = resolve('heyman.chain')->get('condition_meta') ?: null; |
17 | 17 | $reaction($conditionMeta); |
18 | 18 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | $responder = resolve(ResponderFactory::class)->make(); |
32 | 32 | |
33 | - return function ($param = null) use ($beforeReaction, $responder, $debug, $termination) { |
|
33 | + return function($param = null) use ($beforeReaction, $responder, $debug, $termination) { |
|
34 | 34 | if ($termination) { |
35 | 35 | app()->terminating($termination); |
36 | 36 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | { |
45 | 45 | $tasks = $chain->get('beforeReaction') ?? []; |
46 | 46 | $tasks = $this->convertToClosures($tasks); |
47 | - $beforeReaction = function () use ($tasks) { |
|
47 | + $beforeReaction = function() use ($tasks) { |
|
48 | 48 | foreach ($tasks as $task) { |
49 | 49 | $task(); |
50 | 50 | } |
@@ -55,16 +55,16 @@ discard block |
||
55 | 55 | |
56 | 56 | private function convertToClosures($tasks) |
57 | 57 | { |
58 | - $map = function ($task) { |
|
58 | + $map = function($task) { |
|
59 | 59 | $params = $task[0]; |
60 | 60 | |
61 | 61 | if ($task[1] == 'event') { |
62 | - return function () use ($params) { |
|
62 | + return function() use ($params) { |
|
63 | 63 | resolve('events')->dispatch(...$params); |
64 | 64 | }; |
65 | 65 | } |
66 | 66 | |
67 | - return function () use ($params) { |
|
67 | + return function() use ($params) { |
|
68 | 68 | app()->call(...$params); |
69 | 69 | }; |
70 | 70 | }; |