Completed
Pull Request — master (#6496)
by Artem
14:32
created
lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -341,8 +341,8 @@  discard block
 block discarded – undo
341 341
 
342 342
         // FIXME: Order with composite keys might not be correct
343 343
         $sql = 'SELECT ' . $columnName
344
-             . ' FROM '  . $tableName
345
-             . ' WHERE ' . implode(' = ? AND ', $identifier) . ' = ?';
344
+                . ' FROM '  . $tableName
345
+                . ' WHERE ' . implode(' = ? AND ', $identifier) . ' = ?';
346 346
 
347 347
         $types = [];
348 348
         foreach ($id as $field => $value) {
@@ -483,8 +483,8 @@  discard block
 block discarded – undo
483 483
         }
484 484
 
485 485
         $sql = 'UPDATE ' . $quotedTableName
486
-             . ' SET ' . implode(', ', $set)
487
-             . ' WHERE ' . implode(' = ? AND ', $where) . ' = ?';
486
+                . ' SET ' . implode(', ', $set)
487
+                . ' WHERE ' . implode(' = ? AND ', $where) . ' = ?';
488 488
 
489 489
         $result = $this->conn->executeUpdate($sql, $params, $types);
490 490
 
@@ -1539,9 +1539,9 @@  discard block
 block discarded – undo
1539 1539
         $lock  = $this->getLockTablesSql($lockMode);
1540 1540
         $where = ($conditionSql ? ' WHERE ' . $conditionSql : '') . ' ';
1541 1541
         $sql = 'SELECT 1 '
1542
-             . $lock
1543
-             . $where
1544
-             . $lockSql;
1542
+                . $lock
1543
+                . $where
1544
+                . $lockSql;
1545 1545
 
1546 1546
         list($params, $types) = $this->expandParameters($criteria);
1547 1547
 
@@ -1992,8 +1992,8 @@  discard block
 block discarded – undo
1992 1992
         $alias = $this->getSQLTableAlias($this->class->name);
1993 1993
 
1994 1994
         $sql = 'SELECT 1 '
1995
-             . $this->getLockTablesSql(null)
1996
-             . ' WHERE ' . $this->getSelectConditionSQL($criteria);
1995
+                . $this->getLockTablesSql(null)
1996
+                . ' WHERE ' . $this->getSelectConditionSQL($criteria);
1997 1997
 
1998 1998
         list($params, $types) = $this->expandParameters($criteria);
1999 1999
 
@@ -2023,9 +2023,9 @@  discard block
 block discarded – undo
2023 2023
     {
2024 2024
         // if one of the join columns is nullable, return left join
2025 2025
         foreach ($joinColumns as $joinColumn) {
2026
-             if ( ! isset($joinColumn['nullable']) || $joinColumn['nullable']) {
2027
-                 return 'LEFT JOIN';
2028
-             }
2026
+                if ( ! isset($joinColumn['nullable']) || $joinColumn['nullable']) {
2027
+                    return 'LEFT JOIN';
2028
+                }
2029 2029
         }
2030 2030
 
2031 2031
         return 'INNER JOIN';
Please login to merge, or discard this patch.