@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | { |
| 77 | 77 | $this->app->share(Application::class, $this->app); |
| 78 | 78 | $this->app->share('app', $this->app); |
| 79 | - $this->app->share(ConsoleApp::class, function () { |
|
| 79 | + $this->app->share(ConsoleApp::class, function() { |
|
| 80 | 80 | return new ConsoleApp('PLATINE CONSOLE', '1.0.0'); |
| 81 | 81 | }); |
| 82 | 82 | $this->app->share(ContainerInterface::class, $this->app); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $this->app->bind(RouteCollectionInterface::class, RouteCollection::class); |
| 85 | 85 | $this->app->share(Router::class); |
| 86 | 86 | $this->app->bind(MiddlewareResolverInterface::class, MiddlewareResolver::class); |
| 87 | - $this->app->bind(EmitterInterface::class, function (ContainerInterface $app) { |
|
| 87 | + $this->app->bind(EmitterInterface::class, function(ContainerInterface $app) { |
|
| 88 | 88 | return new ResponseEmitter( |
| 89 | 89 | $app->get(Config::class)->get('app.response_chunck_size', null) |
| 90 | 90 | ); |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | |
| 76 | 76 | $this->app->bind(DatabaseConfigRepository::class); |
| 77 | 77 | |
| 78 | - $this->app->bind(DbConfig::class, function (ContainerInterface $app) { |
|
| 78 | + $this->app->bind(DbConfig::class, function(ContainerInterface $app) { |
|
| 79 | 79 | $env = $app->get(Config::class)->get('app.env', ''); |
| 80 | 80 | return new DbConfig($app->get(DatabaseConfigLoaderInterface::class), $env); |
| 81 | 81 | }); |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | 13 | //Action when migrate up |
| 14 | - $this->alter('users', function (AlterTable $table) { |
|
| 14 | + $this->alter('users', function(AlterTable $table) { |
|
| 15 | 15 | $table->string('role') |
| 16 | 16 | ->description('The user role or function'); |
| 17 | 17 | }); |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | public function down(): void |
| 21 | 21 | { |
| 22 | 22 | //Action when migrate down |
| 23 | - $this->alter('users', function (AlterTable $table) { |
|
| 23 | + $this->alter('users', function(AlterTable $table) { |
|
| 24 | 24 | $table->dropColumn('role'); |
| 25 | 25 | }); |
| 26 | 26 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | 13 | //Action when migrate up |
| 14 | - $this->create('config', function (CreateTable $table) { |
|
| 14 | + $this->create('config', function(CreateTable $table) { |
|
| 15 | 15 | $table->integer('id') |
| 16 | 16 | ->autoincrement() |
| 17 | 17 | ->primary(); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | 13 | //Action when migrate up |
| 14 | - $this->create('permissions_roles', function (CreateTable $table) { |
|
| 14 | + $this->create('permissions_roles', function(CreateTable $table) { |
|
| 15 | 15 | $table->integer('permission_id'); |
| 16 | 16 | $table->integer('role_id'); |
| 17 | 17 | |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | 13 | //Action when migrate up |
| 14 | - $this->alter('users', function (AlterTable $table) { |
|
| 14 | + $this->alter('users', function(AlterTable $table) { |
|
| 15 | 15 | $table->dropColumn('age'); |
| 16 | 16 | }); |
| 17 | 17 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | public function down(): void |
| 20 | 20 | { |
| 21 | 21 | //Action when migrate down |
| 22 | - $this->alter('users', function (AlterTable $table) { |
|
| 22 | + $this->alter('users', function(AlterTable $table) { |
|
| 23 | 23 | $table->integer('age') |
| 24 | 24 | ->size('tiny') |
| 25 | 25 | ->description('The user age'); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | 13 | //Action when migrate up |
| 14 | - $this->create('users', function (CreateTable $table) { |
|
| 14 | + $this->create('users', function(CreateTable $table) { |
|
| 15 | 15 | $table->integer('id') |
| 16 | 16 | ->autoincrement() |
| 17 | 17 | ->primary(); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | 13 | //Action when migrate up |
| 14 | - $this->create('roles_users', function (CreateTable $table) { |
|
| 14 | + $this->create('roles_users', function(CreateTable $table) { |
|
| 15 | 15 | $table->integer('user_id'); |
| 16 | 16 | $table->integer('role_id'); |
| 17 | 17 | |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | 13 | //Action when migrate up |
| 14 | - $this->create('permissions', function (CreateTable $table) { |
|
| 14 | + $this->create('permissions', function(CreateTable $table) { |
|
| 15 | 15 | $table->integer('id') |
| 16 | 16 | ->autoincrement() |
| 17 | 17 | ->primary(); |