Passed
Push — develop ( 5d1d2f...3f87f8 )
by nguereza
02:43
created
src/Migration/Seed/Command/SeedCreateCommand.php 1 patch
Indentation   +1 added lines, -20 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     ) {
82 82
         parent::__construct($app, $config, $filesystem);
83 83
         $this->setName('seed:create')
84
-             ->setDescription('Create a new seed');
84
+                ->setDescription('Create a new seed');
85 85
 
86 86
         $this->addArgument('name', 'name of seed', null, false, true);
87 87
     }
@@ -157,22 +157,3 @@  discard block
 block discarded – undo
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
-}
Please login to merge, or discard this patch.
src/Migration/Command/MigrationCreateCommand.php 1 patch
Indentation   +1 added lines, -26 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     ) {
83 83
         parent::__construct($app, $repository, $config, $filesystem);
84 84
         $this->setName('migration:create')
85
-             ->setDescription('Create a new migration');
85
+                ->setDescription('Create a new migration');
86 86
 
87 87
         $this->addArgument('name', 'name of migration', null, false, true);
88 88
     }
@@ -161,28 +161,3 @@  discard block
 block discarded – undo
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
-}
Please login to merge, or discard this patch.