@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $map = $this->map; |
| 50 | 50 | |
| 51 | 51 | return collect($attributes) |
| 52 | - ->mapWithKeys(function ($item, $key) use ($map) { |
|
| 52 | + ->mapWithKeys(function($item, $key) use ($map) { |
|
| 53 | 53 | $keyData = array_get($map, $key); |
| 54 | 54 | if (is_callable($keyData)) { |
| 55 | 55 | return [$key => call_user_func($keyData, $item)]; |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | public function toArray() |
| 82 | 82 | { |
| 83 | 83 | return $this->attributes |
| 84 | - ->mapWithKeys(function ($item, $key) { |
|
| 84 | + ->mapWithKeys(function($item, $key) { |
|
| 85 | 85 | if (is_subclass_of($item, BaseType::class)) { |
| 86 | 86 | /** @var BaseType $item */ |
| 87 | 87 | return [$key => $item->toArray()]; |