Completed
Push — master ( 7fd5f6...af8ac7 )
by James Ekow Abaka
01:40
created
src/RecordWrapper.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     private $initialized = false;
62 62
 
63 63
     protected function initialize() {
64
-        if($this->initialized) return;
64
+        if ($this->initialized) return;
65 65
         $this->context = ORMContext::getInstance($this->container);
66 66
         $this->container = $this->context->getContainer();
67 67
         $this->adapter = $this->container->resolve(DriverAdapter::class);
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,9 @@
 block discarded – undo
61 61
     private $initialized = false;
62 62
 
63 63
     protected function initialize() {
64
-        if($this->initialized) return;
64
+        if($this->initialized) {
65
+            return;
66
+        }
65 67
         $this->context = ORMContext::getInstance($this->container);
66 68
         $this->container = $this->context->getContainer();
67 69
         $this->adapter = $this->container->resolve(DriverAdapter::class);
Please login to merge, or discard this patch.
src/ORMContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
     }
81 81
     
82 82
     public static function getInstance($container = null) {
83
-        if(self::$instance === null && $container !== null){ 
83
+        if (self::$instance === null && $container !== null) { 
84 84
             $container->resolve(self::class);
85 85
         } elseif (self::$instance === null) {
86 86
             throw new NibiiException("A context has not yet been initialized");
Please login to merge, or discard this patch.