Passed
Push — master ( 9699f5...01dd28 )
by Darko
11:50
created
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/TmuxSessionManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     public function killSession(): bool
66 66
     {
67
-        if (! $this->sessionExists()) {
67
+        if (!$this->sessionExists()) {
68 68
             return true;
69 69
         }
70 70
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      */
79 79
     public function attachSession(): bool
80 80
     {
81
-        if (! $this->sessionExists()) {
81
+        if (!$this->sessionExists()) {
82 82
             return false;
83 83
         }
84 84
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function listPanes(): array
96 96
     {
97
-        if (! $this->sessionExists()) {
97
+        if (!$this->sessionExists()) {
98 98
             return [];
99 99
         }
100 100
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             "tmux list-panes -s -t {$this->sessionName} -F '#{window_index}:#{pane_index} #{pane_title}'"
103 103
         );
104 104
 
105
-        if (! $result->successful()) {
105
+        if (!$result->successful()) {
106 106
             return [];
107 107
         }
108 108
 
Please login to merge, or discard this patch.
app/Services/Tmux/Scripts/groupfixrelnames.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 $colorCli = new ColorCLI;
18 18
 
19
-if (! isset($argv[1])) {
19
+if (!isset($argv[1])) {
20 20
     $colorCli->error('This script is not intended to be run manually, it is called from Multiprocessing.');
21 21
     exit(1);
22 22
 }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
 switch ($type) {
31 31
     case 'standard':
32
-        if ($guidChar === null || $maxPerRun === null || ! is_numeric($maxPerRun)) {
32
+        if ($guidChar === null || $maxPerRun === null || !is_numeric($maxPerRun)) {
33 33
             $colorCli->error('Invalid arguments for standard type');
34 34
             exit(1);
35 35
         }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         break;
39 39
 
40 40
     case 'predbft':
41
-        if (! isset($maxPerRun) || ! is_numeric($maxPerRun) || ! isset($thread) || ! is_numeric($thread)) {
41
+        if (!isset($maxPerRun) || !is_numeric($maxPerRun) || !isset($thread) || !is_numeric($thread)) {
42 42
             $colorCli->error('Invalid arguments for predbft type');
43 43
             exit(1);
44 44
         }
Please login to merge, or discard this patch.
app/Services/Tmux/TmuxLayoutBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     protected function buildFullLayout(): bool
41 41
     {
42 42
         // Window 0: Monitor + Binaries + Backfill + Releases
43
-        if (! $this->sessionManager->createSession('Monitor')) {
43
+        if (!$this->sessionManager->createSession('Monitor')) {
44 44
             return false;
45 45
         }
46 46
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     protected function buildBasicLayout(): bool
83 83
     {
84 84
         // Window 0: Monitor + Releases
85
-        if (! $this->sessionManager->createSession('Monitor')) {
85
+        if (!$this->sessionManager->createSession('Monitor')) {
86 86
             return false;
87 87
         }
88 88
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     protected function buildStrippedLayout(): bool
117 117
     {
118 118
         // Window 0: Monitor + Sequential
119
-        if (! $this->sessionManager->createSession('Monitor')) {
119
+        if (!$this->sessionManager->createSession('Monitor')) {
120 120
             return false;
121 121
         }
122 122
 
Please login to merge, or discard this patch.
app/Console/Commands/IrcScraperCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $silent = $this->option('quiet');
38 38
         $debug = $this->option('debug');
39 39
 
40
-        if (! $silent) {
40
+        if (!$silent) {
41 41
             $this->info('Starting IRC Scraper...');
42 42
             if ($debug) {
43 43
                 $this->warn('Debug mode enabled');
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
             return self::SUCCESS;
51 51
         } catch (\Exception $e) {
52
-            if (! $silent) {
52
+            if (!$silent) {
53 53
                 $this->error($e->getMessage());
54 54
             }
55 55
 
Please login to merge, or discard this patch.
app/Console/Commands/RemoveCrapReleases.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $blacklistId = $this->option('blacklist-id') ?? '';
28 28
         $delete = $this->option('delete');
29 29
 
30
-        if (! $delete) {
30
+        if (!$delete) {
31 31
             $this->warn('Running in DRY-RUN mode. Use --delete to actually remove releases.');
32 32
         }
33 33
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminTmuxController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                 // Handle fix_crap checkbox array - convert to comma-separated string
26 26
                 if (isset($data['fix_crap']) && is_array($data['fix_crap'])) {
27 27
                     $data['fix_crap'] = implode(',', $data['fix_crap']);
28
-                } elseif (! isset($data['fix_crap'])) {
28
+                } elseif (!isset($data['fix_crap'])) {
29 29
                     // If no checkboxes selected, save empty string
30 30
                     $data['fix_crap'] = '';
31 31
                 }
Please login to merge, or discard this patch.
app/Services/Tmux/TmuxMonitorService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
         // Parse fix_crap setting into an array
55 55
         $fixCrapSetting = $this->runVar['settings']['fix_crap'] ?? '';
56
-        $fixCrapTypes = ! empty($fixCrapSetting)
56
+        $fixCrapTypes = !empty($fixCrapSetting)
57 57
             ? (is_array($fixCrapSetting) ? $fixCrapSetting : explode(',', $fixCrapSetting))
58 58
             : [];
59 59
         $fixCrapTypes = array_filter($fixCrapTypes);
Please login to merge, or discard this patch.
app/Services/Tmux/TmuxTaskRunner.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -54,16 +54,16 @@  discard block
 block discarded – undo
54 54
         $enabled = $config['enabled'] ?? true;
55 55
         $workAvailable = $config['work_available'] ?? true;
56 56
 
57
-        if (! $pane || ! $command) {
57
+        if (!$pane || !$command) {
58 58
             return false;
59 59
         }
60 60
 
61 61
         // Check if task is enabled and has work
62
-        if (! $enabled) {
62
+        if (!$enabled) {
63 63
             return $this->disablePane($pane, $taskName, 'disabled in settings');
64 64
         }
65 65
 
66
-        if (! $workAvailable) {
66
+        if (!$workAvailable) {
67 67
             return $this->disablePane($pane, $taskName, 'no work available');
68 68
         }
69 69
 
@@ -129,13 +129,13 @@  discard block
 block discarded – undo
129 129
     {
130 130
         $logsEnabled = (int) Settings::settingValue('write_logs') === 1;
131 131
 
132
-        if (! $logsEnabled) {
132
+        if (!$logsEnabled) {
133 133
             return '/dev/null';
134 134
         }
135 135
 
136 136
         $logDir = config('tmux.paths.logs', storage_path('logs/tmux'));
137 137
 
138
-        if (! is_dir($logDir)) {
138
+        if (!is_dir($logDir)) {
139 139
             mkdir($logDir, 0755, true);
140 140
         }
141 141
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         $killswitch = $config['killswitch']['pp'] ?? false;
203 203
         $pane = '0.1';
204 204
 
205
-        if (! $enabled) {
205
+        if (!$enabled) {
206 206
             return $this->disablePane($pane, 'Update Binaries', 'disabled in settings');
207 207
         }
208 208
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             default => null,
216 216
         };
217 217
 
218
-        if (! $artisanCommand) {
218
+        if (!$artisanCommand) {
219 219
             return false;
220 220
         }
221 221
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
         $ppKillswitch = $config['killswitch']['pp'] ?? false;
238 238
         $pane = '0.2';
239 239
 
240
-        if (! $enabled) {
240
+        if (!$enabled) {
241 241
             return $this->disablePane($pane, 'Backfill', 'disabled in settings');
242 242
         }
243 243
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
             default => null,
252 252
         };
253 253
 
254
-        if (! $artisanCommand) {
254
+        if (!$artisanCommand) {
255 255
             return false;
256 256
         }
257 257
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         $enabled = (int) ($config['settings']['releases_run'] ?? 0);
280 280
         $pane = $config['pane'] ?? '0.3';
281 281
 
282
-        if (! $enabled) {
282
+        if (!$enabled) {
283 283
             return $this->disablePane($pane, 'Update Releases', 'disabled in settings');
284 284
         }
285 285
 
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
 
438 438
             // Trim whitespace and filter out empty values and '0'
439 439
             $types = array_map('trim', $types);
440
-            $types = array_filter($types, fn ($type) => ! empty($type) && $type !== '0');
440
+            $types = array_filter($types, fn ($type) => !empty($type) && $type !== '0');
441 441
 
442 442
             // Re-index array to ensure sequential keys
443 443
             $types = array_values($types);
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
      */
484 484
     protected function loadCrapState(string $file): array
485 485
     {
486
-        if (! file_exists($file)) {
486
+        if (!file_exists($file)) {
487 487
             return ['first_run' => true];
488 488
         }
489 489
 
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
     protected function saveCrapState(string $file, array $state): void
500 500
     {
501 501
         $dir = dirname($file);
502
-        if (! is_dir($dir)) {
502
+        if (!is_dir($dir)) {
503 503
             mkdir($dir, 0755, true);
504 504
         }
505 505
 
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
             || (int) ($runVar['counts']['now']['processgames'] ?? 0) > 0
654 654
             || (int) ($runVar['counts']['now']['processxxx'] ?? 0) > 0;
655 655
 
656
-        if (! $hasWork) {
656
+        if (!$hasWork) {
657 657
             return $this->disablePane($pane, 'Post-process Amazon', 'no music/books/games to process');
658 658
         }
659 659
 
Please login to merge, or discard this patch.