Completed
Push — master ( e37afc...79cdb1 )
by
unknown
16s queued 13s
created
src/Commands/Actions/ModuleDeleteCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     public function executeAction($name): void
15 15
     {
16 16
         $module = $this->getModuleModel($name);
17
-        $this->components->task("Deleting <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) {
17
+        $this->components->task("Deleting <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) {
18 18
             $module->delete();
19 19
         });
20 20
     }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         return 'Warning: Do you want to remove the module?';
30 30
     }
31 31
 
32
-    public function getConfirmableCallback(): \Closure|bool|null
32
+    public function getConfirmableCallback(): \Closure | bool | null
33 33
     {
34 34
         return true;
35 35
     }
Please login to merge, or discard this patch.
src/Commands/BaseCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         return 'Application In Production';
65 65
     }
66 66
 
67
-    public function getConfirmableCallback(): \Closure|bool|null
67
+    public function getConfirmableCallback(): \Closure | bool | null
68 68
     {
69 69
         return null;
70 70
     }
@@ -76,12 +76,12 @@  discard block
 block discarded – undo
76 76
     {
77 77
         if ($this instanceof ConfirmableCommand) {
78 78
             if ($this->isProhibited() ||
79
-                ! $this->confirmToProceed($this->getConfirmableLabel(), $this->getConfirmableCallback())) {
79
+                !$this->confirmToProceed($this->getConfirmableLabel(), $this->getConfirmableCallback())) {
80 80
                 return Command::FAILURE;
81 81
             }
82 82
         }
83 83
 
84
-        if (! is_null($info = $this->getInfo())) {
84
+        if (!is_null($info = $this->getInfo())) {
85 85
             $this->components->info($info);
86 86
         }
87 87
 
@@ -104,17 +104,17 @@  discard block
 block discarded – undo
104 104
             return;
105 105
         }
106 106
 
107
-        if (! empty($input->getArgument('module'))) {
107
+        if (!empty($input->getArgument('module'))) {
108 108
             return;
109 109
         }
110 110
 
111 111
         $selected_item = multisearch(
112 112
             label: 'Select Modules',
113
-            options: function (string $search_value) use ($modules) {
113
+            options: function(string $search_value) use ($modules) {
114 114
                 return collect([
115 115
                     self::ALL,
116 116
                     ...$modules,
117
-                ])->when(strlen($search_value) > 0, function (Collection &$modules) use ($search_value) {
117
+                ])->when(strlen($search_value) > 0, function(Collection & $modules) use ($search_value) {
118 118
                     return $modules->filter(fn ($item) => str_contains(strtolower($item), strtolower($search_value)));
119 119
                 })->values()->toArray();
120 120
             },
Please login to merge, or discard this patch.