Passed
Push — develop ( 7b5329...d537c4 )
by Paul
03:16
created
src/Container/Container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.