Failed Conditions
Push — master ( 8b8169...80f782 )
by Marco
15s
created
lib/Doctrine/ORM/QueryBuilder.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
      */
119 119
     private $joinRootAliases = [];
120 120
 
121
-     /**
122
-     * Whether to use second level cache, if available.
123
-     *
124
-     * @var boolean
125
-     */
121
+        /**
122
+         * Whether to use second level cache, if available.
123
+         *
124
+         * @var boolean
125
+         */
126 126
     protected $cacheable = false;
127 127
 
128 128
     /**
@@ -213,10 +213,10 @@  discard block
 block discarded – undo
213 213
     }
214 214
 
215 215
     /**
216
-    * Obtain the name of the second level query cache region in which query results will be stored
217
-    *
218
-    * @return string|null The cache region name; NULL indicates the default region.
219
-    */
216
+     * Obtain the name of the second level query cache region in which query results will be stored
217
+     *
218
+     * @return string|null The cache region name; NULL indicates the default region.
219
+     */
220 220
     public function getCacheRegion()
221 221
     {
222 222
         return $this->cacheRegion;
@@ -1373,10 +1373,10 @@  discard block
 block discarded – undo
1373 1373
      */
1374 1374
     private function _getDQLForDelete()
1375 1375
     {
1376
-         return 'DELETE'
1377
-              . $this->_getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', '])
1378
-              . $this->_getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1379
-              . $this->_getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1376
+            return 'DELETE'
1377
+                . $this->_getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', '])
1378
+                . $this->_getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1379
+                . $this->_getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1380 1380
     }
1381 1381
 
1382 1382
     /**
@@ -1384,11 +1384,11 @@  discard block
 block discarded – undo
1384 1384
      */
1385 1385
     private function _getDQLForUpdate()
1386 1386
     {
1387
-         return 'UPDATE'
1388
-              . $this->_getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', '])
1389
-              . $this->_getReducedDQLQueryPart('set', ['pre' => ' SET ', 'separator' => ', '])
1390
-              . $this->_getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1391
-              . $this->_getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1387
+            return 'UPDATE'
1388
+                . $this->_getReducedDQLQueryPart('from', ['pre' => ' ', 'separator' => ', '])
1389
+                . $this->_getReducedDQLQueryPart('set', ['pre' => ' SET ', 'separator' => ', '])
1390
+                . $this->_getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1391
+                . $this->_getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1392 1392
     }
1393 1393
 
1394 1394
     /**
@@ -1397,8 +1397,8 @@  discard block
 block discarded – undo
1397 1397
     private function _getDQLForSelect()
1398 1398
     {
1399 1399
         $dql = 'SELECT'
1400
-             . ($this->_dqlParts['distinct']===true ? ' DISTINCT' : '')
1401
-             . $this->_getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']);
1400
+                . ($this->_dqlParts['distinct']===true ? ' DISTINCT' : '')
1401
+                . $this->_getReducedDQLQueryPart('select', ['pre' => ' ', 'separator' => ', ']);
1402 1402
 
1403 1403
         $fromParts   = $this->getDQLPart('from');
1404 1404
         $joinParts   = $this->getDQLPart('join');
@@ -1422,10 +1422,10 @@  discard block
 block discarded – undo
1422 1422
         }
1423 1423
 
1424 1424
         $dql .= implode(', ', $fromClauses)
1425
-              . $this->_getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1426
-              . $this->_getReducedDQLQueryPart('groupBy', ['pre' => ' GROUP BY ', 'separator' => ', '])
1427
-              . $this->_getReducedDQLQueryPart('having', ['pre' => ' HAVING '])
1428
-              . $this->_getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1425
+                . $this->_getReducedDQLQueryPart('where', ['pre' => ' WHERE '])
1426
+                . $this->_getReducedDQLQueryPart('groupBy', ['pre' => ' GROUP BY ', 'separator' => ', '])
1427
+                . $this->_getReducedDQLQueryPart('having', ['pre' => ' HAVING '])
1428
+                . $this->_getReducedDQLQueryPart('orderBy', ['pre' => ' ORDER BY ', 'separator' => ', ']);
1429 1429
 
1430 1430
         return $dql;
1431 1431
     }
@@ -1445,8 +1445,8 @@  discard block
 block discarded – undo
1445 1445
         }
1446 1446
 
1447 1447
         return ($options['pre'] ?? '')
1448
-             . (is_array($queryPart) ? implode($options['separator'], $queryPart) : $queryPart)
1449
-             . ($options['post'] ?? '');
1448
+                . (is_array($queryPart) ? implode($options['separator'], $queryPart) : $queryPart)
1449
+                . ($options['post'] ?? '');
1450 1450
     }
1451 1451
 
1452 1452
     /**
Please login to merge, or discard this patch.