Passed
Push — master ( 926d18...c2f1bc )
by Jonas
01:50
created
src/Traits/ConcatenatesRelationships.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.