@@ -88,7 +88,7 @@ |
||
88 | 88 | $instance = new $segments[0](); |
89 | 89 | |
90 | 90 | if (isset($segments[1])) { |
91 | - $instance->setTable($instance->getTable() . ' as ' . $segments[1]); |
|
91 | + $instance->setTable($instance->getTable().' as '.$segments[1]); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | return $instance; |
@@ -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(), |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | /** @phpstan-ignore method.notFound */ |
125 | 125 | $column = $model->getQualifiedDeletedAtColumn(); |
126 | 126 | |
127 | - $query->withGlobalScope(__CLASS__ . ":{$column}", function (Builder $query) use ($column) { |
|
127 | + $query->withGlobalScope(__CLASS__.":{$column}", function(Builder $query) use ($column) { |
|
128 | 128 | $query->whereNull($column); |
129 | 129 | }); |
130 | 130 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | return $this->foreignKeyLookup[$table]; |
146 | 146 | } |
147 | 147 | |
148 | - return Str::singular($table) . '_id'; |
|
148 | + return Str::singular($table).'_id'; |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | public function first($columns = ['*']) |
249 | 249 | { |
250 | 250 | if ($columns === ['*']) { |
251 | - $columns = [$this->related->getTable() . '.*']; |
|
251 | + $columns = [$this->related->getTable().'.*']; |
|
252 | 252 | } |
253 | 253 | |
254 | 254 | return $this->query->first($columns); |
@@ -260,10 +260,10 @@ discard block |
||
260 | 260 | $columns = $this->query->getQuery()->columns ? [] : $columns; |
261 | 261 | |
262 | 262 | if ($columns === ['*']) { |
263 | - $columns = [$this->related->getTable() . '.*']; |
|
263 | + $columns = [$this->related->getTable().'.*']; |
|
264 | 264 | } |
265 | 265 | |
266 | - $columns[] = $this->getQualifiedFirstLocalKeyName() . ' as ' . static::THROUGH_KEY; |
|
266 | + $columns[] = $this->getQualifiedFirstLocalKeyName().' as '.static::THROUGH_KEY; |
|
267 | 267 | |
268 | 268 | $this->query->addSelect($columns); |
269 | 269 | |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | ); |
284 | 284 | } |
285 | 285 | |
286 | - $foreignKey = $from . '.' . $this->getFirstForeignKeyName(); |
|
286 | + $foreignKey = $from.'.'.$this->getFirstForeignKeyName(); |
|
287 | 287 | |
288 | 288 | /** @var \Illuminate\Database\Eloquent\Builder<TRelatedModel> $query */ |
289 | 289 | $query = $query->select($columns)->whereColumn( |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | |
317 | 317 | /** @var string[] $columns */ |
318 | 318 | foreach ($columns as $column) { |
319 | - $this->query->withoutGlobalScope(__CLASS__ . ":$column"); |
|
319 | + $this->query->withoutGlobalScope(__CLASS__.":$column"); |
|
320 | 320 | } |
321 | 321 | |
322 | 322 | return $this; |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | throw new RuntimeException('No "through" parent models were specified.'); |
346 | 346 | } |
347 | 347 | |
348 | - return $this->prefix . $this->getForeignKeyName($firstThroughParent); |
|
348 | + return $this->prefix.$this->getForeignKeyName($firstThroughParent); |
|
349 | 349 | } |
350 | 350 | |
351 | 351 | /** |