@@ -21,7 +21,7 @@ |
||
21 | 21 | public function appendToDeepRelationship(array $through, array $foreignKeys, array $localKeys, int $position): array |
22 | 22 | { |
23 | 23 | if ($position === 0) { |
24 | - $foreignKeys[] = function (Builder $query, ?Builder $parentQuery = null) { |
|
24 | + $foreignKeys[] = function(Builder $query, ?Builder $parentQuery = null) { |
|
25 | 25 | if ($parentQuery) { |
26 | 26 | $this->getRelationExistenceQuery($this->query, $parentQuery); |
27 | 27 | } |
@@ -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 | } |