Passed
Push — master ( 164638...6e54fa )
by David
01:38
created
src/BadModifierException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\Funky;
5 5
 
Please login to merge, or discard this patch.
src/Injections/ServiceInjection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare (strict_types=1);
2
+declare (strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\Funky\Injections;
5 5
 
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\Funky;
5 5
 
Please login to merge, or discard this patch.
src/Injections/ContainerInjection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare (strict_types=1);
2
+declare (strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\Funky\Injections;
5 5
 
Please login to merge, or discard this patch.
src/FactoryDefinition.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             $returnTypeCode,
90 90
             $this->reflectionMethod->getDeclaringClass()->getName(),
91 91
             $this->reflectionMethod->getName(),
92
-            implode(', ', array_map(function (Injection $injection) {
92
+            implode(', ', array_map(function(Injection $injection) {
93 93
                 return $injection->getCode();
94 94
             }, $this->getInjections()))
95 95
         );
@@ -102,16 +102,16 @@  discard block
 block discarded – undo
102 102
      */
103 103
     private function getInjections(): array
104 104
     {
105
-        return array_map(function (ReflectionParameter $reflectionParameter) {
105
+        return array_map(function(ReflectionParameter $reflectionParameter) {
106 106
             $type = $reflectionParameter->getType();
107 107
             // No type? Let's inject by parameter name.
108 108
             if ($type === null || $type->isBuiltin()) {
109 109
                 return new ServiceInjection($reflectionParameter->getName(), !$reflectionParameter->allowsNull());
110 110
             }
111
-            if (((string)$type) === ContainerInterface::class) {
111
+            if (((string) $type) === ContainerInterface::class) {
112 112
                 return new ContainerInjection();
113 113
             }
114
-            return new ServiceInjection((string)$type, !$reflectionParameter->allowsNull());
114
+            return new ServiceInjection((string) $type, !$reflectionParameter->allowsNull());
115 115
         }, $this->getReflectionMethod()->getParameters());
116 116
     }
117 117
 
Please login to merge, or discard this patch.
src/Annotations/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace TheCodingMachine\Funky\Annotations;
5 5
 
Please login to merge, or discard this patch.