Test Failed
Push — develop ( 139a3c...550272 )
by nguereza
04:44
created
src/Migration/Command/MigrationExecuteCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @template T
60 60
  * @extends AbstractCommand<T>
61 61
  */
62
-class MigrationExecuteCommand extends AbstractCommand
63
-{
62
+class MigrationExecuteCommand extends AbstractCommand {
64 63
     /**
65 64
      * Create new instance
66 65
      * {@inheritodc}
@@ -92,8 +91,7 @@  discard block
 block discarded – undo
92 91
     /**
93 92
      * {@inheritodc}
94 93
      */
95
-    public function execute()
96
-    {
94
+    public function execute() {
97 95
         $type = $this->getArgumentValue('type');
98 96
 
99 97
         $io = $this->io();
Please login to merge, or discard this patch.
src/Migration/Command/MigrationMigrateCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
  * @template T
59 59
  * @extends AbstractCommand<T>
60 60
  */
61
-class MigrationMigrateCommand extends AbstractCommand
62
-{
61
+class MigrationMigrateCommand extends AbstractCommand {
63 62
     /**
64 63
      * Create new instance
65 64
      * {@inheritodc}
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
     /**
79 78
      * {@inheritodc}
80 79
      */
81
-    public function execute()
82
-    {
80
+    public function execute() {
83 81
         $io = $this->io();
84 82
         $writer = $io->writer();
85 83
         $writer->boldYellow('MIGRATION UPGRADE TO LATEST', true)->eol();
Please login to merge, or discard this patch.
src/Migration/Command/MigrationCreateCommand.php 1 patch
Braces   +2 added lines, -29 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * @template T
62 62
  * @extends AbstractCommand<T>
63 63
  */
64
-class MigrationCreateCommand extends AbstractCommand
65
-{
64
+class MigrationCreateCommand extends AbstractCommand {
66 65
     /**
67 66
      * The migration name
68 67
      * @var string
@@ -89,8 +88,7 @@  discard block
 block discarded – undo
89 88
     /**
90 89
      * {@inheritodc}
91 90
      */
92
-    public function execute()
93
-    {
91
+    public function execute() {
94 92
         $writer = $this->io()->writer();
95 93
 
96 94
         $version = date('Ymd_His');
@@ -160,28 +158,3 @@  discard block
 block discarded – undo
160 158
     private function getTemplateClass(): string
161 159
     {
162 160
         return <<<EOF
163
-        <?php
164
-        declare(strict_types=1);
165
-        
166
-        namespace Platine\Framework\Migration;
167
-
168
-        use Platine\Framework\Migration\AbstractMigration;
169
-
170
-        class %classname% extends AbstractMigration
171
-        {
172
-
173
-            public function up(): void
174
-            {
175
-              //Action when migrate up
176
-
177
-            }
178
-
179
-            public function down(): void
180
-            {
181
-              //Action when migrate down
182
-
183
-            }
184
-        }
185
-        EOF;
186
-    }
187
-}
Please login to merge, or discard this patch.
src/Migration/Command/MigrationStatusCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@  discard block
 block discarded – undo
59 59
  * @template T
60 60
  * @extends AbstractCommand<T>
61 61
  */
62
-class MigrationStatusCommand extends AbstractCommand
63
-{
62
+class MigrationStatusCommand extends AbstractCommand {
64 63
     /**
65 64
      * Create new instance
66 65
      * {@inheritodc}
@@ -79,8 +78,7 @@  discard block
 block discarded – undo
79 78
     /**
80 79
      * {@inheritodc}
81 80
      */
82
-    public function execute()
83
-    {
81
+    public function execute() {
84 82
         $writer = $this->io()->writer();
85 83
         $writer->boldYellow('MIGRATION STATUS', true)->eol();
86 84
         $writer->bold('Migration path: ');
Please login to merge, or discard this patch.
src/Migration/Command/MigrationInitCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * @template T
61 61
  * @extends AbstractCommand<T>
62 62
  */
63
-class MigrationInitCommand extends AbstractCommand
64
-{
63
+class MigrationInitCommand extends AbstractCommand {
65 64
     /**
66 65
      * The schema to use
67 66
      * @var Schema
@@ -89,8 +88,7 @@  discard block
 block discarded – undo
89 88
     /**
90 89
      * {@inheritodc}
91 90
      */
92
-    public function execute()
93
-    {
91
+    public function execute() {
94 92
         $io = $this->io();
95 93
         $writer = $io->writer();
96 94
         $writer->boldYellow('MIGRATION INITIALIZATION', true);
Please login to merge, or discard this patch.
src/Migration/Command/MigrationResetCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
  * @template T
59 59
  * @extends AbstractCommand<T>
60 60
  */
61
-class MigrationResetCommand extends AbstractCommand
62
-{
61
+class MigrationResetCommand extends AbstractCommand {
63 62
     /**
64 63
      * Create new instance
65 64
      * {@inheritodc}
@@ -78,8 +77,7 @@  discard block
 block discarded – undo
78 77
     /**
79 78
      * {@inheritodc}
80 79
      */
81
-    public function execute()
82
-    {
80
+    public function execute() {
83 81
         $io = $this->io();
84 82
         $writer = $io->writer();
85 83
         $writer->boldYellow('ALL MIGRATION ROLLBACK', true)->eol();
Please login to merge, or discard this patch.
src/Migration/Command/AbstractCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
  * @package Platine\Framework\Migration\Command
66 66
  * @template T
67 67
  */
68
-abstract class AbstractCommand extends Command
69
-{
68
+abstract class AbstractCommand extends Command {
70 69
     /**
71 70
      * The migration repository
72 71
      * @var MigrationRepository
Please login to merge, or discard this patch.
src/Migration/MigrationEntity.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * @class MigrationEntity
56 56
  * @package Platine\Framework\Migration
57 57
  */
58
-class MigrationEntity extends Entity
59
-{
58
+class MigrationEntity extends Entity {
60 59
     /**
61 60
      * {@inheritdoc}
62 61
      */
Please login to merge, or discard this patch.
src/Migration/Seed/Command/SeedCreateDbCommand.php 1 patch
Braces   +3 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
114 113
     /**
115 114
      * {@inheritodc}
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
 block discarded – undo
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
Please login to merge, or discard this patch.