@@ -195,7 +195,7 @@ |
||
| 195 | 195 | protected function getSeedClassName(string $description): string |
| 196 | 196 | { |
| 197 | 197 | $desc = Str::camel($description, false); |
| 198 | - if(!Str::endsWith('Seed', $desc)){ |
|
| 198 | + if (!Str::endsWith('Seed', $desc)) { |
|
| 199 | 199 | $desc .= 'Seed'; |
| 200 | 200 | } |
| 201 | 201 | return $desc; |
@@ -157,22 +157,3 @@ |
||
| 157 | 157 | private function getTemplateClass(): string |
| 158 | 158 | { |
| 159 | 159 | return <<<EOF |
| 160 | - <?php |
|
| 161 | - declare(strict_types=1); |
|
| 162 | - |
|
| 163 | - namespace Platine\Framework\Migration\Seed; |
|
| 164 | - |
|
| 165 | - use Platine\Framework\Migration\Seed\AbstractSeed; |
|
| 166 | - |
|
| 167 | - class %classname% extends AbstractSeed |
|
| 168 | - { |
|
| 169 | - |
|
| 170 | - public function run(): void |
|
| 171 | - { |
|
| 172 | - //Action when run the seed |
|
| 173 | - |
|
| 174 | - } |
|
| 175 | - } |
|
| 176 | - EOF; |
|
| 177 | - } |
|
| 178 | -} |
|
@@ -161,28 +161,3 @@ |
||
| 161 | 161 | private function getTemplateClass(): string |
| 162 | 162 | { |
| 163 | 163 | return <<<EOF |
| 164 | - <?php |
|
| 165 | - declare(strict_types=1); |
|
| 166 | - |
|
| 167 | - namespace Platine\Framework\Migration; |
|
| 168 | - |
|
| 169 | - use Platine\Framework\Migration\AbstractMigration; |
|
| 170 | - |
|
| 171 | - class %classname% extends AbstractMigration |
|
| 172 | - { |
|
| 173 | - |
|
| 174 | - public function up(): void |
|
| 175 | - { |
|
| 176 | - //Action when migrate up |
|
| 177 | - |
|
| 178 | - } |
|
| 179 | - |
|
| 180 | - public function down(): void |
|
| 181 | - { |
|
| 182 | - //Action when migrate down |
|
| 183 | - |
|
| 184 | - } |
|
| 185 | - } |
|
| 186 | - EOF; |
|
| 187 | - } |
|
| 188 | -} |
|