@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | $related = get_class($relation->getRelated()); |
145 | 145 | |
146 | 146 | if ((new $related())->getTable() !== $relation->getRelated()->getTable()) { |
147 | - $related .= ' from ' . $relation->getRelated()->getTable(); |
|
147 | + $related .= ' from '.$relation->getRelated()->getTable(); |
|
148 | 148 | } |
149 | 149 | } else { |
150 | 150 | $through[] = $this->hasOneOrManyThroughParent($relation, $relations[$i + 1]); |
@@ -175,11 +175,11 @@ discard block |
||
175 | 175 | $through = get_class($relation->getRelated()); |
176 | 176 | |
177 | 177 | if ($relation instanceof ConcatenableRelation && method_exists($relation, 'getTableForDeepRelationship')) { |
178 | - return $through . ' from ' . $relation->getTableForDeepRelationship(); |
|
178 | + return $through.' from '.$relation->getTableForDeepRelationship(); |
|
179 | 179 | } |
180 | 180 | |
181 | 181 | if ((new $through())->getTable() !== $relation->getRelated()->getTable()) { |
182 | - $through .= ' from ' . $relation->getRelated()->getTable(); |
|
182 | + $through .= ' from '.$relation->getRelated()->getTable(); |
|
183 | 183 | } |
184 | 184 | |
185 | 185 | if (get_class($relation->getRelated()) === get_class($successor->getParent())) { |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | $segments = explode(' as ', $table); |
189 | 189 | |
190 | 190 | if (isset($segments[1])) { |
191 | - $through .= ' as ' . $segments[1]; |
|
191 | + $through .= ' as '.$segments[1]; |
|
192 | 192 | } |
193 | 193 | } |
194 | 194 | |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | ?callable $customThroughKeyCallback, |
212 | 212 | ?callable $customEagerConstraintsCallback, |
213 | 213 | ?callable $customEagerMatchingCallback |
214 | - ): HasManyDeep|HasOneDeep { |
|
214 | + ): HasManyDeep | HasOneDeep { |
|
215 | 215 | $relation->withPostGetCallbacks($postGetCallbacks); |
216 | 216 | |
217 | 217 | if ($customThroughKeyCallback) { |
@@ -269,11 +269,11 @@ discard block |
||
269 | 269 | protected function addConstraintsToHasOneOrManyDeepRelationship( |
270 | 270 | HasManyDeep $deepRelation, |
271 | 271 | array $relations |
272 | - ): HasManyDeep|HasOneDeep { |
|
272 | + ): HasManyDeep | HasOneDeep { |
|
273 | 273 | $relations = $this->normalizeVariadicRelations($relations); |
274 | 274 | |
275 | 275 | foreach ($relations as $i => $relation) { |
276 | - $relationWithoutConstraints = Relation::noConstraints(function () use ($relation) { |
|
276 | + $relationWithoutConstraints = Relation::noConstraints(function() use ($relation) { |
|
277 | 277 | return $relation(); |
278 | 278 | }); |
279 | 279 | |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | $deepRelation->withTrashed($deletedAtColumn); |
328 | 328 | } |
329 | 329 | |
330 | - if (str_starts_with($scope, HasManyDeep::class . ':')) { |
|
330 | + if (str_starts_with($scope, HasManyDeep::class.':')) { |
|
331 | 331 | $deletedAtColumn = explode(':', $scope)[1]; |
332 | 332 | |
333 | 333 | /** @phpstan-ignore method.notFound */ |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | $query->join( |
45 | 45 | $table, |
46 | - function (JoinClause $join) use ($joins) { |
|
46 | + function(JoinClause $join) use ($joins) { |
|
47 | 47 | foreach ($joins as [$first, $second]) { |
48 | 48 | $join->on($first, '=', $second); |
49 | 49 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | /** @phpstan-ignore method.notFound */ |
56 | 56 | $column = $throughParent->getQualifiedDeletedAtColumn(); |
57 | 57 | |
58 | - $query->withGlobalScope(__CLASS__ . ":$column", function (Builder $query) use ($column) { |
|
58 | + $query->withGlobalScope(__CLASS__.":$column", function(Builder $query) use ($column) { |
|
59 | 59 | $query->whereNull($column); |
60 | 60 | }); |
61 | 61 | } |