Passed
Push — master ( b2d632...002539 )
by Darko
10:06
created
app/Console/Commands/NntmuxResetPostProcessing.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
app/Services/Par2Processor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.