Completed
Branch master (d445b8)
by James Ekow Abaka
02:00
created
src/InjectionContainer.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,8 +22,7 @@  discard block
 block discarded – undo
22 22
         $bound = null;
23 23
         if(self::getBindings()->has($class)) {
24 24
             $bound = self::$bindings->get($class);
25
-        }
26
-        else if(is_string($class) && class_exists($class)) {
25
+        } else if(is_string($class) && class_exists($class)) {
27 26
             $bound = $class;
28 27
         }
29 28
         return $bound;
@@ -31,7 +30,9 @@  discard block
 block discarded – undo
31 30
     
32 31
     private static function getBindings() 
33 32
     {
34
-        if(!self::$bindings) self::$bindings = new Bindings ();
33
+        if(!self::$bindings) {
34
+            self::$bindings = new Bindings ();
35
+        }
35 36
         return self::$bindings;
36 37
     }
37 38
     
Please login to merge, or discard this patch.