Passed
Push — master ( 6b3709...d172f1 )
by Darko
10:26
created
app/Services/Tmux/TmuxTaskRunner.php 1 patch
Spacing   +14 added lines, -14 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
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $killswitch = $config['killswitch']['pp'] ?? false;
182 182
         $pane = '0.1';
183 183
 
184
-        if (! $enabled) {
184
+        if (!$enabled) {
185 185
             return $this->disablePane($pane, 'Update Binaries', 'disabled in settings');
186 186
         }
187 187
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             default => null,
195 195
         };
196 196
 
197
-        if (! $artisanCommand) {
197
+        if (!$artisanCommand) {
198 198
             return false;
199 199
         }
200 200
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         $ppKillswitch = $config['killswitch']['pp'] ?? false;
217 217
         $pane = '0.2';
218 218
 
219
-        if (! $enabled) {
219
+        if (!$enabled) {
220 220
             return $this->disablePane($pane, 'Backfill', 'disabled in settings');
221 221
         }
222 222
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
             default => null,
231 231
         };
232 232
 
233
-        if (! $artisanCommand) {
233
+        if (!$artisanCommand) {
234 234
             return false;
235 235
         }
236 236
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         $enabled = (int) ($config['settings']['releases_run'] ?? 0);
259 259
         $pane = $config['pane'] ?? '0.3';
260 260
 
261
-        if (! $enabled) {
261
+        if (!$enabled) {
262 262
             return $this->disablePane($pane, 'Update Releases', 'disabled in settings');
263 263
         }
264 264
 
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
         $pane = '0.1';
339 339
         $script = base_path('misc/update/nix/tmux/bin/sequential.php');
340 340
 
341
-        if (! file_exists($script)) {
341
+        if (!file_exists($script)) {
342 342
             return $this->disablePane($pane, 'Sequential', 'script not found');
343 343
         }
344 344
 
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
         $option = (int) ($runVar['settings']['fix_crap_opt'] ?? 1);
398 398
         $script = base_path('misc/update/nix/tmux/bin/removecrap.php');
399 399
 
400
-        if (! file_exists($script)) {
400
+        if (!file_exists($script)) {
401 401
             return $this->disablePane($pane, 'Remove Crap', 'script not found');
402 402
         }
403 403
 
@@ -445,7 +445,7 @@  discard block
 block discarded – undo
445 445
             || (int) ($runVar['counts']['now']['processtv'] ?? 0) > 0
446 446
             || (int) ($runVar['counts']['now']['processanime'] ?? 0) > 0;
447 447
 
448
-        if (! $hasWork) {
448
+        if (!$hasWork) {
449 449
             return $this->disablePane($pane, 'Post-process Non-Amazon', 'no movies/tv/anime to process');
450 450
         }
451 451
 
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
             || (int) ($runVar['counts']['now']['processgames'] ?? 0) > 0
485 485
             || (int) ($runVar['counts']['now']['processxxx'] ?? 0) > 0;
486 486
 
487
-        if (! $hasWork) {
487
+        if (!$hasWork) {
488 488
             return $this->disablePane($pane, 'Post-process Amazon', 'no music/books/games to process');
489 489
         }
490 490
 
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.