@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | return 'Application In Production'; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | - public function getConfirmableCallback(): \Closure|bool|null |
|
| 68 | + public function getConfirmableCallback(): \Closure | bool | null |
|
| 69 | 69 | { |
| 70 | 70 | return null; |
| 71 | 71 | } |
@@ -78,13 +78,13 @@ discard block |
||
| 78 | 78 | if ($this instanceof ConfirmableCommand) { |
| 79 | 79 | if ( |
| 80 | 80 | $this->isProhibited() || |
| 81 | - ! $this->confirmToProceed($this->getConfirmableLabel(), $this->getConfirmableCallback()) |
|
| 81 | + !$this->confirmToProceed($this->getConfirmableLabel(), $this->getConfirmableCallback()) |
|
| 82 | 82 | ) { |
| 83 | 83 | return Command::FAILURE; |
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - if (! is_null($info = $this->getInfo())) { |
|
| 87 | + if (!is_null($info = $this->getInfo())) { |
|
| 88 | 88 | $this->components->info($info); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -107,17 +107,17 @@ discard block |
||
| 107 | 107 | return; |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | - if (! empty($input->getArgument('module'))) { |
|
| 110 | + if (!empty($input->getArgument('module'))) { |
|
| 111 | 111 | return; |
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | $selected_item = multisearch( |
| 115 | 115 | label: 'Select Modules', |
| 116 | - options: function (string $search_value) use ($modules) { |
|
| 116 | + options: function(string $search_value) use ($modules) { |
|
| 117 | 117 | return collect([ |
| 118 | 118 | self::ALL, |
| 119 | 119 | ...$modules, |
| 120 | - ])->when(strlen($search_value) > 0, function (Collection &$modules) use ($search_value) { |
|
| 120 | + ])->when(strlen($search_value) > 0, function(Collection & $modules) use ($search_value) { |
|
| 121 | 121 | return $modules->filter(fn ($item) => str_contains(strtolower($item), strtolower($search_value))); |
| 122 | 122 | })->values()->toArray(); |
| 123 | 123 | }, |
@@ -153,14 +153,14 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | $sort = $this->option('direction') ?? 'asc'; |
| 155 | 155 | |
| 156 | - if (! is_string($statusesFile) || ! file_exists($statusesFile)) { |
|
| 156 | + if (!is_string($statusesFile) || !file_exists($statusesFile)) { |
|
| 157 | 157 | return array_keys($this->laravel['modules']->getOrdered($sort)); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | $json = @file_get_contents($statusesFile); |
| 161 | 161 | $data = is_string($json) ? json_decode($json, true) : null; |
| 162 | 162 | |
| 163 | - if (! is_array($data)) { |
|
| 163 | + if (!is_array($data)) { |
|
| 164 | 164 | return array_keys($this->laravel['modules']->getOrdered($sort)); |
| 165 | 165 | } |
| 166 | 166 | |