@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function isTransient($className) : bool |
133 | 133 | { |
134 | - if (! $this->initialized) { |
|
134 | + if ( ! $this->initialized) { |
|
135 | 135 | $this->initialize(); |
136 | 136 | } |
137 | 137 | |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | */ |
180 | 180 | public function getAllMetadata() : array |
181 | 181 | { |
182 | - if (! $this->initialized) { |
|
182 | + if ( ! $this->initialized) { |
|
183 | 183 | $this->initialize(); |
184 | 184 | } |
185 | 185 | |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | |
249 | 249 | try { |
250 | 250 | if ($this->cacheDriver) { |
251 | - $cached = $this->cacheDriver->fetch($entityClassName . $this->cacheSalt); |
|
251 | + $cached = $this->cacheDriver->fetch($entityClassName.$this->cacheSalt); |
|
252 | 252 | |
253 | 253 | if ($cached instanceof ClassMetadata) { |
254 | 254 | $this->loadedMetadata[$entityClassName] = $cached; |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | foreach ($this->loadMetadata($entityClassName, $metadataBuildingContext) as $loadedClass) { |
259 | 259 | $loadedClassName = $loadedClass->getClassName(); |
260 | 260 | |
261 | - $this->cacheDriver->save($loadedClassName . $this->cacheSalt, $loadedClass, null); |
|
261 | + $this->cacheDriver->save($loadedClassName.$this->cacheSalt, $loadedClass, null); |
|
262 | 262 | } |
263 | 263 | } |
264 | 264 | } else { |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | } catch (PersistenceMappingException $loadingException) { |
268 | 268 | $fallbackMetadataResponse = $this->onNotFoundMetadata($entityClassName, $metadataBuildingContext); |
269 | 269 | |
270 | - if (! $fallbackMetadataResponse) { |
|
270 | + if ( ! $fallbackMetadataResponse) { |
|
271 | 271 | throw $loadingException; |
272 | 272 | } |
273 | 273 | |
@@ -303,7 +303,7 @@ discard block |
||
303 | 303 | */ |
304 | 304 | protected function loadMetadata(string $name, ClassMetadataBuildingContext $metadataBuildingContext) : array |
305 | 305 | { |
306 | - if (! $this->initialized) { |
|
306 | + if ( ! $this->initialized) { |
|
307 | 307 | $this->initialize(); |
308 | 308 | } |
309 | 309 | |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | $parentClasses = []; |
350 | 350 | |
351 | 351 | foreach (array_reverse($this->getReflectionService()->getParentClasses($name)) as $parentClass) { |
352 | - if (! $this->getDriver()->isTransient($parentClass)) { |
|
352 | + if ( ! $this->getDriver()->isTransient($parentClass)) { |
|
353 | 353 | $parentClasses[] = $parentClass; |
354 | 354 | } |
355 | 355 | } |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | string $className, |
365 | 365 | ClassMetadataBuildingContext $metadataBuildingContext |
366 | 366 | ) : ?ClassMetadata { |
367 | - if (! $this->evm->hasListeners(Events::onClassMetadataNotFound)) { |
|
367 | + if ( ! $this->evm->hasListeners(Events::onClassMetadataNotFound)) { |
|
368 | 368 | return null; |
369 | 369 | } |
370 | 370 | |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | */ |
411 | 411 | protected function validateRuntimeMetadata(ClassMetadata $class, ?ClassMetadata $parent = null) : void |
412 | 412 | { |
413 | - if (! $class->getReflectionClass()) { |
|
413 | + if ( ! $class->getReflectionClass()) { |
|
414 | 414 | // only validate if there is a reflection class instance |
415 | 415 | return; |
416 | 416 | } |
@@ -420,13 +420,13 @@ discard block |
||
420 | 420 | $class->validateLifecycleCallbacks($this->getReflectionService()); |
421 | 421 | |
422 | 422 | // verify inheritance |
423 | - if (! $class->isMappedSuperclass && $class->inheritanceType !== InheritanceType::NONE) { |
|
424 | - if (! $parent) { |
|
425 | - if (! $class->discriminatorMap) { |
|
423 | + if ( ! $class->isMappedSuperclass && $class->inheritanceType !== InheritanceType::NONE) { |
|
424 | + if ( ! $parent) { |
|
425 | + if ( ! $class->discriminatorMap) { |
|
426 | 426 | throw MappingException::missingDiscriminatorMap($class->getClassName()); |
427 | 427 | } |
428 | 428 | |
429 | - if (! $class->discriminatorColumn) { |
|
429 | + if ( ! $class->discriminatorColumn) { |
|
430 | 430 | throw MappingException::missingDiscriminatorColumn($class->getClassName()); |
431 | 431 | } |
432 | 432 | } |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | private function completeIdentifierGeneratorMappings(ClassMetadata $class) : void |
495 | 495 | { |
496 | 496 | foreach ($class->getDeclaredPropertiesIterator() as $property) { |
497 | - if (! $property instanceof FieldMetadata /*&& ! $property instanceof AssociationMetadata*/) { |
|
497 | + if ( ! $property instanceof FieldMetadata /*&& ! $property instanceof AssociationMetadata*/) { |
|
498 | 498 | continue; |
499 | 499 | } |
500 | 500 | |
@@ -504,7 +504,7 @@ discard block |
||
504 | 504 | |
505 | 505 | private function completeFieldIdentifierGeneratorMapping(FieldMetadata $field) |
506 | 506 | { |
507 | - if (! $field->hasValueGenerator()) { |
|
507 | + if ( ! $field->hasValueGenerator()) { |
|
508 | 508 | return; |
509 | 509 | } |
510 | 510 | |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | |
564 | 564 | private function getTargetPlatform() : Platforms\AbstractPlatform |
565 | 565 | { |
566 | - if (! $this->targetPlatform) { |
|
566 | + if ( ! $this->targetPlatform) { |
|
567 | 567 | $this->targetPlatform = $this->em->getConnection()->getDatabasePlatform(); |
568 | 568 | } |
569 | 569 |