@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | $columns[] = $throughKey; |
160 | 160 | } |
161 | 161 | } else { |
162 | - $columns[] = $this->getQualifiedFirstKeyName() . " as $alias"; |
|
162 | + $columns[] = $this->getQualifiedFirstKeyName()." as $alias"; |
|
163 | 163 | } |
164 | 164 | |
165 | 165 | if ($this->hasLeadingCompositeKey()) { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | } |
192 | 192 | |
193 | 193 | foreach ($columns as $column) { |
194 | - $this->query->withoutGlobalScope(__CLASS__ . ":$column"); |
|
194 | + $this->query->withoutGlobalScope(__CLASS__.":$column"); |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | return $this; |
@@ -25,7 +25,7 @@ discard block |
||
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 |
||
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) use ($query) { |
|
40 | + function(JoinClause $join) use ($query) { |
|
41 | 41 | foreach ($this->foreignKeys as $foreignKey) { |
42 | 42 | $join->orOn($foreignKey, '=', $this->getQualifiedParentKeyName()); |
43 | 43 | } |
@@ -62,7 +62,7 @@ discard block |
||
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 |
||
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 |