@@ -135,8 +135,8 @@ discard block |
||
135 | 135 | if (in_array(HasRecursiveRelationships::class, $traits)) { |
136 | 136 | foreach (static::$treeRelationships as $relationship) { |
137 | 137 | $type = $relationship['manyRelation'] |
138 | - ? '\\' . Collection::class . '|\\' . $model::class . '[]' |
|
139 | - : '\\' . $model::class; |
|
138 | + ? '\\'.Collection::class.'|\\'.$model::class.'[]' |
|
139 | + : '\\'.$model::class; |
|
140 | 140 | |
141 | 141 | $this->addRelationship($command, $relationship, $type); |
142 | 142 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | |
145 | 145 | if (in_array(HasGraphRelationships::class, $traits)) { |
146 | 146 | foreach (static::$graphRelationships as $relationship) { |
147 | - $type = '\\' . EloquentCollection::class . '|\\' . $model::class . '[]'; |
|
147 | + $type = '\\'.EloquentCollection::class.'|\\'.$model::class.'[]'; |
|
148 | 148 | |
149 | 149 | $this->addRelationship($command, $relationship, $type); |
150 | 150 | } |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | |
165 | 165 | if ($relationship['manyRelation']) { |
166 | 166 | $command->setProperty( |
167 | - Str::snake($relationship['name']) . '_count', |
|
167 | + Str::snake($relationship['name']).'_count', |
|
168 | 168 | 'int', |
169 | 169 | true, |
170 | 170 | false, |