Passed
Push — main ( dae7cc...12f243 )
by Breno
01:47
created
src/Buses/Transactional.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Handler/ClassMethodResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
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]);
Please login to merge, or discard this patch.
src/Handler/ClosureArrayResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Utility/Assert.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Handler/ClassMethod/Mapper/ArrayMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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
         },
Please login to merge, or discard this patch.
src/Handler/Attributes/AttributesMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.