@@ -344,7 +344,7 @@ |
||
| 344 | 344 | if (!is_null($actualValue) && !$actualValue instanceof $this->className) { |
| 345 | 345 | throw FailedRDMAssertionException::expectedInstanceOf( |
| 346 | 346 | $this->className, |
| 347 | - is_object($actualValue) ?get_class($actualValue) :gettype($actualValue), |
|
| 347 | + is_object($actualValue) ?get_class($actualValue) : gettype($actualValue), |
|
| 348 | 348 | $this->origin |
| 349 | 349 | ); |
| 350 | 350 | } |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | if (!empty($calleeDescription)) { |
| 141 | - $calleeDescription .= $this->isStaticCall ?'::' :'->'; |
|
| 141 | + $calleeDescription .= $this->isStaticCall ? '::' : '->'; |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | throw new ORMException(sprintf( |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | $dbalColumn = new DBALColumn( |
| 140 | - (string) $column->name, |
|
| 140 | + (string)$column->name, |
|
| 141 | 141 | Type::getType($column->type), |
| 142 | 142 | [ |
| 143 | 143 | 'notnull' => !$column->nullable, |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | } elseif ($annotation instanceof ColumnAnnotation && $convertFieldsOnRootLevel) { |
| 246 | 246 | /** @var DBALColumn $dbalColumn */ |
| 247 | 247 | $dbalColumn = new DBALColumn( |
| 248 | - (string) $annotation->name, |
|
| 248 | + (string)$annotation->name, |
|
| 249 | 249 | Type::getType($annotation->type ?? 'string'), |
| 250 | 250 | [ |
| 251 | 251 | 'notnull' => !$annotation->nullable, |
@@ -101,7 +101,7 @@ |
||
| 101 | 101 | return null; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - public function getDocComment(): string|false |
|
| 104 | + public function getDocComment(): string | false |
|
| 105 | 105 | { |
| 106 | 106 | return false; |
| 107 | 107 | } |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | public function processMapping( |
| 34 | 34 | EntityMappingInterface $mapping, |
| 35 | 35 | ClassLoader $loader |
| 36 | - ): string|null { |
|
| 36 | + ): string | null { |
|
| 37 | 37 | /** @var array<array-key, Column> $columns */ |
| 38 | 38 | $columns = $mapping->collectDBALColumns(); |
| 39 | 39 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | throw new InvalidMappingException(sprintf( |
| 126 | 126 | "Missing referenced orm file '%s'%s!", |
| 127 | 127 | $mappingFile, |
| 128 | - is_string($parentMappingFile) ?sprintf(", referenced in file '%s'", $parentMappingFile) :'' |
|
| 128 | + is_string($parentMappingFile) ?sprintf(", referenced in file '%s'", $parentMappingFile) : '' |
|
| 129 | 129 | )); |
| 130 | 130 | } |
| 131 | 131 | |
@@ -627,13 +627,13 @@ discard block |
||
| 627 | 627 | $jsonSerializedValue = ""; |
| 628 | 628 | |
| 629 | 629 | if ($this->hasAttributeValue($fixNode, "json")) { |
| 630 | - $jsonSerializedValue = (string) $this->readAttributeValue($fixNode, "json"); |
|
| 630 | + $jsonSerializedValue = (string)$this->readAttributeValue($fixNode, "json"); |
|
| 631 | 631 | } |
| 632 | 632 | |
| 633 | 633 | if ($this->hasAttributeValue($fixNode, "string")) { |
| 634 | 634 | $jsonSerializedValue = sprintf( |
| 635 | 635 | '"%s"', |
| 636 | - addslashes((string) $this->readAttributeValue($fixNode, "string")) |
|
| 636 | + addslashes((string)$this->readAttributeValue($fixNode, "string")) |
|
| 637 | 637 | ); |
| 638 | 638 | } |
| 639 | 639 | |
@@ -820,7 +820,7 @@ discard block |
||
| 820 | 820 | } |
| 821 | 821 | |
| 822 | 822 | } elseif ($key === 'type') { |
| 823 | - $type = Type::getType((string) $attributeValue); |
|
| 823 | + $type = Type::getType((string)$attributeValue); |
|
| 824 | 824 | |
| 825 | 825 | } elseif (isset($keyMap[$key])) { |
| 826 | 826 | if ($key === 'nullable') { |
@@ -67,14 +67,14 @@ |
||
| 67 | 67 | /** @var object|null */ |
| 68 | 68 | private $entityDataCacheSource; |
| 69 | 69 | |
| 70 | - private Closure|null $entityManagerLoader = null; |
|
| 70 | + private Closure | null $entityManagerLoader = null; |
|
| 71 | 71 | |
| 72 | 72 | public function __construct(MappingDriverInterface $mappingDriver) |
| 73 | 73 | { |
| 74 | 74 | $this->mappingDriver = $mappingDriver; |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | - public function boot(EntityManagerInterface|Closure $entityManager): void |
|
| 77 | + public function boot(EntityManagerInterface | Closure $entityManager): void |
|
| 78 | 78 | { |
| 79 | 79 | if ($entityManager instanceof EntityManagerInterface) { |
| 80 | 80 | /** @var ClassMetadataFactory $metadataFactory */ |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | $this->serviceId = $serviceId; |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - public function boot(EntityManagerInterface|Closure $entityManager): void |
|
| 44 | + public function boot(EntityManagerInterface | Closure $entityManager): void |
|
| 45 | 45 | { |
| 46 | 46 | $this->loadDataLoader()->boot($entityManager); |
| 47 | 47 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $this->mappingDriver = $mappingDriver; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - public function boot(EntityManagerInterface|Closure $entityManager): void |
|
| 60 | + public function boot(EntityManagerInterface | Closure $entityManager): void |
|
| 61 | 61 | { |
| 62 | 62 | } |
| 63 | 63 | |