Passed
Push — master ( edcce8...43ab02 )
by Jonas
02:42
created
src/Eloquent/Relations/ThirdParty/LaravelHasManyMerged/HasManyMerged.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function appendToDeepRelationship(array $through, array $foreignKeys, array $localKeys, int $position): array
26 26
     {
27 27
         if ($position === 0) {
28
-            $foreignKeys[] = function (Builder $query, ?Builder $parentQuery = null) {
28
+            $foreignKeys[] = function(Builder $query, ?Builder $parentQuery = null) {
29 29
                 if ($parentQuery) {
30 30
                     $this->getRelationExistenceQuery($this->query, $parentQuery);
31 31
                 }
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
 
36 36
             $localKeys[] = $this->localKey;
37 37
         } else {
38
-            $foreignKeys[] = function (Builder $query, JoinClause $join) {
38
+            $foreignKeys[] = function(Builder $query, JoinClause $join) {
39 39
                 $join->on(
40
-                    function (JoinClause $join) {
40
+                    function(JoinClause $join) {
41 41
                         foreach ($this->foreignKeys as $foreignKey) {
42 42
                             $join->orOn($foreignKey, '=', $this->getQualifiedParentKeyName());
43 43
                         }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $columns = [];
63 63
 
64 64
         foreach ($this->foreignKeys as $i => $foreignKey) {
65
-            $columns[] = "$foreignKey as $alias" . ($i > 0 ? "_$i" : '');
65
+            $columns[] = "$foreignKey as $alias".($i > 0 ? "_$i" : '');
66 66
         }
67 67
 
68 68
         return $columns;
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         $dictionary = [];
118 118
 
119 119
         $foreignKeyNames = array_map(
120
-            fn ($i) => 'laravel_through_key' . ($i > 0 ? "_$i" : ''),
120
+            fn ($i) => 'laravel_through_key'.($i > 0 ? "_$i" : ''),
121 121
             range(0, count($this->foreignKeys) - 1)
122 122
         );
123 123
 
Please login to merge, or discard this patch.