@@ -243,7 +243,7 @@ |
||
| 243 | 243 | */ |
| 244 | 244 | protected function getProtectedProperty(Relation $relation, $property) |
| 245 | 245 | { |
| 246 | - $closure = Closure::bind(function (Relation $relation) use ($property) { |
|
| 246 | + $closure = Closure::bind(function(Relation $relation) use ($property) { |
|
| 247 | 247 | return $relation->$property; |
| 248 | 248 | }, null, $relation); |
| 249 | 249 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | protected function hasOneOrManyDeepThroughParents(array $through) |
| 93 | 93 | { |
| 94 | - return array_map(function ($class) { |
|
| 94 | + return array_map(function($class) { |
|
| 95 | 95 | $segments = preg_split('/\s+as\s+/i', $class); |
| 96 | 96 | |
| 97 | 97 | $instance = Str::contains($segments[0], '\\') |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | protected function hasOneOrManyDeepForeignKeys(Model $related, array $throughParents, array $foreignKeys) |
| 118 | 118 | { |
| 119 | 119 | foreach (array_merge([$this], $throughParents) as $i => $instance) { |
| 120 | - if (! isset($foreignKeys[$i])) { |
|
| 120 | + if (!isset($foreignKeys[$i])) { |
|
| 121 | 121 | if ($instance instanceof Pivot) { |
| 122 | 122 | $foreignKeys[$i] = ($throughParents[$i] ?? $related)->getKeyName(); |
| 123 | 123 | } else { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | protected function hasOneOrManyDeepLocalKeys(Model $related, array $throughParents, array $localKeys) |
| 141 | 141 | { |
| 142 | 142 | foreach (array_merge([$this], $throughParents) as $i => $instance) { |
| 143 | - if (! isset($localKeys[$i])) { |
|
| 143 | + if (!isset($localKeys[$i])) { |
|
| 144 | 144 | if ($instance instanceof Pivot) { |
| 145 | 145 | $localKeys[$i] = ($throughParents[$i] ?? $related)->getForeignKey(); |
| 146 | 146 | } else { |