Passed
Push — master ( 4f5b3b...1c5d75 )
by Darko
09:48
created
app/Console/Commands/FindSizeMismatchedReleases.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $mismatches = $query->get();
60 60
 
61 61
         if ($checkSeasonPack) {
62
-            $mismatches = $mismatches->filter(function ($release) use ($nameFixer) {
62
+            $mismatches = $mismatches->filter(function($release) use ($nameFixer) {
63 63
                 return $nameFixer->isSeasonPack($release->name);
64 64
             });
65 65
         }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
         // Regular table output for non-rename mode
87 87
         $headers = ['Release ID', 'Searchname', 'Release Size', 'Files Total', 'Difference', 'Diff %'];
88
-        $rows = $mismatches->map(function ($release) {
88
+        $rows = $mismatches->map(function($release) {
89 89
             return [
90 90
                 $release->id,
91 91
                 $release->searchname,
Please login to merge, or discard this patch.
app/Console/Commands/BackfillUserActivityStats.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             $date = Carbon::now()->subDays($i)->format('Y-m-d');
47 47
 
48 48
             // Check if stats already exist for this date
49
-            if (! $force && UserActivityStat::where('stat_date', $date)->exists()) {
49
+            if (!$force && UserActivityStat::where('stat_date', $date)->exists()) {
50 50
                 $statsSkipped++;
51 51
                 $progressBar->advance();
52 52
 
Please login to merge, or discard this patch.
app/Console/Commands/CaptchaStatus.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
         $recaptchaSecret = config('captcha.recaptcha.secret');
41 41
 
42 42
         $this->line('  Enabled: '.($recaptchaEnabled ? '<fg=green>Yes</>' : '<fg=red>No</>'));
43
-        $this->line('  Site Key: '.(! empty($recaptchaSitekey) ? '<fg=green>Configured</>' : '<fg=red>Missing</>'));
44
-        $this->line('  Secret: '.(! empty($recaptchaSecret) ? '<fg=green>Configured</>' : '<fg=red>Missing</>'));
43
+        $this->line('  Site Key: '.(!empty($recaptchaSitekey) ? '<fg=green>Configured</>' : '<fg=red>Missing</>'));
44
+        $this->line('  Secret: '.(!empty($recaptchaSecret) ? '<fg=green>Configured</>' : '<fg=red>Missing</>'));
45 45
         $this->newLine();
46 46
 
47 47
         // Check Turnstile
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
         $turnstileSecret = config('captcha.turnstile.secret');
52 52
 
53 53
         $this->line('  Enabled: '.($turnstileEnabled ? '<fg=green>Yes</>' : '<fg=red>No</>'));
54
-        $this->line('  Site Key: '.(! empty($turnstileSitekey) ? '<fg=green>Configured</>' : '<fg=red>Missing</>'));
55
-        $this->line('  Secret: '.(! empty($turnstileSecret) ? '<fg=green>Configured</>' : '<fg=red>Missing</>'));
54
+        $this->line('  Site Key: '.(!empty($turnstileSitekey) ? '<fg=green>Configured</>' : '<fg=red>Missing</>'));
55
+        $this->line('  Secret: '.(!empty($turnstileSecret) ? '<fg=green>Configured</>' : '<fg=red>Missing</>'));
56 56
         $this->newLine();
57 57
 
58 58
         // Validation
59
-        $recaptchaReady = $recaptchaEnabled && ! empty($recaptchaSitekey) && ! empty($recaptchaSecret);
60
-        $turnstileReady = $turnstileEnabled && ! empty($turnstileSitekey) && ! empty($turnstileSecret);
59
+        $recaptchaReady = $recaptchaEnabled && !empty($recaptchaSitekey) && !empty($recaptchaSecret);
60
+        $turnstileReady = $turnstileEnabled && !empty($turnstileSitekey) && !empty($turnstileSecret);
61 61
 
62 62
         if ($recaptchaReady && $turnstileReady) {
63 63
             $this->error('⚠ WARNING: Both providers are enabled!');
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
             $this->info('✓ reCAPTCHA is properly configured and active');
71 71
         } elseif ($provider === 'turnstile' && $turnstileReady) {
72 72
             $this->info('✓ Turnstile is properly configured and active');
73
-        } elseif ($provider === 'recaptcha' && ! $recaptchaReady) {
73
+        } elseif ($provider === 'recaptcha' && !$recaptchaReady) {
74 74
             $this->error('✗ reCAPTCHA is selected but not properly configured');
75
-        } elseif ($provider === 'turnstile' && ! $turnstileReady) {
75
+        } elseif ($provider === 'turnstile' && !$turnstileReady) {
76 76
             $this->error('✗ Turnstile is selected but not properly configured');
77 77
         } else {
78 78
             $this->warn('⚠ No CAPTCHA provider is active');
Please login to merge, or discard this patch.
app/Console/Commands/TmuxUIStart.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
             $this->checkSystemResources();
44 44
 
45 45
             // Check if session already exists
46
-            if (! $this->option('force') && $this->isSessionRunning($tmuxSession)) {
46
+            if (!$this->option('force') && $this->isSessionRunning($tmuxSession)) {
47 47
                 $this->error("❌ Tmux session '$tmuxSession' is already running");
48 48
 
49
-                if (! $this->confirm('Would you like to restart the session?')) {
49
+                if (!$this->confirm('Would you like to restart the session?')) {
50 50
                     return Command::FAILURE;
51 51
                 }
52 52
 
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     {
80 80
         $recommendations = UpdatePerformanceHelper::checkSystemResources();
81 81
 
82
-        if (! empty($recommendations)) {
82
+        if (!empty($recommendations)) {
83 83
             $this->warn('⚠️ System resource information:');
84 84
             foreach ($recommendations as $recommendation) {
85 85
                 $this->line("  • $recommendation");
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         $runScript = base_path('misc/update/tmux/run.php');
109 109
 
110
-        if (! file_exists($runScript)) {
110
+        if (!file_exists($runScript)) {
111 111
             throw new \Exception("Tmux run script not found: $runScript");
112 112
         }
113 113
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             $this->info('
Please login to merge, or discard this patch.