@@ -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 | } |