@@ -28,7 +28,7 @@ |
||
28 | 28 | * @var Node\Stmt\Use_ $node The namespace node to parse. |
29 | 29 | * @var PhpFileModelInterface $parent The node which contains this namespace. |
30 | 30 | */ |
31 | - if (! Validator::instance(Node\Stmt\Use_::class)->validate($node)) { |
|
31 | + if (!Validator::instance(Node\Stmt\Use_::class)->validate($node)) { |
|
32 | 32 | return $parent; |
33 | 33 | } |
34 | 34 | foreach ($node->uses as $use) { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * @var Node\Stmt\Property $node The property node to parse. |
31 | 31 | * @var TraitModelInterface $parent The node which contains this namespace. |
32 | 32 | */ |
33 | - if (! Validator::instance(Node\Stmt\Property::class)->validate($node)) { |
|
33 | + if (!Validator::instance(Node\Stmt\Property::class)->validate($node)) { |
|
34 | 34 | return $parent; |
35 | 35 | } |
36 | 36 | foreach ($node->props as $property) { |
@@ -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($this->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) { |