Test Failed
Push — develop ( 550272...11b673 )
by nguereza
04:41
created
src/Migration/Command/MigrationCreateCommand.php 5 patches
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.
Switch Indentation   -25 removed lines patch added patch discarded remove patch
@@ -161,28 +161,3 @@
 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.
Spacing   -25 removed lines patch added patch discarded remove patch
@@ -161,28 +161,3 @@
 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.
Upper-Lower-Casing   -25 removed lines patch added patch discarded remove patch
@@ -161,28 +161,3 @@
 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.
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/Seed/Command/SeedCreateDbCommand.php 5 patches
Indentation   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $this->queryBuilder = $queryBuilder;
107 107
 
108 108
         $this->setName('seed:createdb')
109
-             ->setDescription('Create a new seed using existing data');
109
+                ->setDescription('Create a new seed using existing data');
110 110
 
111 111
         $this->addArgument('table', 'name of the table', null, true, false);
112 112
         $this->addArgument('name', 'name of seed', null, false, true);
@@ -257,6 +257,4 @@  discard block
 block discarded – undo
257 257
         );
258 258
         $export = join(PHP_EOL, array_filter(['['] + $array));
259 259
         
260
-        return $export;
261
-    }
262
-}
260
+        return $export
263 261
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -257,6 +257,4 @@
 block discarded – undo
257 257
         );
258 258
         $export = join(PHP_EOL, array_filter(['['] + $array));
259 259
         
260
-        return $export;
261
-    }
262
-}
260
+        return $export
263 261
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -257,6 +257,4 @@
 block discarded – undo
257 257
         );
258 258
         $export = join(PHP_EOL, array_filter(['['] + $array));
259 259
         
260
-        return $export;
261
-    }
262
-}
260
+        return $export
263 261
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -257,6 +257,4 @@
 block discarded – undo
257 257
         );
258 258
         $export = join(PHP_EOL, array_filter(['['] + $array));
259 259
         
260
-        return $export;
261
-    }
262
-}
260
+        return $export
263 261
\ No newline at end of file
Please login to merge, or discard this 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.
src/Service/Provider/BaseServiceProvider.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $this->app->share(Application::class, $this->app);
78 78
         $this->app->share('app', $this->app);
