@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | */ |
109 | 109 | protected function onNotFoundMetadata($className) |
110 | 110 | { |
111 | - if (! $this->evm->hasListeners(Events::onClassMetadataNotFound)) { |
|
111 | + if ( ! $this->evm->hasListeners(Events::onClassMetadataNotFound)) { |
|
112 | 112 | return; |
113 | 113 | } |
114 | 114 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | $this->completeIdGeneratorMapping($class); |
166 | 166 | } |
167 | 167 | |
168 | - if (!$class->isMappedSuperclass) { |
|
168 | + if ( ! $class->isMappedSuperclass) { |
|
169 | 169 | foreach ($class->embeddedClasses as $property => $embeddableClass) { |
170 | 170 | |
171 | 171 | if (isset($embeddableClass['inherited'])) { |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | |
191 | 191 | $identifier = $embeddableMetadata->getIdentifier(); |
192 | 192 | |
193 | - if (! empty($identifier)) { |
|
193 | + if ( ! empty($identifier)) { |
|
194 | 194 | $this->inheritIdGeneratorMapping($class, $embeddableMetadata); |
195 | 195 | } |
196 | 196 | |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | */ |
261 | 261 | protected function validateRuntimeMetadata($class, $parent) |
262 | 262 | { |
263 | - if ( ! $class->reflClass ) { |
|
263 | + if ( ! $class->reflClass) { |
|
264 | 264 | // only validate if there is a reflection class instance |
265 | 265 | return; |
266 | 266 | } |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | $class->validateLifecycleCallbacks($this->getReflectionService()); |
271 | 271 | |
272 | 272 | // verify inheritance |
273 | - if ( ! $class->isMappedSuperclass && !$class->isInheritanceTypeNone()) { |
|
273 | + if ( ! $class->isMappedSuperclass && ! $class->isInheritanceTypeNone()) { |
|
274 | 274 | if ( ! $parent) { |
275 | 275 | if (count($class->discriminatorMap) == 0) { |
276 | 276 | throw MappingException::missingDiscriminatorMap($class->name); |
@@ -404,10 +404,10 @@ discard block |
||
404 | 404 | private function addInheritedFields(ClassMetadata $subClass, ClassMetadata $parentClass) |
405 | 405 | { |
406 | 406 | foreach ($parentClass->fieldMappings as $mapping) { |
407 | - if (! isset($mapping['inherited']) && ! $parentClass->isMappedSuperclass) { |
|
407 | + if ( ! isset($mapping['inherited']) && ! $parentClass->isMappedSuperclass) { |
|
408 | 408 | $mapping['inherited'] = $parentClass->name; |
409 | 409 | } |
410 | - if (! isset($mapping['declared'])) { |
|
410 | + if ( ! isset($mapping['declared'])) { |
|
411 | 411 | $mapping['declared'] = $parentClass->name; |
412 | 412 | } |
413 | 413 | $subClass->addInheritedFieldMapping($mapping); |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | { |
432 | 432 | foreach ($parentClass->associationMappings as $field => $mapping) { |
433 | 433 | if ($parentClass->isMappedSuperclass) { |
434 | - if ($mapping['type'] & ClassMetadata::TO_MANY && !$mapping['isOwningSide']) { |
|
434 | + if ($mapping['type'] & ClassMetadata::TO_MANY && ! $mapping['isOwningSide']) { |
|
435 | 435 | throw MappingException::illegalToManyAssociationOnMappedSuperclass($parentClass->name, $field); |
436 | 436 | } |
437 | 437 | $mapping['sourceEntity'] = $subClass->name; |
@@ -480,11 +480,11 @@ discard block |
||
480 | 480 | |
481 | 481 | $parentClass->mapEmbedded( |
482 | 482 | [ |
483 | - 'fieldName' => $prefix . '.' . $property, |
|
483 | + 'fieldName' => $prefix.'.'.$property, |
|
484 | 484 | 'class' => $embeddableMetadata->name, |
485 | 485 | 'columnPrefix' => $embeddableClass['columnPrefix'], |
486 | 486 | 'declaredField' => $embeddableClass['declaredField'] |
487 | - ? $prefix . '.' . $embeddableClass['declaredField'] |
|
487 | + ? $prefix.'.'.$embeddableClass['declaredField'] |
|
488 | 488 | : $prefix, |
489 | 489 | 'originalField' => $embeddableClass['originalField'] ?: $property, |
490 | 490 | ] |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | */ |
503 | 503 | private function addInheritedIndexes(ClassMetadata $subClass, ClassMetadata $parentClass) |
504 | 504 | { |
505 | - if (! $parentClass->isMappedSuperclass) { |
|
505 | + if ( ! $parentClass->isMappedSuperclass) { |
|
506 | 506 | return; |
507 | 507 | } |
508 | 508 | |
@@ -710,14 +710,14 @@ discard block |
||
710 | 710 | throw new ORMException("Can't instantiate custom generator : no custom generator definition"); |
711 | 711 | } |
712 | 712 | if ( ! class_exists($definition['class'])) { |
713 | - throw new ORMException("Can't instantiate custom generator : " . |
|
713 | + throw new ORMException("Can't instantiate custom generator : ". |
|
714 | 714 | $definition['class']); |
715 | 715 | } |
716 | 716 | $class->setIdGenerator(new $definition['class']); |
717 | 717 | break; |
718 | 718 | |
719 | 719 | default: |
720 | - throw new ORMException("Unknown generator type: " . $class->generatorType); |
|
720 | + throw new ORMException("Unknown generator type: ".$class->generatorType); |
|
721 | 721 | } |
722 | 722 | } |
723 | 723 | |
@@ -767,7 +767,7 @@ discard block |
||
767 | 767 | */ |
768 | 768 | protected function getFqcnFromAlias($namespaceAlias, $simpleClassName) |
769 | 769 | { |
770 | - return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName; |
|
770 | + return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias).'\\'.$simpleClassName; |
|
771 | 771 | } |
772 | 772 | |
773 | 773 | /** |
@@ -791,7 +791,7 @@ discard block |
||
791 | 791 | */ |
792 | 792 | private function getTargetPlatform() |
793 | 793 | { |
794 | - if (!$this->targetPlatform) { |
|
794 | + if ( ! $this->targetPlatform) { |
|
795 | 795 | $this->targetPlatform = $this->em->getConnection()->getDatabasePlatform(); |
796 | 796 | } |
797 | 797 |