Test Failed
Push — develop ( 815500...0204ba )
by nguereza
02:34
created
src/Service/Provider/MigrationServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
  * class MigrationServiceProvider
59 59
  * @package Platine\Framework\Service\Provider
60 60
  */
61
-class MigrationServiceProvider extends ServiceProvider
62
-{
61
+class MigrationServiceProvider extends ServiceProvider {
63 62
 
64 63
     /**
65 64
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Demo/Template/LangTag.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@  discard block
 block discarded – undo
15 15
  *
16 16
  * @author tony
17 17
  */
18
-class LangTag extends AbstractTag
19
-{
18
+class LangTag extends AbstractTag {
20 19
 
21 20
     /**
22 21
      * Value to debug
@@ -27,8 +26,7 @@  discard block
 block discarded – undo
27 26
     /**
28 27
     * {@inheritdoc}
29 28
     */
30
-    public function __construct(string $markup, &$tokens, Parser $parser)
31
-    {
29
+    public function __construct(string $markup, &$tokens, Parser $parser) {
32 30
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
33 31
         if ($lexer->match($markup)) {
34 32
             $this->value = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.
src/Demo/Provider/UserActionServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@
 block discarded – undo
60 60
  * class ActionServiceProvider
61 61
  * @package Platine\Framework
62 62
  */
63
-class UserActionServiceProvider extends ServiceProvider
64
-{
63
+class UserActionServiceProvider extends ServiceProvider {
65 64
 
66 65
     /**
67 66
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Demo/Repository/UserRepository.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,15 +11,13 @@
 block discarded – undo
11 11
  *
12 12
  * @author tony
13 13
  */
14
-class UserRepository extends Repository
15
-{
14
+class UserRepository extends Repository {
16 15
 
17 16
     /**
18 17
      * Create new instance
19 18
      * @param EntityManager $manager
20 19
      */
21
-    public function __construct(EntityManager $manager)
22
-    {
20
+    public function __construct(EntityManager $manager) {
23 21
         parent::__construct($manager, User::class);
24 22
     }
25 23
 }
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
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
  * class AbstractCommand
68 68
  * @package Platine\Framework\Migration\Command
69 69
  */
70
-abstract class AbstractCommand extends Command
71
-{
70
+abstract class AbstractCommand extends Command {
72 71
 
73 72
     /**
74 73
      * The migration repository
Please login to merge, or discard this patch.
src/Migration/Command/MigrationCreateCommand.php 1 patch
Braces   +2 added lines, -27 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
60 60
  * class MigrationCreateCommand
61 61
  * @package Platine\Framework\Migration\Command
62 62
  */
63
-class MigrationCreateCommand extends AbstractCommand
64
-{
63
+class MigrationCreateCommand extends AbstractCommand {
65 64
 
66 65
     /**
67 66
      * The migration name
@@ -88,8 +87,7 @@  discard block
 block discarded – undo
88 87
     /**
89 88
      * {@inheritodc}
90 89
      */
91
-    public function execute()
92
-    {
90
+    public function execute() {
93 91
         $writer = $this->io()->writer();
94 92
 
95 93
         $version = date('YmdHis');
@@ -159,26 +157,3 @@  discard block
 block discarded – undo
159 157
     private function getTemplateClass(): string
160 158
     {
161 159
         return <<<EOF
162
-        <?php
163
-        namespace Platine\Framework\Migration;
164
-
165
-        use Platine\Framework\Migration\AbstractMigration;
166
-
167
-        class %classname% extends AbstractMigration
168
-        {
169
-
170
-            public function up(): void
171
-            {
172
-              //Action when migrate up
173
-
174
-            }
175
-
176
-            public function down(): void
177
-            {
178
-              //Action when migrate down
179
-
180
-            }
181
-        }
182
-        EOF;
183
-    }
184
-}
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
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
57 57
  * class MigrationMigrateCommand
58 58
  * @package Platine\Framework\Migration\Command
59 59
  */
60
-class MigrationMigrateCommand extends AbstractCommand
61
-{
60
+class MigrationMigrateCommand extends AbstractCommand {
62 61
 
63 62
     /**
64 63
      * Create new instance
@@ -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
         $io = $this->io();
85 83
         $writer = $io->writer();
86 84
         $writer->boldYellow('MIGRATION UPGRADE TO LATEST', true)->eol();
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
@@ -58,8 +58,7 @@  discard block
 block discarded – undo
58 58
  * class MigrationStatusCommand
59 59
  * @package Platine\Framework\Migration\Command
60 60
  */
61
-class MigrationStatusCommand extends AbstractCommand
62
-{
61
+class MigrationStatusCommand extends AbstractCommand {
63 62
 
64 63
     /**
65 64
      * Create new instance
@@ -80,8 +79,7 @@  discard block
 block discarded – undo
80 79
     /**
81 80
      * {@inheritodc}
82 81
      */
83
-    public function execute()
84
-    {
82
+    public function execute() {
85 83
         $writer = $this->io()->writer();
86 84
         $writer->boldYellow('MIGRATION STATUS', true)->eol();
87 85
         $writer->bold('Migration path: ');
Please login to merge, or discard this patch.
src/Migration/Command/MigrationExecuteCommand.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
  * class MigrationExecuteCommand
59 59
  * @package Platine\Framework\Migration\Command
60 60
  */
61
-class MigrationExecuteCommand extends AbstractCommand
62
-{
61
+class MigrationExecuteCommand extends AbstractCommand {
63 62
 
64 63
     /**
65 64
      * Create new instance
@@ -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
         $version = $this->getArgumentValue('migrationVersion');
98 96
         $type = $this->getArgumentValue('type');
99 97
 
Please login to merge, or discard this patch.