@@ -26,11 +26,11 @@ discard block |
||
| 26 | 26 | public function boot(DbMigrations $migrator) |
| 27 | 27 | { |
| 28 | 28 | $this->publishes([ |
| 29 | - realpath(__DIR__ .'/../').'/config/db-exporter.php' => config_path('db-exporter.php'), |
|
| 29 | + realpath(__DIR__ . '/../') . '/config/db-exporter.php' => config_path('db-exporter.php'), |
|
| 30 | 30 | ]); |
| 31 | 31 | |
| 32 | 32 | $this->mergeConfigFrom( |
| 33 | - realpath(__DIR__ .'/../').'/config/db-exporter.php', 'db-exporter' |
|
| 33 | + realpath(__DIR__ . '/../') . '/config/db-exporter.php', 'db-exporter' |
|
| 34 | 34 | ); |
| 35 | 35 | // Instatiate a new DbMigrations class to send to the handler |
| 36 | 36 | $this->migrator = $migrator; |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | return new DbExportHandler($app[DbMigrations::class], $seeder); |
| 109 | 109 | }); |
| 110 | 110 | |
| 111 | - $this->app->bind('DbExporter', function($app){ |
|
| 111 | + $this->app->bind('DbExporter', function($app) { |
|
| 112 | 112 | return $app[DbExportHandler::class]; |
| 113 | 113 | }); |
| 114 | 114 | } |
@@ -38,9 +38,9 @@ |
||
| 38 | 38 | |
| 39 | 39 | return true; |
| 40 | 40 | } |
| 41 | - public function files($value='') |
|
| 41 | + public function files($value = '') |
|
| 42 | 42 | { |
| 43 | - $localPath = Config::get('db-exporter.export_path.'.$what); |
|
| 43 | + $localPath = Config::get('db-exporter.export_path.' . $what); |
|
| 44 | 44 | |
| 45 | 45 | return scandir($localPath); |
| 46 | 46 | } |
@@ -86,7 +86,7 @@ |
||
| 86 | 86 | |
| 87 | 87 | private function upload($what) |
| 88 | 88 | { |
| 89 | - $localPath = Config::get('db-exporter.export_path.'.$what); |
|
| 89 | + $localPath = Config::get('db-exporter.export_path.' . $what); |
|
| 90 | 90 | $dir = scandir($localPath); |
| 91 | 91 | $remotePath = Config::get('db-exporter.remote.' . $what); |
| 92 | 92 | $this->line("\n"); |