Completed
Push — master ( 1099ae...5bb58a )
by James Ekow Abaka
01:43
created
src/RecordWrapper.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -171,6 +171,10 @@  discard block
 block discarded – undo
171 171
         return $this->retrieveItem($name);
172 172
     }
173 173
 
174
+    /**
175
+     * @param Relationship[] $relationships
176
+     * @param integer $depth
177
+     */
174 178
     private function expandArrayValue($array, $relationships, $depth, $index = null)
175 179
     {
176 180
         foreach ($relationships as $name => $relationship) {
@@ -359,6 +363,9 @@  discard block
 block discarded – undo
359 363
         
360 364
     }
361 365
 
366
+    /**
367
+     * @param string $id
368
+     */
362 369
     public function postSaveCallback($id)
363 370
     {
364 371
         
Please login to merge, or discard this patch.
src/QueryEngine.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
             $valueFields[] = ":{$field}";
33 33
         }
34 34
 
35
-        return "INSERT INTO " . $table .
36
-            " (" . implode(", ", $quotedFields) . ") VALUES (" . implode(', ', $valueFields) . ")";
35
+        return "INSERT INTO ".$table.
36
+            " (".implode(", ", $quotedFields).") VALUES (".implode(', ', $valueFields).")";
37 37
     }
38 38
 
39 39
     public function getBulkUpdateQuery($data, $parameters)
@@ -76,10 +76,10 @@  discard block
 block discarded – undo
76 76
             }
77 77
         }
78 78
 
79
-        return "UPDATE " .
80
-            $model->getDBStoreInformation()['quoted_table'] .
81
-            " SET " . implode(', ', $valueFields) .
82
-            " WHERE " . implode(' AND ', $conditions);
79
+        return "UPDATE ".
80
+            $model->getDBStoreInformation()['quoted_table'].
81
+            " SET ".implode(', ', $valueFields).
82
+            " WHERE ".implode(' AND ', $conditions);
83 83
     }
84 84
 
85 85
     public function getSelectQuery($parameters)
Please login to merge, or discard this patch.
src/QueryParameters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 
128 128
     public function getSorts()
129 129
     {
130
-        return count($this->sorts) ? " ORDER BY " . implode(", ", $this->sorts) : null;
130
+        return count($this->sorts) ? " ORDER BY ".implode(", ", $this->sorts) : null;
131 131
     }
132 132
 
133 133
     public function addFilter($field, $values = null)
Please login to merge, or discard this patch.
src/DriverAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     public function describe($model, $relationships)
114 114
     {
115 115
         return new ModelDescription(
116
-            $this->driver->describeTable($table)[$table], $relationships, function ($type) {
116
+            $this->driver->describeTable($table)[$table], $relationships, function($type) {
117 117
             return $this->mapDataTypes($type);
118 118
         }
119 119
         );
Please login to merge, or discard this patch.