Completed
Push — master ( 8c953e...7fbcf6 )
by Thomas
37s
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.