@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Exception; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Exception; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Exception; |
6 | 6 | |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | public static function create() : self |
12 | 12 | { |
13 | 13 | return new self( |
14 | - "It's a requirement to specify a Metadata Driver and pass it " . |
|
14 | + "It's a requirement to specify a Metadata Driver and pass it ". |
|
15 | 15 | 'to Doctrine\\ORM\\Configuration::setMetadataDriverImpl().' |
16 | 16 | ); |
17 | 17 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Exception; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Mapping\Exception; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Mapping\Exception; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Mapping\Exception; |
6 | 6 | |
@@ -10,6 +10,6 @@ discard block |
||
10 | 10 | { |
11 | 11 | public static function create(string $generatorType) : self |
12 | 12 | { |
13 | - return new self('Unknown generator type: ' . $generatorType); |
|
13 | + return new self('Unknown generator type: '.$generatorType); |
|
14 | 14 | } |
15 | 15 | } |
@@ -1,6 +1,6 @@ discard block |
||
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 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | string $className, |
90 | 90 | ClassMetadataBuildingContext $metadataBuildingContext |
91 | 91 | ) : ?ClassMetadata { |
92 | - if (! $this->evm->hasListeners(Events::onClassMetadataNotFound)) { |
|
92 | + if ( ! $this->evm->hasListeners(Events::onClassMetadataNotFound)) { |
|
93 | 93 | return null; |
94 | 94 | } |
95 | 95 | |
@@ -150,12 +150,12 @@ discard block |
||
150 | 150 | $classMetadata->setCache(clone $parent->getCache()); |
151 | 151 | } |
152 | 152 | |
153 | - if (! empty($parent->entityListeners) && empty($classMetadata->entityListeners)) { |
|
153 | + if ( ! empty($parent->entityListeners) && empty($classMetadata->entityListeners)) { |
|
154 | 154 | $classMetadata->entityListeners = $parent->entityListeners; |
155 | 155 | } |
156 | 156 | } |
157 | 157 | |
158 | - if (! $classMetadata->discriminatorMap && $classMetadata->inheritanceType !== InheritanceType::NONE && $classMetadata->isRootEntity()) { |
|
158 | + if ( ! $classMetadata->discriminatorMap && $classMetadata->inheritanceType !== InheritanceType::NONE && $classMetadata->isRootEntity()) { |
|
159 | 159 | $this->addDefaultDiscriminatorMap($classMetadata); |
160 | 160 | } |
161 | 161 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | |
176 | 176 | protected function completeRuntimeMetadata(ClassMetadata $class, ?ClassMetadata $parent = null) : void |
177 | 177 | { |
178 | - if (! $parent || ! $parent->isMappedSuperclass) { |
|
178 | + if ( ! $parent || ! $parent->isMappedSuperclass) { |
|
179 | 179 | return; |
180 | 180 | } |
181 | 181 | |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | continue; |
194 | 194 | } |
195 | 195 | |
196 | - if (! ($property instanceof ToOneAssociationMetadata)) { |
|
196 | + if ( ! ($property instanceof ToOneAssociationMetadata)) { |
|
197 | 197 | continue; |
198 | 198 | } |
199 | 199 | |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | */ |
213 | 213 | protected function validateRuntimeMetadata(ClassMetadata $class, ?ClassMetadata $parent = null) : void |
214 | 214 | { |
215 | - if (! $class->getReflectionClass()) { |
|
215 | + if ( ! $class->getReflectionClass()) { |
|
216 | 216 | // only validate if there is a reflection class instance |
217 | 217 | return; |
218 | 218 | } |
@@ -222,13 +222,13 @@ discard block |
||
222 | 222 | $class->validateLifecycleCallbacks($this->getReflectionService()); |
223 | 223 | |
224 | 224 | // verify inheritance |
225 | - if (! $class->isMappedSuperclass && $class->inheritanceType !== InheritanceType::NONE) { |
|
226 | - if (! $parent) { |
|
227 | - if (! $class->discriminatorMap) { |
|
225 | + if ( ! $class->isMappedSuperclass && $class->inheritanceType !== InheritanceType::NONE) { |
|
226 | + if ( ! $parent) { |
|
227 | + if ( ! $class->discriminatorMap) { |
|
228 | 228 | throw MappingException::missingDiscriminatorMap($class->getClassName()); |
229 | 229 | } |
230 | 230 | |
231 | - if (! $class->discriminatorColumn) { |
|
231 | + if ( ! $class->discriminatorColumn) { |
|
232 | 232 | throw MappingException::missingDiscriminatorColumn($class->getClassName()); |
233 | 233 | } |
234 | 234 | } |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | private function completeIdentifierGeneratorMappings(ClassMetadata $class) : void |
350 | 350 | { |
351 | 351 | foreach ($class->getDeclaredPropertiesIterator() as $property) { |
352 | - if (! $property instanceof FieldMetadata /*&& ! $property instanceof AssocationMetadata*/) { |
|
352 | + if ( ! $property instanceof FieldMetadata /*&& ! $property instanceof AssocationMetadata*/) { |
|
353 | 353 | continue; |
354 | 354 | } |
355 | 355 | |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | private function completeFieldIdentifierGeneratorMapping(FieldMetadata $field) |
361 | 361 | { |
362 | - if (! $field->hasValueGenerator()) { |
|
362 | + if ( ! $field->hasValueGenerator()) { |
|
363 | 363 | return; |
364 | 364 | } |
365 | 365 | |
@@ -411,10 +411,10 @@ discard block |
||
411 | 411 | |
412 | 412 | case GeneratorType::CUSTOM: |
413 | 413 | $definition = $generator->getDefinition(); |
414 | - if (! isset($definition['class'])) { |
|
414 | + if ( ! isset($definition['class'])) { |
|
415 | 415 | throw InvalidCustomGenerator::onClassNotConfigured(); |
416 | 416 | } |
417 | - if (! class_exists($definition['class'])) { |
|
417 | + if ( ! class_exists($definition['class'])) { |
|
418 | 418 | throw InvalidCustomGenerator::onMissingClass($definition); |
419 | 419 | } |
420 | 420 | |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | |
449 | 449 | private function getTargetPlatform() : Platforms\AbstractPlatform |
450 | 450 | { |
451 | - if (! $this->targetPlatform) { |
|
451 | + if ( ! $this->targetPlatform) { |
|
452 | 452 | $this->targetPlatform = $this->em->getConnection()->getDatabasePlatform(); |
453 | 453 | } |
454 | 454 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\ORM\Repository\Exception; |
6 | 6 | |
@@ -14,13 +14,13 @@ discard block |
||
14 | 14 | string $method |
15 | 15 | ) : self { |
16 | 16 | return new self( |
17 | - "Entity '" . $entityName . "' has no field '" . $fieldName . "'. " . |
|
18 | - "You can therefore not call '" . $method . "' on the entities' repository." |
|
17 | + "Entity '".$entityName."' has no field '".$fieldName."'. ". |
|
18 | + "You can therefore not call '".$method."' on the entities' repository." |
|
19 | 19 | ); |
20 | 20 | } |
21 | 21 | |
22 | 22 | public static function onMissingParameter(string $methodName) : self |
23 | 23 | { |
24 | - return new self("You need to pass a parameter to '" . $methodName . "'"); |
|
24 | + return new self("You need to pass a parameter to '".$methodName."'"); |
|
25 | 25 | } |
26 | 26 | } |