Test Setup Failed
Push — ft/command-palette ( bece37...ccd98a )
by
unknown
11:42
created
app/Console/GenerateSitemap.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
         $locales = config('chief.locales');
26 26
 
27 27
         foreach ($locales as $locale) {
28
-            $filepath = public_path('sitemap-' . $locale . '.xml');
28
+            $filepath = public_path('sitemap-'.$locale.'.xml');
29 29
 
30
-            $this->info('Generating a sitemap for locale: ' . $locale . ' at: ' . $filepath);
30
+            $this->info('Generating a sitemap for locale: '.$locale.' at: '.$filepath);
31 31
 
32 32
             $this->sitemapXmlFile->create($locale, $filepath, $this->createAlternateLocales($locales, $locale));
33 33
         }
Please login to merge, or discard this patch.
app/Console/CreateAdmin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
         $firstname = null;
18 18
         $lastname = null;
19 19
 
20
-        while (! $firstname) {
20
+        while (!$firstname) {
21 21
             $firstname = $this->ask('firstname');
22 22
         }
23 23
 
24
-        while (! $lastname) {
24
+        while (!$lastname) {
25 25
             $lastname = $this->ask('lastname');
26 26
         }
27 27
 
@@ -31,22 +31,22 @@  discard block
 block discarded – undo
31 31
 
32 32
         if ($this->option('dev')) {
33 33
             $role = 'developer';
34
-        } else {
34
+        }else {
35 35
             $role = 'admin';
36 36
         }
37 37
 
38 38
         $this->createUser($firstname, $lastname, $email, $password, [$role]);
39 39
 
40
-        $this->info($firstname . ' ' . $lastname . ' succesfully added as admin user.');
40
+        $this->info($firstname.' '.$lastname.' succesfully added as admin user.');
41 41
     }
42 42
 
43 43
     private function settingPermissionsAndRoles(): void
44 44
     {
45
-        AuthorizationDefaults::permissions()->each(function ($permissionName) {
45
+        AuthorizationDefaults::permissions()->each(function($permissionName) {
46 46
             Artisan::call('chief:permission', ['name' => $permissionName]);
47 47
         });
48 48
 
49
-        AuthorizationDefaults::roles()->each(function ($defaultPermissions, $roleName) {
49
+        AuthorizationDefaults::roles()->each(function($defaultPermissions, $roleName) {
50 50
             Artisan::call('chief:role', ['name' => $roleName, '--permissions' => implode(',', $defaultPermissions)]);
51 51
         });
52 52
 
Please login to merge, or discard this patch.
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.