Failed Conditions
Push — develop ( 1e1a22...0ebeb4 )
by Michael
128:26 queued 63:28
created
lib/Doctrine/ORM/Internal/Hydration/ArrayHydrator.php 1 patch
Spacing   +11 added lines, -11 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\ORM\Internal\Hydration;
6 6
 
@@ -97,10 +97,10 @@  discard block
 block discarded – undo
97 97
                 // It's a joined result
98 98
 
99 99
                 $parent = $this->rsm->parentAliasMap[$dqlAlias];
100
-                $path   = $parent . '.' . $dqlAlias;
100
+                $path   = $parent.'.'.$dqlAlias;
101 101
 
102 102
                 // missing parent data, skipping as RIGHT JOIN hydration is not supported.
103
-                if ( ! isset($nonemptyComponents[$parent]) ) {
103
+                if ( ! isset($nonemptyComponents[$parent])) {
104 104
                     continue;
105 105
                 }
106 106
 
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
                 if ($this->rsm->isMixed && isset($this->rootAliases[$parent])) {
110 110
                     $first = reset($this->resultPointers);
111 111
                     // TODO: Exception if $key === null ?
112
-                    $baseElement =& $this->resultPointers[$parent][key($first)];
112
+                    $baseElement = & $this->resultPointers[$parent][key($first)];
113 113
                 } else if (isset($this->resultPointers[$parent])) {
114
-                    $baseElement =& $this->resultPointers[$parent];
114
+                    $baseElement = & $this->resultPointers[$parent];
115 115
                 } else {
116 116
                     unset($this->resultPointers[$dqlAlias]); // Ticket #1228
117 117
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 $relation      = $parentClass->getProperty($relationAlias);
124 124
 
125 125
                 // Check the type of the relation (many or single-valued)
126
-                if (! $relation instanceof ToOneAssociationMetadata) {
126
+                if ( ! $relation instanceof ToOneAssociationMetadata) {
127 127
                     $oneToOne = false;
128 128
 
129 129
                     if ( ! isset($baseElement[$relationAlias])) {
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                     }
163 163
                 }
164 164
 
165
-                $coll =& $baseElement[$relationAlias];
165
+                $coll = & $baseElement[$relationAlias];
166 166
 
167 167
                 if (is_array($coll)) {
168 168
                     $this->updateResultPointer($coll, $index, $dqlAlias, $oneToOne);
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                 $entityKey = $this->rsm->entityMappings[$dqlAlias] ?: 0;
175 175
 
176 176
                 // if this row has a NULL value for the root result id then make it a null result.
177
-                if ( ! isset($nonemptyComponents[$dqlAlias]) ) {
177
+                if ( ! isset($nonemptyComponents[$dqlAlias])) {
178 178
                     $result[] = $this->rsm->isMixed
179 179
                         ? [$entityKey => null]
180 180
                         : null;
@@ -273,13 +273,13 @@  discard block
 block discarded – undo
273 273
         }
274 274
 
275 275
         if ($oneToOne) {
276
-            $this->resultPointers[$dqlAlias] =& $coll;
276
+            $this->resultPointers[$dqlAlias] = & $coll;
277 277
 
278 278
             return;
279 279
         }
280 280
 
281 281
         if ($index !== false) {
282
-            $this->resultPointers[$dqlAlias] =& $coll[$index];
282
+            $this->resultPointers[$dqlAlias] = & $coll[$index];
283 283
 
284 284
             return;
285 285
         }
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         }
290 290
 
291 291
         end($coll);
292
-        $this->resultPointers[$dqlAlias] =& $coll[key($coll)];
292
+        $this->resultPointers[$dqlAlias] = & $coll[key($coll)];
293 293
 
294 294
         return;
295 295
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php 1 patch
Spacing   +8 added lines, -8 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\ORM\Mapping\Driver;
6 6
 
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
 
478 478
                 if (isset($manyToOneElement['fetch'])) {
479 479
                     $association->setFetchMode(
480
-                        constant('Doctrine\ORM\Mapping\FetchMode::' . (string) $manyToOneElement['fetch'])
480
+                        constant('Doctrine\ORM\Mapping\FetchMode::'.(string) $manyToOneElement['fetch'])
481 481
                     );
482 482
                 }
483 483
 
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
                 $fieldName = (string) $overrideElement['name'];
630 630
                 $property  = $metadata->getProperty($fieldName);
631 631
 
632
-                if (! $property) {
632
+                if ( ! $property) {
633 633
                     throw Mapping\MappingException::invalidOverrideFieldName($metadata->getClassName(), $fieldName);
634 634
                 }
635 635
 
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
                 // Check for fetch
688 688
                 if (isset($overrideElement['fetch'])) {
689 689
                     $override->setFetchMode(
690
-                        constant('Doctrine\ORM\Mapping\FetchMode::' . (string) $overrideElement['fetch'])
690
+                        constant('Doctrine\ORM\Mapping\FetchMode::'.(string) $overrideElement['fetch'])
691 691
                     );
692 692
                 }
693 693
 
@@ -698,7 +698,7 @@  discard block
 block discarded – undo
698 698
         // Evaluate <lifecycle-callbacks...>
699 699
         if (isset($xmlRoot->{'lifecycle-callbacks'})) {
700 700
             foreach ($xmlRoot->{'lifecycle-callbacks'}->{'lifecycle-callback'} as $lifecycleCallback) {
701
-                $eventName   = constant(Events::class . '::' . (string) $lifecycleCallback['type']);
701
+                $eventName   = constant(Events::class.'::'.(string) $lifecycleCallback['type']);
702 702
                 $methodName  = (string) $lifecycleCallback['method'];
703 703
 
704 704
                 $metadata->addLifecycleCallback($methodName, $eventName);
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
             foreach ($xmlRoot->{'entity-listeners'}->{'entity-listener'} as $listenerElement) {
711 711
                 $listenerClassName = $metadata->fullyQualifiedClassName((string) $listenerElement['class']);
712 712
 
713
-                if (! class_exists($listenerClassName)) {
713
+                if ( ! class_exists($listenerClassName)) {
714 714
                     throw Mapping\MappingException::entityListenerClassNotFound(
715 715
                         $listenerClassName,
716 716
                         $metadata->getClassName()
@@ -885,7 +885,7 @@  discard block
 block discarded – undo
885 885
     )
886 886
     {
887 887
         $baseRegion    = strtolower(str_replace('\\', '_', $metadata->getRootClassName()));
888
-        $defaultRegion = $baseRegion . ($fieldName ? '__' . $fieldName : '');
888
+        $defaultRegion = $baseRegion.($fieldName ? '__'.$fieldName : '');
889 889
 
890 890
         $region = (string) ($cacheMapping['region'] ?? $defaultRegion);
891 891
         $usage  = isset($cacheMapping['usage'])
@@ -916,7 +916,7 @@  discard block
 block discarded – undo
916 916
             Events::preFlush,
917 917
         ];
918 918
 
919
-        return array_filter($events, function ($eventName) use ($method) {
919
+        return array_filter($events, function($eventName) use ($method) {
920 920
             return $eventName === $method->getName();
921 921
         });
922 922
     }
Please login to merge, or discard this patch.