@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $this->info(' |
@@ -88,16 +88,16 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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(' |
@@ -43,10 +43,10 @@ discard block |
||
| 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,13 +79,13 @@ discard block |
||
| 79 | 79 | { |
| 80 | 80 | $recommendations = UpdatePerformanceHelper::checkSystemResources(); |
| 81 | 81 | |
| 82 | - if (! empty($recommendations)) { |
|
| 82 | + if (!empty($recommendations)) { |
|
| 83 | 83 | $this->warn('⚠️ System resource warnings:'); |
| 84 | 84 | foreach ($recommendations as $recommendation) { |
| 85 | 85 | $this->line(" • $recommendation"); |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - if (! $this->confirm('Continue despite warnings?')) { |
|
| 88 | + if (!$this->confirm('Continue despite warnings?')) { |
|
| 89 | 89 | throw new \Exception('Aborted due to system resource concerns'); |
| 90 | 90 | } |
| 91 | 91 | } |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | $runScript = base_path('misc/update/tmux/run.php'); |
| 112 | 112 | |
| 113 | - if (! file_exists($runScript)) { |
|
| 113 | + if (!file_exists($runScript)) { |
|
| 114 | 114 | throw new \Exception("Tmux run script not found: $runScript"); |
| 115 | 115 | } |
| 116 | 116 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $this->info(' |
@@ -42,14 +42,14 @@ |
||
| 42 | 42 | $this->info(' |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | // Check database connection and detect database type |
| 32 | 32 | $dbType = $this->checkDatabaseConnection(); |
| 33 | - if (! $dbType) { |
|
| 33 | + if (!$dbType) { |
|
| 34 | 34 | $this->error('Database connection failed'); |
| 35 | 35 | |
| 36 | 36 | return Command::FAILURE; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | |
| 124 | 124 | $this->warn("⚠️ Rolling back $steps migrations..."); |
| 125 | 125 | |
| 126 | - if (! $this->confirm('Are you sure you want to rollback migrations? This may cause data loss.')) { |
|
| 126 | + if (!$this->confirm('Are you sure you want to rollback migrations? This may cause data loss.')) { |
|
| 127 | 127 | $this->info('Rollback cancelled'); |
| 128 | 128 | |
| 129 | 129 | return Command::SUCCESS; |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | public static function hasFileChanged(string $filePath, ?string $cacheKey = null): bool |
| 15 | 15 | { |
| 16 | - if (! File::exists($filePath)) { |
|
| 16 | + if (!File::exists($filePath)) { |
|
| 17 | 17 | return false; |
| 18 | 18 | } |
| 19 | 19 | |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | // Check PHP extensions |
| 131 | 131 | $requiredExtensions = ['pdo', 'mbstring', 'openssl', 'json', 'curl']; |
| 132 | 132 | foreach ($requiredExtensions as $ext) { |
| 133 | - if (! extension_loaded($ext)) { |
|
| 133 | + if (!extension_loaded($ext)) { |
|
| 134 | 134 | $recommendations[] = "Missing PHP extension: $ext"; |
| 135 | 135 | } |
| 136 | 136 | } |