| @@ -105,7 +105,7 @@ discard block | ||
| 105 | 105 | */ | 
| 106 | 106 | protected function onNotFoundMetadata($className) | 
| 107 | 107 |      { | 
| 108 | -        if (! $this->evm->hasListeners(Events::onClassMetadataNotFound)) { | |
| 108 | +        if ( ! $this->evm->hasListeners(Events::onClassMetadataNotFound)) { | |
| 109 | 109 | return; | 
| 110 | 110 | } | 
| 111 | 111 | |
| @@ -162,7 +162,7 @@ discard block | ||
| 162 | 162 | $this->completeIdGeneratorMapping($class); | 
| 163 | 163 | } | 
| 164 | 164 | |
| 165 | -        if (!$class->isMappedSuperclass) { | |
| 165 | +        if ( ! $class->isMappedSuperclass) { | |
| 166 | 166 |              foreach ($class->embeddedClasses as $property => $embeddableClass) { | 
| 167 | 167 | |
| 168 | 168 |                  if (isset($embeddableClass['inherited'])) { | 
| @@ -187,7 +187,7 @@ discard block | ||
| 187 | 187 | |
| 188 | 188 | $identifier = $embeddableMetadata->getIdentifier(); | 
| 189 | 189 | |
| 190 | -                if (! empty($identifier)) { | |
| 190 | +                if ( ! empty($identifier)) { | |
| 191 | 191 | $this->inheritIdGeneratorMapping($class, $embeddableMetadata); | 
| 192 | 192 | } | 
| 193 | 193 | |
| @@ -257,7 +257,7 @@ discard block | ||
| 257 | 257 | */ | 
| 258 | 258 | protected function validateRuntimeMetadata($class, $parent) | 
| 259 | 259 |      { | 
| 260 | -        if ( ! $class->reflClass ) { | |
| 260 | +        if ( ! $class->reflClass) { | |
| 261 | 261 | // only validate if there is a reflection class instance | 
| 262 | 262 | return; | 
| 263 | 263 | } | 
| @@ -267,7 +267,7 @@ discard block | ||
| 267 | 267 | $class->validateLifecycleCallbacks($this->getReflectionService()); | 
| 268 | 268 | |
| 269 | 269 | // verify inheritance | 
| 270 | -        if ( ! $class->isMappedSuperclass && !$class->isInheritanceTypeNone()) { | |
| 270 | +        if ( ! $class->isMappedSuperclass && ! $class->isInheritanceTypeNone()) { | |
| 271 | 271 |              if ( ! $parent) { | 
| 272 | 272 |                  if (count($class->discriminatorMap) == 0) { | 
| 273 | 273 | throw MappingException::missingDiscriminatorMap($class->name); | 
| @@ -401,10 +401,10 @@ discard block | ||
| 401 | 401 | private function addInheritedFields(ClassMetadata $subClass, ClassMetadata $parentClass) | 
| 402 | 402 |      { | 
| 403 | 403 |          foreach ($parentClass->fieldMappings as $mapping) { | 
| 404 | -            if (! isset($mapping['inherited']) && ! $parentClass->isMappedSuperclass && ! $parentClass->isEmbeddedClass) { | |
| 404 | +            if ( ! isset($mapping['inherited']) && ! $parentClass->isMappedSuperclass && ! $parentClass->isEmbeddedClass) { | |
| 405 | 405 | $mapping['inherited'] = $parentClass->name; | 
| 406 | 406 | } | 
| 407 | -            if (! isset($mapping['declared'])) { | |
| 407 | +            if ( ! isset($mapping['declared'])) { | |
| 408 | 408 | $mapping['declared'] = $parentClass->name; | 
| 409 | 409 | } | 
| 410 | 410 | $subClass->addInheritedFieldMapping($mapping); | 
| @@ -428,7 +428,7 @@ discard block | ||
| 428 | 428 |      { | 
| 429 | 429 |          foreach ($parentClass->associationMappings as $field => $mapping) { | 
| 430 | 430 |              if ($parentClass->isMappedSuperclass) { | 
| 431 | -                if ($mapping['type'] & ClassMetadata::TO_MANY && !$mapping['isOwningSide']) { | |
| 431 | +                if ($mapping['type'] & ClassMetadata::TO_MANY && ! $mapping['isOwningSide']) { | |
| 432 | 432 | throw MappingException::illegalToManyAssociationOnMappedSuperclass($parentClass->name, $field); | 
| 433 | 433 | } | 
| 434 | 434 | $mapping['sourceEntity'] = $subClass->name; | 
| @@ -473,11 +473,11 @@ discard block | ||
| 473 | 473 | |
| 474 | 474 | $parentClass->mapEmbedded( | 
| 475 | 475 | [ | 
| 476 | - 'fieldName' => $prefix . '.' . $property, | |
| 476 | + 'fieldName' => $prefix.'.'.$property, | |
| 477 | 477 | 'class' => $embeddableMetadata->name, | 
| 478 | 478 | 'columnPrefix' => $embeddableClass['columnPrefix'], | 
| 479 | 479 | 'declaredField' => $embeddableClass['declaredField'] | 
| 480 | - ? $prefix . '.' . $embeddableClass['declaredField'] | |
| 480 | + ? $prefix.'.'.$embeddableClass['declaredField'] | |
| 481 | 481 | : $prefix, | 
| 482 | 482 | 'originalField' => $embeddableClass['originalField'] ?: $property, | 
| 483 | 483 | ] | 
| @@ -495,7 +495,7 @@ discard block | ||
| 495 | 495 | */ | 
| 496 | 496 | private function addInheritedIndexes(ClassMetadata $subClass, ClassMetadata $parentClass) | 
| 497 | 497 |      { | 
| 498 | -        if (! $parentClass->isMappedSuperclass) { | |
| 498 | +        if ( ! $parentClass->isMappedSuperclass) { | |
| 499 | 499 | return; | 
| 500 | 500 | } | 
| 501 | 501 | |
| @@ -703,14 +703,14 @@ discard block | ||
| 703 | 703 |                      throw new ORMException("Can't instantiate custom generator : no custom generator definition"); | 
| 704 | 704 | } | 
| 705 | 705 |                  if ( ! class_exists($definition['class'])) { | 
| 706 | -                    throw new ORMException("Can't instantiate custom generator : " . | |
| 706 | +                    throw new ORMException("Can't instantiate custom generator : ". | |
| 707 | 707 | $definition['class']); | 
| 708 | 708 | } | 
| 709 | 709 | $class->setIdGenerator(new $definition['class']); | 
| 710 | 710 | break; | 
| 711 | 711 | |
| 712 | 712 | default: | 
| 713 | -                throw new ORMException("Unknown generator type: " . $class->generatorType); | |
| 713 | +                throw new ORMException("Unknown generator type: ".$class->generatorType); | |
| 714 | 714 | } | 
| 715 | 715 | } | 
| 716 | 716 | |
| @@ -760,7 +760,7 @@ discard block | ||
| 760 | 760 | */ | 
| 761 | 761 | protected function getFqcnFromAlias($namespaceAlias, $simpleClassName) | 
| 762 | 762 |      { | 
| 763 | - return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName; | |
| 763 | + return $this->em->getConfiguration()->getEntityNamespace($namespaceAlias).'\\'.$simpleClassName; | |
| 764 | 764 | } | 
| 765 | 765 | |
| 766 | 766 | /** | 
| @@ -785,7 +785,7 @@ discard block | ||
| 785 | 785 | */ | 
| 786 | 786 | private function getTargetPlatform() | 
| 787 | 787 |      { | 
| 788 | -        if (!$this->targetPlatform) { | |
| 788 | +        if ( ! $this->targetPlatform) { | |
| 789 | 789 | $this->targetPlatform = $this->em->getConnection()->getDatabasePlatform(); | 
| 790 | 790 | } | 
| 791 | 791 | |