@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | break; |
| 123 | 123 | |
| 124 | 124 | default: |
| 125 | - if (! isset($fieldOptions['default'])) { |
|
| 125 | + if ( ! isset($fieldOptions['default'])) { |
|
| 126 | 126 | throw Mapping\MappingException::unsupportedOptimisticLockingType($fieldType); |
| 127 | 127 | } |
| 128 | 128 | |
@@ -145,15 +145,15 @@ discard block |
||
| 145 | 145 | $fieldMetadata->setNullable($this->columnAnnotation->nullable); |
| 146 | 146 | $fieldMetadata->setUnique($this->columnAnnotation->unique); |
| 147 | 147 | |
| 148 | - if (! $this->componentMetadata->isMappedSuperclass) { |
|
| 148 | + if ( ! $this->componentMetadata->isMappedSuperclass) { |
|
| 149 | 149 | $fieldMetadata->setTableName($this->componentMetadata->getTableName()); |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | - if (! empty($this->columnAnnotation->columnDefinition)) { |
|
| 152 | + if ( ! empty($this->columnAnnotation->columnDefinition)) { |
|
| 153 | 153 | $fieldMetadata->setColumnDefinition($this->columnAnnotation->columnDefinition); |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | - if (! empty($this->columnAnnotation->length)) { |
|
| 156 | + if ( ! empty($this->columnAnnotation->length)) { |
|
| 157 | 157 | $fieldMetadata->setLength($this->columnAnnotation->length); |
| 158 | 158 | } |
| 159 | 159 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | */ |
| 24 | 24 | public static function pathRequired() |
| 25 | 25 | { |
| 26 | - return new self('Specifying the paths to your entities is required ' . |
|
| 26 | + return new self('Specifying the paths to your entities is required '. |
|
| 27 | 27 | 'in the AnnotationDriver to retrieve all class names.'); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | */ |
| 214 | 214 | public static function missingQueryMapping($entity, $queryName) |
| 215 | 215 | { |
| 216 | - return new self('Query named "' . $queryName . '" in "' . $entity . ' requires a result class or result set mapping.'); |
|
| 216 | + return new self('Query named "'.$queryName.'" in "'.$entity.' requires a result class or result set mapping.'); |
|
| 217 | 217 | } |
| 218 | 218 | |
| 219 | 219 | /** |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | */ |
| 225 | 225 | public static function missingResultSetMappingEntity($entity, $resultName) |
| 226 | 226 | { |
| 227 | - return new self('Result set mapping named "' . $resultName . '" in "' . $entity . ' requires a entity class name.'); |
|
| 227 | + return new self('Result set mapping named "'.$resultName.'" in "'.$entity.' requires a entity class name.'); |
|
| 228 | 228 | } |
| 229 | 229 | |
| 230 | 230 | /** |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | */ |
| 236 | 236 | public static function missingResultSetMappingFieldName($entity, $resultName) |
| 237 | 237 | { |
| 238 | - return new self('Result set mapping named "' . $resultName . '" in "' . $entity . ' requires a field name.'); |
|
| 238 | + return new self('Result set mapping named "'.$resultName.'" in "'.$entity.' requires a field name.'); |
|
| 239 | 239 | } |
| 240 | 240 | |
| 241 | 241 | /** |
@@ -282,8 +282,8 @@ discard block |
||
| 282 | 282 | { |
| 283 | 283 | $message = sprintf("The mapping of field '%s' is invalid: The option '%s' is required.", $field, $expectedOption); |
| 284 | 284 | |
| 285 | - if (! empty($hint)) { |
|
| 286 | - $message .= ' (Hint: ' . $hint . ')'; |
|
| 285 | + if ( ! empty($hint)) { |
|
| 286 | + $message .= ' (Hint: '.$hint.')'; |
|
| 287 | 287 | } |
| 288 | 288 | |
| 289 | 289 | return new self($message); |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | */ |
| 313 | 313 | public static function reflectionFailure($entity, ReflectionException $previousException) |
| 314 | 314 | { |
| 315 | - return new self('An error occurred in ' . $entity, 0, $previousException); |
|
| 315 | + return new self('An error occurred in '.$entity, 0, $previousException); |
|
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | /** |
@@ -323,8 +323,8 @@ discard block |
||
| 323 | 323 | */ |
| 324 | 324 | public static function joinColumnMustPointToMappedField($className, $joinColumn) |
| 325 | 325 | { |
| 326 | - return new self('The column ' . $joinColumn . ' must be mapped to a field in class ' |
|
| 327 | - . $className . ' since it is referenced by a join column of another class.'); |
|
| 326 | + return new self('The column '.$joinColumn.' must be mapped to a field in class ' |
|
| 327 | + . $className.' since it is referenced by a join column of another class.'); |
|
| 328 | 328 | } |
| 329 | 329 | |
| 330 | 330 | /** |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | */ |
| 359 | 359 | public static function propertyTypeIsRequired($className, $propertyName) |
| 360 | 360 | { |
| 361 | - return new self("The attribute 'type' is required for the column description of property " . $className . '::$' . $propertyName . '.'); |
|
| 361 | + return new self("The attribute 'type' is required for the column description of property ".$className.'::$'.$propertyName.'.'); |
|
| 362 | 362 | } |
| 363 | 363 | |
| 364 | 364 | /** |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | */ |
| 369 | 369 | public static function tableIdGeneratorNotImplemented($className) |
| 370 | 370 | { |
| 371 | - return new self('TableIdGenerator is not yet implemented for use with class ' . $className); |
|
| 371 | + return new self('TableIdGenerator is not yet implemented for use with class '.$className); |
|
| 372 | 372 | } |
| 373 | 373 | |
| 374 | 374 | /** |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | */ |
| 395 | 395 | public static function duplicateQueryMapping($entity, $queryName) |
| 396 | 396 | { |
| 397 | - return new self('Query named "' . $queryName . '" in "' . $entity . '" was already declared, but it must be declared only once'); |
|
| 397 | + return new self('Query named "'.$queryName.'" in "'.$entity.'" was already declared, but it must be declared only once'); |
|
| 398 | 398 | } |
| 399 | 399 | |
| 400 | 400 | /** |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | */ |
| 406 | 406 | public static function duplicateResultSetMapping($entity, $resultName) |
| 407 | 407 | { |
| 408 | - return new self('Result set mapping named "' . $resultName . '" in "' . $entity . '" was already declared, but it must be declared only once'); |
|
| 408 | + return new self('Result set mapping named "'.$resultName.'" in "'.$entity.'" was already declared, but it must be declared only once'); |
|
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | /** |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | */ |
| 416 | 416 | public static function singleIdNotAllowedOnCompositePrimaryKey($entity) |
| 417 | 417 | { |
| 418 | - return new self('Single id is not allowed on composite primary key in entity ' . $entity); |
|
| 418 | + return new self('Single id is not allowed on composite primary key in entity '.$entity); |
|
| 419 | 419 | } |
| 420 | 420 | |
| 421 | 421 | /** |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | */ |
| 426 | 426 | public static function noIdDefined($entity) |
| 427 | 427 | { |
| 428 | - return new self('No ID defined for entity ' . $entity); |
|
| 428 | + return new self('No ID defined for entity '.$entity); |
|
| 429 | 429 | } |
| 430 | 430 | |
| 431 | 431 | /** |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | */ |
| 434 | 434 | public static function unsupportedOptimisticLockingType(Type $unsupportedType) |
| 435 | 435 | { |
| 436 | - return new self('Locking type "' . $unsupportedType->getName() . '" is not supported by Doctrine.'); |
|
| 436 | + return new self('Locking type "'.$unsupportedType->getName().'" is not supported by Doctrine.'); |
|
| 437 | 437 | } |
| 438 | 438 | |
| 439 | 439 | /** |
@@ -443,13 +443,13 @@ discard block |
||
| 443 | 443 | */ |
| 444 | 444 | public static function fileMappingDriversRequireConfiguredDirectoryPath($path = null) |
| 445 | 445 | { |
| 446 | - if (! empty($path)) { |
|
| 447 | - $path = '[' . $path . ']'; |
|
| 446 | + if ( ! empty($path)) { |
|
| 447 | + $path = '['.$path.']'; |
|
| 448 | 448 | } |
| 449 | 449 | |
| 450 | 450 | return new self( |
| 451 | - 'File mapping drivers must have a valid directory path, ' . |
|
| 452 | - 'however the given path ' . $path . ' seems to be incorrect!' |
|
| 451 | + 'File mapping drivers must have a valid directory path, '. |
|
| 452 | + 'however the given path '.$path.' seems to be incorrect!' |
|
| 453 | 453 | ); |
| 454 | 454 | } |
| 455 | 455 | |
@@ -465,7 +465,7 @@ discard block |
||
| 465 | 465 | public static function invalidClassInDiscriminatorMap($className, $owningClass) |
| 466 | 466 | { |
| 467 | 467 | return new self(sprintf( |
| 468 | - "Entity class '%s' used in the discriminator map of class '%s' " . |
|
| 468 | + "Entity class '%s' used in the discriminator map of class '%s' ". |
|
| 469 | 469 | 'does not exist.', |
| 470 | 470 | $className, |
| 471 | 471 | $owningClass |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | public static function sqlConversionNotAllowedForPrimaryKeyProperties($className, $fieldName, $type) |
| 532 | 532 | { |
| 533 | 533 | return new self(sprintf( |
| 534 | - 'It is not possible to set id field "%s" to type "%s" in entity class "%s". ' . |
|
| 534 | + 'It is not possible to set id field "%s" to type "%s" in entity class "%s". '. |
|
| 535 | 535 | 'The type "%s" requires conversion SQL which is not allowed for identifiers.', |
| 536 | 536 | $fieldName, |
| 537 | 537 | $type, |
@@ -567,7 +567,7 @@ discard block |
||
| 567 | 567 | */ |
| 568 | 568 | public static function duplicateColumnName($className, $columnName) |
| 569 | 569 | { |
| 570 | - return new self("Duplicate definition of column '" . $columnName . "' on entity '" . $className . "' in a field or discriminator column mapping."); |
|
| 570 | + return new self("Duplicate definition of column '".$columnName."' on entity '".$className."' in a field or discriminator column mapping."); |
|
| 571 | 571 | } |
| 572 | 572 | |
| 573 | 573 | /** |
@@ -578,7 +578,7 @@ discard block |
||
| 578 | 578 | */ |
| 579 | 579 | public static function illegalToManyAssociationOnMappedSuperclass($className, $field) |
| 580 | 580 | { |
| 581 | - return new self("It is illegal to put an inverse side one-to-many or many-to-many association on mapped superclass '" . $className . '#' . $field . "'."); |
|
| 581 | + return new self("It is illegal to put an inverse side one-to-many or many-to-many association on mapped superclass '".$className.'#'.$field."'."); |
|
| 582 | 582 | } |
| 583 | 583 | |
| 584 | 584 | /** |
@@ -590,8 +590,8 @@ discard block |
||
| 590 | 590 | */ |
| 591 | 591 | public static function cannotMapCompositePrimaryKeyEntitiesAsForeignId($className, $targetEntity, $targetField) |
| 592 | 592 | { |
| 593 | - return new self("It is not possible to map entity '" . $className . "' with a composite primary key " . |
|
| 594 | - "as part of the primary key of another entity '" . $targetEntity . '#' . $targetField . "'."); |
|
| 593 | + return new self("It is not possible to map entity '".$className."' with a composite primary key ". |
|
| 594 | + "as part of the primary key of another entity '".$targetEntity.'#'.$targetField."'."); |
|
| 595 | 595 | } |
| 596 | 596 | |
| 597 | 597 | /** |
@@ -645,8 +645,8 @@ discard block |
||
| 645 | 645 | */ |
| 646 | 646 | public static function illegalOrphanRemoval($className, $field) |
| 647 | 647 | { |
| 648 | - return new self('Orphan removal is only allowed on one-to-one and one-to-many ' . |
|
| 649 | - 'associations, but ' . $className . '#' . $field . ' is not.'); |
|
| 648 | + return new self('Orphan removal is only allowed on one-to-one and one-to-many '. |
|
| 649 | + 'associations, but '.$className.'#'.$field.' is not.'); |
|
| 650 | 650 | } |
| 651 | 651 | |
| 652 | 652 | /** |
@@ -678,7 +678,7 @@ discard block |
||
| 678 | 678 | */ |
| 679 | 679 | public static function noInheritanceOnMappedSuperClass($className) |
| 680 | 680 | { |
| 681 | - return new self("It is not supported to define inheritance information on a mapped superclass '" . $className . "'."); |
|
| 681 | + return new self("It is not supported to define inheritance information on a mapped superclass '".$className."'."); |
|
| 682 | 682 | } |
| 683 | 683 | |
| 684 | 684 | /** |
@@ -690,8 +690,8 @@ discard block |
||
| 690 | 690 | public static function mappedClassNotPartOfDiscriminatorMap($className, $rootClassName) |
| 691 | 691 | { |
| 692 | 692 | return new self( |
| 693 | - "Entity '" . $className . "' has to be part of the discriminator map of '" . $rootClassName . "' " . |
|
| 694 | - "to be properly mapped in the inheritance hierarchy. Alternatively you can make '" . $className . "' an abstract class " . |
|
| 693 | + "Entity '".$className."' has to be part of the discriminator map of '".$rootClassName."' ". |
|
| 694 | + "to be properly mapped in the inheritance hierarchy. Alternatively you can make '".$className."' an abstract class ". |
|
| 695 | 695 | 'to avoid this exception from occurring.' |
| 696 | 696 | ); |
| 697 | 697 | } |
@@ -704,7 +704,7 @@ discard block |
||
| 704 | 704 | */ |
| 705 | 705 | public static function lifecycleCallbackMethodNotFound($className, $methodName) |
| 706 | 706 | { |
| 707 | - return new self("Entity '" . $className . "' has no public method '" . $methodName . "' to be registered as lifecycle callback."); |
|
| 707 | + return new self("Entity '".$className."' has no public method '".$methodName."' to be registered as lifecycle callback."); |
|
| 708 | 708 | } |
| 709 | 709 | |
| 710 | 710 | /** |
@@ -738,7 +738,7 @@ discard block |
||
| 738 | 738 | */ |
| 739 | 739 | public static function invalidFetchMode($className, $annotation) |
| 740 | 740 | { |
| 741 | - return new self("Entity '" . $className . "' has a mapping with invalid fetch mode '" . $annotation . "'"); |
|
| 741 | + return new self("Entity '".$className."' has a mapping with invalid fetch mode '".$annotation."'"); |
|
| 742 | 742 | } |
| 743 | 743 | |
| 744 | 744 | /** |
@@ -748,7 +748,7 @@ discard block |
||
| 748 | 748 | */ |
| 749 | 749 | public static function compositeKeyAssignedIdGeneratorRequired($className) |
| 750 | 750 | { |
| 751 | - return new self("Entity '" . $className . "' has a composite identifier but uses an ID generator other than manually assigning (Identity, Sequence). This is not supported."); |
|
| 751 | + return new self("Entity '".$className."' has a composite identifier but uses an ID generator other than manually assigning (Identity, Sequence). This is not supported."); |
|
| 752 | 752 | } |
| 753 | 753 | |
| 754 | 754 | /** |
@@ -760,7 +760,7 @@ discard block |
||
| 760 | 760 | */ |
| 761 | 761 | public static function invalidTargetEntityClass($targetEntity, $sourceEntity, $associationName) |
| 762 | 762 | { |
| 763 | - return new self("The target-entity '" . $targetEntity . "' cannot be found in '" . $sourceEntity . '#' . $associationName . "'."); |
|
| 763 | + return new self("The target-entity '".$targetEntity."' cannot be found in '".$sourceEntity.'#'.$associationName."'."); |
|
| 764 | 764 | } |
| 765 | 765 | |
| 766 | 766 | /** |
@@ -772,8 +772,8 @@ discard block |
||
| 772 | 772 | */ |
| 773 | 773 | public static function invalidCascadeOption(array $cascades, $className, $propertyName) |
| 774 | 774 | { |
| 775 | - $cascades = implode(', ', array_map(static function ($e) { |
|
| 776 | - return "'" . $e . "'"; |
|
| 775 | + $cascades = implode(', ', array_map(static function($e) { |
|
| 776 | + return "'".$e."'"; |
|
| 777 | 777 | }, $cascades)); |
| 778 | 778 | |
| 779 | 779 | return new self(sprintf( |
@@ -806,7 +806,7 @@ discard block |
||
| 806 | 806 | { |
| 807 | 807 | return new self( |
| 808 | 808 | sprintf( |
| 809 | - 'Infinite nesting detected for embedded property %s::%s. ' . |
|
| 809 | + 'Infinite nesting detected for embedded property %s::%s. '. |
|
| 810 | 810 | 'You cannot embed an embeddable from the same type inside an embeddable.', |
| 811 | 811 | $className, |
| 812 | 812 | $propertyName |
@@ -821,7 +821,7 @@ discard block |
||
| 821 | 821 | { |
| 822 | 822 | return new self( |
| 823 | 823 | sprintf( |
| 824 | - 'Class %s not found in namespaces %s.' . |
|
| 824 | + 'Class %s not found in namespaces %s.'. |
|
| 825 | 825 | $className, |
| 826 | 826 | implode(', ', $namespaces) |
| 827 | 827 | ) |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | return $this->classNames; |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | - if (! $this->paths) { |
|
| 216 | + if ( ! $this->paths) { |
|
| 217 | 217 | throw Mapping\MappingException::pathRequired(); |
| 218 | 218 | } |
| 219 | 219 | |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | $includedFiles = []; |
| 222 | 222 | |
| 223 | 223 | foreach ($this->paths as $path) { |
| 224 | - if (! is_dir($path)) { |
|
| 224 | + if ( ! is_dir($path)) { |
|
| 225 | 225 | throw Mapping\MappingException::fileMappingDriversRequireConfiguredDirectoryPath($path); |
| 226 | 226 | } |
| 227 | 227 | |
@@ -230,14 +230,14 @@ discard block |
||
| 230 | 230 | new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS), |
| 231 | 231 | RecursiveIteratorIterator::LEAVES_ONLY |
| 232 | 232 | ), |
| 233 | - '/^.+' . preg_quote($this->fileExtension) . '$/i', |
|
| 233 | + '/^.+'.preg_quote($this->fileExtension).'$/i', |
|
| 234 | 234 | RecursiveRegexIterator::GET_MATCH |
| 235 | 235 | ); |
| 236 | 236 | |
| 237 | 237 | foreach ($iterator as $file) { |
| 238 | 238 | $sourceFile = $file[0]; |
| 239 | 239 | |
| 240 | - if (! preg_match('(^phar:)i', $sourceFile)) { |
|
| 240 | + if ( ! preg_match('(^phar:)i', $sourceFile)) { |
|
| 241 | 241 | $sourceFile = realpath($sourceFile); |
| 242 | 242 | } |
| 243 | 243 | |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | if ($parent && $parent->inheritanceType === Mapping\InheritanceType::SINGLE_TABLE) { |
| 416 | 416 | // Handle the case where a middle mapped super class inherits from a single table inheritance tree. |
| 417 | 417 | do { |
| 418 | - if (! $parent->isMappedSuperclass) { |
|
| 418 | + if ( ! $parent->isMappedSuperclass) { |
|
| 419 | 419 | $metadata->setTable($parent->table); |
| 420 | 420 | |
| 421 | 421 | break; |
@@ -635,13 +635,13 @@ discard block |
||
| 635 | 635 | 'arguments' => $customGeneratorAnnot->arguments, |
| 636 | 636 | ]; |
| 637 | 637 | |
| 638 | - if (! isset($idGeneratorDefinition['class'])) { |
|
| 638 | + if ( ! isset($idGeneratorDefinition['class'])) { |
|
| 639 | 639 | throw new Mapping\MappingException( |
| 640 | 640 | sprintf('Cannot instantiate custom generator, no class has been defined') |
| 641 | 641 | ); |
| 642 | 642 | } |
| 643 | 643 | |
| 644 | - if (! class_exists($idGeneratorDefinition['class'])) { |
|
| 644 | + if ( ! class_exists($idGeneratorDefinition['class'])) { |
|
| 645 | 645 | throw new Mapping\MappingException( |
| 646 | 646 | sprintf('Cannot instantiate custom generator : %s', var_export($idGeneratorDefinition, true)) |
| 647 | 647 | ); |
@@ -683,12 +683,12 @@ discard block |
||
| 683 | 683 | $assocMetadata->setOrphanRemoval($oneToOneAnnot->orphanRemoval); |
| 684 | 684 | $assocMetadata->setFetchMode($this->getFetchMode($className, $oneToOneAnnot->fetch)); |
| 685 | 685 | |
| 686 | - if (! empty($oneToOneAnnot->mappedBy)) { |
|
| 686 | + if ( ! empty($oneToOneAnnot->mappedBy)) { |
|
| 687 | 687 | $assocMetadata->setMappedBy($oneToOneAnnot->mappedBy); |
| 688 | 688 | $assocMetadata->setOwningSide(false); |
| 689 | 689 | } |
| 690 | 690 | |
| 691 | - if (! empty($oneToOneAnnot->inversedBy)) { |
|
| 691 | + if ( ! empty($oneToOneAnnot->inversedBy)) { |
|
| 692 | 692 | $assocMetadata->setInversedBy($oneToOneAnnot->inversedBy); |
| 693 | 693 | $assocMetadata->setOwningSide(true); |
| 694 | 694 | } |
@@ -711,7 +711,7 @@ discard block |
||
| 711 | 711 | } |
| 712 | 712 | |
| 713 | 713 | // Check for owning side to consider join column |
| 714 | - if (! $assocMetadata->isOwningSide()) { |
|
| 714 | + if ( ! $assocMetadata->isOwningSide()) { |
|
| 715 | 715 | return $assocMetadata; |
| 716 | 716 | } |
| 717 | 717 | |
@@ -768,7 +768,7 @@ discard block |
||
| 768 | 768 | $assocMetadata->setCascade($this->getCascade($className, $fieldName, $manyToOneAnnot->cascade)); |
| 769 | 769 | $assocMetadata->setFetchMode($this->getFetchMode($className, $manyToOneAnnot->fetch)); |
| 770 | 770 | |
| 771 | - if (! empty($manyToOneAnnot->inversedBy)) { |
|
| 771 | + if ( ! empty($manyToOneAnnot->inversedBy)) { |
|
| 772 | 772 | $assocMetadata->setInversedBy($manyToOneAnnot->inversedBy); |
| 773 | 773 | } |
| 774 | 774 | |
@@ -846,7 +846,7 @@ discard block |
||
| 846 | 846 | $assocMetadata->setOwningSide(false); |
| 847 | 847 | $assocMetadata->setMappedBy($oneToManyAnnot->mappedBy); |
| 848 | 848 | |
| 849 | - if (! empty($oneToManyAnnot->indexBy)) { |
|
| 849 | + if ( ! empty($oneToManyAnnot->indexBy)) { |
|
| 850 | 850 | $assocMetadata->setIndexedBy($oneToManyAnnot->indexBy); |
| 851 | 851 | } |
| 852 | 852 | |
@@ -899,16 +899,16 @@ discard block |
||
| 899 | 899 | $assocMetadata->setOrphanRemoval($manyToManyAnnot->orphanRemoval); |
| 900 | 900 | $assocMetadata->setFetchMode($this->getFetchMode($className, $manyToManyAnnot->fetch)); |
| 901 | 901 | |
| 902 | - if (! empty($manyToManyAnnot->mappedBy)) { |
|
| 902 | + if ( ! empty($manyToManyAnnot->mappedBy)) { |
|
| 903 | 903 | $assocMetadata->setMappedBy($manyToManyAnnot->mappedBy); |
| 904 | 904 | $assocMetadata->setOwningSide(false); |
| 905 | 905 | } |
| 906 | 906 | |
| 907 | - if (! empty($manyToManyAnnot->inversedBy)) { |
|
| 907 | + if ( ! empty($manyToManyAnnot->inversedBy)) { |
|
| 908 | 908 | $assocMetadata->setInversedBy($manyToManyAnnot->inversedBy); |
| 909 | 909 | } |
| 910 | 910 | |
| 911 | - if (! empty($manyToManyAnnot->indexBy)) { |
|
| 911 | + if ( ! empty($manyToManyAnnot->indexBy)) { |
|
| 912 | 912 | $assocMetadata->setIndexedBy($manyToManyAnnot->indexBy); |
| 913 | 913 | } |
| 914 | 914 | |
@@ -937,7 +937,7 @@ discard block |
||
| 937 | 937 | } |
| 938 | 938 | |
| 939 | 939 | // Check for owning side to consider join column |
| 940 | - if (! $assocMetadata->isOwningSide()) { |
|
| 940 | + if ( ! $assocMetadata->isOwningSide()) { |
|
| 941 | 941 | return $assocMetadata; |
| 942 | 942 | } |
| 943 | 943 | |
@@ -971,15 +971,15 @@ discard block |
||
| 971 | 971 | $fieldMetadata->setType(Type::getType($columnAnnot->type)); |
| 972 | 972 | $fieldMetadata->setVersioned($isVersioned); |
| 973 | 973 | |
| 974 | - if (! empty($columnAnnot->name)) { |
|
| 974 | + if ( ! empty($columnAnnot->name)) { |
|
| 975 | 975 | $fieldMetadata->setColumnName($columnAnnot->name); |
| 976 | 976 | } |
| 977 | 977 | |
| 978 | - if (! empty($columnAnnot->columnDefinition)) { |
|
| 978 | + if ( ! empty($columnAnnot->columnDefinition)) { |
|
| 979 | 979 | $fieldMetadata->setColumnDefinition($columnAnnot->columnDefinition); |
| 980 | 980 | } |
| 981 | 981 | |
| 982 | - if (! empty($columnAnnot->length)) { |
|
| 982 | + if ( ! empty($columnAnnot->length)) { |
|
| 983 | 983 | $fieldMetadata->setLength($columnAnnot->length); |
| 984 | 984 | } |
| 985 | 985 | |
@@ -1055,7 +1055,7 @@ discard block |
||
| 1055 | 1055 | ]; |
| 1056 | 1056 | |
| 1057 | 1057 | foreach ($entityListenersAnnot->value as $listenerClassName) { |
| 1058 | - if (! class_exists($listenerClassName)) { |
|
| 1058 | + if ( ! class_exists($listenerClassName)) { |
|
| 1059 | 1059 | throw Mapping\MappingException::entityListenerClassNotFound( |
| 1060 | 1060 | $listenerClassName, |
| 1061 | 1061 | $metadata->getClassName() |
@@ -1097,7 +1097,7 @@ discard block |
||
| 1097 | 1097 | $fieldName = $associationOverride->name; |
| 1098 | 1098 | $property = $metadata->getProperty($fieldName); |
| 1099 | 1099 | |
| 1100 | - if (! $property) { |
|
| 1100 | + if ( ! $property) { |
|
| 1101 | 1101 | throw Mapping\MappingException::invalidOverrideFieldName($metadata->getClassName(), $fieldName); |
| 1102 | 1102 | } |
| 1103 | 1103 | |
@@ -1144,7 +1144,7 @@ discard block |
||
| 1144 | 1144 | // Check for fetch |
| 1145 | 1145 | if ($associationOverride->fetch) { |
| 1146 | 1146 | $override->setFetchMode( |
| 1147 | - constant(Mapping\FetchMode::class . '::' . $associationOverride->fetch) |
|
| 1147 | + constant(Mapping\FetchMode::class.'::'.$associationOverride->fetch) |
|
| 1148 | 1148 | ); |
| 1149 | 1149 | } |
| 1150 | 1150 | |
@@ -1211,7 +1211,7 @@ discard block |
||
| 1211 | 1211 | { |
| 1212 | 1212 | $fetchModeConstant = sprintf('%s::%s', Mapping\FetchMode::class, $fetchMode); |
| 1213 | 1213 | |
| 1214 | - if (! defined($fetchModeConstant)) { |
|
| 1214 | + if ( ! defined($fetchModeConstant)) { |
|
| 1215 | 1215 | throw Mapping\MappingException::invalidFetchMode($className, $fetchMode); |
| 1216 | 1216 | } |
| 1217 | 1217 | |
@@ -1226,7 +1226,7 @@ discard block |
||
| 1226 | 1226 | $classAnnotations = $this->reader->getClassAnnotations($reflectionClass); |
| 1227 | 1227 | |
| 1228 | 1228 | foreach ($classAnnotations as $key => $annot) { |
| 1229 | - if (! is_numeric($key)) { |
|
| 1229 | + if ( ! is_numeric($key)) { |
|
| 1230 | 1230 | continue; |
| 1231 | 1231 | } |
| 1232 | 1232 | |
@@ -1244,7 +1244,7 @@ discard block |
||
| 1244 | 1244 | $propertyAnnotations = $this->reader->getPropertyAnnotations($reflectionProperty); |
| 1245 | 1245 | |
| 1246 | 1246 | foreach ($propertyAnnotations as $key => $annot) { |
| 1247 | - if (! is_numeric($key)) { |
|
| 1247 | + if ( ! is_numeric($key)) { |
|
| 1248 | 1248 | continue; |
| 1249 | 1249 | } |
| 1250 | 1250 | |
@@ -1262,7 +1262,7 @@ discard block |
||
| 1262 | 1262 | $methodAnnotations = $this->reader->getMethodAnnotations($reflectionMethod); |
| 1263 | 1263 | |
| 1264 | 1264 | foreach ($methodAnnotations as $key => $annot) { |
| 1265 | - if (! is_numeric($key)) { |
|
| 1265 | + if ( ! is_numeric($key)) { |
|
| 1266 | 1266 | continue; |
| 1267 | 1267 | } |
| 1268 | 1268 | |