Passed
Push — main ( e51d58...35f314 )
by ANDREY
10:41
created
src/VPA/DI/Container.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
35 35
         $loadedClasses = array_combine($classes, $classes);
36 36
         $classesNeedCheck = array_merge($loadedClasses, $manualConfig);
37 37
         foreach ($classesNeedCheck as $alias => $class) {
38
-            if(is_string($class)) {
38
+            if (is_string($class)) {
39 39
                 if (class_exists($class)) {
40 40
                     if ($this->isInjectable($class)) {
41 41
                         $injectedClasses[$alias] = $class;
42 42
                     }
43 43
                 }
44 44
             }
45
-            if(is_object($class)) {
45
+            if (is_object($class)) {
46 46
                 $injectedClasses[$alias] = $class;
47 47
             }
48 48
         }
@@ -147,10 +147,10 @@  discard block
 block discarded – undo
147 147
     public function get(string $id, array $params = []): object
148 148
     {
149 149
         $class = self::$classes[$id] ?? $id;
150
-        if(is_string($class)) {
150
+        if (is_string($class)) {
151 151
             return $this->prepareObject($id, $class, $params);
152 152
         }
153
-        if(is_object($class)) {
153
+        if (is_object($class)) {
154 154
             return self::$classes[$id];
155 155
         }
156 156
         throw new NotFoundException("VPA\DI\Container::get('$id'): Class not found");
Please login to merge, or discard this patch.