@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | private function resolve($id): object |
| 94 | 94 | { |
| 95 | - if (! Validator::stringType()->validate($id)) { |
|
| 95 | + if (!Validator::stringType()->validate($id)) { |
|
| 96 | 96 | throw new ContainerException("Identifier is not a string."); |
| 97 | 97 | } |
| 98 | 98 | if (Validator::key($id)->validate(static::$instances)) { |
@@ -118,13 +118,13 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | private function autoResolve(string $class): object |
| 120 | 120 | { |
| 121 | - if (! class_exists($class)) { |
|
| 121 | + if (!class_exists($class)) { |
|
| 122 | 122 | throw new ContainerException(sprintf("Class %s does not exists.", $class)); |
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | $reflection = new \ReflectionClass($class); |
| 126 | 126 | |
| 127 | - if (! $reflection->isInstantiable()) { |
|
| 127 | + if (!$reflection->isInstantiable()) { |
|
| 128 | 128 | throw new ContainerException(sprintf("Class %s is not instantiable.", $class)); |
| 129 | 129 | } |
| 130 | 130 | if (($constructor = $reflection->getConstructor()) === null) { |