@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | protected function addRelationship(ModelsCommand $command, ReflectionMethod $method, Relation $relationship): void |
49 | 49 | { |
50 | - $type = '\\' . $relationship->getRelated()::class; |
|
50 | + $type = '\\'.$relationship->getRelated()::class; |
|
51 | 51 | |
52 | 52 | $command->setProperty( |
53 | 53 | $method->getName(), |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | /** @phpstan-ignore method.notFound */ |
128 | 128 | $column = $model->getQualifiedDeletedAtColumn(); |
129 | 129 | |
130 | - $query->withGlobalScope(__CLASS__ . ":{$column}", function (Builder $query) use ($column) { |
|
130 | + $query->withGlobalScope(__CLASS__.":{$column}", function(Builder $query) use ($column) { |
|
131 | 131 | $query->whereNull($column); |
132 | 132 | }); |
133 | 133 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | return $this->foreignKeyLookup[$table]; |
149 | 149 | } |
150 | 150 | |
151 | - return Str::singular($table) . '_id'; |
|
151 | + return Str::singular($table).'_id'; |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | public function first($columns = ['*']) |
270 | 270 | { |
271 | 271 | if ($columns === ['*']) { |
272 | - $columns = [$this->related->getTable() . '.*']; |
|
272 | + $columns = [$this->related->getTable().'.*']; |
|
273 | 273 | } |
274 | 274 | |
275 | 275 | return $this->query->first($columns); |
@@ -286,10 +286,10 @@ discard block |
||
286 | 286 | $columns = $this->query->getQuery()->columns ? [] : $columns; |
287 | 287 | |
288 | 288 | if ($columns === ['*']) { |
289 | - $columns = [$this->related->getTable() . '.*']; |
|
289 | + $columns = [$this->related->getTable().'.*']; |
|
290 | 290 | } |
291 | 291 | |
292 | - $columns[] = $this->getQualifiedFirstLocalKeyName() . ' as ' . static::THROUGH_KEY; |
|
292 | + $columns[] = $this->getQualifiedFirstLocalKeyName().' as '.static::THROUGH_KEY; |
|
293 | 293 | |
294 | 294 | $this->query->addSelect($columns); |
295 | 295 | |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | ); |
317 | 317 | } |
318 | 318 | |
319 | - $foreignKey = $from . '.' . $this->getFirstForeignKeyName(); |
|
319 | + $foreignKey = $from.'.'.$this->getFirstForeignKeyName(); |
|
320 | 320 | |
321 | 321 | /** @var \Illuminate\Database\Eloquent\Builder<\Illuminate\Database\Eloquent\Model> $query */ |
322 | 322 | $query = $query->select($columns)->whereColumn( |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | |
350 | 350 | /** @var string[] $columns */ |
351 | 351 | foreach ($columns as $column) { |
352 | - $this->query->withoutGlobalScope(__CLASS__ . ":$column"); |
|
352 | + $this->query->withoutGlobalScope(__CLASS__.":$column"); |
|
353 | 353 | } |
354 | 354 | |
355 | 355 | return $this; |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | /** @var TIntermediateModel $firstThroughParent */ |
376 | 376 | $firstThroughParent = end($this->throughParents); |
377 | 377 | |
378 | - return $this->prefix . $this->getForeignKeyName($firstThroughParent); |
|
378 | + return $this->prefix.$this->getForeignKeyName($firstThroughParent); |
|
379 | 379 | } |
380 | 380 | |
381 | 381 | /** |