@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | public function dispatch(Message $message) |
25 | 25 | { |
26 | - return $this->session->executeAtomically(function () use ($message) { |
|
26 | + return $this->session->executeAtomically(function() use ($message) { |
|
27 | 27 | $this->next($message); |
28 | 28 | }); |
29 | 29 | } |
@@ -29,11 +29,11 @@ |
||
29 | 29 | public function resolve(Message $message): Closure |
30 | 30 | { |
31 | 31 | $classMethods = $this->mapper->map($message); |
32 | - $fn = function () { |
|
32 | + $fn = function() { |
|
33 | 33 | }; |
34 | 34 | |
35 | 35 | foreach ($classMethods as $classMethod) { |
36 | - $fn = function (Message $message) use ($fn, $classMethod) { |
|
36 | + $fn = function(Message $message) use ($fn, $classMethod) { |
|
37 | 37 | $fn($message); |
38 | 38 | $class = $this->container->get($classMethod->class()); |
39 | 39 | return call_user_func_array([$class, $classMethod->method()], [$message]); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function __construct(array $map) |
22 | 22 | { |
23 | - $this->map = array_filter($map, function ($item) { |
|
23 | + $this->map = array_filter($map, function($item) { |
|
24 | 24 | return $item instanceof Closure; |
25 | 25 | }); |
26 | 26 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $missing = array_filter( |
28 | 28 | $required, |
29 | - function ($item) use ($parameters) { |
|
29 | + function($item) use ($parameters) { |
|
30 | 30 | return !array_key_exists($item, $parameters); |
31 | 31 | } |
32 | 32 | ); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function __construct(array $map) |
15 | 15 | { |
16 | - $mapped = array_map(function ($item) { |
|
16 | + $mapped = array_map(function($item) { |
|
17 | 17 | list($message, $class, $method) = $item; |
18 | 18 | return new ClassMethod($message, $class, $method); |
19 | 19 | }, |
@@ -71,7 +71,7 @@ |
||
71 | 71 | { |
72 | 72 | $attribute = $method->getAttributes($this->attribute, ReflectionAttribute::IS_INSTANCEOF)[0] ?? null; |
73 | 73 | if ($attribute instanceof ReflectionAttribute) { |
74 | - $attr = $attribute->newInstance(); |
|
74 | + $attr = $attribute->newInstance(); |
|
75 | 75 | assert($attr instanceof Handler); |
76 | 76 | return $attr; |
77 | 77 | } |