@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | ) { |
35 | 35 | $resultGroup[$model->modelReference()->getShort()] = [ |
36 | 36 | 'label' => $model->title, |
37 | - 'url' => '/admin/' . $model->managedModelKey() . '/' . $model->id . '/edit', |
|
37 | + 'url' => '/admin/'.$model->managedModelKey().'/'.$model->id.'/edit', |
|
38 | 38 | ]; |
39 | 39 | } |
40 | 40 | } |
@@ -57,10 +57,10 @@ discard block |
||
57 | 57 | { |
58 | 58 | return collect(app(Registry::class)->models()) |
59 | 59 | // Filter out fragment models |
60 | - ->filter(function ($model) { |
|
61 | - return ! in_array('Thinktomorrow\Chief\Fragments\Fragmentable', class_implements($model)); |
|
60 | + ->filter(function($model) { |
|
61 | + return !in_array('Thinktomorrow\Chief\Fragments\Fragmentable', class_implements($model)); |
|
62 | 62 | // Return all instances of the models |
63 | - })->map(function ($model) { |
|
63 | + })->map(function($model) { |
|
64 | 64 | $models = $model::all(); |
65 | 65 | |
66 | 66 | return [ |
@@ -74,15 +74,15 @@ discard block |
||
74 | 74 | { |
75 | 75 | return collect(app(Registry::class)->models()) |
76 | 76 | // Filter out fragment models |
77 | - ->filter(function ($model) { |
|
78 | - return ! in_array('Thinktomorrow\Chief\Fragments\Fragmentable', class_implements($model)); |
|
77 | + ->filter(function($model) { |
|
78 | + return !in_array('Thinktomorrow\Chief\Fragments\Fragmentable', class_implements($model)); |
|
79 | 79 | // Return all instances of the models |
80 | - })->map(function ($model) { |
|
80 | + })->map(function($model) { |
|
81 | 81 | $model = $model::make(); |
82 | 82 | |
83 | 83 | return [ |
84 | 84 | 'label' => $model->adminConfig()->getNavTitle(), |
85 | - 'url' => '/admin/' . $model->managedModelKey(), |
|
85 | + 'url' => '/admin/'.$model->managedModelKey(), |
|
86 | 86 | ]; |
87 | 87 | }); |
88 | 88 | } |