@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $related = get_class($relation->getRelated()); |
72 | 72 | |
73 | 73 | if ((new $related())->getTable() !== $relation->getRelated()->getTable()) { |
74 | - $related .= ' from ' . $relation->getRelated()->getTable(); |
|
74 | + $related .= ' from '.$relation->getRelated()->getTable(); |
|
75 | 75 | } |
76 | 76 | } else { |
77 | 77 | $through[] = $this->hasOneOrManyThroughParent($relation, $relations[$i + 1]); |
@@ -280,7 +280,7 @@ discard block |
||
280 | 280 | $through = get_class($relation->getRelated()); |
281 | 281 | |
282 | 282 | if ((new $through())->getTable() !== $relation->getRelated()->getTable()) { |
283 | - $through .= ' from ' . $relation->getRelated()->getTable(); |
|
283 | + $through .= ' from '.$relation->getRelated()->getTable(); |
|
284 | 284 | } |
285 | 285 | |
286 | 286 | if (get_class($relation->getRelated()) === get_class($successor->getParent())) { |
@@ -332,13 +332,13 @@ discard block |
||
332 | 332 | protected function addConstraintsToHasOneOrManyDeepRelationship( |
333 | 333 | HasManyDeep $deepRelation, |
334 | 334 | array $relations |
335 | - ): HasManyDeep|HasOneDeep { |
|
335 | + ): HasManyDeep | HasOneDeep { |
|
336 | 336 | if (is_array($relations[0]) && !is_callable($relations[0])) { |
337 | 337 | $relations = $relations[0]; |
338 | 338 | } |
339 | 339 | |
340 | 340 | foreach ($relations as $i => $relation) { |
341 | - $relationWithoutConstraints = Relation::noConstraints(function () use ($relation) { |
|
341 | + $relationWithoutConstraints = Relation::noConstraints(function() use ($relation) { |
|
342 | 342 | return $relation(); |
343 | 343 | }); |
344 | 344 | |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | $deepRelation->withTrashed($deletedAtColumn); |
388 | 388 | } |
389 | 389 | |
390 | - if (str_starts_with($scope, HasManyDeep::class . ':')) { |
|
390 | + if (str_starts_with($scope, HasManyDeep::class.':')) { |
|
391 | 391 | $deletedAtColumn = explode(':', $scope)[1]; |
392 | 392 | |
393 | 393 | $deepRelation->withTrashed($deletedAtColumn); |