Passed
Push — develop ( c77ba7...d3c53a )
by nguereza
04:05
created
src/Migration/Command/MigrationExecuteCommand.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     ) {
74 74
         parent::__construct($app, $repository, $config, $filesystem);
75 75
         $this->setName('migration:exec')
76
-             ->setDescription('Execute the migration up/down for one version');
76
+                ->setDescription('Execute the migration up/down for one version');
77 77
 
78 78
         $this->addArgument('type', 'type of migration [up|down]', 'up', true, false, function ($val) {
79 79
             if (!in_array($val, ['up', 'down'])) {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 ));
84 84
             }
85 85
 
86
-             return $val;
86
+                return $val;
87 87
         });
88 88
 
89 89
         $this->addOption('-i|--id', 'the migration version', null, false);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
         $this->setName('migration:exec')
76 76
              ->setDescription('Execute the migration up/down for one version');
77 77
 
78
-        $this->addArgument('type', 'type of migration [up|down]', 'up', true, false, function ($val) {
78
+        $this->addArgument('type', 'type of migration [up|down]', 'up', true, false, function($val) {
79 79
             if (!in_array($val, ['up', 'down'])) {
80 80
                 throw new RuntimeException(sprintf(
81 81
                     'Invalid argument type [%s], must be one of [up, down]',
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 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
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Migration/Seed/Command/SeedStatusCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         parent::__construct($app, $config, $filesystem);
72 72
 
73 73
         $this->setName('seed:status')
74
-             ->setDescription('Show your database seeds status');
74
+                ->setDescription('Show your database seeds status');
75 75
     }
76 76
 
77 77
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
  * @template T
58 58
  * @extends AbstractSeedCommand<T>
59 59
  */
60
-class SeedStatusCommand extends AbstractSeedCommand
61
-{
60
+class SeedStatusCommand extends AbstractSeedCommand {
62 61
     /**
63 62
      * Create new instance
64 63
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Migration/Seed/Command/SeedCreateDbCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         $this->queryBuilder = $queryBuilder;
106 106
 
107 107
         $this->setName('seed:createdb')
108
-             ->setDescription('Create a new seed using existing data');
108
+                ->setDescription('Create a new seed using existing data');
109 109
 
110 110
         $this->addArgument('table', 'name of the table', null, true);
111 111
         $this->addArgument('name', 'name of seed', null, false);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@
 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
Please login to merge, or discard this patch.
src/Migration/Seed/Command/SeedCreateCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
         parent::__construct($app, $config, $filesystem);
82 82
 
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);
87 87
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
  * @template T
62 62
  * @extends AbstractSeedCommand<T>
63 63
  */
64
-class SeedCreateCommand extends AbstractSeedCommand
65
-{
64
+class SeedCreateCommand extends AbstractSeedCommand {
66 65
     /**
67 66
      * The seed name
68 67
      * @var string
Please login to merge, or discard this patch.
src/Migration/Seed/Command/SeedExecuteCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         parent::__construct($app, $config, $filesystem);
72 72
 
73 73
         $this->setName('seed:exec')
74
-             ->setDescription('Command to execute seed');
74
+                ->setDescription('Command to execute seed');
75 75
 
76 76
         $this->addOption('-i|--id', 'the seed version', null, false);
77 77
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
  * @template T
58 58
  * @extends AbstractSeedCommand<T>
59 59
  */
60
-class SeedExecuteCommand extends AbstractSeedCommand
61
-{
60
+class SeedExecuteCommand extends AbstractSeedCommand {
62 61
     /**
63 62
      * Create new instance
64 63
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Task/Command/SchedulerRunCommand.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
         parent::__construct($scheduler, $application, $config);
74 74
 
75 75
         $this->setName('scheduler:run')
76
-             ->setDescription('Execute the scheduled tasks');
76
+                ->setDescription('Execute the scheduled tasks');
77 77
 
78 78
         $this->addArgument('name', 'the name of task to execute instead of all', null, false);
79 79
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@
 block discarded – undo
57 57
  * @template T
58 58
  * @extends AbstractCommand<T>
59 59
  */
60
-class SchedulerRunCommand extends AbstractCommand
61
-{
60
+class SchedulerRunCommand extends AbstractCommand {
62 61
     /**
63 62
      * Create new instance
64 63
      * @param SchedulerInterface $scheduler
Please login to merge, or discard this patch.
src/Audit/Auditor.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
  * @class Auditor
60 60
  * @package Platine\Framework\Audit
61 61
  */
62
-class Auditor
63
-{
62
+class Auditor {
64 63
     /**
65 64
      * The audit details
66 65
      * @var string
Please login to merge, or discard this patch.
src/Audit/SessionUser.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,14 +53,12 @@
 block discarded – undo
53 53
  * @class SessionUser
54 54
  * @package Platine\Framework\Audit
55 55
  */
56
-class SessionUser implements AuditUserInterface
57
-{
56
+class SessionUser implements AuditUserInterface {
58 57
     /**
59 58
      * Create new instance
60 59
      * @param AuthenticationInterface $authentication
61 60
      */
62
-    public function __construct(protected AuthenticationInterface $authentication)
63
-    {
61
+    public function __construct(protected AuthenticationInterface $authentication) {
64 62
     }
65 63
 
66 64
 
Please login to merge, or discard this patch.
src/Audit/ApiUser.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,14 +53,12 @@
 block discarded – undo
53 53
  * @class ApiUser
54 54
  * @package Platine\Framework\Audit
55 55
  */
56
-class ApiUser implements AuditUserInterface
57
-{
56
+class ApiUser implements AuditUserInterface {
58 57
     /**
59 58
      * Create new instance
60 59
      * @param ApiAuthenticationInterface $authentication
61 60
      */
62
-    public function __construct(protected ApiAuthenticationInterface $authentication)
63
-    {
61
+    public function __construct(protected ApiAuthenticationInterface $authentication) {
64 62
     }
65 63
 
66 64
 
Please login to merge, or discard this patch.