Failed Conditions
Pull Request — develop (#6873)
by
unknown
112:44 queued 47:41
created
lib/Doctrine/ORM/EntityManagerInterface.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -242,17 +242,17 @@
 block discarded – undo
242 242
     public function getUnitOfWork();
243 243
 
244 244
     /**
245
-    * Gets a hydrator for the given hydration mode.
246
-    *
247
-    * This method caches the hydrator instances which is used for all queries that don't
248
-    * selectively iterate over the result.
249
-    *
250
-    * @deprecated
251
-    *
252
-    * @param int $hydrationMode
253
-    *
254
-    * @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator
255
-    */
245
+     * Gets a hydrator for the given hydration mode.
246
+     *
247
+     * This method caches the hydrator instances which is used for all queries that don't
248
+     * selectively iterate over the result.
249
+     *
250
+     * @deprecated
251
+     *
252
+     * @param int $hydrationMode
253
+     *
254
+     * @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator
255
+     */
256 256
     public function getHydrator($hydrationMode);
257 257
 
258 258
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM;
6 6
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/DefaultEntityListenerResolver.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     public function resolve($className)
68 68
     {
69 69
         if (isset($this->instances[$className = trim($className, '\\')])) {
70
-           return $this->instances[$className];
70
+            return $this->instances[$className];
71 71
         }
72 72
 
73 73
         return $this->instances[$className] = new $className();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Mapping;
7 7
 
Please login to merge, or discard this patch.
tools/sandbox/bootstrap.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
 
6 6
 // Path to composer autoloader. You can use different provided by your favorite framework,
7 7
 // if you want to.
8
-$loaderPath = __DIR__ . '/../../vendor/autoload.php';
9
-if(!is_readable($loaderPath)){
8
+$loaderPath = __DIR__.'/../../vendor/autoload.php';
9
+if ( ! is_readable($loaderPath)) {
10 10
     throw new LogicException('Run php composer.phar install at first');
11 11
 }
12 12
 $loader = require $loaderPath;
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 $config = new \Doctrine\ORM\Configuration();
20 20
 
21 21
 // Set up Metadata Drivers
22
-$driverImpl = $config->newDefaultAnnotationDriver([__DIR__ . "/Entities"]);
22
+$driverImpl = $config->newDefaultAnnotationDriver([__DIR__."/Entities"]);
23 23
 $config->setMetadataDriverImpl($driverImpl);
24 24
 
25 25
 // Set up caches, depending on $debug variable.
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 $config->setQueryCacheImpl($cache);
30 30
 
31 31
 // Proxy configuration
32
-$config->setProxyDir(__DIR__ . '/Proxies');
32
+$config->setProxyDir(__DIR__.'/Proxies');
33 33
 $config->setProxyNamespace('Proxies');
34 34
 
35 35
 // Database connection information
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1428,7 +1428,7 @@
 block discarded – undo
1428 1428
 
1429 1429
         if (Type::hasType($mapping['type']) && Type::getType($mapping['type'])->canRequireSQLConversion()) {
1430 1430
             if (isset($mapping['id']) && true === $mapping['id']) {
1431
-                 throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName'], $mapping['type']);
1431
+                    throw MappingException::sqlConversionNotAllowedForIdentifiers($this->name, $mapping['fieldName'], $mapping['type']);
1432 1432
             }
1433 1433
 
1434 1434
             $mapping['requireSQLConversion'] = true;
Please login to merge, or discard this patch.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
     public function getSingleIdReflectionProperty()
697 697
     {
698 698
         if ($this->isIdentifierComposite) {
699
-            throw new BadMethodCallException("Class " . $this->name . " has a composite identifier.");
699
+            throw new BadMethodCallException("Class ".$this->name." has a composite identifier.");
700 700
         }
701 701
 
702 702
         return $this->reflFields[$this->identifier[0]];
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
      */
792 792
     public function __toString()
793 793
     {
794
-        return __CLASS__ . '@' . spl_object_hash($this);
794
+        return __CLASS__.'@'.spl_object_hash($this);
795 795
     }
796 796
 
797 797
     /**
@@ -1025,7 +1025,7 @@  discard block
 block discarded – undo
1025 1025
     public function validateAssociations()
1026 1026
     {
1027 1027
         foreach ($this->associationMappings as $mapping) {
1028
-            if ( ! ClassLoader::classExists($mapping['targetEntity']) ) {
1028
+            if ( ! ClassLoader::classExists($mapping['targetEntity'])) {
1029 1029
                 throw MappingException::invalidTargetEntityClass($mapping['targetEntity'], $this->name, $mapping['fieldName']);
1030 1030
             }
1031 1031
         }
@@ -1103,7 +1103,7 @@  discard block
 block discarded – undo
1103 1103
         }
1104 1104
 
1105 1105
         if ( ! isset($cache['region'])) {
1106
-            $cache['region'] = strtolower(str_replace('\\', '_', $this->rootEntityName)) . '__' . $fieldName;
1106
+            $cache['region'] = strtolower(str_replace('\\', '_', $this->rootEntityName)).'__'.$fieldName;
1107 1107
         }
1108 1108
 
1109 1109
         return $cache;
@@ -1383,7 +1383,7 @@  discard block
 block discarded – undo
1383 1383
     protected function _validateAndCompleteFieldMapping(array &$mapping)
1384 1384
     {
1385 1385
         // Check mandatory fields
1386
-        if ( ! isset($mapping['fieldName']) || !$mapping['fieldName']) {
1386
+        if ( ! isset($mapping['fieldName']) || ! $mapping['fieldName']) {
1387 1387
             throw MappingException::missingFieldName($this->name);
1388 1388
         }
1389 1389
 
@@ -1496,14 +1496,14 @@  discard block
 block discarded – undo
1496 1496
                 $this->isIdentifierComposite = true;
1497 1497
             }
1498 1498
 
1499
-            if ($this->cache && !isset($mapping['cache'])) {
1499
+            if ($this->cache && ! isset($mapping['cache'])) {
1500 1500
                 throw CacheException::nonCacheableEntityAssociation($this->name, $mapping['fieldName']);
1501 1501
             }
1502 1502
         }
1503 1503
 
1504 1504
         // Mandatory attributes for both sides
1505 1505
         // Mandatory: fieldName, targetEntity
1506
-        if ( ! isset($mapping['fieldName']) || !$mapping['fieldName']) {
1506
+        if ( ! isset($mapping['fieldName']) || ! $mapping['fieldName']) {
1507 1507
             throw MappingException::missingFieldName($this->name);
1508 1508
         }
1509 1509
 
@@ -1625,7 +1625,7 @@  discard block
 block discarded – undo
1625 1625
                     throw new RuntimeException("ClassMetadataInfo::setTable() has to be called before defining a one to one relationship.");
1626 1626
                 }
1627 1627
 
1628
-                $this->table['uniqueConstraints'][$mapping['fieldName'] . "_uniq"] = [
1628
+                $this->table['uniqueConstraints'][$mapping['fieldName']."_uniq"] = [
1629 1629
                     'columns' => $uniqueConstraintColumns
1630 1630
                 ];
1631 1631
             }
@@ -1640,7 +1640,7 @@  discard block
 block discarded – undo
1640 1640
             unset($mapping['unique']);
1641 1641
         }
1642 1642
 
1643
-        if (isset($mapping['id']) && $mapping['id'] === true && !$mapping['isOwningSide']) {
1643
+        if (isset($mapping['id']) && $mapping['id'] === true && ! $mapping['isOwningSide']) {
1644 1644
             throw MappingException::illegalInverseIdentifierAssociation($this->name, $mapping['fieldName']);
1645 1645
         }
1646 1646
 
@@ -1694,7 +1694,7 @@  discard block
 block discarded – undo
1694 1694
             }
1695 1695
 
1696 1696
             $selfReferencingEntityWithoutJoinColumns = $mapping['sourceEntity'] == $mapping['targetEntity']
1697
-                && (! (isset($mapping['joinTable']['joinColumns']) || isset($mapping['joinTable']['inverseJoinColumns'])));
1697
+                && ( ! (isset($mapping['joinTable']['joinColumns']) || isset($mapping['joinTable']['inverseJoinColumns'])));
1698 1698
 
1699 1699
             if ( ! isset($mapping['joinTable']['joinColumns'])) {
1700 1700
                 $mapping['joinTable']['joinColumns'] = [
@@ -1887,7 +1887,7 @@  discard block
 block discarded – undo
1887 1887
 
1888 1888
             // Association defined as Id field
1889 1889
             $joinColumns      = $this->associationMappings[$idProperty]['joinColumns'];
1890
-            $assocColumnNames = array_map(function ($joinColumn) { return $joinColumn['name']; }, $joinColumns);
1890
+            $assocColumnNames = array_map(function($joinColumn) { return $joinColumn['name']; }, $joinColumns);
1891 1891
 
1892 1892
             $columnNames = array_merge($columnNames, $assocColumnNames);
1893 1893
         }
@@ -2068,7 +2068,7 @@  discard block
 block discarded – undo
2068 2068
     public function getTemporaryIdTableName()
2069 2069
     {
2070 2070
         // replace dots with underscores because PostgreSQL creates temporary tables in a special schema
2071
-        return str_replace('.', '_', $this->getTableName() . '_id_tmp');
2071
+        return str_replace('.', '_', $this->getTableName().'_id_tmp');
2072 2072
     }
2073 2073
 
2074 2074
     /**
@@ -2405,7 +2405,7 @@  discard block
 block discarded – undo
2405 2405
      */
2406 2406
     public function addNamedQuery(array $queryMapping)
2407 2407
     {
2408
-        if (!isset($queryMapping['name'])) {
2408
+        if ( ! isset($queryMapping['name'])) {
2409 2409
             throw MappingException::nameIsMandatoryForQueryMapping($this->name);
2410 2410
         }
2411 2411
 
@@ -2413,7 +2413,7 @@  discard block
 block discarded – undo
2413 2413
             throw MappingException::duplicateQueryMapping($this->name, $queryMapping['name']);
2414 2414
         }
2415 2415
 
2416
-        if (!isset($queryMapping['query'])) {
2416
+        if ( ! isset($queryMapping['query'])) {
2417 2417
             throw MappingException::emptyQueryMapping($this->name, $queryMapping['name']);
2418 2418
         }
2419 2419
 
@@ -2440,7 +2440,7 @@  discard block
 block discarded – undo
2440 2440
      */
2441 2441
     public function addNamedNativeQuery(array $queryMapping)
2442 2442
     {
2443
-        if (!isset($queryMapping['name'])) {
2443
+        if ( ! isset($queryMapping['name'])) {
2444 2444
             throw MappingException::nameIsMandatoryForQueryMapping($this->name);
2445 2445
         }
2446 2446
 
@@ -2448,11 +2448,11 @@  discard block
 block discarded – undo
2448 2448
             throw MappingException::duplicateQueryMapping($this->name, $queryMapping['name']);
2449 2449
         }
2450 2450
 
2451
-        if (!isset($queryMapping['query'])) {
2451
+        if ( ! isset($queryMapping['query'])) {
2452 2452
             throw MappingException::emptyQueryMapping($this->name, $queryMapping['name']);
2453 2453
         }
2454 2454
 
2455
-        if (!isset($queryMapping['resultClass']) && !isset($queryMapping['resultSetMapping'])) {
2455
+        if ( ! isset($queryMapping['resultClass']) && ! isset($queryMapping['resultSetMapping'])) {
2456 2456
             throw MappingException::missingQueryMapping($this->name, $queryMapping['name']);
2457 2457
         }
2458 2458
 
@@ -2484,7 +2484,7 @@  discard block
 block discarded – undo
2484 2484
      */
2485 2485
     public function addSqlResultSetMapping(array $resultMapping)
2486 2486
     {
2487
-        if (!isset($resultMapping['name'])) {
2487
+        if ( ! isset($resultMapping['name'])) {
2488 2488
             throw MappingException::nameIsMandatoryForSqlResultSetMapping($this->name);
2489 2489
         }
2490 2490
 
@@ -2494,7 +2494,7 @@  discard block
 block discarded – undo
2494 2494
 
2495 2495
         if (isset($resultMapping['entities'])) {
2496 2496
             foreach ($resultMapping['entities'] as $key => $entityResult) {
2497
-                if (!isset($entityResult['entityClass'])) {
2497
+                if ( ! isset($entityResult['entityClass'])) {
2498 2498
                     throw MappingException::missingResultSetMappingEntity($this->name, $resultMapping['name']);
2499 2499
                 }
2500 2500
 
@@ -2513,11 +2513,11 @@  discard block
 block discarded – undo
2513 2513
 
2514 2514
                 if (isset($entityResult['fields'])) {
2515 2515
                     foreach ($entityResult['fields'] as $k => $field) {
2516
-                        if (!isset($field['name'])) {
2516
+                        if ( ! isset($field['name'])) {
2517 2517
                             throw MappingException::missingResultSetMappingFieldName($this->name, $resultMapping['name']);
2518 2518
                         }
2519 2519
 
2520
-                        if (!isset($field['column'])) {
2520
+                        if ( ! isset($field['column'])) {
2521 2521
                             $fieldName = $field['name'];
2522 2522
                             if (strpos($fieldName, '.')) {
2523 2523
                                 list(, $fieldName) = explode('.', $fieldName);
@@ -3008,7 +3008,7 @@  discard block
 block discarded – undo
3008 3008
         }
3009 3009
 
3010 3010
         if ($definition['sequenceName'][0] == '`') {
3011
-            $definition['sequenceName']   = trim($definition['sequenceName'], '`');
3011
+            $definition['sequenceName'] = trim($definition['sequenceName'], '`');
3012 3012
             $definition['quoted'] = true;
3013 3013
         }
3014 3014
 
@@ -3100,7 +3100,7 @@  discard block
 block discarded – undo
3100 3100
     public function getAssociationTargetClass($assocName)
3101 3101
     {
3102 3102
         if ( ! isset($this->associationMappings[$assocName])) {
3103
-            throw new InvalidArgumentException("Association name expected, '" . $assocName ."' is not an association.");
3103
+            throw new InvalidArgumentException("Association name expected, '".$assocName."' is not an association.");
3104 3104
         }
3105 3105
 
3106 3106
         return $this->associationMappings[$assocName]['targetEntity'];
@@ -3139,7 +3139,7 @@  discard block
 block discarded – undo
3139 3139
             // Association defined as Id field
3140 3140
             $joinColumns            = $this->associationMappings[$idProperty]['joinColumns'];
3141 3141
             $assocQuotedColumnNames = array_map(
3142
-                function ($joinColumn) use ($platform) {
3142
+                function($joinColumn) use ($platform) {
3143 3143
                     return isset($joinColumn['quoted'])
3144 3144
                         ? $platform->quoteIdentifier($joinColumn['name'])
3145 3145
                         : $joinColumn['name'];
@@ -3250,7 +3250,7 @@  discard block
 block discarded – undo
3250 3250
         }
3251 3251
 
3252 3252
         if ($className !== null && strpos($className, '\\') === false && $this->namespace) {
3253
-            return $this->namespace . '\\' . $className;
3253
+            return $this->namespace.'\\'.$className;
3254 3254
         }
3255 3255
 
3256 3256
         return $className;
@@ -3302,13 +3302,13 @@  discard block
 block discarded – undo
3302 3302
         foreach ($embeddable->fieldMappings as $fieldMapping) {
3303 3303
             $fieldMapping['originalClass'] = $fieldMapping['originalClass'] ?? $embeddable->name;
3304 3304
             $fieldMapping['declaredField'] = isset($fieldMapping['declaredField'])
3305
-                ? $property . '.' . $fieldMapping['declaredField']
3305
+                ? $property.'.'.$fieldMapping['declaredField']
3306 3306
                 : $property;
3307 3307
             $fieldMapping['originalField'] = $fieldMapping['originalField'] ?? $fieldMapping['fieldName'];
3308
-            $fieldMapping['fieldName'] = $property . "." . $fieldMapping['fieldName'];
3308
+            $fieldMapping['fieldName'] = $property.".".$fieldMapping['fieldName'];
3309 3309
 
3310
-            if (! empty($this->embeddedClasses[$property]['columnPrefix'])) {
3311
-                $fieldMapping['columnName'] = $this->embeddedClasses[$property]['columnPrefix'] . $fieldMapping['columnName'];
3310
+            if ( ! empty($this->embeddedClasses[$property]['columnPrefix'])) {
3311
+                $fieldMapping['columnName'] = $this->embeddedClasses[$property]['columnPrefix'].$fieldMapping['columnName'];
3312 3312
             } elseif ($this->embeddedClasses[$property]['columnPrefix'] !== false) {
3313 3313
                 $fieldMapping['columnName'] = $this->namingStrategy
3314 3314
                     ->embeddedFieldToColumnName(
@@ -3349,7 +3349,7 @@  discard block
 block discarded – undo
3349 3349
     {
3350 3350
         $sequencePrefix = $this->getSequencePrefix($platform);
3351 3351
         $columnName     = $this->getSingleIdentifierColumnName();
3352
-        $sequenceName   = $sequencePrefix . '_' . $columnName . '_seq';
3352
+        $sequenceName   = $sequencePrefix.'_'.$columnName.'_seq';
3353 3353
 
3354 3354
         return $sequenceName;
3355 3355
     }
@@ -3369,10 +3369,10 @@  discard block
 block discarded – undo
3369 3369
 
3370 3370
         // Prepend the schema name to the table name if there is one
3371 3371
         if ($schemaName = $this->getSchemaName()) {
3372
-            $sequencePrefix = $schemaName . '.' . $tableName;
3372
+            $sequencePrefix = $schemaName.'.'.$tableName;
3373 3373
 
3374 3374
             if ( ! $platform->supportsSchemas() && $platform->canEmulateSchemas()) {
3375
-                $sequencePrefix = $schemaName . '__' . $tableName;
3375
+                $sequencePrefix = $schemaName.'__'.$tableName;
3376 3376
             }
3377 3377
         }
3378 3378
 
@@ -3384,8 +3384,8 @@  discard block
 block discarded – undo
3384 3384
      */
3385 3385
     private function assertMappingOrderBy(array $mapping)
3386 3386
     {
3387
-        if (isset($mapping['orderBy']) && !is_array($mapping['orderBy'])) {
3388
-            throw new InvalidArgumentException("'orderBy' is expected to be an array, not " . gettype($mapping['orderBy']));
3387
+        if (isset($mapping['orderBy']) && ! is_array($mapping['orderBy'])) {
3388
+            throw new InvalidArgumentException("'orderBy' is expected to be an array, not ".gettype($mapping['orderBy']));
3389 3389
         }
3390 3390
     }
3391 3391
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
  */
42 42
 abstract class AbstractEntityPersister implements CachedEntityPersister
43 43
 {
44
-     /**
45
-     * @var \Doctrine\ORM\UnitOfWork
46
-     */
44
+        /**
45
+         * @var \Doctrine\ORM\UnitOfWork
46
+         */
47 47
     protected $uow;
48 48
 
49 49
     /**
@@ -61,9 +61,9 @@  discard block
 block discarded – undo
61 61
      */
62 62
     protected $class;
63 63
 
64
-     /**
65
-     * @var array
66
-     */
64
+        /**
65
+         * @var array
66
+         */
67 67
     protected $queuedCache = [];
68 68
 
69 69
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Persister\Entity;
7 7
 
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
             ? $this->persister->expandCriteriaParameters($criteria)
283 283
             : $this->persister->expandParameters($criteria);
284 284
 
285
-        return sha1($query . serialize($params) . serialize($orderBy) . $limit . $offset);
285
+        return sha1($query.serialize($params).serialize($orderBy).$limit.$offset);
286 286
     }
287 287
 
288 288
     /**
Please login to merge, or discard this patch.
ORM/Cache/Persister/Collection/ReadOnlyCachedCollectionPersister.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
  */
31 31
 class ReadOnlyCachedCollectionPersister extends NonStrictReadWriteCachedCollectionPersister
32 32
 {
33
-     /**
34
-     * {@inheritdoc}
35
-     */
33
+        /**
34
+         * {@inheritdoc}
35
+         */
36 36
     public function update(PersistentCollection $collection)
37 37
     {
38 38
         if ($collection->isDirty() && $collection->getSnapshot()) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Persister\Collection;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
  */
38 38
 abstract class AbstractCollectionPersister implements CachedCollectionPersister
39 39
 {
40
-     /**
41
-     * @var \Doctrine\ORM\UnitOfWork
42
-     */
40
+        /**
41
+         * @var \Doctrine\ORM\UnitOfWork
42
+         */
43 43
     protected $uow;
44 44
 
45 45
     /**
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
      */
68 68
     protected $association;
69 69
 
70
-     /**
71
-     * @var array
72
-     */
70
+        /**
71
+         * @var array
72
+         */
73 73
     protected $queuedCache = [];
74 74
 
75 75
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Persister\Collection;
7 7
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $targetHydrator  = $targetPersister->getEntityHydrator();
165 165
 
166 166
         // Only preserve ordering if association configured it
167
-        if (! ($association instanceof ToManyAssociationMetadata && $association->getIndexedBy())) {
167
+        if ( ! ($association instanceof ToManyAssociationMetadata && $association->getIndexedBy())) {
168 168
             // Elements may be an array or a Collection
169 169
             $elements = \array_values($elements instanceof Collection ? $elements->getValues() : $elements);
170 170
         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/CacheConfiguration.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function getCacheLogger()
75 75
     {
76
-         return $this->cacheLogger;
76
+            return $this->cacheLogger;
77 77
     }
78 78
 
79 79
     /**
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             );
116 116
         }
117 117
 
118
-         return $this->queryValidator;
118
+            return $this->queryValidator;
119 119
     }
120 120
 
121 121
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache;
7 7
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2692Test.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@
 block discarded – undo
32 32
     public function testIsListenerCalledOnlyOnceOnPreFlush()
33 33
     {
34 34
         $listener = $this->getMockBuilder(DDC2692Listener::class)
35
-                         ->setMethods(['preFlush'])
36
-                         ->getMock();
35
+                            ->setMethods(['preFlush'])
36
+                            ->getMock();
37 37
 
38 38
         $listener->expects($this->once())->method('preFlush');
39 39
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\Tests\ORM\Functional\Ticket;
6 6
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
                 $this->em->getClassMetadata(DDC2692Foo::class),
27 27
                 ]
28 28
             );
29
-        } catch(\Exception $e) {
29
+        } catch (\Exception $e) {
30 30
             return;
31 31
         }
32 32
         $this->em->clear();
Please login to merge, or discard this patch.