@@ -9,7 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | public function setUp(): void |
11 | 11 | { |
12 | - parent::setUp(); |
|
12 | + parent::setUp(); |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | protected function defineDatabaseMigrations() |
@@ -19,6 +19,6 @@ |
||
19 | 19 | |
20 | 20 | protected function getPackageProviders($app): array |
21 | 21 | { |
22 | - return [DatabaseBackupServiceProvider::class]; |
|
22 | + return [ DatabaseBackupServiceProvider::class ]; |
|
23 | 23 | } |
24 | 24 | } |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | |
8 | 8 | class DatabaseBackupServiceProvider extends ServiceProvider |
9 | 9 | { |
10 | - public const CONFIG = __DIR__.'/config/databasebackup.php'; |
|
10 | + public const CONFIG = __DIR__ . '/config/databasebackup.php'; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Bootstrap the application services. |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | // |
38 | 38 | $this->mergeConfigFrom( |
39 | - __DIR__.'/config/databasebackup.php', 'databasebackup' |
|
39 | + __DIR__ . '/config/databasebackup.php', 'databasebackup' |
|
40 | 40 | ); |
41 | 41 | } |
42 | 42 | } |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | protected function commands() |
32 | 32 | { |
33 | - $this->load(__DIR__.'/Commands'); |
|
33 | + $this->load(__DIR__ . '/Commands'); |
|
34 | 34 | |
35 | 35 | require base_path('routes/console.php'); |
36 | 36 | } |
@@ -28,11 +28,10 @@ |
||
28 | 28 | public function handle() |
29 | 29 | { |
30 | 30 | $command = config('databasebackup.remote_access') ? |
31 | - config('databasebackup.remote_backup_command') : |
|
32 | - config('databasebackup.local_backup_command'); |
|
31 | + config('databasebackup.remote_backup_command') : config('databasebackup.local_backup_command'); |
|
33 | 32 | |
34 | 33 | $returnVar = NULL; |
35 | - $output = NULL; |
|
34 | + $output = NULL; |
|
36 | 35 | |
37 | 36 | exec($command, $output, $returnVar); |
38 | 37 | $this->info('Database backup was successful.'); |