Passed
Push — develop ( 5d1d2f...3f87f8 )
by nguereza
02:43
created
src/Migration/Command/MigrationExecuteCommand.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     ) {
73 73
         parent::__construct($app, $repository, $config, $filesystem);
74 74
         $this->setName('migration:exec')
75
-             ->setDescription('Execute the migration up/down for one version');
75
+                ->setDescription('Execute the migration up/down for one version');
76 76
 
77 77
         $this->addArgument('type', 'type of migration [up|down]', 'up', true, true, false, function ($val) {
78 78
             if (!in_array($val, ['up', 'down'])) {
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                 ));
83 83
             }
84 84
 
85
-             return $val;
85
+                return $val;
86 86
         });
87 87
 
88 88
         $this->addOption('-i|--id', 'the migration version', null, false, true);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         $this->setName('migration:exec')
75 75
              ->setDescription('Execute the migration up/down for one version');
76 76
 
77
-        $this->addArgument('type', 'type of migration [up|down]', 'up', true, true, false, function ($val) {
77
+        $this->addArgument('type', 'type of migration [up|down]', 'up', true, true, false, function($val) {
78 78
             if (!in_array($val, ['up', 'down'])) {
79 79
                 throw new RuntimeException(sprintf(
80 80
                     'Invalid argument type [%s], must be one of [up, down]',
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 MigrationExecuteCommand extends AbstractCommand
63
-{
62
+class MigrationExecuteCommand extends AbstractCommand {
64 63
 
65 64
     /**
66 65
      * Create new instance
@@ -93,8 +92,7 @@  discard block
 block discarded – undo
93 92
     /**
94 93
      * {@inheritodc}
95 94
      */
96
-    public function execute()
97
-    {
95
+    public function execute() {
98 96
         $type = $this->getArgumentValue('type');
99 97
 
100 98
         $io = $this->io();
Please login to merge, or discard this patch.
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/Auth/Middleware/AuthorizationMiddleware.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
  * @package Platine\Framework\Auth\Middleware
63 63
  * @template T
64 64
  */
65
-class AuthorizationMiddleware implements MiddlewareInterface
66
-{
65
+class AuthorizationMiddleware implements MiddlewareInterface {
67 66
 
68 67
     /**
69 68
      * The Authorization instance
Please login to merge, or discard this patch.
src/Auth/Middleware/AuthenticationMiddleware.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
  * @package Platine\Framework\Auth\Middleware
63 63
  * @template T
64 64
  */
65
-class AuthenticationMiddleware implements MiddlewareInterface
66
-{
65
+class AuthenticationMiddleware implements MiddlewareInterface {
67 66
 
68 67
     /**
69 68
      * The Authentication instance
Please login to merge, or discard this patch.
src/Auth/Exception/InvalidCredentialsException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class InvalidCredentialsException
38 38
  * @package Platine\Framework\Auth\Exception
39 39
  */
40
-class InvalidCredentialsException extends AuthenticationException
41
-{
40
+class InvalidCredentialsException extends AuthenticationException {
42 41
 }
Please login to merge, or discard this patch.
src/Auth/Exception/AccountNotFoundException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class AccountNotFoundException
38 38
  * @package Platine\Framework\Auth\Exception
39 39
  */
40
-class AccountNotFoundException extends AuthenticationException
41
-{
40
+class AccountNotFoundException extends AuthenticationException {
42 41
 }
Please login to merge, or discard this patch.
src/Auth/Exception/MissingCredentialsException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,6 +37,5 @@
 block discarded – undo
37 37
  * @class MissingCredentialsException
38 38
  * @package Platine\Framework\Auth\Exception
39 39
  */
40
-class MissingCredentialsException extends AuthenticationException
41
-{
40
+class MissingCredentialsException extends AuthenticationException {
42 41
 }
Please login to merge, or discard this patch.
src/Auth/Exception/AuthenticationException.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,6 +39,5 @@
 block discarded – undo
39 39
  * @class AuthenticationException
40 40
  * @package Platine\Framework\Auth\Exception
41 41
  */
42
-class AuthenticationException extends Exception
43
-{
42
+class AuthenticationException extends Exception {
44 43
 }
Please login to merge, or discard this patch.