Passed
Push — master ( 96ef05...f81447 )
by Darko
09:59
created
app/Console/Commands/UpdateBackfill.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,11 +37,11 @@
 block discarded – undo
37 37
             $backfill = new Backfill(['NNTP' => $nntp]);
38 38
 
39 39
             match (true) {
40
-                $mode === 'all' && ! isset($quantity) => $backfill->backfillAllGroups(),
40
+                $mode === 'all' && !isset($quantity) => $backfill->backfillAllGroups(),
41 41
                 $mode === 'alph' && is_numeric($quantity) => $backfill->backfillAllGroups('', (int) $quantity, 'normal'),
42 42
                 $mode === 'date' && is_numeric($quantity) => $backfill->backfillAllGroups('', (int) $quantity, 'date'),
43 43
                 $mode === 'safe' && is_numeric($quantity) => $backfill->safeBackfill((int) $quantity),
44
-                preg_match('/^alt\.binaries\..+$/i', $mode) && ! isset($quantity) => $backfill->backfillAllGroups($mode),
44
+                preg_match('/^alt\.binaries\..+$/i', $mode) && !isset($quantity) => $backfill->backfillAllGroups($mode),
45 45
                 preg_match('/^alt\.binaries\..+$/i', $mode) && is_numeric($quantity) => $backfill->backfillAllGroups($mode, (int) $quantity),
46 46
                 default => throw new \Exception($this->getHelpText()),
47 47
             };
Please login to merge, or discard this patch.
app/Console/Commands/PredbCheck.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $limit = $this->argument('limit');
30 30
 
31
-        if ($limit !== null && ! is_numeric($limit)) {
31
+        if ($limit !== null && !is_numeric($limit)) {
32 32
             $this->error('Limit must be a number');
33 33
 
34 34
             return Command::FAILURE;
Please login to merge, or discard this patch.
app/Console/Commands/UpdatePerGroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         $groupId = $this->argument('groupId');
38 38
 
39
-        if (! is_numeric($groupId)) {
39
+        if (!is_numeric($groupId)) {
40 40
             $this->error('Group ID must be numeric.');
41 41
 
42 42
             return self::FAILURE;
Please login to merge, or discard this patch.
app/Console/Commands/TmuxAttach.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
         $sessionManager = new TmuxSessionManager($sessionName);
36 36
 
37
-        if (! $sessionManager->sessionExists()) {
37
+        if (!$sessionManager->sessionExists()) {
38 38
             $this->error("❌ Session '{$sessionName}' does not exist");
39 39
             $this->info("
Please login to merge, or discard this patch.
app/Console/Commands/TmuxStop.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,15 +45,15 @@
 block discarded – undo
45 45
             $this->sessionManager = new TmuxSessionManager($sessionName);
46 46
 
47 47
             // Check if session exists
48
-            if (! $this->sessionManager->sessionExists()) {
48
+            if (!$this->sessionManager->sessionExists()) {
49 49
                 $this->warn("⚠️  Session '{$sessionName}' is not running");
50 50
 
51 51
                 return Command::SUCCESS;
52 52
             }
53 53
 
54 54
             // Confirm unless forced
55
-            if (! $this->option('force')) {
56
-                if (! $this->confirm("Stop tmux session '{$sessionName}'?", true)) {
55
+            if (!$this->option('force')) {
56
+                if (!$this->confirm("Stop tmux session '{$sessionName}'?", true)) {
57 57
                     $this->info('Cancelled');
58 58
 
59 59
                     return Command::SUCCESS;
Please login to merge, or discard this patch.
app/Console/Commands/ProcessSafe.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, ['backfill', 'binaries'], true)) {
32
+        if (!\in_array($type, ['backfill', 'binaries'], true)) {
33 33
             $this->error('Type must be either: binaries or backfill');
34 34
             $this->line('');
35 35
             $this->line('binaries => Do Safe Binaries update');
Please login to merge, or discard this patch.
app/Console/Commands/TmuxMonitorCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
         $this->colorCli->header('Resetting expired collections. This may take some time...');
98 98
 
99 99
         try {
100
-            DB::transaction(function () use ($delayTime) {
100
+            DB::transaction(function() use ($delayTime) {
101 101
                 Collection::query()
102 102
                     ->where('dateadded', '<', now()->subHours($delayTime))
103 103
                     ->update(['dateadded' => now()]);
Please login to merge, or discard this patch.
app/Console/Commands/ProcessPostProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $type = $this->argument('type');
32 32
         $renamed = $this->argument('renamed');
33 33
 
34
-        if (! \in_array($type, ['ama', 'add', 'mov', 'nfo', 'sha', 'tv'], true)) {
34
+        if (!\in_array($type, ['ama', 'add', 'mov', 'nfo', 'sha', 'tv'], true)) {
35 35
             $this->error('Type must be one of: ama, add, mov, nfo, sha, tv');
36 36
             $this->line('');
37 37
             $this->line('ama => Do amazon processing (no multiprocessing due to API restrictions)');
Please login to merge, or discard this patch.
app/Console/Commands/TmuxUIStart.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
     {
56 56
         $recommendations = UpdatePerformanceHelper::checkSystemResources();
57 57
 
58
-        if (! empty($recommendations)) {
58
+        if (!empty($recommendations)) {
59 59
             $this->warn('⚠️ System resource information:');
60 60
             foreach ($recommendations as $recommendation) {
61 61
                 $this->line("  • $recommendation");
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $runScript = base_path('misc/update/tmux/run.php');
85 85
 
86
-        if (! file_exists($runScript)) {
86
+        if (!file_exists($runScript)) {
87 87
             throw new \Exception("Tmux run script not found: $runScript");
88 88
         }
89 89
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             $this->info('
Please login to merge, or discard this patch.