@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | // Validate |
| 94 | 94 | $invalid = $this->invalidCategories($normalized); |
| 95 | - if (! empty($invalid)) { |
|
| 95 | + if (!empty($invalid)) { |
|
| 96 | 96 | $this->error('Unknown category option(s): '.implode(', ', $invalid)); |
| 97 | 97 | $this->line('Allowed: '.implode(', ', self::$allowedCategories).' (or omit --category to reset all).'); |
| 98 | 98 | |
@@ -150,12 +150,12 @@ discard block |
||
| 150 | 150 | private function normalizeCategories(array $raw): array |
| 151 | 151 | { |
| 152 | 152 | $normalized = collect($raw) |
| 153 | - ->flatMap(function ($opt) { |
|
| 153 | + ->flatMap(function($opt) { |
|
| 154 | 154 | $opt = is_array($opt) ? implode(',', $opt) : (string) $opt; |
| 155 | 155 | |
| 156 | 156 | return preg_split('/[\s,]+/', $opt, -1, PREG_SPLIT_NO_EMPTY); |
| 157 | 157 | }) |
| 158 | - ->map(function ($opt) { |
|
| 158 | + ->map(function($opt) { |
|
| 159 | 159 | $opt = trim((string) $opt); |
| 160 | 160 | // If the token contains '=', take the substring after the last '=' |
| 161 | 161 | if (str_contains($opt, '=')) { |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | private function invalidCategories(array $normalized): array |
| 187 | 187 | { |
| 188 | 188 | return collect($normalized) |
| 189 | - ->reject(function ($opt) { |
|
| 189 | + ->reject(function($opt) { |
|
| 190 | 190 | return in_array($opt, self::$allowedCategories, true) || $opt === 'all'; |
| 191 | 191 | }) |
| 192 | 192 | ->values() |
@@ -274,7 +274,7 @@ |
||
| 274 | 274 | |
| 275 | 275 | // Loop through the files. |
| 276 | 276 | foreach ($files as $file) { |
| 277 | - if (! isset($file['name'])) { |
|
| 277 | + if (!isset($file['name'])) { |
|
| 278 | 278 | continue; |
| 279 | 279 | } |
| 280 | 280 | |