Passed
Pull Request — master (#55)
by Thomas
01:32
created
src/QueryBuilder/QueryBuilder.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -331,14 +331,14 @@
 block discarded – undo
331 331
     public function getQuery()
332 332
     {
333 333
         return 'SELECT '
334
-               . (!empty($this->modifier) ? implode(' ', $this->modifier) . ' ' : '')
335
-               . ($this->columns ? implode(',', $this->columns) : '*')
336
-               . ' FROM ' . $this->tableName . ($this->alias ? ' AS ' . $this->alias : '')
337
-               . (!empty($this->joins) ? ' ' . implode(' ', $this->joins) : '')
338
-               . (!empty($this->where) ? ' WHERE ' . implode(' ', $this->where) : '')
339
-               . (!empty($this->groupBy) ? ' GROUP BY ' . implode(',', $this->groupBy) : '')
340
-               . (!empty($this->orderBy) ? ' ORDER BY ' . implode(',', $this->orderBy) : '')
341
-               . ($this->limit ? ' LIMIT ' . $this->limit . ($this->offset ? ' OFFSET ' . $this->offset : '') : '');
334
+                . (!empty($this->modifier) ? implode(' ', $this->modifier) . ' ' : '')
335
+                . ($this->columns ? implode(',', $this->columns) : '*')
336
+                . ' FROM ' . $this->tableName . ($this->alias ? ' AS ' . $this->alias : '')
337
+                . (!empty($this->joins) ? ' ' . implode(' ', $this->joins) : '')
338
+                . (!empty($this->where) ? ' WHERE ' . implode(' ', $this->where) : '')
339
+                . (!empty($this->groupBy) ? ' GROUP BY ' . implode(',', $this->groupBy) : '')
340
+                . (!empty($this->orderBy) ? ' ORDER BY ' . implode(',', $this->orderBy) : '')
341
+                . ($this->limit ? ' LIMIT ' . $this->limit . ($this->offset ? ' OFFSET ' . $this->offset : '') : '');
342 342
     }
343 343
 
344 344
     /** {@inheritdoc} */
Please login to merge, or discard this patch.
src/Relation/ManyToMany.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         }
141 141
 
142 142
         $statement = 'INSERT INTO ' . $table . ' (' . implode(',', $cols) . ') ' .
143
-                     'VALUES (' . implode('),(', $associations) . ')';
143
+                        'VALUES (' . implode('),(', $associations) . ')';
144 144
         $entityManager->getConnection()->query($statement);
145 145
     }
146 146
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             }
163 163
 
164 164
             $where[] = $entityManager->escapeIdentifier($fkCol) . ' = ' .
165
-                       $entityManager->escapeValue($value);
165
+                        $entityManager->escapeValue($value);
166 166
         }
167 167
 
168 168
         foreach ($entities as $entity) {
@@ -179,13 +179,13 @@  discard block
 block discarded – undo
179 179
                 }
180 180
 
181 181
                 $condition[] = $entityManager->escapeIdentifier($fkCol) . ' = ' .
182
-                               $entityManager->escapeValue($value);
182
+                                $entityManager->escapeValue($value);
183 183
             }
184 184
             $where[] = implode(' AND ', $condition);
185 185
         }
186 186
 
187 187
         $statement = 'DELETE FROM ' . $table . ' WHERE ' . array_shift($where) . ' ' .
188
-                     'AND (' . implode(' OR ', $where) . ')';
188
+                        'AND (' . implode(' OR ', $where) . ')';
189 189
         $entityManager->getConnection()->query($statement);
190 190
     }
191 191
 
Please login to merge, or discard this patch.
src/Entity.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -575,7 +575,7 @@
 block discarded – undo
575 575
         if (!empty($attribute)) {
576 576
             $col = static::getColumnName($attribute);
577 577
             return (isset($this->data[$col]) ? $this->data[$col] : null) !==
578
-                   (isset($this->originalData[$col]) ? $this->originalData[$col] : null);
578
+                    (isset($this->originalData[$col]) ? $this->originalData[$col] : null);
579 579
         }
580 580
 
581 581
         ksort($this->data);
Please login to merge, or discard this patch.
src/Dbal/Dbal.php 1 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.