| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | 28 | public function boot() |
|
| 13 | { |
||
| 14 | 28 | if ($this->app->runningInConsole()) { |
|
| 15 | 28 | $this->publishes([ |
|
| 16 | 28 | __DIR__ . '/../config/geonames.php' => config_path('geonames.php'), |
|
| 17 | 28 | ], 'config'); |
|
| 18 | |||
| 19 | |||
| 20 | 28 | $this->commands([ |
|
| 21 | 28 | DownloadFilesCommand::class, |
|
| 22 | DownloadTruncateCommand::class, |
||
| 23 | MakeMigrationCommand::class, |
||
| 24 | LoadDataToDBCommand::class, |
||
| 25 | ]); |
||
| 26 | } |
||
| 27 | |||
| 28 | 28 | $this->app->bind('geodata-importer', function ($app) { |
|
| 29 | 16 | return new GeoDataImporter($app); |
|
| 30 | 28 | }); |
|
| 41 |