@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function getArgument(string $parameter) |
| 42 | 42 | { |
| 43 | - if (! $this->hasArgument($parameter)) { |
|
| 43 | + if (!$this->hasArgument($parameter)) { |
|
| 44 | 44 | throw new ArgumentNotFoundException(); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | public function getFactoryContext(string $factoryClass): array |
| 61 | 61 | { |
| 62 | - if (! $this->hasFactoryContext($factoryClass)) { |
|
| 62 | + if (!$this->hasFactoryContext($factoryClass)) { |
|
| 63 | 63 | throw new FactoryContextNotFoundException(); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | public function addInstance($instance) |
| 70 | 70 | { |
| 71 | - if (! is_object($instance)) { |
|
| 71 | + if (!is_object($instance)) { |
|
| 72 | 72 | throw new NotAnObjectException(); |
| 73 | 73 | } |
| 74 | 74 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | { |
| 80 | 80 | $this->assertClassOrInterfaceExists($class); |
| 81 | 81 | |
| 82 | - $this->container[$class] = function () use ($builder, $class, $arguments) { |
|
| 82 | + $this->container[$class] = function() use ($builder, $class, $arguments) { |
|
| 83 | 83 | return $builder->buildInstance($class, $arguments); |
| 84 | 84 | }; |
| 85 | 85 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | public function getInstance(string $class) |
| 104 | 104 | { |
| 105 | - if (! $this->hasInstance($class)) { |
|
| 105 | + if (!$this->hasInstance($class)) { |
|
| 106 | 106 | throw new InstanceNotFoundException(); |
| 107 | 107 | } |
| 108 | 108 | |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | */ |
| 141 | 141 | private function assertClassOrInterfaceExists(string $class) |
| 142 | 142 | { |
| 143 | - if (! class_exists($class) && ! interface_exists($class)) { |
|
| 143 | + if (!class_exists($class) && !interface_exists($class)) { |
|
| 144 | 144 | throw new ClassOrInterfaceNotFoundException(); |
| 145 | 145 | } |
| 146 | 146 | } |