@@ -22,8 +22,7 @@ discard block |
||
| 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 |
||
| 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 | |