Passed
Push — master ( 3e1d12...91acb4 )
by Luís
13:51 queued 06:19
created
lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php 1 patch
Spacing   +19 added lines, -19 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;
6 6
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         string $className,
83 83
         ClassMetadataBuildingContext $metadataBuildingContext
84 84
     ) : ?ClassMetadata {
85
-        if (! $this->evm->hasListeners(Events::onClassMetadataNotFound)) {
85
+        if ( ! $this->evm->hasListeners(Events::onClassMetadataNotFound)) {
86 86
             return null;
87 87
         }
88 88
 
@@ -141,20 +141,20 @@  discard block
 block discarded – undo
141 141
                 $classMetadata->setCache(clone $parent->getCache());
142 142
             }
143 143
 
144
-            if (! empty($parent->namedNativeQueries)) {
144
+            if ( ! empty($parent->namedNativeQueries)) {
145 145
                 $this->addInheritedNamedNativeQueries($classMetadata, $parent);
146 146
             }
147 147
 
148
-            if (! empty($parent->sqlResultSetMappings)) {
148
+            if ( ! empty($parent->sqlResultSetMappings)) {
149 149
                 $this->addInheritedSqlResultSetMappings($classMetadata, $parent);
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
             }
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
     private function completeIdentifierGeneratorMappings(ClassMetadata $class) : void
422 422
     {
423 423
         foreach ($class->getDeclaredPropertiesIterator() as $property) {
424
-            if (! $property instanceof FieldMetadata /*&& ! $property instanceof AssocationMetadata*/) {
424
+            if ( ! $property instanceof FieldMetadata /*&& ! $property instanceof AssocationMetadata*/) {
425 425
                 continue;
426 426
             }
427 427
 
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 
432 432
     private function completeFieldIdentifierGeneratorMapping(FieldMetadata $field)
433 433
     {
434
-        if (! $field->hasValueGenerator()) {
434
+        if ( ! $field->hasValueGenerator()) {
435 435
             return;
436 436
         }
437 437
 
@@ -483,10 +483,10 @@  discard block
 block discarded – undo
483 483
 
484 484
             case GeneratorType::CUSTOM:
485 485
                 $definition = $generator->getDefinition();
486
-                if (! isset($definition['class'])) {
486
+                if ( ! isset($definition['class'])) {
487 487
                     throw new ORMException(sprintf('Cannot instantiate custom generator, no class has been defined'));
488 488
                 }
489
-                if (! class_exists($definition['class'])) {
489
+                if ( ! class_exists($definition['class'])) {
490 490
                     throw new ORMException(sprintf('Cannot instantiate custom generator : %s', var_export($definition, true))); //$definition['class']));
491 491
                 }
492 492
 
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
                 break;
499 499
 
500 500
             default:
501
-                throw new ORMException('Unknown generator type: ' . $generator->getType());
501
+                throw new ORMException('Unknown generator type: '.$generator->getType());
502 502
         }
503 503
     }
504 504
 
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
 
521 521
     private function getTargetPlatform() : Platforms\AbstractPlatform
522 522
     {
523
-        if (! $this->targetPlatform) {
523
+        if ( ! $this->targetPlatform) {
524 524
             $this->targetPlatform = $this->em->getConnection()->getDatabasePlatform();
525 525
         }
526 526
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Sequencing/Planning/AssociationValueGeneratorExecutor.php 1 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\Sequencing\Planning;
7 7
 
Please login to merge, or discard this patch.