Passed
Branch feature-dbal (014e98)
by Thomas
02:38
created
src/EntityManager.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,6 @@
 block discarded – undo
7 7
 use ORM\Exceptions\InvalidConfiguration;
8 8
 use ORM\Exceptions\NoConnection;
9 9
 use ORM\Exceptions\NoEntity;
10
-use ORM\Exceptions\NotScalar;
11
-use ORM\Exceptions\UnsupportedDriver;
12 10
 
13 11
 /**
14 12
  * The EntityManager that manages the instances of Entities.
Please login to merge, or discard this patch.
src/Dbal.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -189,8 +189,8 @@  discard block
 block discarded – undo
189 189
         }
190 190
 
191 191
         $statement = 'UPDATE ' . $this->escapeIdentifier($entity::getTableName()) . ' ' .
192
-                     'SET ' . implode(',', $set) . ' ' .
193
-                     'WHERE ' . implode(' AND ', $where);
192
+                        'SET ' . implode(',', $set) . ' ' .
193
+                        'WHERE ' . implode(' AND ', $where);
194 194
         $this->em->getConnection()->query($statement);
195 195
 
196 196
         return true;
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
         }
215 215
 
216 216
         $statement = 'DELETE FROM ' . $this->escapeIdentifier($entity::getTableName()) . ' ' .
217
-                     'WHERE ' . implode(' AND ', $where);
217
+                        'WHERE ' . implode(' AND ', $where);
218 218
         $this->em->getConnection()->query($statement);
219 219
 
220 220
         return true;
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
         }, array_values($data));
240 240
 
241 241
         $statement = 'INSERT INTO ' . $this->escapeIdentifier($entity::getTableName()) . ' ' .
242
-                     '(' . implode(',', $cols) . ') VALUES (' . implode(',', $values) . ')';
242
+                        '(' . implode(',', $cols) . ') VALUES (' . implode(',', $values) . ')';
243 243
 
244 244
         return $statement;
245 245
     }
Please login to merge, or discard this patch.