@@ -13,10 +13,10 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | protected function getCurrentlyAttachedPivots() |
| 15 | 15 | { |
| 16 | - return $this->newPivotQuery()->get()->map(function ($record) { |
|
| 16 | + return $this->newPivotQuery()->get()->map(function($record) { |
|
| 17 | 17 | $class = $this->using ? $this->using : Pivot::class; |
| 18 | 18 | |
| 19 | - $pivot = $class::fromRawAttributes($this->parent, (array)$record, $this->getTable(), true); |
|
| 19 | + $pivot = $class::fromRawAttributes($this->parent, (array) $record, $this->getTable(), true); |
|
| 20 | 20 | |
| 21 | 21 | return $pivot->setPivotKeys($this->foreignPivotKey, $this->relatedPivotKey); |
| 22 | 22 | }); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | static::newQueryWithoutScopes()->findOrFail($this->getKey())->attributes |
| 45 | 45 | ); |
| 46 | 46 | |
| 47 | - $this->load(Collection::make($this->relations)->reject(function ($relation) { |
|
| 47 | + $this->load(Collection::make($this->relations)->reject(function($relation) { |
|
| 48 | 48 | return $relation instanceof Pivot; |
| 49 | 49 | })->keys()->all()); |
| 50 | 50 | |