Skip to content

Commit 184358d

Browse files
committed
fix(backup): fix formatting
1 parent 9924845 commit 184358d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/helper/Site_Backup_Restore.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ private function maybe_backup_custom_docker_compose( $backup_dir ) {
419419
if ( $this->fs->exists( $custom_docker_compose_dir ) ) {
420420
$custom_docker_compose_dir_archive = $backup_dir . '/user-docker-compose.zip';
421421
$archive_command = sprintf( 'cd %s && 7z a -mx=1 %s .', $custom_docker_compose_dir, $custom_docker_compose_dir_archive );
422-
$result = EE::launch( $archive_command );
422+
$result = EE::launch( $archive_command );
423423

424424
// 7z exit codes: 0=success, 1=warning (non-fatal), 2+=fatal error
425425
// This is optional, so we just log a warning instead of failing
@@ -477,7 +477,7 @@ private function backup_wp_content_dir( $backup_dir ) {
477477
}
478478

479479
$backup_command = sprintf( 'cd %s && 7z a -mx=1 %s wp-config.php', $site_dir . '/../', $backup_file );
480-
$result = EE::launch( $backup_command );
480+
$result = EE::launch( $backup_command );
481481

482482
// 7z exit codes: 0=success, 1=warning (non-fatal), 2+=fatal error
483483
if ( $result->return_code >= 2 ) {
@@ -494,7 +494,7 @@ private function backup_wp_content_dir( $backup_dir ) {
494494

495495
// Include meta.json in the zip archive (Corrected logic)
496496
$backup_command = sprintf( 'cd %s && 7z u -snl -mx=1 %s %s wp-content', $site_dir, $backup_file, $meta_file );
497-
$result = EE::launch( $backup_command );
497+
$result = EE::launch( $backup_command );
498498
// Remove the file
499499
$this->fs->remove( $meta_file );
500500

@@ -511,7 +511,7 @@ private function backup_wp_content_dir( $backup_dir ) {
511511
$uploads_dir = $site_dir . '/wp-content/uploads';
512512
if ( is_link( $uploads_dir ) ) {
513513
$backup_command = sprintf( 'cd %s && 7z u -mx=1 %s wp-content/uploads', $site_dir, $backup_file );
514-
$result = EE::launch( $backup_command );
514+
$result = EE::launch( $backup_command );
515515

516516
// 7z exit codes: 0=success, 1=warning (non-fatal), 2+=fatal error
517517
if ( $result->return_code >= 2 ) {

0 commit comments

Comments
 (0)