@@ -16,8 +16,8 @@ discard block |
||
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 |
||
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 |
@@ -85,7 +85,7 @@ |
||
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']; |
@@ -84,7 +84,7 @@ |
||
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']; |