Completed
Pull Request — master (#7902)
by
unknown
63:54
created
lib/Doctrine/ORM/Mapping/Factory/RuntimeClassMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     protected function getReflectionService() : ReflectionService
20 20
     {
21
-        if (! $this->reflectionService) {
21
+        if ( ! $this->reflectionService) {
22 22
             $this->reflectionService = new RuntimeReflectionService();
23 23
         }
24 24
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/AttachEntityListenersListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         /** @var Mapping\ClassMetadata $metadata */
46 46
         $metadata = $event->getClassMetadata();
47 47
 
48
-        if (! isset($this->entityListeners[$metadata->getClassName()])) {
48
+        if ( ! isset($this->entityListeners[$metadata->getClassName()])) {
49 49
             return;
50 50
         }
51 51
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/TableMetadataBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@
 block discarded – undo
54 54
             return $tableMetadata;
55 55
         }
56 56
 
57
-        if (! empty($this->tableAnnotation->name)) {
57
+        if ( ! empty($this->tableAnnotation->name)) {
58 58
             $tableMetadata->setName($this->tableAnnotation->name);
59 59
         }
60 60
 
61
-        if (! empty($this->tableAnnotation->schema)) {
61
+        if ( ! empty($this->tableAnnotation->schema)) {
62 62
             $tableMetadata->setSchema($this->tableAnnotation->schema);
63 63
         }
64 64
 
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/Utility/PersisterHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,14 +58,14 @@
 block discarded – undo
58 58
 
59 59
         // iterate over association mappings
60 60
         foreach ($class->getPropertiesIterator() as $association) {
61
-            if (! ($association instanceof AssociationMetadata)) {
61
+            if ( ! ($association instanceof AssociationMetadata)) {
62 62
                 continue;
63 63
             }
64 64
 
65 65
             // resolve join columns over to-one or to-many
66 66
             $targetClass = $em->getClassMetadata($association->getTargetEntity());
67 67
 
68
-            if (! $association->isOwningSide()) {
68
+            if ( ! $association->isOwningSide()) {
69 69
                 $association = $targetClass->getProperty($association->getMappedBy());
70 70
                 $targetClass = $em->getClassMetadata($association->getTargetEntity());
71 71
             }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
         }
55 55
 
56 56
         foreach ($metadata->getPropertiesIterator() as $name => $association) {
57
-            if (! isset($data[$name]) || $association instanceof FieldMetadata) {
57
+            if ( ! isset($data[$name]) || $association instanceof FieldMetadata) {
58 58
                 continue;
59 59
             }
60 60
 
61
-            if (! $association instanceof ToOneAssociationMetadata) {
61
+            if ( ! $association instanceof ToOneAssociationMetadata) {
62 62
                 unset($data[$name]);
63 63
 
64 64
                 continue;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $targetClassMetadata = $this->em->getClassMetadata($targetEntity);
69 69
             $targetPersister     = $this->uow->getEntityPersister($targetEntity);
70 70
 
71
-            if (! $association->getCache()) {
71
+            if ( ! $association->getCache()) {
72 72
                 $owningAssociation = ! $association->isOwningSide()
73 73
                     ? $targetClassMetadata->getProperty($association->getMappedBy())
74 74
                     : $association;
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 continue;
117 117
             }
118 118
 
119
-            if (! $association->isPrimaryKey()) {
119
+            if ( ! $association->isPrimaryKey()) {
120 120
                 $targetClass = StaticClassNameConverter::getClass($data[$name]);
121 121
                 $targetId    = $this->uow->getEntityIdentifier($data[$name]);
122 122
                 $data[$name] = new AssociationCacheEntry($targetClass, $targetId);
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                 ($association instanceof OneToOneAssociationMetadata && ! $association->isOwningSide())
166 166
             );
167 167
 
168
-            if (! $isEagerLoad) {
168
+            if ( ! $isEagerLoad) {
169 169
                 $data[$name] = $this->em->getReference($assocClass, $assocId);
170 170
 
171 171
                 continue;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/JoinTableMetadataBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
         $joinTableMetadata->setName($namingStrategy->joinTableName($souceEntity, $this->targetEntity, $this->fieldName));
83 83
 
84 84
         if ($this->joinTableAnnotation !== null) {
85
-            if (! empty($this->joinTableAnnotation->name)) {
85
+            if ( ! empty($this->joinTableAnnotation->name)) {
86 86
                 $joinTableMetadata->setName($this->joinTableAnnotation->name);
87 87
             }
88 88
 
89
-            if (! empty($this->joinTableAnnotation->schema)) {
89
+            if ( ! empty($this->joinTableAnnotation->schema)) {
90 90
                 $joinTableMetadata->setSchema($this->joinTableAnnotation->schema);
91 91
             }
92 92
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         $selfReferenceEntity = $souceEntity === $this->targetEntity;
124 124
 
125
-        if (! $joinTableMetadata->getJoinColumns()) {
125
+        if ( ! $joinTableMetadata->getJoinColumns()) {
126 126
             $joinColumnAnnotation = new Annotation\JoinColumn();
127 127
 
128 128
             $joinColumnAnnotation->onDelete             = 'CASCADE';
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             $joinTableMetadata->addJoinColumn($this->joinColumnMetadataBuilder->build());
138 138
         }
139 139
 
140
-        if (! $joinTableMetadata->getInverseJoinColumns()) {
140
+        if ( ! $joinTableMetadata->getInverseJoinColumns()) {
141 141
             $joinColumnAnnotation = new Annotation\JoinColumn();
142 142
 
143 143
             $joinColumnAnnotation->onDelete             = 'CASCADE';
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/JoinColumnMetadataBuilder.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $namingStrategy     = $this->metadataBuildingContext->getNamingStrategy();
60 60
         $joinColumnMetadata = new Mapping\JoinColumnMetadata();
61 61
 
62
-        if (! $this->componentMetadata->isMappedSuperclass) {
62
+        if ( ! $this->componentMetadata->isMappedSuperclass) {
63 63
             $joinColumnMetadata->setTableName($this->componentMetadata->getTableName());
64 64
         }
65 65
 
@@ -73,19 +73,19 @@  discard block
 block discarded – undo
73 73
         $joinColumnMetadata->setNullable($this->joinColumnAnnotation->nullable);
74 74
         $joinColumnMetadata->setUnique($this->joinColumnAnnotation->unique);
75 75
 
76
-        if (! empty($this->joinColumnAnnotation->name)) {
76
+        if ( ! empty($this->joinColumnAnnotation->name)) {
77 77
             $joinColumnMetadata->setColumnName($this->joinColumnAnnotation->name);
78 78
         }
79 79
 
80
-        if (! empty($this->joinColumnAnnotation->referencedColumnName)) {
80
+        if ( ! empty($this->joinColumnAnnotation->referencedColumnName)) {
81 81
             $joinColumnMetadata->setReferencedColumnName($this->joinColumnAnnotation->referencedColumnName);
82 82
         }
83 83
 
84
-        if (! empty($this->joinColumnAnnotation->fieldName)) {
84
+        if ( ! empty($this->joinColumnAnnotation->fieldName)) {
85 85
             $joinColumnMetadata->setAliasedName($this->joinColumnAnnotation->fieldName);
86 86
         }
87 87
 
88
-        if (! empty($this->joinColumnAnnotation->columnDefinition)) {
88
+        if ( ! empty($this->joinColumnAnnotation->columnDefinition)) {
89 89
             $joinColumnMetadata->setColumnDefinition($this->joinColumnAnnotation->columnDefinition);
90 90
         }
91 91
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Mapping/Builder/FieldMetadataBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                     break;
123 123
 
124 124
                 default:
125
-                    if (! isset($fieldOptions['default'])) {
125
+                    if ( ! isset($fieldOptions['default'])) {
126 126
                         throw Mapping\MappingException::unsupportedOptimisticLockingType($fieldType);
127 127
                     }
128 128
 
@@ -145,15 +145,15 @@  discard block
 block discarded – undo
145 145
         $fieldMetadata->setNullable($this->columnAnnotation->nullable);
146 146
         $fieldMetadata->setUnique($this->columnAnnotation->unique);
147 147
 
148
-        if (! $this->componentMetadata->isMappedSuperclass) {
148
+        if ( ! $this->componentMetadata->isMappedSuperclass) {
149 149
             $fieldMetadata->setTableName($this->componentMetadata->getTableName());
150 150
         }
151 151
 
152
-        if (! empty($this->columnAnnotation->columnDefinition)) {
152
+        if ( ! empty($this->columnAnnotation->columnDefinition)) {
153 153
             $fieldMetadata->setColumnDefinition($this->columnAnnotation->columnDefinition);
154 154
         }
155 155
 
156
-        if (! empty($this->columnAnnotation->length)) {
156
+        if ( ! empty($this->columnAnnotation->length)) {
157 157
             $fieldMetadata->setLength($this->columnAnnotation->length);
158 158
         }
159 159
 
Please login to merge, or discard this patch.