Passed
Push — master ( 24ac50...b94eb1 )
by Darko
08:07
created
app/Console/Commands/NntmuxCheckIndex.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $engine = $this->getSelectedEngine();
34 34
         $index = $this->getSelectedIndex();
35 35
 
36
-        if (! $engine || ! $index) {
36
+        if (!$engine || !$index) {
37 37
             $this->error('You must specify both an engine (--manticore or --elastic) and an index (--releases or --predb).');
38 38
 
39 39
             return Command::FAILURE;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             // Check if index exists
66 66
             $exists = \Elasticsearch::indices()->exists(['index' => $index]);
67 67
 
68
-            if (! $exists) {
68
+            if (!$exists) {
69 69
                 $this->error("ElasticSearch index '{$index}' does not exist.");
70 70
 
71 71
                 return;
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
                         $this->info("\nTable structure:");
215 215
                         $this->table(
216 216
                             ['Field', 'Type', 'Properties'],
217
-                            array_map(function ($row) {
217
+                            array_map(function($row) {
218 218
                                 return [
219 219
                                     $row['Field'] ?? $row[0] ?? '',
220 220
                                     $row['Type'] ?? $row[1] ?? '',
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/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.