Completed
Pull Request — master (#8)
by David
03:26
created
src/Utils/FileSystem.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
             $objects = scandir($dir);
30 30
             foreach ($objects as $object) {
31 31
                 if ($object !== "." && $object !== "..") {
32
-                    if (is_dir($dir. '/' .$object)) {
33
-                        self::rmdir($dir. '/' .$object);
32
+                    if (is_dir($dir.'/'.$object)) {
33
+                        self::rmdir($dir.'/'.$object);
34 34
                     } else {
35
-                        unlink($dir. '/' .$object);
35
+                        unlink($dir.'/'.$object);
36 36
                     }
37 37
                 }
38 38
             }
Please login to merge, or discard this patch.
src/FactoryDefinition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
             $returnTypeCode,
80 80
             '\\'.$this->reflectionMethod->getDeclaringClass()->getName(),
81 81
             $this->reflectionMethod->getName(),
82
-            implode(', ', array_map(function (Injection $injection) {
82
+            implode(', ', array_map(function(Injection $injection) {
83 83
                 return $injection->getCode();
84 84
             }, $this->getInjections()))
85 85
         );
Please login to merge, or discard this patch.
src/AbstractDefinition.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
         if ($type === null || $type->isBuiltin()) {
40 40
             return new ServiceInjection($reflectionParameter->getName(), !$reflectionParameter->allowsNull());
41 41
         }
42
-        if (((string)$type) === ContainerInterface::class) {
42
+        if (((string) $type) === ContainerInterface::class) {
43 43
             return new ContainerInjection();
44 44
         }
45
-        return new ServiceInjection((string)$type, !$reflectionParameter->allowsNull());
45
+        return new ServiceInjection((string) $type, !$reflectionParameter->allowsNull());
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/ExtensionDefinition.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $returnTypeCode = '';
41 41
         $returnType = $this->reflectionMethod->getReturnType();
42 42
         if ($returnType) {
43
-            $allowsNull = $returnType->allowsNull() ? '?':'';
43
+            $allowsNull = $returnType->allowsNull() ? '?' : '';
44 44
             if ($returnType->isBuiltin()) {
45 45
                 $returnTypeCode = ': '.$allowsNull.$returnType;
46 46
             } else {
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
             $returnTypeCode,
90 90
             '\\'.$this->reflectionMethod->getDeclaringClass()->getName(),
91 91
             $this->reflectionMethod->getName(),
92
-            $previousParameterCode ? '$previous': '',
93
-            implode('', array_map(function (Injection $injection) {
92
+            $previousParameterCode ? '$previous' : '',
93
+            implode('', array_map(function(Injection $injection) {
94 94
                 return ', '.$injection->getCode();
95 95
             }, $this->getInjections()))
96 96
         );
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
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
         $slashPos = strrpos($className, '\\');
189 189
         if ($slashPos !== false) {
190 190
             $namespace = 'namespace '.substr($className, 0, $slashPos).";\n";
191
-            $shortClassName = substr($className, $slashPos+1);
191
+            $shortClassName = substr($className, $slashPos + 1);
192 192
         } else {
193 193
             $namespace = null;
194 194
             $shortClassName = $className;
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/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.