79
-        $this->app->share(ConsoleApp::class, function () {
79
+        $this->app->share(ConsoleApp::class, function() {
80 80
             return new ConsoleApp('PLATINE CONSOLE', '1.0.0');
81 81
         });
82 82
         $this->app->share(ContainerInterface::class, $this->app);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $this->app->share(Router::class);
85 85
         $this->app->bind(RouteCollectionInterface::class, RouteCollection::class);
86 86
         $this->app->bind(MiddlewareResolverInterface::class, MiddlewareResolver::class);
87
-        $this->app->bind(EmitterInterface::class, function (ContainerInterface $app) {
87
+        $this->app->bind(EmitterInterface::class, function(ContainerInterface $app) {
88 88
             return new ResponseEmitter(
89 89
                 $app->get(Config::class)->get('app.response_chunck_size', null)
90 90
             );
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
66 66
  * @class BaseServiceProvider
67 67
  * @package Platine\Framework\Service\Provider
68 68
  */
69
-class BaseServiceProvider extends ServiceProvider
70
-{
69
+class BaseServiceProvider extends ServiceProvider {
71 70
     /**
72 71
      * {@inheritdoc}
73 72
      */
Please login to merge, or discard this patch.
src/Kernel/HttpKernel.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,7 @@
 block discarded – undo
66 66
  * @package Platine\Framework\Kernel
67 67
  * @template T
68 68
  */
69
-class HttpKernel extends BaseKernel implements RequestHandlerInterface
70
-{
69
+class HttpKernel extends BaseKernel implements RequestHandlerInterface {
71 70
     /**
72 71
      * The router instance
73 72
      * @var Router
Please login to merge, or discard this patch.
src/Kernel/BaseKernel.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
  * @class BaseKernel
54 54
  * @package Platine\Framework\Kernel
55 55
  */
56
-class BaseKernel
57
-{
56
+class BaseKernel {
58 57
     /**
59 58
      * Application instance
60 59
      * @var Application
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
      * Create new instance
66 65
      * @param Application $app
67 66
      */
68
-    public function __construct(Application $app)
69
-    {
67
+    public function __construct(Application $app) {
70 68
         $this->app = $app;
71 69
     }
72 70
 
Please login to merge, or discard this patch.
src/Kernel/ConsoleKernel.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
  * @package Platine\Framework\Kernel
59 59
  * @template T
60 60
  */
61
-class ConsoleKernel extends BaseKernel
62
-{
61
+class ConsoleKernel extends BaseKernel {
63 62
     protected ConsoleApp $console;
64 63
 
65 64
     /**
@@ -79,8 +78,7 @@  discard block
 block discarded – undo
79 78
      * @param Application $app
80 79
      * @param ConsoleApp $console
81 80
      */
82
-    public function __construct(Application $app, ConsoleApp $console)
83
-    {
81
+    public function __construct(Application $app, ConsoleApp $console) {
84 82
         parent::__construct($app);
85 83
         $this->console = $console;
86 84
     }
Please login to merge, or discard this patch.
src/Console/Command/VendorPublishCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@  discard block
 block discarded – undo
61 61
  * @package Platine\Framework\Console\Command
62 62
  * @template T
63 63
  */
64
-class VendorPublishCommand extends Command
65
-{
64
+class VendorPublishCommand extends Command {
66 65
     /**
67 66
      * Application instance
68 67
      * @var Application
@@ -130,8 +129,7 @@  discard block
 block discarded – undo
130 129
     /**
131 130
      * {@inheritodc}
132 131
      */
133
-    public function execute()
134
-    {
132
+    public function execute() {
135 133
         $writer = $this->io()->writer();
136 134
         $name = $this->getArgumentValue('name');
137 135
         $writer->boldGreen(sprintf('PUBLISH OF PACKAGE [%s]', $name), true)->eol();
Please login to merge, or discard this patch.
src/Console/Command/ConfigCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
56 56
  * @package Platine\Framework\Console\Command
57 57
  * @template T
58 58
  */
59
-class ConfigCommand extends Command
60
-{
59
+class ConfigCommand extends Command {
61 60
     /**
62 61
      * The configuration instance
63 62
      * @var Config<T>
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
      * Create new instance
69 68
      * @param Config<T> $config
70 69
      */
71
-    public function __construct(Config $config)
72
-    {
70
+    public function __construct(Config $config) {
73 71
         parent::__construct('config', 'Command to manage configuration');
74 72
 
75 73
         $this->addOption('-l|--list', 'List the configuration', '', false);
@@ -81,8 +79,7 @@  discard block
 block discarded – undo
81 79
     /**
82 80
      * {@inheritodc}
83 81
      */
84
-    public function execute()
85
-    {
82
+    public function execute() {
86 83
         if ($this->getOptionValue('list')) {
87 84
             $this->showConfigList();
88 85
         }
Please login to merge, or discard this patch.
src/Console/MakeCommand.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 MakeCommand
58 58
  * @package Platine\Framework\Console
59 59
  */
60
-abstract class MakeCommand extends Command
61
-{
60
+abstract class MakeCommand extends Command {
62 61
     /**
63 62
      * The Application instance
64 63
      * @var Application
@@ -110,8 +109,7 @@  discard block
 block discarded – undo
110 109
     /**
111 110
      * {@inheritodc}
112 111
      */
113
-    public function execute()
114
-    {
112
+    public function execute() {
115 113
         $writer = $this->io()->writer();
116 114
         $name = $this->getArgumentValue('name');
117 115
         $cleanName = str_replace('/', '\\', $name);
Please login to merge, or discard this patch.