@@ -146,8 +146,8 @@ discard block |
||
| 146 | 146 | { |
| 147 | 147 | foreach (static::$treeRelationMap as $relationDefinition) { |
| 148 | 148 | $type = $relationDefinition['manyRelation'] |
| 149 | - ? '\\' . Collection::class . '|\\' . $model::class . '[]' |
|
| 150 | - : '\\' . $model::class; |
|
| 149 | + ? '\\'.Collection::class.'|\\'.$model::class.'[]' |
|
| 150 | + : '\\'.$model::class; |
|
| 151 | 151 | |
| 152 | 152 | $command->setProperty( |
| 153 | 153 | $relationDefinition['name'], |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | |
| 161 | 161 | if ($relationDefinition['manyRelation']) { |
| 162 | 162 | $command->setProperty( |
| 163 | - Str::snake($relationDefinition['name']) . '_count', |
|
| 163 | + Str::snake($relationDefinition['name']).'_count', |
|
| 164 | 164 | 'int', |
| 165 | 165 | true, |
| 166 | 166 | false, |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | protected function setGraphRelationProperties(ModelsCommand $command, Model $model): void |
| 175 | 175 | { |
| 176 | 176 | foreach (static::$graphRelationMap as $relationDefinition) { |
| 177 | - $type = '\\' . EloquentCollection::class . '|\\' . $model::class . '[]'; |
|
| 177 | + $type = '\\'.EloquentCollection::class.'|\\'.$model::class.'[]'; |
|
| 178 | 178 | |
| 179 | 179 | $command->setProperty( |
| 180 | 180 | $relationDefinition['name'], |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | |
| 188 | 188 | if ($relationDefinition['manyRelation']) { |
| 189 | 189 | $command->setProperty( |
| 190 | - Str::snake($relationDefinition['name']) . '_count', |
|
| 190 | + Str::snake($relationDefinition['name']).'_count', |
|
| 191 | 191 | 'int', |
| 192 | 192 | true, |
| 193 | 193 | false, |