@@ -82,7 +82,7 @@ |
||
| 82 | 82 | * @param Column $column |
| 83 | 83 | * @return int|string |
| 84 | 84 | */ |
| 85 | - public function getVarNameByColumn(Column $column): int|string; |
|
| 85 | + public function getVarNameByColumn(Column $column): int | string; |
|
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * @return Column[] |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | |
| 49 | 49 | public function name(): string |
| 50 | 50 | { |
| 51 | - return substr($this->entityClass, strrpos($this->entityClass, '\\') + 1). 'Map'; |
|
| 51 | + return substr($this->entityClass, strrpos($this->entityClass, '\\') + 1) . 'Map'; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | public function getEntityClass(): string |
@@ -137,14 +137,11 @@ |
||
| 137 | 137 | foreach ($attributes as $attribute) { |
| 138 | 138 | if ($attribute->getName() === Column::class || is_subclass_of($attribute->getName(), Column::class)) { |
| 139 | 139 | $columns[$property->getName()] = $attribute->newInstance(); |
| 140 | - } |
|
| 141 | - else if ($attribute->getName() === Constraint::class || is_subclass_of($attribute->getName(), Constraint::class)) { |
|
| 140 | + } else if ($attribute->getName() === Constraint::class || is_subclass_of($attribute->getName(), Constraint::class)) { |
|
| 142 | 141 | $constraints[$property->getName()] = $attribute->newInstance(); |
| 143 | - } |
|
| 144 | - else if ($attribute->getName() === Embedded::class || is_subclass_of($attribute->getName(), Embedded::class)) { |
|
| 142 | + } else if ($attribute->getName() === Embedded::class || is_subclass_of($attribute->getName(), Embedded::class)) { |
|
| 145 | 143 | $embedded[$property->getName()] = $attribute->newInstance(); |
| 146 | - } |
|
| 147 | - else if ($attribute->getName() === Complex::class || is_subclass_of($attribute->getName(), Complex::class)) { |
|
| 144 | + } else if ($attribute->getName() === Complex::class || is_subclass_of($attribute->getName(), Complex::class)) { |
|
| 148 | 145 | $complexes[$property->getName()] = $attribute->newInstance(); |
| 149 | 146 | } |
| 150 | 147 | } |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | * @return int|string |
| 87 | 87 | * @throws EntityException |
| 88 | 88 | */ |
| 89 | - public function getVarNameByColumn(Column $column): int|string |
|
| 89 | + public function getVarNameByColumn(Column $column): int | string |
|
| 90 | 90 | { |
| 91 | 91 | foreach ($this->getOriginFieldNames() as $varName => $originFieldName) { |
| 92 | 92 | if ($originFieldName == $column->name) { |