Completed
Pull Request — master (#6652)
by Marco
30:27 queued 21:08
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2602Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $eventManager->addEventListener([Events::postLoad], new DDC2602PostLoadListener());
49 49
 
50 50
         $result = $this->_em->createQuery('SELECT u, b FROM Doctrine\Tests\ORM\Functional\Ticket\DDC2602User u JOIN u.biography b')
51
-                             ->getResult();
51
+                                ->getResult();
52 52
 
53 53
         self::assertCount(2, $result);
54 54
         self::assertCount(2, $result[0]->biography->fieldList);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,10 +149,10 @@
 block discarded – undo
149 149
         foreach ($content as $selection) {
150 150
             $field      = $result[$selection->field];
151 151
             $choiceList = $selection->choiceList;
152
-            $fieldSelection     = new DDC2602FieldSelection();
152
+            $fieldSelection = new DDC2602FieldSelection();
153 153
 
154 154
             $fieldSelection->field      = $field;
155
-            $fieldSelection->choiceList = $field->choiceList->filter(function ($choice) use ($choiceList) {
155
+            $fieldSelection->choiceList = $field->choiceList->filter(function($choice) use ($choiceList) {
156 156
                 return in_array($choice->id, $choiceList);
157 157
             });
158 158
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/PersistentCollectionTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             ->expects(self::once())
169 169
             ->method('loadCollection')
170 170
             ->with($this->collection)
171
-            ->willReturnCallback(function (PersistentCollection $persistentCollection) use ($persistedElement) : void {
171
+            ->willReturnCallback(function(PersistentCollection $persistentCollection) use ($persistedElement) : void {
172 172
                 $persistentCollection->unwrap()->add($persistedElement);
173 173
             });
174 174
 
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             ->expects(self::once())
206 206
             ->method('loadCollection')
207 207
             ->with($this->collection)
208
-            ->willReturnCallback(function (PersistentCollection $persistentCollection) use (
208
+            ->willReturnCallback(function(PersistentCollection $persistentCollection) use (
209 209
                 $persistedElement,
210 210
                 $newElementThatIsAlsoPersisted
211 211
             ) : void {
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
             ->expects(self::once())
248 248
             ->method('loadCollection')
249 249
             ->with($this->collection)
250
-            ->willReturnCallback(function (PersistentCollection $persistentCollection) use (
250
+            ->willReturnCallback(function(PersistentCollection $persistentCollection) use (
251 251
                 $persistedElement,
252 252
                 $newElementThatIsAlsoPersisted
253 253
             ) : void {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/YamlExporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@
 block discarded – undo
253 253
     private function processEntityListenerConfig(array $array, array $entityListenerConfig, string $event) : array
254 254
     {
255 255
         foreach ($entityListenerConfig as $entityListener) {
256
-            if (! isset($array['entityListeners'][$entityListener['class']])) {
256
+            if ( ! isset($array['entityListeners'][$entityListener['class']])) {
257 257
                 $array['entityListeners'][$entityListener['class']] = [];
258 258
             }
259 259
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/PhpExporter.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -51,27 +51,27 @@  discard block
 block discarded – undo
51 51
         }
52 52
 
53 53
         if ($metadata->inheritanceType) {
54
-            $lines[] = '$metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_' . $this->_getInheritanceTypeString($metadata->inheritanceType) . ');';
54
+            $lines[] = '$metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_'.$this->_getInheritanceTypeString($metadata->inheritanceType).');';
55 55
         }
56 56
 
57 57
         if ($metadata->customRepositoryClassName) {
58
-            $lines[] = "\$metadata->customRepositoryClassName = '" . $metadata->customRepositoryClassName . "';";
58
+            $lines[] = "\$metadata->customRepositoryClassName = '".$metadata->customRepositoryClassName."';";
59 59
         }
60 60
 
61 61
         if ($metadata->table) {
62
-            $lines[] = '$metadata->setPrimaryTable(' . $this->_varExport($metadata->table) . ');';
62
+            $lines[] = '$metadata->setPrimaryTable('.$this->_varExport($metadata->table).');';
63 63
         }
64 64
 
65 65
         if ($metadata->discriminatorColumn) {
66
-            $lines[] = '$metadata->setDiscriminatorColumn(' . $this->_varExport($metadata->discriminatorColumn) . ');';
66
+            $lines[] = '$metadata->setDiscriminatorColumn('.$this->_varExport($metadata->discriminatorColumn).');';
67 67
         }
68 68
 
69 69
         if ($metadata->discriminatorMap) {
70
-            $lines[] = '$metadata->setDiscriminatorMap(' . $this->_varExport($metadata->discriminatorMap) . ');';
70
+            $lines[] = '$metadata->setDiscriminatorMap('.$this->_varExport($metadata->discriminatorMap).');';
71 71
         }
72 72
 
73 73
         if ($metadata->changeTrackingPolicy) {
74
-            $lines[] = '$metadata->setChangeTrackingPolicy(ClassMetadataInfo::CHANGETRACKING_' . $this->_getChangeTrackingPolicyString($metadata->changeTrackingPolicy) . ');';
74
+            $lines[] = '$metadata->setChangeTrackingPolicy(ClassMetadataInfo::CHANGETRACKING_'.$this->_getChangeTrackingPolicyString($metadata->changeTrackingPolicy).');';
75 75
         }
76 76
 
77 77
         if ($metadata->lifecycleCallbacks) {
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
         $lines = array_merge($lines, $this->processEntityListeners($metadata));
86 86
 
87 87
         foreach ($metadata->fieldMappings as $fieldMapping) {
88
-            $lines[] = '$metadata->mapField(' . $this->_varExport($fieldMapping) . ');';
88
+            $lines[] = '$metadata->mapField('.$this->_varExport($fieldMapping).');';
89 89
         }
90 90
 
91 91
         if ( ! $metadata->isIdentifierComposite && $generatorType = $this->_getIdGeneratorTypeString($metadata->generatorType)) {
92
-            $lines[] = '$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_' . $generatorType . ');';
92
+            $lines[] = '$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_'.$generatorType.');';
93 93
         }
94 94
 
95 95
         foreach ($metadata->associationMappings as $associationMapping) {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                 $associationMappingArray = array_merge($associationMappingArray, $manyToManyMappingArray);
156 156
             }
157 157
 
158
-            $lines[] = '$metadata->' . $method . '(' . $this->_varExport($associationMappingArray) . ');';
158
+            $lines[] = '$metadata->'.$method.'('.$this->_varExport($associationMappingArray).');';
159 159
         }
160 160
 
161 161
         return implode("\n", $lines);
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     protected function _varExport($var)
170 170
     {
171 171
         $export = var_export($var, true);
172
-        $export = str_replace("\n", PHP_EOL . str_repeat(' ', 8), $export);
172
+        $export = str_replace("\n", PHP_EOL.str_repeat(' ', 8), $export);
173 173
         $export = str_replace('  ', ' ', $export);
174 174
         $export = str_replace('array (', 'array(', $export);
175 175
         $export = str_replace('array( ', 'array(', $export);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Export/Driver/XmlExporter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function exportClassMetadata(ClassMetadataInfo $metadata)
43 43
     {
44
-        $xml = new SimpleXmlElement('<?xml version="1.0" encoding="utf-8"?><doctrine-mapping ' .
45
-            'xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" ' .
46
-            'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' .
44
+        $xml = new SimpleXmlElement('<?xml version="1.0" encoding="utf-8"?><doctrine-mapping '.
45
+            'xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" '.
46
+            'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '.
47 47
             'xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" />');
48 48
 
49 49
         if ($metadata->isMappedSuperclass) {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
         $trackingPolicy = $this->_getChangeTrackingPolicyString($metadata->changeTrackingPolicy);
100 100
 
101
-        if ( $trackingPolicy != 'DEFERRED_IMPLICIT') {
101
+        if ($trackingPolicy != 'DEFERRED_IMPLICIT') {
102 102
             $root->addChild('change-tracking-policy', $trackingPolicy);
103 103
         }
104 104
 
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
             }
298 298
 
299 299
             if (count($cascade) === 5) {
300
-                $cascade  = ['cascade-all'];
300
+                $cascade = ['cascade-all'];
301 301
             }
302 302
 
303 303
             if ($cascade) {
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
             }
380 380
         }
381 381
 
382
-        if (isset($metadata->lifecycleCallbacks) && count($metadata->lifecycleCallbacks)>0) {
382
+        if (isset($metadata->lifecycleCallbacks) && count($metadata->lifecycleCallbacks) > 0) {
383 383
             $lifecycleCallbacksXml = $root->addChild('lifecycle-callbacks');
384 384
 
385 385
             foreach ($metadata->lifecycleCallbacks as $name => $methods) {
@@ -430,7 +430,7 @@  discard block
 block discarded – undo
430 430
     {
431 431
         $sequenceDefinition = $metadata->sequenceGeneratorDefinition;
432 432
 
433
-        if (! ($metadata->generatorType === ClassMetadataInfo::GENERATOR_TYPE_SEQUENCE && $sequenceDefinition)) {
433
+        if ( ! ($metadata->generatorType === ClassMetadataInfo::GENERATOR_TYPE_SEQUENCE && $sequenceDefinition)) {
434 434
             return;
435 435
         }
436 436
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         // Evaluate named native queries
110 110
         if (isset($element['namedNativeQueries'])) {
111 111
             foreach ($element['namedNativeQueries'] as $name => $mappingElement) {
112
-                if (!isset($mappingElement['name'])) {
112
+                if ( ! isset($mappingElement['name'])) {
113 113
                     $mappingElement['name'] = $name;
114 114
                 }
115 115
                 $metadata->addNamedNativeQuery(
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         // Evaluate sql result set mappings
127 127
         if (isset($element['sqlResultSetMappings'])) {
128 128
             foreach ($element['sqlResultSetMappings'] as $name => $resultSetMapping) {
129
-                if (!isset($resultSetMapping['name'])) {
129
+                if ( ! isset($resultSetMapping['name'])) {
130 130
                     $resultSetMapping['name'] = $name;
131 131
                 }
132 132
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         }
174 174
 
175 175
         if (isset($element['inheritanceType'])) {
176
-            $metadata->setInheritanceType(constant('Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_' . strtoupper($element['inheritanceType'])));
176
+            $metadata->setInheritanceType(constant('Doctrine\ORM\Mapping\ClassMetadata::INHERITANCE_TYPE_'.strtoupper($element['inheritanceType'])));
177 177
 
178 178
             if ($metadata->inheritanceType != Metadata::INHERITANCE_TYPE_NONE) {
179 179
                 // Evaluate discriminatorColumn
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
                 }
363 363
 
364 364
                 if (isset($oneToOneElement['fetch'])) {
365
-                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToOneElement['fetch']);
365
+                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$oneToOneElement['fetch']);
366 366
                 }
367 367
 
368 368
                 if (isset($oneToOneElement['mappedBy'])) {
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
                 ];
417 417
 
418 418
                 if (isset($oneToManyElement['fetch'])) {
419
-                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $oneToManyElement['fetch']);
419
+                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$oneToManyElement['fetch']);
420 420
                 }
421 421
 
422 422
                 if (isset($oneToManyElement['cascade'])) {
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
                 }
459 459
 
460 460
                 if (isset($manyToOneElement['fetch'])) {
461
-                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToOneElement['fetch']);
461
+                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$manyToOneElement['fetch']);
462 462
                 }
463 463
 
464 464
                 if (isset($manyToOneElement['inversedBy'])) {
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
                 ];
504 504
 
505 505
                 if (isset($manyToManyElement['fetch'])) {
506
-                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_' . $manyToManyElement['fetch']);
506
+                    $mapping['fetch'] = constant('Doctrine\ORM\Mapping\ClassMetadata::FETCH_'.$manyToManyElement['fetch']);
507 507
                 }
508 508
 
509 509
                 if (isset($manyToManyElement['mappedBy'])) {
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
         if (isset($element['associationOverride']) && is_array($element['associationOverride'])) {
574 574
 
575 575
             foreach ($element['associationOverride'] as $fieldName => $associationOverrideElement) {
576
-                $override   = [];
576
+                $override = [];
577 577
 
578 578
                 // Check for joinColumn
579 579
                 if (isset($associationOverrideElement['joinColumn'])) {
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
                 if (isset($associationOverrideElement['joinTable'])) {
592 592
 
593 593
                     $joinTableElement   = $associationOverrideElement['joinTable'];
594
-                    $joinTable          =  [
594
+                    $joinTable          = [
595 595
                         'name' => $joinTableElement['name']
596 596
                     ];
597 597
 
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
 
626 626
                 // Check for `fetch`
627 627
                 if (isset($associationOverrideElement['fetch'])) {
628
-                    $override['fetch'] = constant(Metadata::class . '::FETCH_' . $associationOverrideElement['fetch']);
628
+                    $override['fetch'] = constant(Metadata::class.'::FETCH_'.$associationOverrideElement['fetch']);
629 629
                 }
630 630
 
631 631
                 $metadata->setAssociationOverride($fieldName, $override);
@@ -645,7 +645,7 @@  discard block
 block discarded – undo
645 645
         if (isset($element['lifecycleCallbacks'])) {
646 646
             foreach ($element['lifecycleCallbacks'] as $type => $methods) {
647 647
                 foreach ($methods as $method) {
648
-                    $metadata->addLifecycleCallback($method, constant('Doctrine\ORM\Events::' . $type));
648
+                    $metadata->addLifecycleCallback($method, constant('Doctrine\ORM\Events::'.$type));
649 649
                 }
650 650
             }
651 651
         }
@@ -787,12 +787,12 @@  discard block
 block discarded – undo
787 787
         $region = isset($cacheMapping['region']) ? (string) $cacheMapping['region'] : null;
788 788
         $usage  = isset($cacheMapping['usage']) ? strtoupper($cacheMapping['usage']) : null;
789 789
 
790
-        if ($usage && ! defined('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_' . $usage)) {
790
+        if ($usage && ! defined('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_'.$usage)) {
791 791
             throw new \InvalidArgumentException(sprintf('Invalid cache usage "%s"', $usage));
792 792
         }
793 793
 
794 794
         if ($usage) {
795
-            $usage = constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_' . $usage);
795
+            $usage = constant('Doctrine\ORM\Mapping\ClassMetadata::CACHE_USAGE_'.$usage);
796 796
         }
797 797
 
798 798
         return [
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
 
297 297
                     // If there are field name collisions in the child class, then we need
298 298
                     // to only hydrate if we are looking at the correct discriminator value
299
-                    if(
299
+                    if (
300 300
                         isset($cacheKeyInfo['discriminatorColumn']) && 
301 301
                         isset($data[$cacheKeyInfo['discriminatorColumn']]) &&
302 302
                         // Note: loose comparison required. See https://github.com/doctrine/doctrine2/pull/6304#issuecomment-323294442
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
                         : $value;
318 318
 
319 319
                     if ($cacheKeyInfo['isIdentifier'] && $value !== null) {
320
-                        $id[$dqlAlias] .= '|' . $value;
320
+                        $id[$dqlAlias] .= '|'.$value;
321 321
                         $nonemptyComponents[$dqlAlias] = true;
322 322
                     }
323 323
                     break;
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
             if ( ! isset($cacheKeyInfo['isScalar'])) {
356 356
                 $dqlAlias  = $cacheKeyInfo['dqlAlias'];
357 357
                 $type      = $cacheKeyInfo['type'];
358
-                $fieldName = $dqlAlias . '_' . $fieldName;
358
+                $fieldName = $dqlAlias.'_'.$fieldName;
359 359
                 $value     = $type
360 360
                     ? $type->convertToPHPValue($value, $this->_platform)
361 361
                     : $value;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
208 208
         $sqlIdentifier = $this->getSQLIdentifier($AST);
209 209
 
210 210
         if ($hasOrderBy) {
211
-            $orderGroupBy = ' GROUP BY ' . implode(', ', $sqlIdentifier);
212
-            $sqlIdentifier[] = 'MIN(' . $this->walkResultVariable('dctrn_rownum') . ') AS dctrn_minrownum';
211
+            $orderGroupBy = ' GROUP BY '.implode(', ', $sqlIdentifier);
212
+            $sqlIdentifier[] = 'MIN('.$this->walkResultVariable('dctrn_rownum').') AS dctrn_minrownum';
213 213
         }
214 214
 
215 215
         // Build the counter query
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         );
221 221
 
222 222
         if ($hasOrderBy) {
223
-            $sql .= $orderGroupBy . $outerOrderBy;
223
+            $sql .= $orderGroupBy.$outerOrderBy;
224 224
         }
225 225
 
226 226
         // Apply the limit and offset.
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
         foreach ($orderByPathExpressions as $pathExpression) {
324 324
             $idVar = $pathExpression->identificationVariable;
325 325
             $field = $pathExpression->field;
326
-            if (!isset($selects[$idVar])) {
326
+            if ( ! isset($selects[$idVar])) {
327 327
                 $selects[$idVar] = [];
328 328
             }
329 329
             $selects[$idVar][$field] = true;
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
         foreach ($AST->selectClause->selectExpressions as $selectExpression) {
335 335
             if ($selectExpression instanceof SelectExpression) {
336 336
                 $idVar = $selectExpression->expression;
337
-                if (!is_string($idVar)) {
337
+                if ( ! is_string($idVar)) {
338 338
                     continue;
339 339
                 }
340 340
                 $field = $selectExpression->fieldIdentificationVariable;
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
         ?OrderByClause $orderByClause
371 371
     ) : string {
372 372
         // If the sql statement has an order by clause, we need to wrap it in a new select distinct statement
373
-        if (! $orderByClause) {
373
+        if ( ! $orderByClause) {
374 374
             return $sql;
375 375
         }
376 376
 
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
             $orderByItems[] = $orderByItemString;
413 413
             $identifier     = \substr($orderByItemString, 0, \strrpos($orderByItemString, ' '));
414 414
 
415
-            if (! \in_array($identifier, $identifiers, true)) {
415
+            if ( ! \in_array($identifier, $identifiers, true)) {
416 416
                 $identifiers[] = $identifier;
417 417
             }
418 418
         }
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
             $class = $metadataList[$dqlAliasForFieldAlias];
445 445
 
446 446
             // If the field is from a joined child table, we won't be ordering on it.
447
-            if (! isset($class->fieldMappings[$fieldName])) {
447
+            if ( ! isset($class->fieldMappings[$fieldName])) {
448 448
                 continue;
449 449
             }
450 450
 
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
                 // for the joined parent table.
466 466
                 $otherClassMetadata = $this->em->getClassMetadata($fieldMapping['declared']);
467 467
 
468
-                if (! $otherClassMetadata->isMappedSuperclass) {
468
+                if ( ! $otherClassMetadata->isMappedSuperclass) {
469 469
                     $sqlTableAliasForFieldAlias = $this->getSQLTableAlias($otherClassMetadata->getTableName(), $dqlAliasForFieldAlias);
470 470
                 }
471 471
             }
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
      */
583 583
     public function walkPathExpression($pathExpr)
584 584
     {
585
-        if (!$this->inSubSelect && !$this->platformSupportsRowNumber() && !in_array($pathExpr, $this->orderByPathExpressions)) {
585
+        if ( ! $this->inSubSelect && ! $this->platformSupportsRowNumber() && ! in_array($pathExpr, $this->orderByPathExpressions)) {
586 586
             $this->orderByPathExpressions[] = $pathExpr;
587 587
         }
588 588
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC6303Test.php 1 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\Tests\ORM\Functional\Ticket;
6 6
 
Please login to merge, or discard this patch.