Completed
Pull Request — master (#49)
by Thomas
21:49
created
src/Dbal/Dbal.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      * Update the autoincrement value
269 269
      *
270 270
      * @param Entity     $entity
271
-     * @param int|string $value
271
+     * @param string $value
272 272
      */
273 273
     protected function updateAutoincrement(Entity $entity, $value)
274 274
     {
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
      * Escape a date time object for query
412 412
      *
413 413
      * @param \DateTime $value
414
-     * @return mixed
414
+     * @return string
415 415
      */
416 416
     protected function escapeDateTime(\DateTime $value)
417 417
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
         }
200 200
 
201 201
         $statement = 'UPDATE ' . $this->escapeIdentifier($entity::getTableName()) . ' ' .
202
-                     'SET ' . implode(',', $set) . ' ' .
203
-                     'WHERE ' . implode(' AND ', $where);
202
+                        'SET ' . implode(',', $set) . ' ' .
203
+                        'WHERE ' . implode(' AND ', $where);
204 204
         $this->entityManager->getConnection()->query($statement);
205 205
 
206 206
         return $this->entityManager->sync($entity, true);
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         }
225 225
 
226 226
         $statement = 'DELETE FROM ' . $this->escapeIdentifier($entity::getTableName()) . ' ' .
227
-                     'WHERE ' . implode(' AND ', $where);
227
+                        'WHERE ' . implode(' AND ', $where);
228 228
         $this->entityManager->getConnection()->query($statement);
229 229
 
230 230
         return true;
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         $cols = array_combine($cols, array_map([$this, 'escapeIdentifier'], $cols));
252 252
 
253 253
         $statement = 'INSERT INTO ' . $this->escapeIdentifier($entity::getTableName()) . ' ' .
254
-                     '(' . implode(',', $cols) . ') VALUES ';
254
+                        '(' . implode(',', $cols) . ') VALUES ';
255 255
 
256 256
         $statement .= implode(',', array_map(function ($values) use ($cols) {
257 257
             $result = [];
Please login to merge, or discard this patch.