Passed
Push — master ( 96ef05...f81447 )
by Darko
09:59
created
app/Console/Commands/UpdatePostProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $echoArg = $this->argument('echo');
51 51
         $echo = ($echoArg === null || $echoArg === 'true');
52 52
 
53
-        if (! array_key_exists($type, $this->validTypes)) {
53
+        if (!array_key_exists($type, $this->validTypes)) {
54 54
             $this->error("Invalid type: {$type}");
55 55
             $this->showHelp();
56 56
 
Please login to merge, or discard this patch.
app/Console/Commands/ProcessFixRelNames.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $type = $this->argument('type');
31 31
 
32
-        if (! \in_array($type, ['standard', 'predbft'], true)) {
32
+        if (!\in_array($type, ['standard', 'predbft'], true)) {
33 33
             $this->error('Type must be either: standard or predbft');
34 34
             $this->line('');
35 35
             $this->line('standard => Attempt to fix release name using standard methods');
Please login to merge, or discard this patch.
app/Console/Commands/TmuxStart.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $this->layoutBuilder = new TmuxLayoutBuilder($this->sessionManager);
56 56
 
57 57
             // Check if tmux is installed
58
-            if (! $this->checkTmuxInstalled()) {
58
+            if (!$this->checkTmuxInstalled()) {
59 59
                 $this->error('❌ tmux is not installed');
60 60
 
61 61
                 return Command::FAILURE;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
             // Check if session already exists
65 65
             if ($this->sessionManager->sessionExists()) {
66
-                if (! $this->option('force')) {
66
+                if (!$this->option('force')) {
67 67
                     $this->error("❌ Session '{$sessionName}' already exists");
68 68
                     if ($this->confirm('Would you like to restart it?', false)) {
69 69
                         $this->call('tmux:stop', ['--session' => $sessionName]);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $this->info("
Please login to merge, or discard this patch.
app/Console/Commands/PostProcessGuid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $guid = $this->argument('guid');
39 39
         $renamed = $this->argument('renamed') ?? '';
40 40
 
41
-        if (! $this->isValidChar($guid)) {
41
+        if (!$this->isValidChar($guid)) {
42 42
             $this->error('GUID character must be a-f or 0-9.');
43 43
 
44 44
             return self::FAILURE;
Please login to merge, or discard this patch.
app/Console/Commands/BackfillGroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $type = (int) $this->argument('type');
36 36
         $quantity = $this->argument('quantity');
37 37
 
38
-        if (! \in_array($type, [1, 2], true)) {
38
+        if (!\in_array($type, [1, 2], true)) {
39 39
             $this->error('Invalid backfill type. Must be 1 (interval) or 2 (all).');
40 40
 
41 41
             return self::FAILURE;
Please login to merge, or discard this patch.
app/Console/Commands/UpdateBinaries.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             $nntp = $this->getNntp();
44 44
             $binaries = new Binaries(['NNTP' => $nntp]);
45 45
 
46
-            if ($groupName && ! is_numeric($groupName)) {
46
+            if ($groupName && !is_numeric($groupName)) {
47 47
                 $this->info("Updating group: {$groupName}");
48 48
                 $this->updateSingleGroup($binaries, $groupName, $maxHeaders);
49 49
             } else {
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $group = UsenetGroup::getByName($groupName)->toArray();
69 69
 
70
-        if (! is_array($group)) {
70
+        if (!is_array($group)) {
71 71
             throw new \Exception("Group not found: {$groupName}");
72 72
         }
73 73
 
Please login to merge, or discard this patch.
app/Console/Commands/TmuxMonitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             $this->tmuxOutput = new TmuxOutput;
65 65
 
66 66
             // Verify session exists
67
-            if (! $this->sessionManager->sessionExists()) {
67
+            if (!$this->sessionManager->sessionExists()) {
68 68
                 $this->error("❌ Tmux session '{$sessionName}' does not exist.");
69 69
                 $this->info("
Please login to merge, or discard this patch.
app/Console/Commands/ReleasesFixNamesGroup.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -102,13 +102,13 @@  discard block
 block discarded – undo
102 102
 
103 103
             // Process UID
104 104
             if ((int) $release->proc_uid === NameFixer::PROC_UID_NONE &&
105
-                (! empty($release->uid) || ! empty($release->mediainfo))) {
105
+                (!empty($release->uid) || !empty($release->mediainfo))) {
106 106
 
107
-                if (! empty($release->uid)) {
107
+                if (!empty($release->uid)) {
108 108
                     $this->nameFixer->checkName($release, true, 'UID, ', 1, true);
109 109
                 }
110 110
 
111
-                if (empty($this->nameFixer->matched) && ! empty($release->mediainfo)) {
111
+                if (empty($this->nameFixer->matched) && !empty($release->mediainfo)) {
112 112
                     $this->nameFixer->checkName($release, true, 'Mediainfo, ', 1, true);
113 113
                 }
114 114
             }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             }
123 123
 
124 124
             // Process CRC32
125
-            if ((int) $release->proc_crc32 === NameFixer::PROC_CRC_NONE && ! empty($release->crc)) {
125
+            if ((int) $release->proc_crc32 === NameFixer::PROC_CRC_NONE && !empty($release->crc)) {
126 126
                 $this->nameFixer->reset();
127 127
                 $this->nameFixer->checkName($release, true, 'CRC32, ', 1, true);
128 128
             }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             }
151 151
 
152 152
             // Process PAR2 hash
153
-            if ((int) $release->proc_hash16k === NameFixer::PROC_HASH16K_NONE && ! empty($release->hash)) {
153
+            if ((int) $release->proc_hash16k === NameFixer::PROC_HASH16K_NONE && !empty($release->hash)) {
154 154
                 $this->nameFixer->reset();
155 155
                 $this->nameFixer->checkName($release, true, 'PAR2 hash, ', 1, true);
156 156
             }
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
             // Process NFO
167 167
             if ((int) $release->nfostatus === Nfo::NFO_FOUND &&
168 168
                 (int) $release->proc_nfo === NameFixer::PROC_NFO_NONE &&
169
-                ! empty($release->textstring) &&
170
-                ! preg_match('/^=newz\[NZB\]=\w+/', $release->textstring)) {
169
+                !empty($release->textstring) &&
170
+                !preg_match('/^=newz\[NZB\]=\w+/', $release->textstring)) {
171 171
 
172 172
                 $this->nameFixer->reset();
173 173
                 $this->nameFixer->checkName($release, true, 'NFO, ', 1, true);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             // Process PAR2
209 209
             if ((int) $release->proc_par2 === NameFixer::PROC_PAR2_NONE) {
210 210
                 // Initialize NZB contents if needed
211
-                if (! isset($nzbcontents)) {
211
+                if (!isset($nzbcontents)) {
212 212
                     $nntp = new NNTP;
213 213
                     $compressedHeaders = config('nntmux_nntp.compressed_headers');
214 214
 
Please login to merge, or discard this patch.
app/Services/Tmux/TmuxTaskRunner.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -33,16 +33,16 @@  discard block
 block discarded – undo
33 33
         $enabled = $config['enabled'] ?? true;
34 34
         $workAvailable = $config['work_available'] ?? true;
35 35
 
36
-        if (! $pane || ! $command) {
36
+        if (!$pane || !$command) {
37 37
             return false;
38 38
         }
39 39
 
40 40
         // Check if task is enabled and has work
41
-        if (! $enabled) {
41
+        if (!$enabled) {
42 42
             return $this->disablePane($pane, $taskName, 'disabled in settings');
43 43
         }
44 44
 
45
-        if (! $workAvailable) {
45
+        if (!$workAvailable) {
46 46
             return $this->disablePane($pane, $taskName, 'no work available');
47 47
         }
48 48
 
@@ -108,13 +108,13 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $logsEnabled = (int) Settings::settingValue('write_logs') === 1;
110 110
 
111
-        if (! $logsEnabled) {
111
+        if (!$logsEnabled) {
112 112
             return '/dev/null';
113 113
         }
114 114
 
115 115
         $logDir = config('tmux.paths.logs', storage_path('logs/tmux'));
116 116
 
117
-        if (! is_dir($logDir)) {
117
+        if (!is_dir($logDir)) {
118 118
             mkdir($logDir, 0755, true);
119 119
         }
120 120
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
         $scraperScript = base_path('misc/IRCScraper/scrape.php');
168 168
 
169
-        if (! file_exists($scraperScript)) {
169
+        if (!file_exists($scraperScript)) {
170 170
             return $this->disablePane($pane, 'IRC Scraper', 'script not found');
171 171
         }
172 172
 
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         $killswitch = $config['killswitch']['pp'] ?? false;
187 187
         $pane = '0.1';
188 188
 
189
-        if (! $enabled) {
189
+        if (!$enabled) {
190 190
             return $this->disablePane($pane, 'Update Binaries', 'disabled in settings');
191 191
         }
192 192
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             default => null,
200 200
         };
201 201
 
202
-        if (! $artisanCommand) {
202
+        if (!$artisanCommand) {
203 203
             return false;
204 204
         }
205 205
 
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         $ppKillswitch = $config['killswitch']['pp'] ?? false;
222 222
         $pane = '0.2';
223 223
 
224
-        if (! $enabled) {
224
+        if (!$enabled) {
225 225
             return $this->disablePane($pane, 'Backfill', 'disabled in settings');
226 226
         }
227 227
 
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             default => null,
236 236
         };
237 237
 
238
-        if (! $artisanCommand) {
238
+        if (!$artisanCommand) {
239 239
             return false;
240 240
         }
241 241
 
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         $enabled = (int) ($config['settings']['releases_run'] ?? 0);
264 264
         $pane = $config['pane'] ?? '0.3';
265 265
 
266
-        if (! $enabled) {
266
+        if (!$enabled) {
267 267
             return $this->disablePane($pane, 'Update Releases', 'disabled in settings');
268 268
         }
269 269
 
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
         $pane = '0.1';
344 344
         $script = base_path('misc/update/nix/tmux/bin/sequential.php');
345 345
 
346
-        if (! file_exists($script)) {
346
+        if (!file_exists($script)) {
347 347
             return $this->disablePane($pane, 'Sequential', 'script not found');
348 348
         }
349 349
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
         $option = (int) ($runVar['settings']['fix_crap_opt'] ?? 1);
403 403
         $script = base_path('misc/update/nix/tmux/bin/removecrap.php');
404 404
 
405
-        if (! file_exists($script)) {
405
+        if (!file_exists($script)) {
406 406
             return $this->disablePane($pane, 'Remove Crap', 'script not found');
407 407
         }
408 408
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
             || (int) ($runVar['counts']['now']['processtv'] ?? 0) > 0
451 451
             || (int) ($runVar['counts']['now']['processanime'] ?? 0) > 0;
452 452
 
453
-        if (! $hasWork) {
453
+        if (!$hasWork) {
454 454
             return $this->disablePane($pane, 'Post-process Non-Amazon', 'no movies/tv/anime to process');
455 455
         }
456 456
 
@@ -489,7 +489,7 @@  discard block
 block discarded – undo
489 489
             || (int) ($runVar['counts']['now']['processgames'] ?? 0) > 0
490 490
             || (int) ($runVar['counts']['now']['processxxx'] ?? 0) > 0;
491 491
 
492
-        if (! $hasWork) {
492
+        if (!$hasWork) {
493 493
             return $this->disablePane($pane, 'Post-process Amazon', 'no music/books/games to process');
494 494
         }
495 495
 
Please login to merge, or discard this patch.