@@ -67,7 +67,9 @@ |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | public static function getInstance() { |
70 | - if(self::$instance === null) throw new NibiiException("A context has not yet been initialized"); |
|
70 | + if(self::$instance === null) { |
|
71 | + throw new NibiiException("A context has not yet been initialized"); |
|
72 | + } |
|
71 | 73 | return self::$instance; |
72 | 74 | } |
73 | 75 |
@@ -63,7 +63,9 @@ |
||
63 | 63 | private $initialized = false; |
64 | 64 | |
65 | 65 | private function initialize() { |
66 | - if($this->initialized) return; |
|
66 | + if($this->initialized) { |
|
67 | + return; |
|
68 | + } |
|
67 | 69 | $this->context = ORMContext::getInstance(); |
68 | 70 | $this->container = $this->context->getContainer(); |
69 | 71 | $this->adapter = $this->container->resolve(DriverAdapter::class); |