@@ -63,8 +63,7 @@ discard block |
||
63 | 63 | * @template T |
64 | 64 | * @extends AbstractSeedCommand<T> |
65 | 65 | */ |
66 | -class SeedCreateDbCommand extends AbstractSeedCommand |
|
67 | -{ |
|
66 | +class SeedCreateDbCommand extends AbstractSeedCommand { |
|
68 | 67 | /** |
69 | 68 | * The seed name |
70 | 69 | * @var string |
@@ -114,8 +113,7 @@ discard block |
||
114 | 113 | /** |
115 | 114 | * {@inheritdoc} |
116 | 115 | */ |
117 | - public function execute() |
|
118 | - { |
|
116 | + public function execute() { |
|
119 | 117 | $writer = $this->io()->writer(); |
120 | 118 | |
121 | 119 | $this->table = $this->getArgumentValue('table'); |
@@ -256,6 +254,4 @@ discard block |
||
256 | 254 | ); |
257 | 255 | $export = join(PHP_EOL, array_filter(['['] + $array)); |
258 | 256 | |
259 | - return $export; |
|
260 | - } |
|
261 | -} |
|
257 | + return $export |
|
262 | 258 | \ No newline at end of file |
@@ -57,8 +57,7 @@ discard block |
||
57 | 57 | * @template T |
58 | 58 | * @extends AbstractSeedCommand<T> |
59 | 59 | */ |
60 | -class SeedStatusCommand extends AbstractSeedCommand |
|
61 | -{ |
|
60 | +class SeedStatusCommand extends AbstractSeedCommand { |
|
62 | 61 | /** |
63 | 62 | * Create new instance |
64 | 63 | * {@inheritdoc} |
@@ -76,8 +75,7 @@ discard block |
||
76 | 75 | /** |
77 | 76 | * {@inheritdoc} |
78 | 77 | */ |
79 | - public function execute() |
|
80 | - { |
|
78 | + public function execute() { |
|
81 | 79 | $writer = $this->io()->writer(); |
82 | 80 | $writer->boldYellow('SEED STATUS', true)->eol(); |
83 | 81 | $writer->bold('Seed path: '); |
@@ -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 | $className = $this->getSeedClassName($this->name); |
@@ -156,22 +154,3 @@ discard block |
||
156 | 154 | private function getTemplateClass(): string |
157 | 155 | { |
158 | 156 | return <<<EOF |
159 | - <?php |
|
160 | - declare(strict_types=1); |
|
161 | - |
|
162 | - namespace Platine\Framework\Migration\Seed; |
|
163 | - |
|
164 | - use Platine\Framework\Migration\Seed\AbstractSeed; |
|
165 | - |
|
166 | - class %classname% extends AbstractSeed |
|
167 | - { |
|
168 | - |
|
169 | - public function run(): void |
|
170 | - { |
|
171 | - //Action when run the seed |
|
172 | - |
|
173 | - } |
|
174 | - } |
|
175 | - EOF; |
|
176 | - } |
|
177 | -} |
@@ -57,8 +57,7 @@ discard block |
||
57 | 57 | * @template T |
58 | 58 | * @extends AbstractSeedCommand<T> |
59 | 59 | */ |
60 | -class SeedExecuteCommand extends AbstractSeedCommand |
|
61 | -{ |
|
60 | +class SeedExecuteCommand extends AbstractSeedCommand { |
|
62 | 61 | /** |
63 | 62 | * Create new instance |
64 | 63 | * {@inheritdoc} |
@@ -76,8 +75,7 @@ discard block |
||
76 | 75 | /** |
77 | 76 | * {@inheritdoc} |
78 | 77 | */ |
79 | - public function execute() |
|
80 | - { |
|
78 | + public function execute() { |
|
81 | 79 | $io = $this->io(); |
82 | 80 | $writer = $io->writer(); |
83 | 81 | $writer->boldYellow('SEED EXECUTION', true)->eol(); |