From 542d7fe6493fd2b568ae9a696fd6135dc0dd2739 Mon Sep 17 00:00:00 2001 From: apidong Date: Wed, 10 Jul 2024 13:31:34 +0000 Subject: [PATCH] [ci skip] Fix styling --- app/Console/Commands/BackupDatabaseStorage.php | 4 ++-- app/Http/Controllers/Helpers/RemoteController.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/BackupDatabaseStorage.php b/app/Console/Commands/BackupDatabaseStorage.php index 2454efc4..486221db 100644 --- a/app/Console/Commands/BackupDatabaseStorage.php +++ b/app/Console/Commands/BackupDatabaseStorage.php @@ -65,11 +65,11 @@ private function backupDatabase() ->setUserName(env('DB_USERNAME')) ->setPassword(env('DB_PASSWORD')); - $backup->dumpToFile($this->folder_database . '/' . $this->database_name); + $backup->dumpToFile($this->folder_database.'/'.$this->database_name); LogBackup::create([ 'status' => 1, - 'log' => 'Success backup pantau:backup-database-storage' + 'log' => 'Success backup pantau:backup-database-storage', ]); } catch (Exception $ex) { $this->command->notifMessage('Peringatan : gagal backup ke database Pantau, silakan cek koneksi !!!'); diff --git a/app/Http/Controllers/Helpers/RemoteController.php b/app/Http/Controllers/Helpers/RemoteController.php index a6d80d8b..080245cb 100644 --- a/app/Http/Controllers/Helpers/RemoteController.php +++ b/app/Http/Controllers/Helpers/RemoteController.php @@ -39,10 +39,10 @@ public function backupToCloudStorage($storage_type, $remote_name, $akhir_backup, exec('rclone -v sync '.folder_backup().' '.$remote_name.':'.$directory_backup); // notif berhasil - $this->command->notifMessage('Berhasil backup menggunakan tipe ' . $storage_type . ' tanggal ' . date('Y-m-d')); + $this->command->notifMessage('Berhasil backup menggunakan tipe '.$storage_type.' tanggal '.date('Y-m-d')); LogBackup::create([ 'status' => 1, - 'log' => 'Gagal backup menggunakan tipe ' . $storage_type + 'log' => 'Gagal backup menggunakan tipe '.$storage_type, ]); } else { // notif gagal