@@ -20,14 +20,14 @@ |
||
| 20 | 20 | |
| 21 | 21 | public function options(array $morphKeys = []) |
| 22 | 22 | { |
| 23 | - if (! empty($morphKeys)) { |
|
| 24 | - $morphKeys = collect($morphKeys)->map(function ($key) { |
|
| 23 | + if (!empty($morphKeys)) { |
|
| 24 | + $morphKeys = collect($morphKeys)->map(function($key) { |
|
| 25 | 25 | return (new $key())->getMorphClass(); |
| 26 | 26 | }); |
| 27 | 27 | |
| 28 | 28 | $pages = UrlHelper::modelsByType($morphKeys->toArray())->get(); |
| 29 | 29 | $pages = FlatReferencePresenter::toGroupedSelectValues($pages)->toArray(); |
| 30 | - } else { |
|
| 30 | + }else { |
|
| 31 | 31 | $pages = UrlHelper::allModelsWithoutSelf($this->model); |
| 32 | 32 | } |
| 33 | 33 | |