Passed
Push — master ( c2f1bc...d58289 )
by Jonas
01:57
created
src/Traits/ConcatenatesRelationships.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
                 $related = get_class($relation->getRelated());
70 70
 
71 71
                 if ((new $related())->getTable() !== $relation->getRelated()->getTable()) {
72
-                    $related .= ' from ' . $relation->getRelated()->getTable();
72
+                    $related .= ' from '.$relation->getRelated()->getTable();
73 73
                 }
74 74
             } else {
75 75
                 $through[] = $this->hasOneOrManyThroughParent($relation, $relations[$i + 1]);
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         $through = get_class($relation->getRelated());
279 279
 
280 280
         if ((new $through())->getTable() !== $relation->getRelated()->getTable()) {
281
-            $through .= ' from ' . $relation->getRelated()->getTable();
281
+            $through .= ' from '.$relation->getRelated()->getTable();
282 282
         }
283 283
 
284 284
         if (get_class($relation->getRelated()) === get_class($successor->getParent())) {
@@ -330,11 +330,11 @@  discard block
 block discarded – undo
330 330
     protected function addConstraintsToHasOneOrManyDeepRelationship(
331 331
         HasManyDeep $deepRelation,
332 332
         array $relations
333
-    ): HasManyDeep|HasOneDeep {
333
+    ): HasManyDeep | HasOneDeep {
334 334
         $relations = $this->normalizeVariadicRelations($relations);
335 335
 
336 336
         foreach ($relations as $i => $relation) {
337
-            $relationWithoutConstraints = Relation::noConstraints(function () use ($relation) {
337
+            $relationWithoutConstraints = Relation::noConstraints(function() use ($relation) {
338 338
                 return $relation();
339 339
             });
340 340
 
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
                 $deepRelation->withTrashed($deletedAtColumn);
384 384
             }
385 385
 
386
-            if (str_starts_with($scope, HasManyDeep::class . ':')) {
386
+            if (str_starts_with($scope, HasManyDeep::class.':')) {
387 387
                 $deletedAtColumn = explode(':', $scope)[1];
388 388
 
389 389
                 $deepRelation->withTrashed($deletedAtColumn);
Please login to merge, or discard this patch.