@@ -71,7 +71,7 @@ |
||
| 71 | 71 | ); |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - return $results->mapToDictionary(function (Model $result) use ($pathSeparator) { |
|
| 74 | + return $results->mapToDictionary(function(Model $result) use ($pathSeparator) { |
|
| 75 | 75 | $key = strtok($result->laravel_through_key, $pathSeparator); |
| 76 | 76 | |
| 77 | 77 | return [$key => $result]; |
@@ -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 | } |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | { |
| 62 | 62 | $pathSeparator = $this->related->getPathSeparator(); |
| 63 | 63 | |
| 64 | - return $results->mapToDictionary(function (Model $result) use ($pathSeparator) { |
|
| 64 | + return $results->mapToDictionary(function(Model $result) use ($pathSeparator) { |
|
| 65 | 65 | $key = strtok($result->laravel_through_key, $pathSeparator); |
| 66 | 66 | |
| 67 | 67 | return [$key => $result]; |