@@ -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( |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | throw new InvalidMappingException(sprintf( |
125 | 125 | "Missing referenced orm file '%s'%s!", |
126 | 126 | $mappingFile, |
127 | - is_string($parentMappingFile) ?sprintf(", referenced in file '%s'", $parentMappingFile) :'' |
|
127 | + is_string($parentMappingFile) ?sprintf(", referenced in file '%s'", $parentMappingFile) : '' |
|
128 | 128 | )); |
129 | 129 | } |
130 | 130 | |
@@ -771,7 +771,7 @@ discard block |
||
771 | 771 | } |
772 | 772 | |
773 | 773 | } elseif ($key === 'type') { |
774 | - $type = Type::getType((string) $attributeValue); |
|
774 | + $type = Type::getType((string)$attributeValue); |
|
775 | 775 | |
776 | 776 | } elseif (isset($keyMap[$key])) { |
777 | 777 | if ($key === 'nullable') { |
@@ -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 |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | |
12 | 12 | class AddiksRDMBundle extends Bundle |
13 | 13 | { |
14 | - private static ClassLoader|null $classLoader = null; |
|
14 | + private static ClassLoader | null $classLoader = null; |
|
15 | 15 | |
16 | 16 | public function boot() |
17 | 17 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | $dataLoader->boot($entityManager); |
31 | 31 | } |
32 | 32 | |
33 | - public static function classLoader(): ClassLoader|null |
|
33 | + public static function classLoader(): ClassLoader | null |
|
34 | 34 | { |
35 | 35 | return self::$classLoader; |
36 | 36 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | private RDMMappingDriver $rdmMappingDriver, |
30 | 30 | private BlackMagicDataLoader $dataLoader, |
31 | 31 | public readonly string $folderNameInCache = 'symfony_rdm_entities', |
32 | - private string|null $projectRootFolder = null |
|
32 | + private string | null $projectRootFolder = null |
|
33 | 33 | ) { |
34 | 34 | if (!empty($this->projectRootFolder)) { |
35 | 35 | $this->projectRootFolder = realpath($projectRootFolder) . '/'; |