Completed
Push — dev ( 2240d0...cf5568 )
by James Ekow Abaka
01:59
created
src/ORMContext.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
 
29 29
 use ntentan\atiaa\DbContext;
30 30
 use ntentan\kaikai\Cache;
31
+use ntentan\nibii\exceptions\NibiiException;
31 32
 use ntentan\nibii\interfaces\DriverAdapterFactoryInterface;
32 33
 use ntentan\nibii\interfaces\ModelFactoryInterface;
33 34
 use ntentan\nibii\interfaces\ValidatorFactoryInterface;
34
-use ntentan\nibii\exceptions\NibiiException;
35 35
 use ntentan\panie\exceptions\ResolutionException;
36 36
 
37 37
 /**
Please login to merge, or discard this patch.
src/RecordWrapper.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         $this->initialize();
212 212
 
213 213
         return $this->context->getCache()->read(
214
-            "{$this->className}::desc", function () {
214
+            "{$this->className}::desc", function() {
215 215
                 return $this->context->getModelDescription($this);
216 216
             }
217 217
         );
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
     {
447 447
         $data = $index ? $this->modelData[$index] : $this->modelData;
448 448
         $name = $relationship->getOptions()['name'];
449
-        if(isset($data[$name]))
449
+        if (isset($data[$name]))
450 450
         {
451 451
             return $data[$name];
452 452
         }
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
         }
457 457
         $query = $relationship->prepareQuery($data);
458 458
 
459
-        if($query) {
459
+        if ($query) {
460 460
             $model->fix($query);
461 461
             return $model->fetch($query);
462 462
         } else {
Please login to merge, or discard this patch.