Test Setup Failed
Push — ft/command-palette ( bece37...ccd98a )
by
unknown
11:42
created
app/Http/Controllers/Back/CommandPalette/CommandPaletteController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
             if ($term === $model->adminConfig()->getModelName()) {
22 22
                 array_push($results, [
23 23
                     'title' => $model->title,
24
-                    'url' => '/admin/' . $model->managedModelKey() . '/' . $model->id . '/edit',
24
+                    'url' => '/admin/'.$model->managedModelKey().'/'.$model->id.'/edit',
25 25
                 ]);
26 26
             }
27 27
         }
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
     {
37 37
         return collect(app(Registry::class)->models())
38 38
             // Filter out fragment models
39
-            ->filter(function ($model) {
40
-                return ! in_array('Thinktomorrow\Chief\Fragments\Fragmentable', class_implements($model));
39
+            ->filter(function($model) {
40
+                return !in_array('Thinktomorrow\Chief\Fragments\Fragmentable', class_implements($model));
41 41
                 // Return all instances of the models
42
-            })->map(function ($model) {
42
+            })->map(function($model) {
43 43
                 return $model::all();
44 44
                 // Flatten all models to the same level
45 45
             })->flatten(1);
Please login to merge, or discard this patch.