@@ -19,7 +19,7 @@ |
||
19 | 19 | ); |
20 | 20 | |
21 | 21 | $parentKey = $this->related->qualifyColumn( |
22 | - "pivot_" . $this->related->getParentKeyName() |
|
22 | + "pivot_".$this->related->getParentKeyName() |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | return ["$path as {$alias}", "$parentKey as {$alias}_pivot_id"]; |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | public function appendToDeepRelationship(array $through, array $foreignKeys, array $localKeys, int $position): array |
23 | 23 | { |
24 | 24 | if ($position === 0) { |
25 | - $foreignKeys[] = function (Builder $query, Builder $parentQuery = null) { |
|
25 | + $foreignKeys[] = function(Builder $query, Builder $parentQuery = null) { |
|
26 | 26 | if ($parentQuery) { |
27 | 27 | $this->getRelationExistenceQuery($this->query, $parentQuery); |
28 | 28 | } |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | $pathSeparator = $this->related->getPathSeparator(); |
177 | 177 | |
178 | 178 | if ($this->andSelf) { |
179 | - return $results->mapToDictionary(function (Model $result) use ($pathSeparator) { |
|
179 | + return $results->mapToDictionary(function(Model $result) use ($pathSeparator) { |
|
180 | 180 | return [strtok($result->laravel_through_key, $pathSeparator) => $result]; |
181 | 181 | })->all(); |
182 | 182 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | ); |
20 | 20 | |
21 | 21 | $childKey = $this->related->qualifyColumn( |
22 | - "pivot_" . $this->related->getChildKeyName() |
|
22 | + "pivot_".$this->related->getChildKeyName() |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | return ["$path as {$alias}", "$childKey as {$alias}_pivot_id"]; |