@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | public function register(): void |
71 | 71 | { |
72 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
72 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
73 | 73 | /** @template T @var Config<T> $config */ |
74 | 74 | $config = $app->get(Config::class); |
75 | 75 | $driver = $config->get('database.default', 'default'); |
@@ -84,11 +84,11 @@ discard block |
||
84 | 84 | return new Configuration($dbConfig); |
85 | 85 | }); |
86 | 86 | |
87 | - $this->app->share(Pool::class, function (ContainerInterface $app) { |
|
87 | + $this->app->share(Pool::class, function(ContainerInterface $app) { |
|
88 | 88 | return new Pool($app->get(Config::class)->get('database', [])); |
89 | 89 | }); |
90 | 90 | |
91 | - $this->app->share(Connection::class, function (ContainerInterface $app) { |
|
91 | + $this->app->share(Connection::class, function(ContainerInterface $app) { |
|
92 | 92 | return new Connection( |
93 | 93 | $app->get(Configuration::class), |
94 | 94 | $app->get(LoggerInterface::class) |
@@ -61,8 +61,7 @@ discard block |
||
61 | 61 | * @template T |
62 | 62 | * @extends AbstractSeedCommand<T> |
63 | 63 | */ |
64 | -class SeedCreateCommand extends AbstractSeedCommand |
|
65 | -{ |
|
64 | +class SeedCreateCommand extends AbstractSeedCommand { |
|
66 | 65 | /** |
67 | 66 | * The seed name |
68 | 67 | * @var string |
@@ -88,8 +87,7 @@ discard block |
||
88 | 87 | /** |
89 | 88 | * {@inheritdoc} |
90 | 89 | */ |
91 | - public function execute() |
|
92 | - { |
|
90 | + public function execute() { |
|
93 | 91 | $writer = $this->io()->writer(); |
94 | 92 | |
95 | 93 | $version = date('Ymd_His'); |
@@ -70,7 +70,7 @@ |
||
70 | 70 | ) { |
71 | 71 | parent::__construct($app, $config, $filesystem); |
72 | 72 | $this->setName('seed:exec') |
73 | - ->setDescription('Command to execute seed'); |
|
73 | + ->setDescription('Command to execute seed'); |
|
74 | 74 | |
75 | 75 | $this->addOption('-i|--id', 'the seed version', null, false, true); |
76 | 76 | } |