Failed Conditions
Pull Request — 2.6 (#7322)
by Luís
08:15
created
tests/Doctrine/Tests/ORM/Functional/GH5988Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     {
19 19
         parent::setUp();
20 20
 
21
-        if (! Type::hasType(GH5988CustomIdObjectHashType::NAME)) {
21
+        if ( ! Type::hasType(GH5988CustomIdObjectHashType::NAME)) {
22 22
             Type::addType(GH5988CustomIdObjectHashType::NAME, GH5988CustomIdObjectHashType::class);
23 23
         }
24 24
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function convertToDatabaseValue($value, AbstractPlatform $platform)
55 55
     {
56
-        return $value->id . '_test';
56
+        return $value->id.'_test';
57 57
     }
58 58
     /**
59 59
      * {@inheritdoc}
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php 1 patch
Spacing   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -344,9 +344,9 @@  discard block
 block discarded – undo
344 344
         $columnName   = $this->quoteStrategy->getColumnName($versionField, $versionedClass, $this->platform);
345 345
 
346 346
         // FIXME: Order with composite keys might not be correct
347
-        $sql = 'SELECT ' . $columnName
348
-             . ' FROM '  . $tableName
349
-             . ' WHERE ' . implode(' = ? AND ', $identifier) . ' = ?';
347
+        $sql = 'SELECT '.$columnName
348
+             . ' FROM '.$tableName
349
+             . ' WHERE '.implode(' = ? AND ', $identifier).' = ?';
350 350
 
351 351
 
352 352
         $flatId = $this->identifierFlattener->flattenIdentifier($versionedClass, $id);
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
             }
440 440
 
441 441
             $params[]   = $value;
442
-            $set[]      = $column . ' = ' . $placeholder;
442
+            $set[]      = $column.' = '.$placeholder;
443 443
             $types[]    = $this->columnTypes[$columnName];
444 444
         }
445 445
 
@@ -485,18 +485,18 @@  discard block
 block discarded – undo
485 485
                 case Type::SMALLINT:
486 486
                 case Type::INTEGER:
487 487
                 case Type::BIGINT:
488
-                    $set[] = $versionColumn . ' = ' . $versionColumn . ' + 1';
488
+                    $set[] = $versionColumn.' = '.$versionColumn.' + 1';
489 489
                     break;
490 490
 
491 491
                 case Type::DATETIME:
492
-                    $set[] = $versionColumn . ' = CURRENT_TIMESTAMP';
492
+                    $set[] = $versionColumn.' = CURRENT_TIMESTAMP';
493 493
                     break;
494 494
             }
495 495
         }
496 496
 
497
-        $sql = 'UPDATE ' . $quotedTableName
498
-             . ' SET ' . implode(', ', $set)
499
-             . ' WHERE ' . implode(' = ? AND ', $where) . ' = ?';
497
+        $sql = 'UPDATE '.$quotedTableName
498
+             . ' SET '.implode(', ', $set)
499
+             . ' WHERE '.implode(' = ? AND ', $where).' = ?';
500 500
 
501 501
         $result = $this->conn->executeUpdate($sql, $params, $types);
502 502
 
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
 
540 540
 
541 541
             if ($selfReferential) {
542
-                $otherColumns = (! $mapping['isOwningSide'])
542
+                $otherColumns = ( ! $mapping['isOwningSide'])
543 543
                     ? $association['joinTable']['joinColumns']
544 544
                     : $association['joinTable']['inverseJoinColumns'];
545 545
             }
@@ -1021,7 +1021,7 @@  discard block
 block discarded – undo
1021 1021
                     );
1022 1022
             }
1023 1023
 
1024
-            $criteria[$quotedJoinTable . '.' . $quotedKeyColumn] = $value;
1024
+            $criteria[$quotedJoinTable.'.'.$quotedKeyColumn] = $value;
1025 1025
             $parameters[] = [
1026 1026
                 'value' => $value,
1027 1027
                 'field' => $field,
@@ -1064,11 +1064,11 @@  discard block
 block discarded – undo
1064 1064
 
1065 1065
         switch ($lockMode) {
1066 1066
             case LockMode::PESSIMISTIC_READ:
1067
-                $lockSql = ' ' . $this->platform->getReadLockSQL();
1067
+                $lockSql = ' '.$this->platform->getReadLockSQL();
1068 1068
                 break;
1069 1069
 
1070 1070
             case LockMode::PESSIMISTIC_WRITE:
1071
-                $lockSql = ' ' . $this->platform->getWriteLockSQL();
1071
+                $lockSql = ' '.$this->platform->getWriteLockSQL();
1072 1072
                 break;
1073 1073
         }
1074 1074
 
@@ -1079,14 +1079,14 @@  discard block
 block discarded – undo
1079 1079
 
1080 1080
         if ('' !== $filterSql) {
1081 1081
             $conditionSql = $conditionSql
1082
-                ? $conditionSql . ' AND ' . $filterSql
1082
+                ? $conditionSql.' AND '.$filterSql
1083 1083
                 : $filterSql;
1084 1084
         }
1085 1085
 
1086
-        $select = 'SELECT ' . $columnList;
1087
-        $from   = ' FROM ' . $tableName . ' '. $tableAlias;
1088
-        $join   = $this->currentPersisterContext->selectJoinSql . $joinSql;
1089
-        $where  = ($conditionSql ? ' WHERE ' . $conditionSql : '');
1086
+        $select = 'SELECT '.$columnList;
1087
+        $from   = ' FROM '.$tableName.' '.$tableAlias;
1088
+        $join   = $this->currentPersisterContext->selectJoinSql.$joinSql;
1089
+        $where  = ($conditionSql ? ' WHERE '.$conditionSql : '');
1090 1090
         $lock   = $this->platform->appendLockHint($from, $lockMode);
1091 1091
         $query  = $select
1092 1092
             . $lock
@@ -1094,7 +1094,7 @@  discard block
 block discarded – undo
1094 1094
             . $where
1095 1095
             . $orderBySql;
1096 1096
 
1097
-        return $this->platform->modifyLimitQuery($query, $limit, $offset) . $lockSql;
1097
+        return $this->platform->modifyLimitQuery($query, $limit, $offset).$lockSql;
1098 1098
     }
1099 1099
 
1100 1100
     /**
@@ -1113,13 +1113,13 @@  discard block
 block discarded – undo
1113 1113
 
1114 1114
         if ('' !== $filterSql) {
1115 1115
             $conditionSql = $conditionSql
1116
-                ? $conditionSql . ' AND ' . $filterSql
1116
+                ? $conditionSql.' AND '.$filterSql
1117 1117
                 : $filterSql;
1118 1118
         }
1119 1119
 
1120 1120
         $sql = 'SELECT COUNT(*) '
1121
-            . 'FROM ' . $tableName . ' ' . $tableAlias
1122
-            . (empty($conditionSql) ? '' : ' WHERE ' . $conditionSql);
1121
+            . 'FROM '.$tableName.' '.$tableAlias
1122
+            . (empty($conditionSql) ? '' : ' WHERE '.$conditionSql);
1123 1123
 
1124 1124
         return $sql;
1125 1125
     }
@@ -1152,7 +1152,7 @@  discard block
 block discarded – undo
1152 1152
                     : $baseTableAlias;
1153 1153
 
1154 1154
                 $columnName    = $this->quoteStrategy->getColumnName($fieldName, $this->class, $this->platform);
1155
-                $orderByList[] = $tableAlias . '.' . $columnName . ' ' . $orientation;
1155
+                $orderByList[] = $tableAlias.'.'.$columnName.' '.$orientation;
1156 1156
 
1157 1157
                 continue;
1158 1158
             }
@@ -1169,7 +1169,7 @@  discard block
 block discarded – undo
1169 1169
 
1170 1170
                 foreach ($this->class->associationMappings[$fieldName]['joinColumns'] as $joinColumn) {
1171 1171
                     $columnName    = $this->quoteStrategy->getJoinColumnName($joinColumn, $this->class, $this->platform);
1172
-                    $orderByList[] = $tableAlias . '.' . $columnName . ' ' . $orientation;
1172
+                    $orderByList[] = $tableAlias.'.'.$columnName.' '.$orientation;
1173 1173
                 }
1174 1174
 
1175 1175
                 continue;
@@ -1178,7 +1178,7 @@  discard block
 block discarded – undo
1178 1178
             throw ORMException::unrecognizedField($fieldName);
1179 1179
         }
1180 1180
 
1181
-        return ' ORDER BY ' . implode(', ', $orderByList);
1181
+        return ' ORDER BY '.implode(', ', $orderByList);
1182 1182
     }
1183 1183
 
1184 1184
     /**
@@ -1206,8 +1206,8 @@  discard block
 block discarded – undo
1206 1206
             $columnList[] = $this->getSelectColumnSQL($field, $this->class);
1207 1207
         }
1208 1208
 
1209
-        $this->currentPersisterContext->selectJoinSql    = '';
1210
-        $eagerAliasCounter      = 0;
1209
+        $this->currentPersisterContext->selectJoinSql = '';
1210
+        $eagerAliasCounter = 0;
1211 1211
 
1212 1212
         foreach ($this->class->associationMappings as $assocField => $assoc) {
1213 1213
             $assocColumnSQL = $this->getSelectColumnAssociationSQL($assocField, $assoc, $this->class);
@@ -1233,7 +1233,7 @@  discard block
 block discarded – undo
1233 1233
                 continue; // now this is why you shouldn't use inheritance
1234 1234
             }
1235 1235
 
1236
-            $assocAlias = 'e' . ($eagerAliasCounter++);
1236
+            $assocAlias = 'e'.($eagerAliasCounter++);
1237 1237
             $this->currentPersisterContext->rsm->addJoinedEntityResult($assoc['targetEntity'], $assocAlias, 'r', $assocField);
1238 1238
 
1239 1239
             foreach ($eagerEntity->fieldNames as $field) {
@@ -1266,14 +1266,14 @@  discard block
 block discarded – undo
1266 1266
             $joinTableName  = $this->quoteStrategy->getTableName($eagerEntity, $this->platform);
1267 1267
 
1268 1268
             if ($assoc['isOwningSide']) {
1269
-                $tableAlias           = $this->getSQLTableAlias($association['targetEntity'], $assocAlias);
1270
-                $this->currentPersisterContext->selectJoinSql .= ' ' . $this->getJoinSQLForJoinColumns($association['joinColumns']);
1269
+                $tableAlias = $this->getSQLTableAlias($association['targetEntity'], $assocAlias);
1270
+                $this->currentPersisterContext->selectJoinSql .= ' '.$this->getJoinSQLForJoinColumns($association['joinColumns']);
1271 1271
 
1272 1272
                 foreach ($association['joinColumns'] as $joinColumn) {
1273 1273
                     $sourceCol       = $this->quoteStrategy->getJoinColumnName($joinColumn, $this->class, $this->platform);
1274 1274
                     $targetCol       = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $this->class, $this->platform);
1275 1275
                     $joinCondition[] = $this->getSQLTableAlias($association['sourceEntity'])
1276
-                                        . '.' . $sourceCol . ' = ' . $tableAlias . '.' . $targetCol;
1276
+                                        . '.'.$sourceCol.' = '.$tableAlias.'.'.$targetCol;
1277 1277
                 }
1278 1278
 
1279 1279
                 // Add filter SQL
@@ -1289,12 +1289,12 @@  discard block
 block discarded – undo
1289 1289
                     $sourceCol       = $this->quoteStrategy->getJoinColumnName($joinColumn, $this->class, $this->platform);
1290 1290
                     $targetCol       = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $this->class, $this->platform);
1291 1291
 
1292
-                    $joinCondition[] = $this->getSQLTableAlias($association['sourceEntity'], $assocAlias) . '.' . $sourceCol . ' = '
1293
-                        . $this->getSQLTableAlias($association['targetEntity']) . '.' . $targetCol;
1292
+                    $joinCondition[] = $this->getSQLTableAlias($association['sourceEntity'], $assocAlias).'.'.$sourceCol.' = '
1293
+                        . $this->getSQLTableAlias($association['targetEntity']).'.'.$targetCol;
1294 1294
                 }
1295 1295
             }
1296 1296
 
1297
-            $this->currentPersisterContext->selectJoinSql .= ' ' . $joinTableName . ' ' . $joinTableAlias . ' ON ';
1297
+            $this->currentPersisterContext->selectJoinSql .= ' '.$joinTableName.' '.$joinTableAlias.' ON ';
1298 1298
             $this->currentPersisterContext->selectJoinSql .= implode(' AND ', $joinCondition);
1299 1299
         }
1300 1300
 
@@ -1315,7 +1315,7 @@  discard block
 block discarded – undo
1315 1315
      */
1316 1316
     protected function getSelectColumnAssociationSQL($field, $assoc, ClassMetadata $class, $alias = 'r')
1317 1317
     {
1318
-        if ( ! ($assoc['isOwningSide'] && $assoc['type'] & ClassMetadata::TO_ONE) ) {
1318
+        if ( ! ($assoc['isOwningSide'] && $assoc['type'] & ClassMetadata::TO_ONE)) {
1319 1319
             return '';
1320 1320
         }
1321 1321
 
@@ -1364,10 +1364,10 @@  discard block
 block discarded – undo
1364 1364
         foreach ($joinColumns as $joinColumn) {
1365 1365
             $quotedSourceColumn = $this->quoteStrategy->getJoinColumnName($joinColumn, $this->class, $this->platform);
1366 1366
             $quotedTargetColumn = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $this->class, $this->platform);
1367
-            $conditions[]       = $sourceTableAlias . '.' . $quotedTargetColumn . ' = ' . $joinTableName . '.' . $quotedSourceColumn;
1367
+            $conditions[]       = $sourceTableAlias.'.'.$quotedTargetColumn.' = '.$joinTableName.'.'.$quotedSourceColumn;
1368 1368
         }
1369 1369
 
1370
-        return ' INNER JOIN ' . $joinTableName . ' ON ' . implode(' AND ', $conditions);
1370
+        return ' INNER JOIN '.$joinTableName.' ON '.implode(' AND ', $conditions);
1371 1371
     }
1372 1372
 
1373 1373
     /**
@@ -1446,7 +1446,7 @@  discard block
 block discarded – undo
1446 1446
                 continue;
1447 1447
             }
1448 1448
 
1449
-            if (! $this->class->isIdGeneratorIdentity() || $this->class->identifier[0] != $name) {
1449
+            if ( ! $this->class->isIdGeneratorIdentity() || $this->class->identifier[0] != $name) {
1450 1450
                 $columns[]                = $this->quoteStrategy->getColumnName($name, $this->class, $this->platform);
1451 1451
                 $this->columnTypes[$name] = $this->class->fieldMappings[$name]['type'];
1452 1452
             }
@@ -1467,7 +1467,7 @@  discard block
 block discarded – undo
1467 1467
      */
1468 1468
     protected function getSelectColumnSQL($field, ClassMetadata $class, $alias = 'r')
1469 1469
     {
1470
-        $root         = $alias == 'r' ? '' : $alias ;
1470
+        $root         = $alias == 'r' ? '' : $alias;
1471 1471
         $tableAlias   = $this->getSQLTableAlias($class->name, $root);
1472 1472
         $fieldMapping = $class->fieldMappings[$field];
1473 1473
         $sql          = sprintf('%s.%s', $tableAlias, $this->quoteStrategy->getColumnName($field, $class, $this->platform));
@@ -1480,7 +1480,7 @@  discard block
 block discarded – undo
1480 1480
             $sql  = $type->convertToPHPValueSQL($sql, $this->platform);
1481 1481
         }
1482 1482
 
1483
-        return $sql . ' AS ' . $columnAlias;
1483
+        return $sql.' AS '.$columnAlias;
1484 1484
     }
1485 1485
 
1486 1486
     /**
@@ -1496,14 +1496,14 @@  discard block
 block discarded – undo
1496 1496
     protected function getSQLTableAlias($className, $assocName = '')
1497 1497
     {
1498 1498
         if ($assocName) {
1499
-            $className .= '#' . $assocName;
1499
+            $className .= '#'.$assocName;
1500 1500
         }
1501 1501
 
1502 1502
         if (isset($this->currentPersisterContext->sqlTableAliases[$className])) {
1503 1503
             return $this->currentPersisterContext->sqlTableAliases[$className];
1504 1504
         }
1505 1505
 
1506
-        $tableAlias = 't' . $this->currentPersisterContext->sqlAliasCounter++;
1506
+        $tableAlias = 't'.$this->currentPersisterContext->sqlAliasCounter++;
1507 1507
 
1508 1508
         $this->currentPersisterContext->sqlTableAliases[$className] = $tableAlias;
1509 1509
 
@@ -1530,7 +1530,7 @@  discard block
 block discarded – undo
1530 1530
         }
1531 1531
 
1532 1532
         $lock  = $this->getLockTablesSql($lockMode);
1533
-        $where = ($conditionSql ? ' WHERE ' . $conditionSql : '') . ' ';
1533
+        $where = ($conditionSql ? ' WHERE '.$conditionSql : '').' ';
1534 1534
         $sql = 'SELECT 1 '
1535 1535
              . $lock
1536 1536
              . $where
@@ -1552,7 +1552,7 @@  discard block
 block discarded – undo
1552 1552
     {
1553 1553
         return $this->platform->appendLockHint(
1554 1554
             'FROM '
1555
-            . $this->quoteStrategy->getTableName($this->class, $this->platform) . ' '
1555
+            . $this->quoteStrategy->getTableName($this->class, $this->platform).' '
1556 1556
             . $this->getSQLTableAlias($this->class->name),
1557 1557
             $lockMode
1558 1558
         );
@@ -1604,19 +1604,19 @@  discard block
 block discarded – undo
1604 1604
 
1605 1605
             if (null !== $comparison) {
1606 1606
                 // special case null value handling
1607
-                if (($comparison === Comparison::EQ || $comparison === Comparison::IS) && null ===$value) {
1608
-                    $selectedColumns[] = $column . ' IS NULL';
1607
+                if (($comparison === Comparison::EQ || $comparison === Comparison::IS) && null === $value) {
1608
+                    $selectedColumns[] = $column.' IS NULL';
1609 1609
 
1610 1610
                     continue;
1611 1611
                 }
1612 1612
 
1613 1613
                 if ($comparison === Comparison::NEQ && null === $value) {
1614
-                    $selectedColumns[] = $column . ' IS NOT NULL';
1614
+                    $selectedColumns[] = $column.' IS NOT NULL';
1615 1615
 
1616 1616
                     continue;
1617 1617
                 }
1618 1618
 
1619
-                $selectedColumns[] = $column . ' ' . sprintf(self::$comparisonMap[$comparison], $placeholder);
1619
+                $selectedColumns[] = $column.' '.sprintf(self::$comparisonMap[$comparison], $placeholder);
1620 1620
 
1621 1621
                 continue;
1622 1622
             }
@@ -1664,7 +1664,7 @@  discard block
 block discarded – undo
1664 1664
                 ? $this->class->fieldMappings[$field]['inherited']
1665 1665
                 : $this->class->name;
1666 1666
 
1667
-            return [$this->getSQLTableAlias($className) . '.' . $this->quoteStrategy->getColumnName($field, $this->class, $this->platform)];
1667
+            return [$this->getSQLTableAlias($className).'.'.$this->quoteStrategy->getColumnName($field, $this->class, $this->platform)];
1668 1668
         }
1669 1669
 
1670 1670
         if (isset($this->class->associationMappings[$field])) {
@@ -1685,7 +1685,7 @@  discard block
 block discarded – undo
1685 1685
 
1686 1686
 
1687 1687
                 foreach ($joinColumns as $joinColumn) {
1688
-                    $columns[] = $joinTableName . '.' . $this->quoteStrategy->getJoinColumnName($joinColumn, $class, $this->platform);
1688
+                    $columns[] = $joinTableName.'.'.$this->quoteStrategy->getJoinColumnName($joinColumn, $class, $this->platform);
1689 1689
                 }
1690 1690
 
1691 1691
             } else {
@@ -1693,12 +1693,12 @@  discard block
 block discarded – undo
1693 1693
                     throw ORMException::invalidFindByInverseAssociation($this->class->name, $field);
1694 1694
                 }
1695 1695
 
1696
-                $className  = (isset($association['inherited']))
1696
+                $className = (isset($association['inherited']))
1697 1697
                     ? $association['inherited']
1698 1698
                     : $this->class->name;
1699 1699
 
1700 1700
                 foreach ($association['joinColumns'] as $joinColumn) {
1701
-                    $columns[] = $this->getSQLTableAlias($className) . '.' . $this->quoteStrategy->getJoinColumnName($joinColumn, $this->class, $this->platform);
1701
+                    $columns[] = $this->getSQLTableAlias($className).'.'.$this->quoteStrategy->getJoinColumnName($joinColumn, $this->class, $this->platform);
1702 1702
                 }
1703 1703
             }
1704 1704
             return $columns;
@@ -1790,7 +1790,7 @@  discard block
 block discarded – undo
1790 1790
                     $value = $value[$this->em->getClassMetadata($sourceClass->associationMappings[$field]['targetEntity'])->identifier[0]];
1791 1791
                 }
1792 1792
 
1793
-                $criteria[$tableAlias . "." . $targetKeyColumn] = $value;
1793
+                $criteria[$tableAlias.".".$targetKeyColumn] = $value;
1794 1794
                 $parameters[]                                   = [
1795 1795
                     'value' => $value,
1796 1796
                     'field' => $field,
@@ -1803,7 +1803,7 @@  discard block
 block discarded – undo
1803 1803
             $field = $sourceClass->fieldNames[$sourceKeyColumn];
1804 1804
             $value = $sourceClass->reflFields[$field]->getValue($sourceEntity);
1805 1805
 
1806
-            $criteria[$tableAlias . "." . $targetKeyColumn] = $value;
1806
+            $criteria[$tableAlias.".".$targetKeyColumn] = $value;
1807 1807
             $parameters[] = [
1808 1808
                 'value' => $value,
1809 1809
                 'field' => $field,
@@ -1891,7 +1891,7 @@  discard block
 block discarded – undo
1891 1891
                 $assoc = $class->associationMappings[$field];
1892 1892
                 $class = $this->em->getClassMetadata($assoc['targetEntity']);
1893 1893
 
1894
-                if (! $assoc['isOwningSide']) {
1894
+                if ( ! $assoc['isOwningSide']) {
1895 1895
                     $assoc = $class->associationMappings[$assoc['mappedBy']];
1896 1896
                     $class = $this->em->getClassMetadata($assoc['targetEntity']);
1897 1897
                 }
@@ -1900,7 +1900,7 @@  discard block
 block discarded – undo
1900 1900
                     ? $assoc['relationToTargetKeyColumns']
1901 1901
                     : $assoc['sourceToTargetKeyColumns'];
1902 1902
 
1903
-                foreach ($columns as $column){
1903
+                foreach ($columns as $column) {
1904 1904
                     $types[] = PersisterHelper::getTypeOfColumn($column, $class, $this->em);
1905 1905
                 }
1906 1906
                 break;
@@ -1911,7 +1911,7 @@  discard block
 block discarded – undo
1911 1911
         }
1912 1912
 
1913 1913
         if (is_array($value)) {
1914
-            return array_map(function ($type) {
1914
+            return array_map(function($type) {
1915 1915
                 $type = Type::getType($type);
1916 1916
 
1917 1917
                 return $type->getBindingType() + Connection::ARRAY_PARAM_OFFSET;
@@ -1987,12 +1987,12 @@  discard block
 block discarded – undo
1987 1987
 
1988 1988
         $sql = 'SELECT 1 '
1989 1989
              . $this->getLockTablesSql(null)
1990
-             . ' WHERE ' . $this->getSelectConditionSQL($criteria);
1990
+             . ' WHERE '.$this->getSelectConditionSQL($criteria);
1991 1991
 
1992 1992
         list($params, $types) = $this->expandParameters($criteria);
1993 1993
 
1994 1994
         if (null !== $extraConditions) {
1995
-            $sql                                 .= ' AND ' . $this->getSelectConditionCriteriaSQL($extraConditions);
1995
+            $sql                                 .= ' AND '.$this->getSelectConditionCriteriaSQL($extraConditions);
1996 1996
             list($criteriaParams, $criteriaTypes) = $this->expandCriteriaParameters($extraConditions);
1997 1997
 
1998 1998
             $params = array_merge($params, $criteriaParams);
@@ -2000,7 +2000,7 @@  discard block
 block discarded – undo
2000 2000
         }
2001 2001
 
2002 2002
         if ($filterSql = $this->generateFilterConditionSQL($this->class, $alias)) {
2003
-            $sql .= ' AND ' . $filterSql;
2003
+            $sql .= ' AND '.$filterSql;
2004 2004
         }
2005 2005
 
2006 2006
         return (bool) $this->conn->fetchColumn($sql, $params, 0, $types);
@@ -2047,13 +2047,13 @@  discard block
 block discarded – undo
2047 2047
 
2048 2048
         foreach ($this->em->getFilters()->getEnabledFilters() as $filter) {
2049 2049
             if ('' !== $filterExpr = $filter->addFilterConstraint($targetEntity, $targetTableAlias)) {
2050
-                $filterClauses[] = '(' . $filterExpr . ')';
2050
+                $filterClauses[] = '('.$filterExpr.')';
2051 2051
             }
2052 2052
         }
2053 2053
 
2054 2054
         $sql = implode(' AND ', $filterClauses);
2055 2055
 
2056
-        return $sql ? "(" . $sql . ")" : ""; // Wrap again to avoid "X or Y and FilterConditionSQL"
2056
+        return $sql ? "(".$sql.")" : ""; // Wrap again to avoid "X or Y and FilterConditionSQL"
2057 2057
     }
2058 2058
 
2059 2059
     /**
@@ -2083,7 +2083,7 @@  discard block
 block discarded – undo
2083 2083
         $entityManager = $this->em;
2084 2084
 
2085 2085
         return array_map(
2086
-            static function ($fieldName) use ($class, $entityManager) : string {
2086
+            static function($fieldName) use ($class, $entityManager) : string {
2087 2087
                 $types = PersisterHelper::getTypeOfField($fieldName, $class, $entityManager);
2088 2088
                 assert(isset($types[0]));
2089 2089
 
Please login to merge, or discard this patch.