Completed
Push — master ( ed6a4c...a3a62e )
by James Ekow Abaka
03:18
created
src/RecordWrapper.php 3 patches
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
     /**
148 148
      * @method
149
-     * @param type $name
149
+     * @param string $name
150 150
      * @param type $arguments
151 151
      * @return type
152 152
      */
@@ -176,6 +176,10 @@  discard block
 block discarded – undo
176 176
         return $this->retrieveItem($name);
177 177
     }
178 178
 
179
+    /**
180
+     * @param Relationship[] $relationships
181
+     * @param integer $depth
182
+     */
179 183
     private function expandArrayValue($array, $relationships, $depth, $index = null) {
180 184
         foreach ($relationships as $name => $relationship) {
181 185
             $array[$name] = $this->fetchRelatedFields($relationship, $index)->toArray($depth);
@@ -336,6 +340,9 @@  discard block
 block discarded – undo
336 340
         
337 341
     }
338 342
 
343
+    /**
344
+     * @param string $id
345
+     */
339 346
     public function postSaveCallback($id) {
340 347
         
341 348
     }
@@ -360,7 +367,7 @@  discard block
 block discarded – undo
360 367
     
361 368
     /**
362 369
      * 
363
-     * @return DataAdapter
370
+     * @return DriverAdapter
364 371
      */
365 372
     public function getAdapter() {
366 373
         $this->initialize();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     private $initialized = false;
64 64
 
65 65
     private function initialize() {
66
-        if($this->initialized) return;
66
+        if ($this->initialized) return;
67 67
         $this->context = ORMContext::getInstance();
68 68
         $this->container = $this->context->getContainer();
69 69
         $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
@@ -63,7 +63,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/validations/UniqueValidation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
         }
69 69
 
70 70
         return $this->evaluateResult(
71
-            $field, $testItem->count() === 0, "The value of " . implode(', ', $field['name']) . " must be unique"
71
+            $field, $testItem->count() === 0, "The value of ".implode(', ', $field['name'])." must be unique"
72 72
         );
73 73
     }
74 74
 
Please login to merge, or discard this patch.