@@ -64,7 +64,7 @@ |
||
| 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);
|
@@ -21,6 +21,6 @@ |
||
| 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 | } |
@@ -41,7 +41,7 @@ |
||
| 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]; |