@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | foreach ($metadata->getPropertiesIterator() as $name => $association) { |
57 | - if (! isset($data[$name]) || $association instanceof FieldMetadata) { |
|
57 | + if ( ! isset($data[$name]) || $association instanceof FieldMetadata) { |
|
58 | 58 | continue; |
59 | 59 | } |
60 | 60 | |
61 | - if (! $association instanceof ToOneAssociationMetadata) { |
|
61 | + if ( ! $association instanceof ToOneAssociationMetadata) { |
|
62 | 62 | unset($data[$name]); |
63 | 63 | |
64 | 64 | continue; |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $targetClassMetadata = $this->em->getClassMetadata($targetEntity); |
69 | 69 | $targetPersister = $this->uow->getEntityPersister($targetEntity); |
70 | 70 | |
71 | - if (! $association->getCache()) { |
|
71 | + if ( ! $association->getCache()) { |
|
72 | 72 | $owningAssociation = ! $association->isOwningSide() |
73 | 73 | ? $targetClassMetadata->getProperty($association->getMappedBy()) |
74 | 74 | : $association; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | continue; |
117 | 117 | } |
118 | 118 | |
119 | - if (! $association->isPrimaryKey()) { |
|
119 | + if ( ! $association->isPrimaryKey()) { |
|
120 | 120 | $targetClass = StaticClassNameConverter::getClass($data[$name]); |
121 | 121 | $targetId = $this->uow->getEntityIdentifier($data[$name]); |
122 | 122 | $data[$name] = new AssociationCacheEntry($targetClass, $targetId); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | ($association instanceof OneToOneAssociationMetadata && ! $association->isOwningSide()) |
166 | 166 | ); |
167 | 167 | |
168 | - if (! $isEagerLoad) { |
|
168 | + if ( ! $isEagerLoad) { |
|
169 | 169 | $data[$name] = $this->em->getReference($assocClass, $assocId); |
170 | 170 | |
171 | 171 | continue; |
@@ -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 |
@@ -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 |
@@ -99,7 +99,7 @@ |
||
99 | 99 | assert($this->fieldName !== null); |
100 | 100 | assert($this->fieldType !== null); |
101 | 101 | |
102 | - if (! $this->generatedValueAnnotation) { |
|
102 | + if ( ! $this->generatedValueAnnotation) { |
|
103 | 103 | return null; |
104 | 104 | } |
105 | 105 |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | */ |
131 | 131 | public function isTransient($className) : bool |
132 | 132 | { |
133 | - if (! $this->initialized) { |
|
133 | + if ( ! $this->initialized) { |
|
134 | 134 | $this->initialize(); |
135 | 135 | } |
136 | 136 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | */ |
179 | 179 | public function getAllMetadata() : array |
180 | 180 | { |
181 | - if (! $this->initialized) { |
|
181 | + if ( ! $this->initialized) { |
|
182 | 182 | $this->initialize(); |
183 | 183 | } |
184 | 184 | |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | |
215 | 215 | public function getTargetPlatform() : Platforms\AbstractPlatform |
216 | 216 | { |
217 | - if (! $this->targetPlatform) { |
|
217 | + if ( ! $this->targetPlatform) { |
|
218 | 218 | $this->targetPlatform = $this->em->getConnection()->getDatabasePlatform(); |
219 | 219 | } |
220 | 220 | |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | |
257 | 257 | try { |
258 | 258 | if ($this->cacheDriver) { |
259 | - $cached = $this->cacheDriver->fetch($entityClassName . $this->cacheSalt); |
|
259 | + $cached = $this->cacheDriver->fetch($entityClassName.$this->cacheSalt); |
|
260 | 260 | |
261 | 261 | if ($cached instanceof ClassMetadata) { |
262 | 262 | $this->loadedMetadata[$entityClassName] = $cached; |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | foreach ($this->loadMetadata($entityClassName, $metadataBuildingContext) as $loadedClass) { |
267 | 267 | $loadedClassName = $loadedClass->getClassName(); |
268 | 268 | |
269 | - $this->cacheDriver->save($loadedClassName . $this->cacheSalt, $loadedClass, null); |
|
269 | + $this->cacheDriver->save($loadedClassName.$this->cacheSalt, $loadedClass, null); |
|
270 | 270 | } |
271 | 271 | } |
272 | 272 | } else { |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | } catch (PersistenceMappingException $loadingException) { |
276 | 276 | $fallbackMetadataResponse = $this->onNotFoundMetadata($entityClassName, $metadataBuildingContext); |
277 | 277 | |
278 | - if (! $fallbackMetadataResponse) { |
|
278 | + if ( ! $fallbackMetadataResponse) { |
|
279 | 279 | throw $loadingException; |
280 | 280 | } |
281 | 281 | |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | */ |
312 | 312 | protected function loadMetadata(string $name, ClassMetadataBuildingContext $metadataBuildingContext) : array |
313 | 313 | { |
314 | - if (! $this->initialized) { |
|
314 | + if ( ! $this->initialized) { |
|
315 | 315 | $this->initialize(); |
316 | 316 | } |
317 | 317 | |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | $parentClasses = []; |
358 | 358 | |
359 | 359 | foreach (array_reverse($this->getReflectionService()->getParentClasses($name)) as $parentClass) { |
360 | - if (! $this->getDriver()->isTransient($parentClass)) { |
|
360 | + if ( ! $this->getDriver()->isTransient($parentClass)) { |
|
361 | 361 | $parentClasses[] = $parentClass; |
362 | 362 | } |
363 | 363 | } |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | string $className, |
373 | 373 | ClassMetadataBuildingContext $metadataBuildingContext |
374 | 374 | ) : ?ClassMetadata { |
375 | - if (! $this->evm->hasListeners(Events::onClassMetadataNotFound)) { |
|
375 | + if ( ! $this->evm->hasListeners(Events::onClassMetadataNotFound)) { |
|
376 | 376 | return null; |
377 | 377 | } |
378 | 378 | |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | */ |
417 | 417 | protected function validateRuntimeMetadata(ClassMetadata $class, ?ClassMetadata $parent = null) : void |
418 | 418 | { |
419 | - if (! $class->getReflectionClass()) { |
|
419 | + if ( ! $class->getReflectionClass()) { |
|
420 | 420 | // only validate if there is a reflection class instance |
421 | 421 | return; |
422 | 422 | } |
@@ -426,13 +426,13 @@ discard block |
||
426 | 426 | $class->validateLifecycleCallbacks($this->getReflectionService()); |
427 | 427 | |
428 | 428 | // verify inheritance |
429 | - if (! $class->isMappedSuperclass && $class->inheritanceType !== InheritanceType::NONE) { |
|
430 | - if (! $parent) { |
|
431 | - if (! $class->discriminatorMap) { |
|
429 | + if ( ! $class->isMappedSuperclass && $class->inheritanceType !== InheritanceType::NONE) { |
|
430 | + if ( ! $parent) { |
|
431 | + if ( ! $class->discriminatorMap) { |
|
432 | 432 | throw MappingException::missingDiscriminatorMap($class->getClassName()); |
433 | 433 | } |
434 | 434 | |
435 | - if (! $class->discriminatorColumn) { |
|
435 | + if ( ! $class->discriminatorColumn) { |
|
436 | 436 | throw MappingException::missingDiscriminatorColumn($class->getClassName()); |
437 | 437 | } |
438 | 438 | } |
@@ -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 | /** |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | */ |
385 | 385 | public static function duplicateQueryMapping($entity, $queryName) |
386 | 386 | { |
387 | - return new self('Query named "' . $queryName . '" in "' . $entity . '" was already declared, but it must be declared only once'); |
|
387 | + return new self('Query named "'.$queryName.'" in "'.$entity.'" was already declared, but it must be declared only once'); |
|
388 | 388 | } |
389 | 389 | |
390 | 390 | /** |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | */ |
396 | 396 | public static function duplicateResultSetMapping($entity, $resultName) |
397 | 397 | { |
398 | - return new self('Result set mapping named "' . $resultName . '" in "' . $entity . '" was already declared, but it must be declared only once'); |
|
398 | + return new self('Result set mapping named "'.$resultName.'" in "'.$entity.'" was already declared, but it must be declared only once'); |
|
399 | 399 | } |
400 | 400 | |
401 | 401 | /** |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | */ |
406 | 406 | public static function singleIdNotAllowedOnCompositePrimaryKey($entity) |
407 | 407 | { |
408 | - return new self('Single id is not allowed on composite primary key in entity ' . $entity); |
|
408 | + return new self('Single id is not allowed on composite primary key in entity '.$entity); |
|
409 | 409 | } |
410 | 410 | |
411 | 411 | /** |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | */ |
416 | 416 | public static function noIdDefined($entity) |
417 | 417 | { |
418 | - return new self('No ID defined for entity ' . $entity); |
|
418 | + return new self('No ID defined for entity '.$entity); |
|
419 | 419 | } |
420 | 420 | |
421 | 421 | /** |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | */ |
424 | 424 | public static function unsupportedOptimisticLockingType(Type $unsupportedType) |
425 | 425 | { |
426 | - return new self('Locking type "' . $unsupportedType->getName() . '" is not supported by Doctrine.'); |
|
426 | + return new self('Locking type "'.$unsupportedType->getName().'" is not supported by Doctrine.'); |
|
427 | 427 | } |
428 | 428 | |
429 | 429 | /** |
@@ -433,13 +433,13 @@ discard block |
||
433 | 433 | */ |
434 | 434 | public static function fileMappingDriversRequireConfiguredDirectoryPath($path = null) |
435 | 435 | { |
436 | - if (! empty($path)) { |
|
437 | - $path = '[' . $path . ']'; |
|
436 | + if ( ! empty($path)) { |
|
437 | + $path = '['.$path.']'; |
|
438 | 438 | } |
439 | 439 | |
440 | 440 | return new self( |
441 | - 'File mapping drivers must have a valid directory path, ' . |
|
442 | - 'however the given path ' . $path . ' seems to be incorrect!' |
|
441 | + 'File mapping drivers must have a valid directory path, '. |
|
442 | + 'however the given path '.$path.' seems to be incorrect!' |
|
443 | 443 | ); |
444 | 444 | } |
445 | 445 | |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | public static function invalidClassInDiscriminatorMap($className, $owningClass) |
456 | 456 | { |
457 | 457 | return new self(sprintf( |
458 | - "Entity class '%s' used in the discriminator map of class '%s' " . |
|
458 | + "Entity class '%s' used in the discriminator map of class '%s' ". |
|
459 | 459 | 'does not exist.', |
460 | 460 | $className, |
461 | 461 | $owningClass |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | public static function sqlConversionNotAllowedForPrimaryKeyProperties($className, $fieldName, $type) |
522 | 522 | { |
523 | 523 | return new self(sprintf( |
524 | - 'It is not possible to set id field "%s" to type "%s" in entity class "%s". ' . |
|
524 | + 'It is not possible to set id field "%s" to type "%s" in entity class "%s". '. |
|
525 | 525 | 'The type "%s" requires conversion SQL which is not allowed for identifiers.', |
526 | 526 | $fieldName, |
527 | 527 | $type, |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | */ |
558 | 558 | public static function duplicateColumnName($className, $columnName) |
559 | 559 | { |
560 | - return new self("Duplicate definition of column '" . $columnName . "' on entity '" . $className . "' in a field or discriminator column mapping."); |
|
560 | + return new self("Duplicate definition of column '".$columnName."' on entity '".$className."' in a field or discriminator column mapping."); |
|
561 | 561 | } |
562 | 562 | |
563 | 563 | /** |
@@ -568,7 +568,7 @@ discard block |
||
568 | 568 | */ |
569 | 569 | public static function illegalToManyAssociationOnMappedSuperclass($className, $field) |
570 | 570 | { |
571 | - return new self("It is illegal to put an inverse side one-to-many or many-to-many association on mapped superclass '" . $className . '#' . $field . "'."); |
|
571 | + return new self("It is illegal to put an inverse side one-to-many or many-to-many association on mapped superclass '".$className.'#'.$field."'."); |
|
572 | 572 | } |
573 | 573 | |
574 | 574 | /** |
@@ -580,8 +580,8 @@ discard block |
||
580 | 580 | */ |
581 | 581 | public static function cannotMapCompositePrimaryKeyEntitiesAsForeignId($className, $targetEntity, $targetField) |
582 | 582 | { |
583 | - return new self("It is not possible to map entity '" . $className . "' with a composite primary key " . |
|
584 | - "as part of the primary key of another entity '" . $targetEntity . '#' . $targetField . "'."); |
|
583 | + return new self("It is not possible to map entity '".$className."' with a composite primary key ". |
|
584 | + "as part of the primary key of another entity '".$targetEntity.'#'.$targetField."'."); |
|
585 | 585 | } |
586 | 586 | |
587 | 587 | /** |
@@ -635,8 +635,8 @@ discard block |
||
635 | 635 | */ |
636 | 636 | public static function illegalOrphanRemoval($className, $field) |
637 | 637 | { |
638 | - return new self('Orphan removal is only allowed on one-to-one and one-to-many ' . |
|
639 | - 'associations, but ' . $className . '#' . $field . ' is not.'); |
|
638 | + return new self('Orphan removal is only allowed on one-to-one and one-to-many '. |
|
639 | + 'associations, but '.$className.'#'.$field.' is not.'); |
|
640 | 640 | } |
641 | 641 | |
642 | 642 | /** |
@@ -668,7 +668,7 @@ discard block |
||
668 | 668 | */ |
669 | 669 | public static function noInheritanceOnMappedSuperClass($className) |
670 | 670 | { |
671 | - return new self("It is not supported to define inheritance information on a mapped superclass '" . $className . "'."); |
|
671 | + return new self("It is not supported to define inheritance information on a mapped superclass '".$className."'."); |
|
672 | 672 | } |
673 | 673 | |
674 | 674 | /** |
@@ -680,8 +680,8 @@ discard block |
||
680 | 680 | public static function mappedClassNotPartOfDiscriminatorMap($className, $rootClassName) |
681 | 681 | { |
682 | 682 | return new self( |
683 | - "Entity '" . $className . "' has to be part of the discriminator map of '" . $rootClassName . "' " . |
|
684 | - "to be properly mapped in the inheritance hierarchy. Alternatively you can make '" . $className . "' an abstract class " . |
|
683 | + "Entity '".$className."' has to be part of the discriminator map of '".$rootClassName."' ". |
|
684 | + "to be properly mapped in the inheritance hierarchy. Alternatively you can make '".$className."' an abstract class ". |
|
685 | 685 | 'to avoid this exception from occurring.' |
686 | 686 | ); |
687 | 687 | } |
@@ -694,7 +694,7 @@ discard block |
||
694 | 694 | */ |
695 | 695 | public static function lifecycleCallbackMethodNotFound($className, $methodName) |
696 | 696 | { |
697 | - return new self("Entity '" . $className . "' has no public method '" . $methodName . "' to be registered as lifecycle callback."); |
|
697 | + return new self("Entity '".$className."' has no public method '".$methodName."' to be registered as lifecycle callback."); |
|
698 | 698 | } |
699 | 699 | |
700 | 700 | /** |
@@ -728,7 +728,7 @@ discard block |
||
728 | 728 | */ |
729 | 729 | public static function invalidFetchMode($className, $annotation) |
730 | 730 | { |
731 | - return new self("Entity '" . $className . "' has a mapping with invalid fetch mode '" . $annotation . "'"); |
|
731 | + return new self("Entity '".$className."' has a mapping with invalid fetch mode '".$annotation."'"); |
|
732 | 732 | } |
733 | 733 | |
734 | 734 | /** |
@@ -738,7 +738,7 @@ discard block |
||
738 | 738 | */ |
739 | 739 | public static function compositeKeyAssignedIdGeneratorRequired($className) |
740 | 740 | { |
741 | - return new self("Entity '" . $className . "' has a composite identifier but uses an ID generator other than manually assigning (Identity, Sequence). This is not supported."); |
|
741 | + return new self("Entity '".$className."' has a composite identifier but uses an ID generator other than manually assigning (Identity, Sequence). This is not supported."); |
|
742 | 742 | } |
743 | 743 | |
744 | 744 | /** |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | */ |
751 | 751 | public static function invalidTargetEntityClass($targetEntity, $sourceEntity, $associationName) |
752 | 752 | { |
753 | - return new self("The target-entity '" . $targetEntity . "' cannot be found in '" . $sourceEntity . '#' . $associationName . "'."); |
|
753 | + return new self("The target-entity '".$targetEntity."' cannot be found in '".$sourceEntity.'#'.$associationName."'."); |
|
754 | 754 | } |
755 | 755 | |
756 | 756 | /** |
@@ -762,8 +762,8 @@ discard block |
||
762 | 762 | */ |
763 | 763 | public static function invalidCascadeOption(array $cascades, $className, $propertyName) |
764 | 764 | { |
765 | - $cascades = implode(', ', array_map(static function ($e) { |
|
766 | - return "'" . $e . "'"; |
|
765 | + $cascades = implode(', ', array_map(static function($e) { |
|
766 | + return "'".$e."'"; |
|
767 | 767 | }, $cascades)); |
768 | 768 | |
769 | 769 | return new self(sprintf( |
@@ -796,7 +796,7 @@ discard block |
||
796 | 796 | { |
797 | 797 | return new self( |
798 | 798 | sprintf( |
799 | - 'Infinite nesting detected for embedded property %s::%s. ' . |
|
799 | + 'Infinite nesting detected for embedded property %s::%s. '. |
|
800 | 800 | 'You cannot embed an embeddable from the same type inside an embeddable.', |
801 | 801 | $className, |
802 | 802 | $propertyName |
@@ -811,7 +811,7 @@ discard block |
||
811 | 811 | { |
812 | 812 | return new self( |
813 | 813 | sprintf( |
814 | - 'Class %s not found in namespaces %s.' . |
|
814 | + 'Class %s not found in namespaces %s.'. |
|
815 | 815 | $className, |
816 | 816 | implode(', ', $namespaces) |
817 | 817 | ) |
@@ -58,7 +58,7 @@ |
||
58 | 58 | $this->allocationSize |
59 | 59 | ); |
60 | 60 | |
61 | - if ($conn->executeUpdate($updateSql, [1 => $currentLevel, 2 => $currentLevel+1]) !== 1) { |
|
61 | + if ($conn->executeUpdate($updateSql, [1 => $currentLevel, 2 => $currentLevel + 1]) !== 1) { |
|
62 | 62 | // no affected rows, concurrency issue, throw exception |
63 | 63 | } |
64 | 64 | } else { |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | { |
157 | 157 | $this->addresses = $addresses; |
158 | 158 | |
159 | - $addresses->map(function ($address) { |
|
159 | + $addresses->map(function($address) { |
|
160 | 160 | $address->user = $this; |
161 | 161 | }); |
162 | 162 | } |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | { |
166 | 166 | $this->pets = $pets; |
167 | 167 | |
168 | - $pets->map(function ($pet) { |
|
168 | + $pets->map(function($pet) { |
|
169 | 169 | $pet->owner = $this; |
170 | 170 | }); |
171 | 171 | } |