Completed
Push — master ( a36712...b92633 )
by Max
02:26
created
src/AbstractParametersContainer.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             return $this->get($type->getName());
65 65
         } elseif ($param->isDefaultValueAvailable()) {
66 66
             return $param->getDefaultValue();
67
-        }elseif ($type->allowsNull()) {
67
+        } elseif ($type->allowsNull()) {
68 68
             return null;
69 69
         } else {
70 70
             throw new ContainerException('Unknown parameter '.$param->name);
Please login to merge, or discard this patch.
tests/dummy/MagicClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
     
22 22
     public function getDummyPlus() : DummyPlusParameter
23 23
     {
24
-        return $this->serviceLocator(DummyPlusParameter::class,['intDummy'=>5]);
24
+        return $this->serviceLocator(DummyPlusParameter::class, ['intDummy'=>5]);
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/AbstractContainer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             unset($config['#required']);
42 42
             $this->cachedConfig[$id] = $config;
43 43
         }
44
-        if($required and is_null($this->cachedConfig[$id])) {
44
+        if ($required and is_null($this->cachedConfig[$id])) {
45 45
             throw new NotFoundException('Not exist class: '.$id);
46 46
         }
47 47
         return $this->cachedConfig[$id];
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $parentId = reset($parents);
76 76
         }
77 77
         //
78
-        if(!is_string($parentId)) {
78
+        if (!is_string($parentId)) {
79 79
             return [];
80 80
         }
81 81
         return $this->internalConfig($parentId);
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     protected function getAliaseParent(string $id) : ?string
123 123
     {
124 124
         $parts = explode(':', $id, 2);
125
-        if(count($parts) == 1) {
125
+        if (count($parts) == 1) {
126 126
             return null;
127 127
         }
128 128
         return $parts[0];
Please login to merge, or discard this patch.