Completed
Pull Request — 2.6 (#7882)
by
unknown
07:49
created
lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -345,8 +345,8 @@  discard block
 block discarded – undo
345 345
 
346 346
         // FIXME: Order with composite keys might not be correct
347 347
         $sql = 'SELECT ' . $columnName
348
-             . ' FROM '  . $tableName
349
-             . ' WHERE ' . implode(' = ? AND ', $identifier) . ' = ?';
348
+                . ' FROM '  . $tableName
349
+                . ' WHERE ' . implode(' = ? AND ', $identifier) . ' = ?';
350 350
 
351 351
 
352 352
         $flatId = $this->identifierFlattener->flattenIdentifier($versionedClass, $id);
@@ -495,8 +495,8 @@  discard block
 block discarded – undo
495 495
         }
496 496
 
497 497
         $sql = 'UPDATE ' . $quotedTableName
498
-             . ' SET ' . implode(', ', $set)
499
-             . ' WHERE ' . implode(' = ? AND ', $where) . ' = ?';
498
+                . ' SET ' . implode(', ', $set)
499
+                . ' WHERE ' . implode(' = ? AND ', $where) . ' = ?';
500 500
 
501 501
         $result = $this->conn->executeUpdate($sql, $params, $types);
502 502
 
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
     private function isExtraUpdateRequired($entity, $newVal): bool
690 690
     {
691 691
         if ($newVal === null) {
692
-           return false;
692
+            return false;
693 693
         }
694 694
         $oid = spl_object_hash($newVal);
695 695
         $uow = $this->em->getUnitOfWork();
@@ -1566,9 +1566,9 @@  discard block
 block discarded – undo
1566 1566
         $lock  = $this->getLockTablesSql($lockMode);
1567 1567
         $where = ($conditionSql ? ' WHERE ' . $conditionSql : '') . ' ';
1568 1568
         $sql = 'SELECT 1 '
1569
-             . $lock
1570
-             . $where
1571
-             . $lockSql;
1569
+                . $lock
1570
+                . $where
1571
+                . $lockSql;
1572 1572
 
1573 1573
         list($params, $types) = $this->expandParameters($criteria);
1574 1574
 
@@ -2020,8 +2020,8 @@  discard block
 block discarded – undo
2020 2020
         $alias = $this->getSQLTableAlias($this->class->name);
2021 2021
 
2022 2022
         $sql = 'SELECT 1 '
2023
-             . $this->getLockTablesSql(null)
2024
-             . ' WHERE ' . $this->getSelectConditionSQL($criteria);
2023
+                . $this->getLockTablesSql(null)
2024
+                . ' WHERE ' . $this->getSelectConditionSQL($criteria);
2025 2025
 
2026 2026
         list($params, $types) = $this->expandParameters($criteria);
2027 2027
 
@@ -2051,9 +2051,9 @@  discard block
 block discarded – undo
2051 2051
     {
2052 2052
         // if one of the join columns is nullable, return left join
2053 2053
         foreach ($joinColumns as $joinColumn) {
2054
-             if ( ! isset($joinColumn['nullable']) || $joinColumn['nullable']) {
2055
-                 return 'LEFT JOIN';
2056
-             }
2054
+                if ( ! isset($joinColumn['nullable']) || $joinColumn['nullable']) {
2055
+                    return 'LEFT JOIN';
2056
+                }
2057 2057
         }
2058 2058
 
2059 2059
         return 'INNER JOIN';
Please login to merge, or discard this patch.