@@ -65,7 +65,7 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | public function register(): void |
| 67 | 67 | { |
| 68 | - $this->app->share(DbConfig::class, function (ContainerInterface $app) { |
|
| 68 | + $this->app->share(DbConfig::class, function(ContainerInterface $app) { |
|
| 69 | 69 | $env = $app->get(Config::class)->get('app.env', ''); |
| 70 | 70 | return new DbConfig($app->get(QueryBuilder::class), $env); |
| 71 | 71 | }); |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | */ |
| 123 | 123 | protected function parse(string $env): array |
| 124 | 124 | { |
| 125 | - $environments = array_filter((array)preg_split('/(\/|\.)/', $env)); |
|
| 125 | + $environments = array_filter((array) preg_split('/(\/|\.)/', $env)); |
|
| 126 | 126 | array_unshift($environments, ''); |
| 127 | 127 | |
| 128 | 128 | return $environments; |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | public function up(): void |
| 11 | 11 | { |
| 12 | 12 | //Action when migrate up |
| 13 | - $this->create('config', function (CreateTable $table) { |
|
| 13 | + $this->create('config', function(CreateTable $table) { |
|
| 14 | 14 | $table->integer('id') |
| 15 | 15 | ->autoincrement() |
| 16 | 16 | ->primary(); |