Test Failed
Push — develop ( ebbd0c...8a31ce )
by nguereza
03:10
created
src/Migration/Command/AbstractCommand.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -214,9 +214,9 @@  discard block
 block discarded – undo
214 214
     protected function getExecuted(string $orderDir = 'ASC'): array
215 215
     {
216 216
         $migrations = $this->repository
217
-                           ->query()
218
-                           ->orderBy('version', $orderDir)
219
-                           ->all();
217
+                            ->query()
218
+                            ->orderBy('version', $orderDir)
219
+                            ->all();
220 220
         $result = [];
221 221
 
222 222
         foreach ($migrations as $entity) {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
     protected function getMigrationClassName(string $description, string $version): string
236 236
     {
237 237
         return Str::camel($description, false)
238
-               . Str::replaceFirst('_', '', $version);
238
+                . Str::replaceFirst('_', '', $version);
239 239
     }
240 240
 
241 241
     /**
Please login to merge, or discard this 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
     /**
72 71
      * The migration repository
Please login to merge, or discard this patch.
src/Migration/Command/MigrationStatusCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     ) {
73 73
         parent::__construct($app, $repository, $config, $filesystem);
74 74
         $this->setName('migration:status')
75
-             ->setDescription('Show current status of your migrations');
75
+                ->setDescription('Show current status of your migrations');
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this 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
     /**
66 65
      * 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/Http/RouteHelper.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@  discard block
 block discarded – undo
55 55
  * class RouteHelper
56 56
  * @package Platine\Framework\Http
57 57
  */
58
-class RouteHelper
59
-{
58
+class RouteHelper {
60 59
 
61 60
     /**
62 61
      * The router instance
@@ -68,8 +67,7 @@  discard block
 block discarded – undo
68 67
      * Create new instance
69 68
      * @param Router $router
70 69
      */
71
-    public function __construct(Router $router)
72
-    {
70
+    public function __construct(Router $router) {
73 71
         $this->router = $router;
74 72
     }
75 73
 
Please login to merge, or discard this patch.
src/Console/Command/ServerCommand.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,15 +54,13 @@  discard block
 block discarded – undo
54 54
  * class ServerCommand
55 55
  * @package Platine\Framework\Console\Command
56 56
  */
57
-class ServerCommand extends Command
58
-{
57
+class ServerCommand extends Command {
59 58
 
60 59
     /**
61 60
      * Create new instance
62 61
      * {@inheritodc}
63 62
      */
64
-    public function __construct()
65
-    {
63
+    public function __construct() {
66 64
         parent::__construct('server', 'Command to manage PHP development server');
67 65
         $this->addOption('-a|--address', 'Server address', '0.0.0.0', true);
68 66
         $this->addOption('-p|--port', 'Server listen port', '8080', true);
@@ -72,8 +70,7 @@  discard block
 block discarded – undo
72 70
     /**
73 71
      * {@inheritodc}
74 72
      */
75
-    public function execute()
76
-    {
73
+    public function execute() {
77 74
         $host = $this->getOptionValue('address');
78 75
         $port = $this->getOptionValue('port');
79 76
         $path = $this->getOptionValue('root');
Please login to merge, or discard this patch.
src/Service/Provider/CommandServiceProvider.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
  * class CommandServiceProvider
55 55
  * @package Platine\Framework\Service\Provider
56 56
  */
57
-class CommandServiceProvider extends ServiceProvider
58
-{
57
+class CommandServiceProvider extends ServiceProvider {
59 58
 
60 59
     /**
61 60
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Demo/Template/RouteUrlTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     protected string $name;
27 27
 
28 28
     /**
29
-    * {@inheritdoc}
30
-    */
29
+     * {@inheritdoc}
30
+     */
31 31
     public function __construct(string $markup, &$tokens, Parser $parser)
32 32
     {
33 33
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,7 @@  discard block
 block discarded – undo
16 16
  *
17 17
  * @author tony
18 18
  */
19
-class RouteUrlTag extends AbstractTag
20
-{
19
+class RouteUrlTag extends AbstractTag {
21 20
 
22 21
     /**
23 22
      * The name of the route
@@ -28,8 +27,7 @@  discard block
 block discarded – undo
28 27
     /**
29 28
     * {@inheritdoc}
30 29
     */
31
-    public function __construct(string $markup, &$tokens, Parser $parser)
32
-    {
30
+    public function __construct(string $markup, &$tokens, Parser $parser) {
33 31
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
34 32
         if ($lexer->match($markup)) {
35 33
             $this->name = $lexer->getStringMatch(0);
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
  * class ConfigCommand
57 57
  * @package Platine\Framework\Console\Command
58 58
  */
59
-class ConfigCommand extends Command
60
-{
59
+class ConfigCommand extends Command {
61 60
 
62 61
     protected Application $application;
63 62
 
@@ -65,8 +64,7 @@  discard block
 block discarded – undo
65 64
      * Create new instance
66 65
      * @param Application $application
67 66
      */
68
-    public function __construct(Application $application)
69
-    {
67
+    public function __construct(Application $application) {
70 68
         parent::__construct('config', 'Command to manage configuration');
71 69
 
72 70
         $this->addOption('-l|--list', 'List the configuration', '', false);
@@ -75,8 +73,7 @@  discard block
 block discarded – undo
75 73
         $this->application = $application;
76 74
     }
77 75
 
78
-    public function execute()
79
-    {
76
+    public function execute() {
80 77
         if ($this->getOptionValue('list')) {
81 78
             $this->showConfigList();
82 79
         }
Please login to merge, or discard this patch.
src/Demo/Action/HomeAction.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@
 block discarded – undo
13 13
  *
14 14
  * @author tony
15 15
  */
16
-class HomeAction implements RequestHandlerInterface
17
-{
16
+class HomeAction implements RequestHandlerInterface {
18 17
     protected Template $template;
19 18
 
20 19
     public function __construct(
Please login to merge, or discard this patch.
src/Demo/Template/SessionTag.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     protected string $name;
27 27
 
28 28
     /**
29
-    * {@inheritdoc}
30
-    */
29
+     * {@inheritdoc}
30
+     */
31 31
     public function __construct(string $markup, &$tokens, Parser $parser)
32 32
     {
33 33
         $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/');
Please login to merge, or discard this 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 SessionTag extends AbstractTag
19
-{
18
+class SessionTag extends AbstractTag {
20 19
 
21 20
     /**
22 21
      * The key of the session
@@ -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->name = $lexer->getStringMatch(0);
Please login to merge, or discard this patch.