Completed
Pull Request — master (#7413)
by Michael
10:40
created
lib/Doctrine/ORM/Mapping/Factory/StaticClassMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     protected function getReflectionService() : StaticReflectionService
19 19
     {
20
-        if (! $this->reflectionService) {
20
+        if ( ! $this->reflectionService) {
21 21
             $this->reflectionService = new StaticReflectionService();
22 22
         }
23 23
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/ClassMetadataDefinitionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     {
27 27
         $definition = $this->createDefinition($className, $parentMetadata);
28 28
 
29
-        if (! class_exists($definition->metadataClassName, false)) {
29
+        if ( ! class_exists($definition->metadataClassName, false)) {
30 30
             $metadataClassPath = $this->resolver->resolveMetadataClassPath($className);
31 31
 
32 32
             $this->generatorStrategy->generate($metadataClassPath, $definition);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/AbstractClassMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
      */
152 152
     private function getOrCreateClassMetadataDefinition(string $className, ?ClassMetadata $parent) : ClassMetadataDefinition
153 153
     {
154
-        if (! isset($this->definitions[$className])) {
154
+        if ( ! isset($this->definitions[$className])) {
155 155
             $this->definitions[$className] = $this->definitionFactory->build($className, $parent);
156 156
         }
157 157
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Factory/DefaultNamingStrategy.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function embeddedFieldToColumnName($propertyName, $embeddedColumnName, $className = null, $embeddedClassName = null)
41 41
     {
42
-        return $propertyName . '_' . $embeddedColumnName;
42
+        return $propertyName.'_'.$embeddedColumnName;
43 43
     }
44 44
 
45 45
     /**
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function joinColumnName($propertyName, $className = null)
57 57
     {
58
-        return $propertyName . '_' . $this->referenceColumnName();
58
+        return $propertyName.'_'.$this->referenceColumnName();
59 59
     }
60 60
 
61 61
     /**
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function joinTableName($sourceEntity, $targetEntity, $propertyName = null)
65 65
     {
66
-        return strtolower($this->classToTableName($sourceEntity) . '_' .
66
+        return strtolower($this->classToTableName($sourceEntity).'_'.
67 67
             $this->classToTableName($targetEntity));
68 68
     }
69 69
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      */
73 73
     public function joinKeyColumnName($entityName, $referencedColumnName = null)
74 74
     {
75
-        return strtolower($this->classToTableName($entityName) . '_' .
75
+        return strtolower($this->classToTableName($entityName).'_'.
76 76
             ($referencedColumnName ?: $this->referenceColumnName()));
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         string $className,
89 89
         ClassMetadataBuildingContext $metadataBuildingContext
90 90
     ) : ?ClassMetadata {
91
-        if (! $this->evm->hasListeners(Events::onClassMetadataNotFound)) {
91
+        if ( ! $this->evm->hasListeners(Events::onClassMetadataNotFound)) {
92 92
             return null;
93 93
         }
94 94
 
@@ -149,12 +149,12 @@  discard block
 block discarded – undo
149 149
                 $classMetadata->setCache(clone $parent->getCache());
150 150
             }
151 151
 
152
-            if (! empty($parent->entityListeners) && empty($classMetadata->entityListeners)) {
152
+            if ( ! empty($parent->entityListeners) && empty($classMetadata->entityListeners)) {
153 153
                 $classMetadata->entityListeners = $parent->entityListeners;
154 154
             }
155 155
         }
156 156
 
157
-        if (! $classMetadata->discriminatorMap && $classMetadata->inheritanceType !== InheritanceType::NONE && $classMetadata->isRootEntity()) {
157
+        if ( ! $classMetadata->discriminatorMap && $classMetadata->inheritanceType !== InheritanceType::NONE && $classMetadata->isRootEntity()) {
158 158
             $this->addDefaultDiscriminatorMap($classMetadata);
159 159
         }
160 160
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
 
175 175
     protected function completeRuntimeMetadata(ClassMetadata $class, ?ClassMetadata $parent = null) : void
176 176
     {
177
-        if (! $parent || ! $parent->isMappedSuperclass) {
177
+        if ( ! $parent || ! $parent->isMappedSuperclass) {
178 178
             return;
179 179
         }
180 180
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
                 continue;
193 193
             }
194 194
 
195
-            if (! ($property instanceof ToOneAssociationMetadata)) {
195
+            if ( ! ($property instanceof ToOneAssociationMetadata)) {
196 196
                 continue;
197 197
             }
198 198
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      */
212 212
     protected function validateRuntimeMetadata(ClassMetadata $class, ?ClassMetadata $parent = null) : void
213 213
     {
214
-        if (! $class->getReflectionClass()) {
214
+        if ( ! $class->getReflectionClass()) {
215 215
             // only validate if there is a reflection class instance
216 216
             return;
217 217
         }
@@ -221,13 +221,13 @@  discard block
 block discarded – undo
221 221
         $class->validateLifecycleCallbacks($this->getReflectionService());
222 222
 
223 223
         // verify inheritance
224
-        if (! $class->isMappedSuperclass && $class->inheritanceType !== InheritanceType::NONE) {
225
-            if (! $parent) {
226
-                if (! $class->discriminatorMap) {
224
+        if ( ! $class->isMappedSuperclass && $class->inheritanceType !== InheritanceType::NONE) {
225
+            if ( ! $parent) {
226
+                if ( ! $class->discriminatorMap) {
227 227
                     throw MappingException::missingDiscriminatorMap($class->getClassName());
228 228
                 }
229 229
 
230
-                if (! $class->discriminatorColumn) {
230
+                if ( ! $class->discriminatorColumn) {
231 231
                     throw MappingException::missingDiscriminatorColumn($class->getClassName());
232 232
                 }
233 233
             }
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
     private function completeIdentifierGeneratorMappings(ClassMetadata $class) : void
349 349
     {
350 350
         foreach ($class->getDeclaredPropertiesIterator() as $property) {
351
-            if (! $property instanceof FieldMetadata /*&& ! $property instanceof AssocationMetadata*/) {
351
+            if ( ! $property instanceof FieldMetadata /*&& ! $property instanceof AssocationMetadata*/) {
352 352
                 continue;
353 353
             }
354 354
 
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
 
359 359
     private function completeFieldIdentifierGeneratorMapping(FieldMetadata $field)
360 360
     {
361
-        if (! $field->hasValueGenerator()) {
361
+        if ( ! $field->hasValueGenerator()) {
362 362
             return;
363 363
         }
364 364
 
@@ -410,10 +410,10 @@  discard block
 block discarded – undo
410 410
 
411 411
             case GeneratorType::CUSTOM:
412 412
                 $definition = $generator->getDefinition();
413
-                if (! isset($definition['class'])) {
413
+                if ( ! isset($definition['class'])) {
414 414
                     throw InvalidCustomGenerator::onClassNotConfigured();
415 415
                 }
416
-                if (! class_exists($definition['class'])) {
416
+                if ( ! class_exists($definition['class'])) {
417 417
                     throw InvalidCustomGenerator::onMissingClass($definition);
418 418
                 }
419 419
 
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 
448 448
     private function getTargetPlatform() : Platforms\AbstractPlatform
449 449
     {
450
-        if (! $this->targetPlatform) {
450
+        if ( ! $this->targetPlatform) {
451 451
             $this->targetPlatform = $this->em->getConnection()->getDatabasePlatform();
452 452
         }
453 453
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Planning/CompositeValueGenerationPlan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function executeDeferred(EntityManagerInterface $entityManager, object $entity) : void
40 40
     {
41 41
         foreach ($this->executors as $executor) {
42
-            if (! $executor->isDeferred()) {
42
+            if ( ! $executor->isDeferred()) {
43 43
                 continue;
44 44
             }
45 45
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Planning/SingleValueGenerationPlan.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     public function executeImmediate(EntityManagerInterface $entityManager, object $entity) : void
26 26
     {
27
-        if (! $this->executor->isDeferred()) {
27
+        if ( ! $this->executor->isDeferred()) {
28 28
             $this->dispatchExecutor($entity, $entityManager);
29 29
         }
30 30
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/TableGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
                         $this->allocationSize
59 59
                     );
60 60
 
61
-                    if ($conn->executeUpdate($updateSql, [1 => $currentLevel, 2 => $currentLevel+1]) !== 1) {
61
+                    if ($conn->executeUpdate($updateSql, [1 => $currentLevel, 2 => $currentLevel + 1]) !== 1) {
62 62
                         // no affected rows, concurrency issue, throw exception
63 63
                     }
64 64
                 } else {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Utility/NormalizeIdentifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $normalizedAssociatedId = [];
36 36
 
37 37
         foreach ($targetClass->getDeclaredPropertiesIterator() as $name => $declaredProperty) {
38
-            if (! array_key_exists($name, $flatIdentifier)) {
38
+            if ( ! array_key_exists($name, $flatIdentifier)) {
39 39
                 continue;
40 40
             }
41 41
 
Please login to merge, or discard this patch.