Skip to content

Commit 20073e9

Browse files
committed
Apply fixes from StyleCI
1 parent a5ccb56 commit 20073e9

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/Console/Commands/SimpedeRestore.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,9 @@ public function handle()
119119
} else {
120120
$this->error('❌ Restore failed!');
121121
}
122-
123122
} catch (Exception $e) {
124123
$this->error('❌ Restore failed with error: '.$e->getMessage());
125124
$success = false;
126-
127125
} finally {
128126
if ($tempDir) {
129127
$this->cleanup($tempDir);
@@ -276,7 +274,6 @@ private function restoreDatabase($tempDir)
276274

277275
return false;
278276
}
279-
280277
} catch (Exception $e) {
281278
$this->error('❌ Database restore error: '.$e->getMessage());
282279

@@ -330,7 +327,6 @@ private function restoreFiles($tempDir)
330327
$this->info("📊 File restoration completed: {$restored} successful, {$failed} failed");
331328

332329
return $failed === 0;
333-
334330
} catch (Exception $e) {
335331
$this->error('❌ File restoration failed with error: '.$e->getMessage());
336332

@@ -517,7 +513,6 @@ private function listBackups()
517513
if (count($backups) > 10) {
518514
$this->line(' ... and '.(count($backups) - 10).' more backups');
519515
}
520-
521516
} catch (Exception $e) {
522517
$this->line(' Error accessing disk: '.$e->getMessage());
523518
}
@@ -586,7 +581,6 @@ private function dropAllTables()
586581
$this->info('✅ All tables dropped successfully');
587582

588583
return true;
589-
590584
} catch (Exception $e) {
591585
$this->error('❌ Failed to drop tables: '.$e->getMessage());
592586

@@ -711,7 +705,6 @@ private function importDatabaseDump($dumpFile, $connection)
711705
echo "❌ Restore failed. Output:\n".implode("\n", $output)."\n";
712706

713707
return false;
714-
715708
} catch (\Throwable $e) {
716709
echo '⚠️ Error occurred: '.$e->getMessage()."\n";
717710

0 commit comments

Comments
 (0)