Passed
Push — develop ( a52f7d...7316b8 )
by nguereza
05:38 queued 01:59
created
src/Helper/Mermaid/Graph/Node.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 {
58 58
     /**
59 59
      * Constants
60
-    */
60
+     */
61 61
     public const SQUARE            = '[%s]';
62 62
     public const ROUND             = '(%s)';
63 63
     public const CIRCLE            = '((%s))';
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
  * @class Node
54 54
  * @package Platine\Framework\Helper\Mermaid\Graph
55 55
  */
56
-class Node implements Stringable
57
-{
56
+class Node implements Stringable {
58 57
     /**
59 58
      * Constants
60 59
     */
Please login to merge, or discard this patch.
src/Helper/Flash.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 Flash
54 54
  * @package Platine\Framework\Helper
55 55
  */
56
-class Flash
57
-{
56
+class Flash {
58 57
     /**
59 58
      * Create new instance
60 59
      * @param Session $session
61 60
      */
62
-    public function __construct(protected Session $session)
63
-    {
61
+    public function __construct(protected Session $session) {
64 62
     }
65 63
 
66 64
     /**
Please login to merge, or discard this patch.
src/Security/Csrf/Storage/CsrfSessionStorage.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
  * @class CsrfSessionStorage
55 55
  * @package Platine\Framework\Security\Csrf\Storage
56 56
  */
57
-class CsrfSessionStorage implements CsrfStorageInterface
58
-{
57
+class CsrfSessionStorage implements CsrfStorageInterface {
59 58
     /**
60 59
      * The session key used to store CSRF data
61 60
      */
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
      * Create new instance
67 66
      * @param Session $session
68 67
      */
69
-    public function __construct(protected Session $session)
70
-    {
68
+    public function __construct(protected Session $session) {
71 69
     }
72 70
 
73 71
 
Please login to merge, or discard this patch.
src/Security/Policy/AbstractPolicy.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,14 +52,12 @@
 block discarded – undo
52 52
  * @class AbstractPolicy
53 53
  * @package Platine\Framework\Security\Policy
54 54
  */
55
-abstract class AbstractPolicy
56
-{
55
+abstract class AbstractPolicy {
57 56
     /**
58 57
      * Create new instance
59 58
      * @param array<string, mixed> $configurations
60 59
      */
61
-    public function __construct(protected array $configurations = [])
62
-    {
60
+    public function __construct(protected array $configurations = []) {
63 61
     }
64 62
 
65 63
     /**
Please login to merge, or discard this patch.
src/Service/ServiceProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
      */
140 140
     public function listen(
141 141
         string $eventName,
142
-        ListenerInterface|callable|string $listener,
142
+        ListenerInterface | callable | string $listener,
143 143
         int $priority = DispatcherInterface::PRIORITY_DEFAULT
144 144
     ): self {
145 145
         $this->app->listen($eventName, $listener, $priority);
Please login to merge, or discard this 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 ServiceProvider
58 58
  * @package Platine\Framework\Service
59 59
  */
60
-class ServiceProvider
61
-{
60
+class ServiceProvider {
62 61
     /**
63 62
      * Provider command list
64 63
      * @var class-string[]
@@ -75,8 +74,7 @@  discard block
 block discarded – undo
75 74
      * Create new instance
76 75
      * @param Application $app
77 76
      */
78
-    public function __construct(protected Application $app)
79
-    {
77
+    public function __construct(protected Application $app) {
80 78
     }
81 79
 
82 80
     /**
Please login to merge, or discard this patch.
src/Migration/Command/MigrationCreateCommand.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
     ) {
82 82
         parent::__construct($app, $repository, $config, $filesystem);
83 83
         $this->setName('migration:create')
84
-             ->setDescription('Create a new migration');
84
+                ->setDescription('Create a new migration');
85 85
 
86 86
         $this->addArgument('name', 'name of migration', 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 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
Please login to merge, or discard this patch.
src/Migration/Command/MigrationMigrateCommand.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($app, $repository, $config, $filesystem);
74 74
 
75 75
         $this->setName('migration:migrate')
76
-             ->setDescription('Upgrade migration to latest');
76
+                ->setDescription('Upgrade migration to latest');
77 77
     }
78 78
 
79 79
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
  * @template T
59 59
  * @extends AbstractCommand<T>
60 60
  */
61
-class MigrationMigrateCommand extends AbstractCommand
62
-{
61
+class MigrationMigrateCommand extends AbstractCommand {
63 62
     /**
64 63
      * Create new instance
65 64
      * {@inheritdoc}
Please login to merge, or discard this patch.
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.