Failed Conditions
Pull Request — master (#7766)
by
unknown
07:43
created
lib/Doctrine/ORM/Mapping/Builder/CacheMetadataBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
         $componentName = $this->componentMetadata->getRootClassName();
63 63
         $baseRegion    = strtolower(str_replace('\\', '_', $componentName));
64
-        $defaultRegion = $baseRegion . ($this->fieldName ? '__' . $this->fieldName : '');
64
+        $defaultRegion = $baseRegion.($this->fieldName ? '__'.$this->fieldName : '');
65 65
 
66 66
         $usage  = constant(sprintf('%s::%s', Mapping\CacheUsage::class, strtoupper($this->cacheAnnotation->usage)));
67 67
         $region = $this->cacheAnnotation->region ?: $defaultRegion;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/ClassMetadata.php 1 patch
Spacing   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -239,11 +239,11 @@  discard block
 block discarded – undo
239 239
             $this->setCache(clone $parent->cache);
240 240
         }
241 241
 
242
-        if (! empty($parent->lifecycleCallbacks)) {
242
+        if ( ! empty($parent->lifecycleCallbacks)) {
243 243
             $this->lifecycleCallbacks = $parent->lifecycleCallbacks;
244 244
         }
245 245
 
246
-        if (! empty($parent->entityListeners)) {
246
+        if ( ! empty($parent->entityListeners)) {
247 247
             $this->entityListeners = $parent->entityListeners;
248 248
         }
249 249
     }
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      */
311 311
     public function __toString()
312 312
     {
313
-        return self::class . '@' . spl_object_id($this);
313
+        return self::class.'@'.spl_object_id($this);
314 314
     }
315 315
 
316 316
     /**
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
         // Restore ReflectionClass and properties
398 398
         $this->reflectionClass = $reflectionService->getClass($this->className);
399 399
 
400
-        if (! $this->reflectionClass) {
400
+        if ( ! $this->reflectionClass) {
401 401
             return;
402 402
         }
403 403
 
@@ -426,11 +426,11 @@  discard block
 block discarded – undo
426 426
      */
427 427
     public function isIdentifier(string $fieldName) : bool
428 428
     {
429
-        if (! $this->identifier) {
429
+        if ( ! $this->identifier) {
430 430
             return false;
431 431
         }
432 432
 
433
-        if (! $this->isIdentifierComposite()) {
433
+        if ( ! $this->isIdentifierComposite()) {
434 434
             return $fieldName === $this->identifier[0];
435 435
         }
436 436
 
@@ -454,11 +454,11 @@  discard block
 block discarded – undo
454 454
         }
455 455
 
456 456
         // Verify & complete identifier mapping
457
-        if (! $this->identifier) {
457
+        if ( ! $this->identifier) {
458 458
             throw MappingException::identifierRequired($this->className);
459 459
         }
460 460
 
461
-        $explicitlyGeneratedProperties = array_filter($this->declaredProperties, static function (Property $property) : bool {
461
+        $explicitlyGeneratedProperties = array_filter($this->declaredProperties, static function(Property $property) : bool {
462 462
             return $property instanceof FieldMetadata
463 463
                 && $property->isPrimaryKey()
464 464
                 && $property->hasValueGenerator();
@@ -477,14 +477,14 @@  discard block
 block discarded – undo
477 477
     public function validateAssociations() : void
478 478
     {
479 479
         array_map(
480
-            function (Property $property) {
481
-                if (! ($property instanceof AssociationMetadata)) {
480
+            function(Property $property) {
481
+                if ( ! ($property instanceof AssociationMetadata)) {
482 482
                     return;
483 483
                 }
484 484
 
485 485
                 $targetEntity = $property->getTargetEntity();
486 486
 
487
-                if (! class_exists($targetEntity)) {
487
+                if ( ! class_exists($targetEntity)) {
488 488
                     throw MappingException::invalidTargetEntityClass($targetEntity, $this->className, $property->getName());
489 489
                 }
490 490
             },
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
         foreach ($this->lifecycleCallbacks as $callbacks) {
503 503
             /** @var array $callbacks */
504 504
             foreach ($callbacks as $callbackFuncName) {
505
-                if (! $reflectionService->hasPublicMethod($this->className, $callbackFuncName)) {
505
+                if ( ! $reflectionService->hasPublicMethod($this->className, $callbackFuncName)) {
506 506
                     throw MappingException::lifecycleCallbackMethodNotFound($this->className, $callbackFuncName);
507 507
                 }
508 508
             }
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
         $fieldName    = $property->getName();
552 552
         $targetEntity = $property->getTargetEntity();
553 553
 
554
-        if (! $targetEntity) {
554
+        if ( ! $targetEntity) {
555 555
             throw MappingException::missingTargetEntity($fieldName);
556 556
         }
557 557
 
@@ -580,7 +580,7 @@  discard block
 block discarded – undo
580 580
                 throw MappingException::illegalToManyIdentifierAssociation($this->className, $property->getName());
581 581
             }
582 582
 
583
-            if (! in_array($property->getName(), $this->identifier, true)) {
583
+            if ( ! in_array($property->getName(), $this->identifier, true)) {
584 584
                 $this->identifier[] = $property->getName();
585 585
             }
586 586
         }
@@ -626,7 +626,7 @@  discard block
 block discarded – undo
626 626
                 /** @var JoinColumnMetadata $joinColumn */
627 627
                 if ($property instanceof OneToOneAssociationMetadata && $this->inheritanceType !== InheritanceType::SINGLE_TABLE) {
628 628
                     if (count($property->getJoinColumns()) === 1) {
629
-                        if (! $property->isPrimaryKey()) {
629
+                        if ( ! $property->isPrimaryKey()) {
630 630
                             $joinColumn->setUnique(true);
631 631
                         }
632 632
                     } else {
@@ -634,13 +634,13 @@  discard block
 block discarded – undo
634 634
                     }
635 635
                 }
636 636
 
637
-                $joinColumn->setTableName(! $this->isMappedSuperclass ? $this->getTableName() : null);
637
+                $joinColumn->setTableName( ! $this->isMappedSuperclass ? $this->getTableName() : null);
638 638
 
639
-                if (! $joinColumn->getColumnName()) {
639
+                if ( ! $joinColumn->getColumnName()) {
640 640
                     $joinColumn->setColumnName($this->namingStrategy->joinColumnName($fieldName, $this->className));
641 641
                 }
642 642
 
643
-                if (! $joinColumn->getReferencedColumnName()) {
643
+                if ( ! $joinColumn->getReferencedColumnName()) {
644 644
                     $joinColumn->setReferencedColumnName($this->namingStrategy->referenceColumnName());
645 645
                 }
646 646
 
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
             }
649 649
 
650 650
             if ($uniqueConstraintColumns) {
651
-                if (! $this->table) {
651
+                if ( ! $this->table) {
652 652
                     throw new RuntimeException(
653 653
                         'ClassMetadata::setTable() has to be called before defining a one to one relationship.'
654 654
                     );
@@ -668,7 +668,7 @@  discard block
 block discarded – undo
668 668
         if ($property->isOrphanRemoval()) {
669 669
             $cascades = $property->getCascade();
670 670
 
671
-            if (! in_array('remove', $cascades, true)) {
671
+            if ( ! in_array('remove', $cascades, true)) {
672 672
                 $cascades[] = 'remove';
673 673
 
674 674
                 $property->setCascade($cascades);
@@ -731,14 +731,14 @@  discard block
 block discarded – undo
731 731
     protected function validateAndCompleteOneToManyMapping(OneToManyAssociationMetadata $property)
732 732
     {
733 733
         // OneToMany MUST have mappedBy
734
-        if (! $property->getMappedBy()) {
734
+        if ( ! $property->getMappedBy()) {
735 735
             throw MappingException::oneToManyRequiresMappedBy($property->getName());
736 736
         }
737 737
 
738 738
         if ($property->isOrphanRemoval()) {
739 739
             $cascades = $property->getCascade();
740 740
 
741
-            if (! in_array('remove', $cascades, true)) {
741
+            if ( ! in_array('remove', $cascades, true)) {
742 742
                 $cascades[] = 'remove';
743 743
 
744 744
                 $property->setCascade($cascades);
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
 
762 762
             $property->setJoinTable($joinTable);
763 763
 
764
-            if (! $joinTable->getName()) {
764
+            if ( ! $joinTable->getName()) {
765 765
                 $joinTableName = $this->namingStrategy->joinTableName(
766 766
                     $property->getSourceEntity(),
767 767
                     $property->getTargetEntity(),
@@ -773,7 +773,7 @@  discard block
 block discarded – undo
773 773
 
774 774
             $selfReferencingEntityWithoutJoinColumns = $property->getSourceEntity() === $property->getTargetEntity() && ! $joinTable->hasColumns();
775 775
 
776
-            if (! $joinTable->getJoinColumns()) {
776
+            if ( ! $joinTable->getJoinColumns()) {
777 777
                 $referencedColumnName = $this->namingStrategy->referenceColumnName();
778 778
                 $sourceReferenceName  = $selfReferencingEntityWithoutJoinColumns ? 'source' : $referencedColumnName;
779 779
                 $columnName           = $this->namingStrategy->joinKeyColumnName($property->getSourceEntity(), $sourceReferenceName);
@@ -786,7 +786,7 @@  discard block
 block discarded – undo
786 786
                 $joinTable->addJoinColumn($joinColumn);
787 787
             }
788 788
 
789
-            if (! $joinTable->getInverseJoinColumns()) {
789
+            if ( ! $joinTable->getInverseJoinColumns()) {
790 790
                 $referencedColumnName = $this->namingStrategy->referenceColumnName();
791 791
                 $targetReferenceName  = $selfReferencingEntityWithoutJoinColumns ? 'target' : $referencedColumnName;
792 792
                 $columnName           = $this->namingStrategy->joinKeyColumnName($property->getTargetEntity(), $targetReferenceName);
@@ -801,13 +801,13 @@  discard block
 block discarded – undo
801 801
 
802 802
             foreach ($joinTable->getJoinColumns() as $joinColumn) {
803 803
                 /** @var JoinColumnMetadata $joinColumn */
804
-                if (! $joinColumn->getReferencedColumnName()) {
804
+                if ( ! $joinColumn->getReferencedColumnName()) {
805 805
                     $joinColumn->setReferencedColumnName($this->namingStrategy->referenceColumnName());
806 806
                 }
807 807
 
808 808
                 $referencedColumnName = $joinColumn->getReferencedColumnName();
809 809
 
810
-                if (! $joinColumn->getColumnName()) {
810
+                if ( ! $joinColumn->getColumnName()) {
811 811
                     $columnName = $this->namingStrategy->joinKeyColumnName(
812 812
                         $property->getSourceEntity(),
813 813
                         $referencedColumnName
@@ -819,13 +819,13 @@  discard block
 block discarded – undo
819 819
 
820 820
             foreach ($joinTable->getInverseJoinColumns() as $inverseJoinColumn) {
821 821
                 /** @var JoinColumnMetadata $inverseJoinColumn */
822
-                if (! $inverseJoinColumn->getReferencedColumnName()) {
822
+                if ( ! $inverseJoinColumn->getReferencedColumnName()) {
823 823
                     $inverseJoinColumn->setReferencedColumnName($this->namingStrategy->referenceColumnName());
824 824
                 }
825 825
 
826 826
                 $referencedColumnName = $inverseJoinColumn->getReferencedColumnName();
827 827
 
828
-                if (! $inverseJoinColumn->getColumnName()) {
828
+                if ( ! $inverseJoinColumn->getColumnName()) {
829 829
                     $columnName = $this->namingStrategy->joinKeyColumnName(
830 830
                         $property->getTargetEntity(),
831 831
                         $referencedColumnName
@@ -859,7 +859,7 @@  discard block
 block discarded – undo
859 859
             throw MappingException::singleIdNotAllowedOnCompositePrimaryKey($this->className);
860 860
         }
861 861
 
862
-        if (! isset($this->identifier[0])) {
862
+        if ( ! isset($this->identifier[0])) {
863 863
             throw MappingException::noIdDefined($this->className);
864 864
         }
865 865
 
@@ -918,7 +918,7 @@  discard block
 block discarded – undo
918 918
             // Association defined as Id field
919 919
             $targetClass = $em->getClassMetadata($property->getTargetEntity());
920 920
 
921
-            if (! $property->isOwningSide()) {
921
+            if ( ! $property->isOwningSide()) {
922 922
                 $property    = $targetClass->getProperty($property->getMappedBy());
923 923
                 $targetClass = $em->getClassMetadata($property->getTargetEntity());
924 924
             }
@@ -932,7 +932,7 @@  discard block
 block discarded – undo
932 932
                 $columnName           = $joinColumn->getColumnName();
933 933
                 $referencedColumnName = $joinColumn->getReferencedColumnName();
934 934
 
935
-                if (! $joinColumn->getType()) {
935
+                if ( ! $joinColumn->getType()) {
936 936
                     $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $em));
937 937
                 }
938 938
 
@@ -966,10 +966,10 @@  discard block
 block discarded – undo
966 966
     {
967 967
         $schema = $this->getSchemaName() === null
968 968
             ? ''
969
-            : $this->getSchemaName() . '_';
969
+            : $this->getSchemaName().'_';
970 970
 
971 971
         // replace dots with underscores because PostgreSQL creates temporary tables in a special schema
972
-        return $schema . $this->getTableName() . '_id_tmp';
972
+        return $schema.$this->getTableName().'_id_tmp';
973 973
     }
974 974
 
975 975
     /**
@@ -1003,7 +1003,7 @@  discard block
 block discarded – undo
1003 1003
      */
1004 1004
     public function setInheritanceType($type) : void
1005 1005
     {
1006
-        if (! $this->isInheritanceType($type)) {
1006
+        if ( ! $this->isInheritanceType($type)) {
1007 1007
             throw MappingException::invalidInheritanceType($this->className, $type);
1008 1008
         }
1009 1009
 
@@ -1021,7 +1021,7 @@  discard block
 block discarded – undo
1021 1021
     {
1022 1022
         $fieldName = $property->getName();
1023 1023
 
1024
-        if (! isset($this->declaredProperties[$fieldName])) {
1024
+        if ( ! isset($this->declaredProperties[$fieldName])) {
1025 1025
             throw MappingException::invalidOverrideFieldName($this->className, $fieldName);
1026 1026
         }
1027 1027
 
@@ -1229,7 +1229,7 @@  discard block
 block discarded – undo
1229 1229
         $inheritedProperty = $declaringClass->isMappedSuperclass ? clone $property : $property;
1230 1230
 
1231 1231
         if ($inheritedProperty instanceof FieldMetadata) {
1232
-            if (! $declaringClass->isMappedSuperclass) {
1232
+            if ( ! $declaringClass->isMappedSuperclass) {
1233 1233
                 $inheritedProperty->setTableName($property->getTableName());
1234 1234
             }
1235 1235
 
@@ -1322,11 +1322,11 @@  discard block
 block discarded – undo
1322 1322
             'method' => $methodName,
1323 1323
         ];
1324 1324
 
1325
-        if (! class_exists($class)) {
1325
+        if ( ! class_exists($class)) {
1326 1326
             throw MappingException::entityListenerClassNotFound($class, $this->className);
1327 1327
         }
1328 1328
 
1329
-        if (! method_exists($class, $methodName)) {
1329
+        if ( ! method_exists($class, $methodName)) {
1330 1330
             throw MappingException::entityListenerMethodNotFound($class, $methodName, $this->className);
1331 1331
         }
1332 1332
 
@@ -1394,7 +1394,7 @@  discard block
 block discarded – undo
1394 1394
             return;
1395 1395
         }
1396 1396
 
1397
-        if (! (class_exists($className) || interface_exists($className))) {
1397
+        if ( ! (class_exists($className) || interface_exists($className))) {
1398 1398
             throw MappingException::invalidClassInDiscriminatorMap($className, $this->className);
1399 1399
         }
1400 1400
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/DiscriminatorColumnMetadataBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@
 block discarded – undo
65 65
         $discriminatorColumn->setType(Type::getType($annotation->type ?? 'string'));
66 66
         $discriminatorColumn->setColumnName($annotation->name);
67 67
 
68
-        if (! empty($annotation->columnDefinition)) {
68
+        if ( ! empty($annotation->columnDefinition)) {
69 69
             $discriminatorColumn->setColumnDefinition($annotation->columnDefinition);
70 70
         }
71 71
 
72
-        if (! empty($annotation->length)) {
72
+        if ( ! empty($annotation->length)) {
73 73
             $discriminatorColumn->setLength($annotation->length);
74 74
         }
75 75
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             return $this->classNames;
214 214
         }
215 215
 
216
-        if (! $this->paths) {
216
+        if ( ! $this->paths) {
217 217
             throw Mapping\MappingException::pathRequired();
218 218
         }
219 219
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         $includedFiles = [];
222 222
 
223 223
         foreach ($this->paths as $path) {
224
-            if (! is_dir($path)) {
224
+            if ( ! is_dir($path)) {
225 225
                 throw Mapping\MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path);
226 226
             }
227 227
 
@@ -230,14 +230,14 @@  discard block
 block discarded – undo
230 230
                     new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS),
231 231
                     RecursiveIteratorIterator::LEAVES_ONLY
232 232
                 ),
233
-                '/^.+' . preg_quote($this->fileExtension) . '$/i',
233
+                '/^.+'.preg_quote($this->fileExtension).'$/i',
234 234
                 RecursiveRegexIterator::GET_MATCH
235 235
             );
236 236
 
237 237
             foreach ($iterator as $file) {
238 238
                 $sourceFile = $file[0];
239 239
 
240
-                if (! preg_match('(^phar:)i', $sourceFile)) {
240
+                if ( ! preg_match('(^phar:)i', $sourceFile)) {
241 241
                     $sourceFile = realpath($sourceFile);
242 242
                 }
243 243
 
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
         if ($parent && $parent->inheritanceType === Mapping\InheritanceType::SINGLE_TABLE) {
416 416
             // Handle the case where a middle mapped super class inherits from a single table inheritance tree.
417 417
             do {
418
-                if (! $parent->isMappedSuperclass) {
418
+                if ( ! $parent->isMappedSuperclass) {
419 419
                     $metadata->setTable($parent->table);
420 420
 
421 421
                     break;
@@ -605,15 +605,15 @@  discard block
 block discarded – undo
605 605
         $fieldMetadata->setVersioned($isVersioned);
606 606
         $fieldMetadata->setColumnName($columnName);
607 607
 
608
-        if (! $metadata->isMappedSuperclass) {
608
+        if ( ! $metadata->isMappedSuperclass) {
609 609
             $fieldMetadata->setTableName($metadata->getTableName());
610 610
         }
611 611
 
612
-        if (! empty($columnAnnot->columnDefinition)) {
612
+        if ( ! empty($columnAnnot->columnDefinition)) {
613 613
             $fieldMetadata->setColumnDefinition($columnAnnot->columnDefinition);
614 614
         }
615 615
 
616
-        if (! empty($columnAnnot->length)) {
616
+        if ( ! empty($columnAnnot->length)) {
617 617
             $fieldMetadata->setLength($columnAnnot->length);
618 618
         }
619 619
 
@@ -674,13 +674,13 @@  discard block
 block discarded – undo
674 674
                             'arguments' => $customGeneratorAnnot->arguments,
675 675
                         ];
676 676
 
677
-                        if (! isset($idGeneratorDefinition['class'])) {
677
+                        if ( ! isset($idGeneratorDefinition['class'])) {
678 678
                             throw new Mapping\MappingException(
679 679
                                 sprintf('Cannot instantiate custom generator, no class has been defined')
680 680
                             );
681 681
                         }
682 682
 
683
-                        if (! class_exists($idGeneratorDefinition['class'])) {
683
+                        if ( ! class_exists($idGeneratorDefinition['class'])) {
684 684
                             throw new Mapping\MappingException(
685 685
                                 sprintf('Cannot instantiate custom generator : %s', var_export($idGeneratorDefinition, true))
686 686
                             );
@@ -722,12 +722,12 @@  discard block
 block discarded – undo
722 722
         $assocMetadata->setOrphanRemoval($oneToOneAnnot->orphanRemoval);
723 723
         $assocMetadata->setFetchMode($this->getFetchMode($className, $oneToOneAnnot->fetch));
724 724
 
725
-        if (! empty($oneToOneAnnot->mappedBy)) {
725
+        if ( ! empty($oneToOneAnnot->mappedBy)) {
726 726
             $assocMetadata->setMappedBy($oneToOneAnnot->mappedBy);
727 727
             $assocMetadata->setOwningSide(false);
728 728
         }
729 729
 
730
-        if (! empty($oneToOneAnnot->inversedBy)) {
730
+        if ( ! empty($oneToOneAnnot->inversedBy)) {
731 731
             $assocMetadata->setInversedBy($oneToOneAnnot->inversedBy);
732 732
         }
733 733
 
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
         $assocMetadata->setCascade($this->getCascade($className, $fieldName, $manyToOneAnnot->cascade));
794 794
         $assocMetadata->setFetchMode($this->getFetchMode($className, $manyToOneAnnot->fetch));
795 795
 
796
-        if (! empty($manyToOneAnnot->inversedBy)) {
796
+        if ( ! empty($manyToOneAnnot->inversedBy)) {
797 797
             $assocMetadata->setInversedBy($manyToOneAnnot->inversedBy);
798 798
         }
799 799
 
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
         $assocMetadata->setOwningSide(false);
865 865
         $assocMetadata->setMappedBy($oneToManyAnnot->mappedBy);
866 866
 
867
-        if (! empty($oneToManyAnnot->indexBy)) {
867
+        if ( ! empty($oneToManyAnnot->indexBy)) {
868 868
             $assocMetadata->setIndexedBy($oneToManyAnnot->indexBy);
869 869
         }
870 870
 
@@ -917,16 +917,16 @@  discard block
 block discarded – undo
917 917
         $assocMetadata->setOrphanRemoval($manyToManyAnnot->orphanRemoval);
918 918
         $assocMetadata->setFetchMode($this->getFetchMode($className, $manyToManyAnnot->fetch));
919 919
 
920
-        if (! empty($manyToManyAnnot->mappedBy)) {
920
+        if ( ! empty($manyToManyAnnot->mappedBy)) {
921 921
             $assocMetadata->setMappedBy($manyToManyAnnot->mappedBy);
922 922
             $assocMetadata->setOwningSide(false);
923 923
         }
924 924
 
925
-        if (! empty($manyToManyAnnot->inversedBy)) {
925
+        if ( ! empty($manyToManyAnnot->inversedBy)) {
926 926
             $assocMetadata->setInversedBy($manyToManyAnnot->inversedBy);
927 927
         }
928 928
 
929
-        if (! empty($manyToManyAnnot->indexBy)) {
929
+        if ( ! empty($manyToManyAnnot->indexBy)) {
930 930
             $assocMetadata->setIndexedBy($manyToManyAnnot->indexBy);
931 931
         }
932 932
 
@@ -978,15 +978,15 @@  discard block
 block discarded – undo
978 978
         $fieldMetadata->setType(Type::getType($columnAnnot->type));
979 979
         $fieldMetadata->setVersioned($isVersioned);
980 980
 
981
-        if (! empty($columnAnnot->name)) {
981
+        if ( ! empty($columnAnnot->name)) {
982 982
             $fieldMetadata->setColumnName($columnAnnot->name);
983 983
         }
984 984
 
985
-        if (! empty($columnAnnot->columnDefinition)) {
985
+        if ( ! empty($columnAnnot->columnDefinition)) {
986 986
             $fieldMetadata->setColumnDefinition($columnAnnot->columnDefinition);
987 987
         }
988 988
 
989
-        if (! empty($columnAnnot->length)) {
989
+        if ( ! empty($columnAnnot->length)) {
990 990
             $fieldMetadata->setLength($columnAnnot->length);
991 991
         }
992 992
 
@@ -1010,11 +1010,11 @@  discard block
 block discarded – undo
1010 1010
     ) : Mapping\JoinTableMetadata {
1011 1011
         $joinTable = new Mapping\JoinTableMetadata();
1012 1012
 
1013
-        if (! empty($joinTableAnnot->name)) {
1013
+        if ( ! empty($joinTableAnnot->name)) {
1014 1014
             $joinTable->setName($joinTableAnnot->name);
1015 1015
         }
1016 1016
 
1017
-        if (! empty($joinTableAnnot->schema)) {
1017
+        if ( ! empty($joinTableAnnot->schema)) {
1018 1018
             $joinTable->setSchema($joinTableAnnot->schema);
1019 1019
         }
1020 1020
 
@@ -1042,22 +1042,22 @@  discard block
 block discarded – undo
1042 1042
         $joinColumn = new Mapping\JoinColumnMetadata();
1043 1043
 
1044 1044
         // @todo Remove conditionals for name and referencedColumnName once naming strategy is brought into drivers
1045
-        if (! empty($joinColumnAnnot->name)) {
1045
+        if ( ! empty($joinColumnAnnot->name)) {
1046 1046
             $joinColumn->setColumnName($joinColumnAnnot->name);
1047 1047
         }
1048 1048
 
1049
-        if (! empty($joinColumnAnnot->referencedColumnName)) {
1049
+        if ( ! empty($joinColumnAnnot->referencedColumnName)) {
1050 1050
             $joinColumn->setReferencedColumnName($joinColumnAnnot->referencedColumnName);
1051 1051
         }
1052 1052
 
1053 1053
         $joinColumn->setNullable($joinColumnAnnot->nullable);
1054 1054
         $joinColumn->setUnique($joinColumnAnnot->unique);
1055 1055
 
1056
-        if (! empty($joinColumnAnnot->fieldName)) {
1056
+        if ( ! empty($joinColumnAnnot->fieldName)) {
1057 1057
             $joinColumn->setAliasedName($joinColumnAnnot->fieldName);
1058 1058
         }
1059 1059
 
1060
-        if (! empty($joinColumnAnnot->columnDefinition)) {
1060
+        if ( ! empty($joinColumnAnnot->columnDefinition)) {
1061 1061
             $joinColumn->setColumnDefinition($joinColumnAnnot->columnDefinition);
1062 1062
         }
1063 1063
 
@@ -1128,7 +1128,7 @@  discard block
 block discarded – undo
1128 1128
             ];
1129 1129
 
1130 1130
             foreach ($entityListenersAnnot->value as $listenerClassName) {
1131
-                if (! class_exists($listenerClassName)) {
1131
+                if ( ! class_exists($listenerClassName)) {
1132 1132
                     throw Mapping\MappingException::entityListenerClassNotFound(
1133 1133
                         $listenerClassName,
1134 1134
                         $metadata->getClassName()
@@ -1170,7 +1170,7 @@  discard block
 block discarded – undo
1170 1170
                 $fieldName = $associationOverride->name;
1171 1171
                 $property  = $metadata->getProperty($fieldName);
1172 1172
 
1173
-                if (! $property) {
1173
+                if ( ! $property) {
1174 1174
                     throw Mapping\MappingException::invalidOverrideFieldName($metadata->getClassName(), $fieldName);
1175 1175
                 }
1176 1176
 
@@ -1204,7 +1204,7 @@  discard block
 block discarded – undo
1204 1204
                 // Check for fetch
1205 1205
                 if ($associationOverride->fetch) {
1206 1206
                     $override->setFetchMode(
1207
-                        constant(Mapping\FetchMode::class . '::' . $associationOverride->fetch)
1207
+                        constant(Mapping\FetchMode::class.'::'.$associationOverride->fetch)
1208 1208
                     );
1209 1209
                 }
1210 1210
 
@@ -1271,7 +1271,7 @@  discard block
 block discarded – undo
1271 1271
     {
1272 1272
         $fetchModeConstant = sprintf('%s::%s', Mapping\FetchMode::class, $fetchMode);
1273 1273
 
1274
-        if (! defined($fetchModeConstant)) {
1274
+        if ( ! defined($fetchModeConstant)) {
1275 1275
             throw Mapping\MappingException::invalidFetchMode($className, $fetchMode);
1276 1276
         }
1277 1277
 
@@ -1286,7 +1286,7 @@  discard block
 block discarded – undo
1286 1286
         $classAnnotations = $this->reader->getClassAnnotations($reflectionClass);
1287 1287
 
1288 1288
         foreach ($classAnnotations as $key => $annot) {
1289
-            if (! is_numeric($key)) {
1289
+            if ( ! is_numeric($key)) {
1290 1290
                 continue;
1291 1291
             }
1292 1292
 
@@ -1304,7 +1304,7 @@  discard block
 block discarded – undo
1304 1304
         $propertyAnnotations = $this->reader->getPropertyAnnotations($reflectionProperty);
1305 1305
 
1306 1306
         foreach ($propertyAnnotations as $key => $annot) {
1307
-            if (! is_numeric($key)) {
1307
+            if ( ! is_numeric($key)) {
1308 1308
                 continue;
1309 1309
             }
1310 1310
 
@@ -1322,7 +1322,7 @@  discard block
 block discarded – undo
1322 1322
         $methodAnnotations = $this->reader->getMethodAnnotations($reflectionMethod);
1323 1323
 
1324 1324
         foreach ($methodAnnotations as $key => $annot) {
1325
-            if (! is_numeric($key)) {
1325
+            if ( ! is_numeric($key)) {
1326 1326
                 continue;
1327 1327
             }
1328 1328
 
Please login to merge, or discard this patch.