@@ -239,11 +239,11 @@ discard block |
||
239 | 239 | $this->setCache(clone $parent->cache); |
240 | 240 | } |
241 | 241 | |
242 | - if (! empty($parent->lifecycleCallbacks)) { |
|
242 | + if ( ! empty($parent->lifecycleCallbacks)) { |
|
243 | 243 | $this->lifecycleCallbacks = $parent->lifecycleCallbacks; |
244 | 244 | } |
245 | 245 | |
246 | - if (! empty($parent->entityListeners)) { |
|
246 | + if ( ! empty($parent->entityListeners)) { |
|
247 | 247 | $this->entityListeners = $parent->entityListeners; |
248 | 248 | } |
249 | 249 | } |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | */ |
311 | 311 | public function __toString() |
312 | 312 | { |
313 | - return self::class . '@' . spl_object_id($this); |
|
313 | + return self::class.'@'.spl_object_id($this); |
|
314 | 314 | } |
315 | 315 | |
316 | 316 | /** |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | // Restore ReflectionClass and properties |
398 | 398 | $this->reflectionClass = $reflectionService->getClass($this->className); |
399 | 399 | |
400 | - if (! $this->reflectionClass) { |
|
400 | + if ( ! $this->reflectionClass) { |
|
401 | 401 | return; |
402 | 402 | } |
403 | 403 | |
@@ -426,11 +426,11 @@ discard block |
||
426 | 426 | */ |
427 | 427 | public function isIdentifier(string $fieldName) : bool |
428 | 428 | { |
429 | - if (! $this->identifier) { |
|
429 | + if ( ! $this->identifier) { |
|
430 | 430 | return false; |
431 | 431 | } |
432 | 432 | |
433 | - if (! $this->isIdentifierComposite()) { |
|
433 | + if ( ! $this->isIdentifierComposite()) { |
|
434 | 434 | return $fieldName === $this->identifier[0]; |
435 | 435 | } |
436 | 436 | |
@@ -454,11 +454,11 @@ discard block |
||
454 | 454 | } |
455 | 455 | |
456 | 456 | // Verify & complete identifier mapping |
457 | - if (! $this->identifier) { |
|
457 | + if ( ! $this->identifier) { |
|
458 | 458 | throw MappingException::identifierRequired($this->className); |
459 | 459 | } |
460 | 460 | |
461 | - $explicitlyGeneratedProperties = array_filter($this->properties, static function (Property $property) : bool { |
|
461 | + $explicitlyGeneratedProperties = array_filter($this->properties, static function(Property $property) : bool { |
|
462 | 462 | return $property instanceof FieldMetadata |
463 | 463 | && $property->isPrimaryKey() |
464 | 464 | && $property->hasValueGenerator(); |
@@ -477,14 +477,14 @@ discard block |
||
477 | 477 | public function validateAssociations() : void |
478 | 478 | { |
479 | 479 | array_map( |
480 | - function (Property $property) { |
|
481 | - if (! ($property instanceof AssociationMetadata)) { |
|
480 | + function(Property $property) { |
|
481 | + if ( ! ($property instanceof AssociationMetadata)) { |
|
482 | 482 | return; |
483 | 483 | } |
484 | 484 | |
485 | 485 | $targetEntity = $property->getTargetEntity(); |
486 | 486 | |
487 | - if (! class_exists($targetEntity)) { |
|
487 | + if ( ! class_exists($targetEntity)) { |
|
488 | 488 | throw MappingException::invalidTargetEntityClass($targetEntity, $this->className, $property->getName()); |
489 | 489 | } |
490 | 490 | }, |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | foreach ($this->lifecycleCallbacks as $callbacks) { |
503 | 503 | /** @var array $callbacks */ |
504 | 504 | foreach ($callbacks as $callbackFuncName) { |
505 | - if (! $reflectionService->hasPublicMethod($this->className, $callbackFuncName)) { |
|
505 | + if ( ! $reflectionService->hasPublicMethod($this->className, $callbackFuncName)) { |
|
506 | 506 | throw MappingException::lifecycleCallbackMethodNotFound($this->className, $callbackFuncName); |
507 | 507 | } |
508 | 508 | } |
@@ -551,7 +551,7 @@ discard block |
||
551 | 551 | $fieldName = $property->getName(); |
552 | 552 | $targetEntity = $property->getTargetEntity(); |
553 | 553 | |
554 | - if (! $targetEntity) { |
|
554 | + if ( ! $targetEntity) { |
|
555 | 555 | throw MappingException::missingTargetEntity($fieldName); |
556 | 556 | } |
557 | 557 | |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | throw MappingException::illegalToManyIdentifierAssociation($this->className, $property->getName()); |
581 | 581 | } |
582 | 582 | |
583 | - if (! in_array($property->getName(), $this->identifier, true)) { |
|
583 | + if ( ! in_array($property->getName(), $this->identifier, true)) { |
|
584 | 584 | $this->identifier[] = $property->getName(); |
585 | 585 | } |
586 | 586 | } |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | /** @var JoinColumnMetadata $joinColumn */ |
622 | 622 | if ($property instanceof OneToOneAssociationMetadata && $this->inheritanceType !== InheritanceType::SINGLE_TABLE) { |
623 | 623 | if (count($property->getJoinColumns()) === 1) { |
624 | - if (! $property->isPrimaryKey()) { |
|
624 | + if ( ! $property->isPrimaryKey()) { |
|
625 | 625 | $joinColumn->setUnique(true); |
626 | 626 | } |
627 | 627 | } else { |
@@ -633,7 +633,7 @@ discard block |
||
633 | 633 | } |
634 | 634 | |
635 | 635 | if ($uniqueConstraintColumns) { |
636 | - if (! $this->table) { |
|
636 | + if ( ! $this->table) { |
|
637 | 637 | throw new RuntimeException( |
638 | 638 | 'ClassMetadata::setTable() has to be called before defining a one to one relationship.' |
639 | 639 | ); |
@@ -653,7 +653,7 @@ discard block |
||
653 | 653 | if ($property->isOrphanRemoval()) { |
654 | 654 | $cascades = $property->getCascade(); |
655 | 655 | |
656 | - if (! in_array('remove', $cascades, true)) { |
|
656 | + if ( ! in_array('remove', $cascades, true)) { |
|
657 | 657 | $cascades[] = 'remove'; |
658 | 658 | |
659 | 659 | $property->setCascade($cascades); |
@@ -679,14 +679,14 @@ discard block |
||
679 | 679 | protected function validateAndCompleteOneToManyMapping(OneToManyAssociationMetadata $property) |
680 | 680 | { |
681 | 681 | // OneToMany MUST have mappedBy |
682 | - if (! $property->getMappedBy()) { |
|
682 | + if ( ! $property->getMappedBy()) { |
|
683 | 683 | throw MappingException::oneToManyRequiresMappedBy($property->getName()); |
684 | 684 | } |
685 | 685 | |
686 | 686 | if ($property->isOrphanRemoval()) { |
687 | 687 | $cascades = $property->getCascade(); |
688 | 688 | |
689 | - if (! in_array('remove', $cascades, true)) { |
|
689 | + if ( ! in_array('remove', $cascades, true)) { |
|
690 | 690 | $cascades[] = 'remove'; |
691 | 691 | |
692 | 692 | $property->setCascade($cascades); |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | throw MappingException::singleIdNotAllowedOnCompositePrimaryKey($this->className); |
717 | 717 | } |
718 | 718 | |
719 | - if (! isset($this->identifier[0])) { |
|
719 | + if ( ! isset($this->identifier[0])) { |
|
720 | 720 | throw MappingException::noIdDefined($this->className); |
721 | 721 | } |
722 | 722 | |
@@ -775,7 +775,7 @@ discard block |
||
775 | 775 | // Association defined as Id field |
776 | 776 | $targetClass = $em->getClassMetadata($property->getTargetEntity()); |
777 | 777 | |
778 | - if (! $property->isOwningSide()) { |
|
778 | + if ( ! $property->isOwningSide()) { |
|
779 | 779 | $property = $targetClass->getProperty($property->getMappedBy()); |
780 | 780 | $targetClass = $em->getClassMetadata($property->getTargetEntity()); |
781 | 781 | } |
@@ -789,7 +789,7 @@ discard block |
||
789 | 789 | $columnName = $joinColumn->getColumnName(); |
790 | 790 | $referencedColumnName = $joinColumn->getReferencedColumnName(); |
791 | 791 | |
792 | - if (! $joinColumn->getType()) { |
|
792 | + if ( ! $joinColumn->getType()) { |
|
793 | 793 | $joinColumn->setType(PersisterHelper::getTypeOfColumn($referencedColumnName, $targetClass, $em)); |
794 | 794 | } |
795 | 795 | |
@@ -823,10 +823,10 @@ discard block |
||
823 | 823 | { |
824 | 824 | $schema = $this->getSchemaName() === null |
825 | 825 | ? '' |
826 | - : $this->getSchemaName() . '_'; |
|
826 | + : $this->getSchemaName().'_'; |
|
827 | 827 | |
828 | 828 | // replace dots with underscores because PostgreSQL creates temporary tables in a special schema |
829 | - return $schema . $this->getTableName() . '_id_tmp'; |
|
829 | + return $schema.$this->getTableName().'_id_tmp'; |
|
830 | 830 | } |
831 | 831 | |
832 | 832 | /** |
@@ -860,7 +860,7 @@ discard block |
||
860 | 860 | */ |
861 | 861 | public function setInheritanceType($type) : void |
862 | 862 | { |
863 | - if (! $this->isInheritanceType($type)) { |
|
863 | + if ( ! $this->isInheritanceType($type)) { |
|
864 | 864 | throw MappingException::invalidInheritanceType($this->className, $type); |
865 | 865 | } |
866 | 866 | |
@@ -878,7 +878,7 @@ discard block |
||
878 | 878 | { |
879 | 879 | $fieldName = $property->getName(); |
880 | 880 | |
881 | - if (! isset($this->properties[$fieldName])) { |
|
881 | + if ( ! isset($this->properties[$fieldName])) { |
|
882 | 882 | throw MappingException::invalidOverrideFieldName($this->className, $fieldName); |
883 | 883 | } |
884 | 884 | |
@@ -1095,7 +1095,7 @@ discard block |
||
1095 | 1095 | $inheritedProperty = $declaringClass->isMappedSuperclass ? clone $property : $property; |
1096 | 1096 | |
1097 | 1097 | if ($inheritedProperty instanceof FieldMetadata) { |
1098 | - if (! $declaringClass->isMappedSuperclass) { |
|
1098 | + if ( ! $declaringClass->isMappedSuperclass) { |
|
1099 | 1099 | $inheritedProperty->setTableName($property->getTableName()); |
1100 | 1100 | } |
1101 | 1101 | |
@@ -1188,11 +1188,11 @@ discard block |
||
1188 | 1188 | 'method' => $methodName, |
1189 | 1189 | ]; |
1190 | 1190 | |
1191 | - if (! class_exists($class)) { |
|
1191 | + if ( ! class_exists($class)) { |
|
1192 | 1192 | throw MappingException::entityListenerClassNotFound($class, $this->className); |
1193 | 1193 | } |
1194 | 1194 | |
1195 | - if (! method_exists($class, $methodName)) { |
|
1195 | + if ( ! method_exists($class, $methodName)) { |
|
1196 | 1196 | throw MappingException::entityListenerMethodNotFound($class, $methodName, $this->className); |
1197 | 1197 | } |
1198 | 1198 | |
@@ -1260,7 +1260,7 @@ discard block |
||
1260 | 1260 | return; |
1261 | 1261 | } |
1262 | 1262 | |
1263 | - if (! (class_exists($className) || interface_exists($className))) { |
|
1263 | + if ( ! (class_exists($className) || interface_exists($className))) { |
|
1264 | 1264 | throw MappingException::invalidClassInDiscriminatorMap($className, $this->className); |
1265 | 1265 | } |
1266 | 1266 |
@@ -82,11 +82,11 @@ discard block |
||
82 | 82 | $joinTableMetadata->setName($namingStrategy->joinTableName($souceEntity, $this->targetEntity, $this->fieldName)); |
83 | 83 | |
84 | 84 | if ($this->joinTableAnnotation !== null) { |
85 | - if (! empty($this->joinTableAnnotation->name)) { |
|
85 | + if ( ! empty($this->joinTableAnnotation->name)) { |
|
86 | 86 | $joinTableMetadata->setName($this->joinTableAnnotation->name); |
87 | 87 | } |
88 | 88 | |
89 | - if (! empty($this->joinTableAnnotation->schema)) { |
|
89 | + if ( ! empty($this->joinTableAnnotation->schema)) { |
|
90 | 90 | $joinTableMetadata->setSchema($this->joinTableAnnotation->schema); |
91 | 91 | } |
92 | 92 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | $selfReferenceEntity = $souceEntity === $this->targetEntity; |
124 | 124 | |
125 | - if (! $joinTableMetadata->getJoinColumns()) { |
|
125 | + if ( ! $joinTableMetadata->getJoinColumns()) { |
|
126 | 126 | $joinColumnAnnotation = new Annotation\JoinColumn(); |
127 | 127 | |
128 | 128 | $joinColumnAnnotation->onDelete = 'CASCADE'; |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $joinTableMetadata->addJoinColumn($this->joinColumnMetadataBuilder->build()); |
138 | 138 | } |
139 | 139 | |
140 | - if (! $joinTableMetadata->getInverseJoinColumns()) { |
|
140 | + if ( ! $joinTableMetadata->getInverseJoinColumns()) { |
|
141 | 141 | $joinColumnAnnotation = new Annotation\JoinColumn(); |
142 | 142 | |
143 | 143 | $joinColumnAnnotation->onDelete = 'CASCADE'; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $namingStrategy = $this->metadataBuildingContext->getNamingStrategy(); |
60 | 60 | $joinColumnMetadata = new Mapping\JoinColumnMetadata(); |
61 | 61 | |
62 | - if (! $this->componentMetadata->isMappedSuperclass) { |
|
62 | + if ( ! $this->componentMetadata->isMappedSuperclass) { |
|
63 | 63 | $joinColumnMetadata->setTableName($this->componentMetadata->getTableName()); |
64 | 64 | } |
65 | 65 | |
@@ -73,19 +73,19 @@ discard block |
||
73 | 73 | $joinColumnMetadata->setNullable($this->joinColumnAnnotation->nullable); |
74 | 74 | $joinColumnMetadata->setUnique($this->joinColumnAnnotation->unique); |
75 | 75 | |
76 | - if (! empty($this->joinColumnAnnotation->name)) { |
|
76 | + if ( ! empty($this->joinColumnAnnotation->name)) { |
|
77 | 77 | $joinColumnMetadata->setColumnName($this->joinColumnAnnotation->name); |
78 | 78 | } |
79 | 79 | |
80 | - if (! empty($this->joinColumnAnnotation->referencedColumnName)) { |
|
80 | + if ( ! empty($this->joinColumnAnnotation->referencedColumnName)) { |
|
81 | 81 | $joinColumnMetadata->setReferencedColumnName($this->joinColumnAnnotation->referencedColumnName); |
82 | 82 | } |
83 | 83 | |
84 | - if (! empty($this->joinColumnAnnotation->fieldName)) { |
|
84 | + if ( ! empty($this->joinColumnAnnotation->fieldName)) { |
|
85 | 85 | $joinColumnMetadata->setAliasedName($this->joinColumnAnnotation->fieldName); |
86 | 86 | } |
87 | 87 | |
88 | - if (! empty($this->joinColumnAnnotation->columnDefinition)) { |
|
88 | + if ( ! empty($this->joinColumnAnnotation->columnDefinition)) { |
|
89 | 89 | $joinColumnMetadata->setColumnDefinition($this->joinColumnAnnotation->columnDefinition); |
90 | 90 | } |
91 | 91 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | if ($parent && $parent->inheritanceType === Mapping\InheritanceType::SINGLE_TABLE) { |
82 | 82 | // Handle the case where a middle mapped super class inherits from a single table inheritance tree. |
83 | 83 | do { |
84 | - if (! $parent->isMappedSuperclass) { |
|
84 | + if ( ! $parent->isMappedSuperclass) { |
|
85 | 85 | $metadata->setTable($parent->table); |
86 | 86 | |
87 | 87 | break; |
@@ -251,13 +251,13 @@ discard block |
||
251 | 251 | 'arguments' => [], |
252 | 252 | ]; |
253 | 253 | |
254 | - if (! isset($idGeneratorDefinition['class'])) { |
|
254 | + if ( ! isset($idGeneratorDefinition['class'])) { |
|
255 | 255 | throw new Mapping\MappingException( |
256 | 256 | sprintf('Cannot instantiate custom generator, no class has been defined') |
257 | 257 | ); |
258 | 258 | } |
259 | 259 | |
260 | - if (! class_exists($idGeneratorDefinition['class'])) { |
|
260 | + if ( ! class_exists($idGeneratorDefinition['class'])) { |
|
261 | 261 | throw new Mapping\MappingException( |
262 | 262 | sprintf('Cannot instantiate custom generator : %s', var_export($idGeneratorDefinition, true)) |
263 | 263 | ); |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | } |
325 | 325 | |
326 | 326 | // Check for owning side to consider join column |
327 | - if (! $association->isOwningSide()) { |
|
327 | + if ( ! $association->isOwningSide()) { |
|
328 | 328 | $metadata->addProperty($association); |
329 | 329 | |
330 | 330 | continue; |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | |
443 | 443 | if (isset($manyToOneElement['fetch'])) { |
444 | 444 | $association->setFetchMode( |
445 | - constant('Doctrine\ORM\Mapping\FetchMode::' . (string) $manyToOneElement['fetch']) |
|
445 | + constant('Doctrine\ORM\Mapping\FetchMode::'.(string) $manyToOneElement['fetch']) |
|
446 | 446 | ); |
447 | 447 | } |
448 | 448 | |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | } |
569 | 569 | |
570 | 570 | // Check for owning side to consider join column |
571 | - if (! $association->isOwningSide()) { |
|
571 | + if ( ! $association->isOwningSide()) { |
|
572 | 572 | $metadata->addProperty($association); |
573 | 573 | |
574 | 574 | continue; |
@@ -613,7 +613,7 @@ discard block |
||
613 | 613 | $fieldName = (string) $overrideElement['name']; |
614 | 614 | $property = $metadata->getProperty($fieldName); |
615 | 615 | |
616 | - if (! $property) { |
|
616 | + if ( ! $property) { |
|
617 | 617 | throw Mapping\MappingException::invalidOverrideFieldName($metadata->getClassName(), $fieldName); |
618 | 618 | } |
619 | 619 | |
@@ -662,7 +662,7 @@ discard block |
||
662 | 662 | // Check for fetch |
663 | 663 | if (isset($overrideElement['fetch'])) { |
664 | 664 | $override->setFetchMode( |
665 | - constant('Doctrine\ORM\Mapping\FetchMode::' . (string) $overrideElement['fetch']) |
|
665 | + constant('Doctrine\ORM\Mapping\FetchMode::'.(string) $overrideElement['fetch']) |
|
666 | 666 | ); |
667 | 667 | } |
668 | 668 | |
@@ -673,7 +673,7 @@ discard block |
||
673 | 673 | // Evaluate <lifecycle-callbacks...> |
674 | 674 | if (isset($xmlRoot->{'lifecycle-callbacks'})) { |
675 | 675 | foreach ($xmlRoot->{'lifecycle-callbacks'}->{'lifecycle-callback'} as $lifecycleCallback) { |
676 | - $eventName = constant(Events::class . '::' . (string) $lifecycleCallback['type']); |
|
676 | + $eventName = constant(Events::class.'::'.(string) $lifecycleCallback['type']); |
|
677 | 677 | $methodName = (string) $lifecycleCallback['method']; |
678 | 678 | |
679 | 679 | $metadata->addLifecycleCallback($eventName, $methodName); |
@@ -685,7 +685,7 @@ discard block |
||
685 | 685 | foreach ($xmlRoot->{'entity-listeners'}->{'entity-listener'} as $listenerElement) { |
686 | 686 | $listenerClassName = (string) $listenerElement['class']; |
687 | 687 | |
688 | - if (! class_exists($listenerClassName)) { |
|
688 | + if ( ! class_exists($listenerClassName)) { |
|
689 | 689 | throw Mapping\MappingException::entityListenerClassNotFound( |
690 | 690 | $listenerClassName, |
691 | 691 | $metadata->getClassName() |
@@ -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 |