@@ -45,6 +45,9 @@ |
||
45 | 45 | return scandir($localPath); |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @return string|null |
|
50 | + */ |
|
48 | 51 | private function getDiskName() |
49 | 52 | { |
50 | 53 | // For now static from he config file. |
@@ -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 | } |
@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | ); |
35 | 35 | // Instatiate a new DbMigrations class to send to the handler |
36 | 36 | $this->migrator = $migrator; |
37 | - // Load the alias |
|
37 | + // Load the alias |
|
38 | 38 | $this->loadAlias(); |
39 | - // Handle the artisan commands |
|
39 | + // Handle the artisan commands |
|
40 | 40 | $this->registerCommands(); |
41 | 41 | |
42 | 42 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $this->registerMigrationsCommand(); |
63 | 63 | $this->registerSeedsCommand(); |
64 | 64 | $this->registerRemoteCommand(); |
65 | - } |
|
65 | + } |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Register the migrations command |
@@ -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 | } |
@@ -22,8 +22,8 @@ |
||
22 | 22 | public function boot() |
23 | 23 | { |
24 | 24 | |
25 | - $loader = AliasLoader::getInstance(); |
|
26 | - $loader->alias('DbMigrations', 'Facades\DbMigrations'); |
|
25 | + $loader = AliasLoader::getInstance(); |
|
26 | + $loader->alias('DbMigrations', 'Facades\DbMigrations'); |
|
27 | 27 | |
28 | 28 | |
29 | 29 | } |
@@ -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"); |