Completed
Pull Request — master (#968)
by Michael
14:42
created
src/Metadata/Driver/DoctrineTypeDriver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
 {
17 17
     protected function setDiscriminator(DoctrineClassMetadata $doctrineMetadata, ClassMetadata $classMetadata): void
18 18
     {
19
-        if (empty($classMetadata->discriminatorMap) && !$classMetadata->discriminatorDisabled
20
-            && !empty($doctrineMetadata->discriminatorMap) && $doctrineMetadata->isRootEntity()
19
+        if (empty($classMetadata->discriminatorMap) && ! $classMetadata->discriminatorDisabled
20
+            && ! empty($doctrineMetadata->discriminatorMap) && $doctrineMetadata->isRootEntity()
21 21
         ) {
22 22
             $classMetadata->setDiscriminator(
23 23
                 $doctrineMetadata->discriminatorColumn['name'],
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
             // For inheritance schemes, we cannot add any type as we would only add the super-type of the hierarchy.
42 42
             // On serialization, this would lead to only the supertype being serialized, and properties of subtypes
43 43
             // being ignored.
44
-            if ($targetMetadata instanceof DoctrineClassMetadata && !$targetMetadata->isInheritanceTypeNone()) {
44
+            if ($targetMetadata instanceof DoctrineClassMetadata && ! $targetMetadata->isInheritanceTypeNone()) {
45 45
                 return;
46 46
             }
47 47
 
48
-            if (!$doctrineMetadata->isSingleValuedAssociation($propertyName)) {
48
+            if ( ! $doctrineMetadata->isSingleValuedAssociation($propertyName)) {
49 49
                 $targetEntity = "ArrayCollection<{$targetEntity}>";
50 50
             }
51 51
 
Please login to merge, or discard this patch.
src/Metadata/VirtualPropertyMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
             $this->readOnly,
86 86
             $this->class,
87 87
             $this->name
88
-            )         = $unserialized;
88
+            ) = $unserialized;
89 89
 
90 90
         if (isset($unserialized['excludeIf'])) {
91 91
             $this->excludeIf = $unserialized['excludeIf'];
Please login to merge, or discard this patch.
src/Metadata/ExpressionPropertyMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
             $this->readOnly,
85 85
             $this->class,
86 86
             $this->name
87
-            )         = $unserialized;
87
+            ) = $unserialized;
88 88
 
89 89
         if (isset($unserialized['excludeIf'])) {
90 90
             $this->excludeIf = $unserialized['excludeIf'];
Please login to merge, or discard this patch.