Passed
Push — master ( 6db6a9...7e036e )
by Darko
25:38
created
app/Console/Commands/DeleteReleases.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
         // Add any advanced criteria
71 71
         $advancedCriteria = $this->argument('criteria');
72
-        if (! empty($advancedCriteria)) {
72
+        if (!empty($advancedCriteria)) {
73 73
             $criteria = array_merge($criteria, $advancedCriteria);
74 74
         }
75 75
 
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
         }
91 91
 
92 92
         // Show confirmation unless force flag is set
93
-        if (! $force) {
93
+        if (!$force) {
94 94
             $this->warn('You are about to delete releases matching the following criteria:');
95 95
             foreach ($criteria as $criterion) {
96 96
                 $this->line("  - {$criterion}");
97 97
             }
98 98
             $this->newLine();
99 99
 
100
-            if (! $this->confirm('Are you sure you want to proceed with the deletion?')) {
100
+            if (!$this->confirm('Are you sure you want to proceed with the deletion?')) {
101 101
                 $this->info('Operation cancelled.');
102 102
 
103 103
                 return 0;
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
             // Build the query to find releases to delete
111 111
             $query = $this->buildQueryFromCriteria($criteria);
112
-            if (! $query) {
112
+            if (!$query) {
113 113
                 $this->error('Could not build query from criteria.');
114 114
 
115 115
                 return 1;
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             // Get the query that would be executed
190 190
             $query = $this->buildQueryFromCriteria($criteria);
191 191
 
192
-            if (! $query) {
192
+            if (!$query) {
193 193
                 $this->error('Could not build query from criteria.');
194 194
 
195 195
                 return 1;
@@ -348,13 +348,13 @@  discard block
 block discarded – undo
348 348
                 switch ($modifier) {
349 349
                     case 'equals':
350 350
                         $group = DB::select('SELECT id FROM usenet_groups WHERE name = ?', [$value]);
351
-                        if (! empty($group)) {
351
+                        if (!empty($group)) {
352 352
                             return " AND groups_id = {$group[0]->id}";
353 353
                         }
354 354
                         break;
355 355
                     case 'like':
356 356
                         $groups = DB::select('SELECT id FROM usenet_groups WHERE name LIKE ?', ['%'.str_replace(' ', '%', $value).'%']);
357
-                        if (! empty($groups)) {
357
+                        if (!empty($groups)) {
358 358
                             $ids = array_column($groups, 'id');
359 359
 
360 360
                             return ' AND groups_id IN ('.implode(',', $ids).')';
Please login to merge, or discard this patch.
app/Console/Commands/UpdateNNTmuxComposer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             $this->info('
Please login to merge, or discard this patch.
app/Console/Commands/UpdateNNTmux.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -88,16 +88,16 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $steps = 3; // prepare, finalize, cleanup
90 90
 
91
-        if (! $this->option('skip-git')) {
91
+        if (!$this->option('skip-git')) {
92 92
             $steps++;
93 93
         }
94
-        if (! $this->option('skip-composer')) {
94
+        if (!$this->option('skip-composer')) {
95 95
             $steps++;
96 96
         }
97
-        if (! $this->option('skip-npm')) {
97
+        if (!$this->option('skip-npm')) {
98 98
             $steps += 2;
99 99
         } // install + build
100
-        if (! $this->option('skip-db')) {
100
+        if (!$this->option('skip-db')) {
101 101
             $steps++;
102 102
         }
103 103
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
         // Check if app is in maintenance mode
118 118
         $this->wasInMaintenance = App::isDownForMaintenance();
119
-        if (! $this->wasInMaintenance) {
119
+        if (!$this->wasInMaintenance) {
120 120
             $this->call('down', [
121 121
                 '--render' => 'errors::maintenance',
122 122
                 '--retry' => 120,
@@ -140,22 +140,22 @@  discard block
 block discarded – undo
140 140
     private function executeUpdateSteps(): void
141 141
     {
142 142
         // Git operations
143
-        if (! $this->option('skip-git')) {
143
+        if (!$this->option('skip-git')) {
144 144
             $this->performGitUpdate();
145 145
         }
146 146
 
147 147
         // Composer operations
148
-        if (! $this->option('skip-composer')) {
148
+        if (!$this->option('skip-composer')) {
149 149
             $this->performComposerUpdate();
150 150
         }
151 151
 
152 152
         // Database migrations
153
-        if (! $this->option('skip-db')) {
153
+        if (!$this->option('skip-db')) {
154 154
             $this->performDatabaseUpdate();
155 155
         }
156 156
 
157 157
         // NPM operations
158
-        if (! $this->option('skip-npm')) {
158
+        if (!$this->option('skip-npm')) {
159 159
             $this->performNpmOperations();
160 160
         }
161 161
 
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
     {
219 219
         // Check if package.json has changed
220 220
         $packageLockExists = File::exists(base_path('package-lock.json'));
221
-        $shouldInstall = ! $packageLockExists || $this->option('force');
221
+        $shouldInstall = !$packageLockExists || $this->option('force');
222 222
 
223 223
         if ($shouldInstall) {
224 224
             $this->info('
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.
app/Console/Commands/UpdateNNTmuxGit.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@
 block discarded – undo
42 42
             $this->info('
Please login to merge, or discard this patch.