Passed
Push — develop ( a52f7d...7316b8 )
by nguereza
05:38 queued 01:59
created
src/Console/PasswordGenerateCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
56 56
  * @class PasswordGenerateCommand
57 57
  * @package Platine\Framework\Console
58 58
  */
59
-class PasswordGenerateCommand extends Command
60
-{
59
+class PasswordGenerateCommand extends Command {
61 60
     /**
62 61
      * The Hash instance
63 62
      * @var HashInterface
@@ -74,8 +73,7 @@  discard block
 block discarded – undo
74 73
      * Create new instance
75 74
      * @param HashInterface $hash
76 75
      */
77
-    public function __construct(HashInterface $hash)
78
-    {
76
+    public function __construct(HashInterface $hash) {
79 77
         parent::__construct('password:generate', 'Command to generate password');
80 78
         $this->hash = $hash;
81 79
 
Please login to merge, or discard this patch.
src/Console/Command/VendorPublishCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 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
      * The vendor path
68 67
      * @var string
Please login to merge, or discard this patch.
src/Console/Command/MaintenanceCommand.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
 
74 74
         $this->setName('maintenance')
75
-             ->setDescription('Command to manage application maintenance');
75
+                ->setDescription('Command to manage application maintenance');
76 76
 
77 77
         $this->addArgument('type', 'type of action [up|down|status]', 'status', true, false, function ($val) {
78 78
             if (!in_array($val, ['up', 'down', 'status'])) {
@@ -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(
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $this->setName('maintenance')
75 75
              ->setDescription('Command to manage application maintenance');
76 76
 
77
-        $this->addArgument('type', 'type of action [up|down|status]', 'status', true, false, function ($val) {
77
+        $this->addArgument('type', 'type of action [up|down|status]', 'status', true, false, function($val) {
78 78
             if (!in_array($val, ['up', 'down', 'status'])) {
79 79
                 throw new RuntimeException(sprintf(
80 80
                     'Invalid argument type [%s], must be one of [up, down, status]',
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             3600,
99 99
             false,
100 100
             false,
101
-            function ($val) {
101
+            function($val) {
102 102
                 if (strlen($val) > 0 && (!is_numeric($val) || (int) $val <= 0)) {
103 103
                     throw new RuntimeException(sprintf(
104 104
                         'Invalid retry value [%s], must be an integer greather than zero',
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             3600,
116 116
             false,
117 117
             false,
118
-            function ($val) {
118
+            function($val) {
119 119
                 if (strlen($val) > 0 && (!is_numeric($val) || (int) $val <= 0)) {
120 120
                     throw new RuntimeException(sprintf(
121 121
                         'Invalid refresh value [%s], must be an integer greather than zero',
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             503,
140 140
             false,
141 141
             false,
142
-            function ($val) {
142
+            function($val) {
143 143
                 if (strlen($val) > 0 && (!is_numeric($val) || (int) $val < 200 || (int) $val > 505)) {
144 144
                     throw new RuntimeException(sprintf(
145 145
                         'Invalid HTTP status value [%s], must be between 200 and 505',
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
  * @package Platine\Framework\Console\Command
59 59
  * @template T
60 60
  */
61
-class MaintenanceCommand extends Command
62
-{
61
+class MaintenanceCommand extends Command {
63 62
     /**
64 63
      * Create new instance
65 64
      * @param Application $application
Please login to merge, or discard this patch.
src/Console/Command/ConfigCommand.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,14 +56,12 @@
 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
      * Create new instance
63 62
      * @param Config<T> $config
64 63
      */
65
-    public function __construct(protected Config $config)
66
-    {
64
+    public function __construct(protected Config $config) {
67 65
         parent::__construct('config', 'Command to manage configuration');
68 66
 
69 67
         $this->addOption('-l|--list', 'List the configuration', '', false);
Please login to merge, or discard this patch.
src/Console/Command/RouteCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
  * @package Platine\Framework\Console\Command
62 62
  * @template T
63 63
  */
64
-class RouteCommand extends Command
65
-{
64
+class RouteCommand extends Command {
66 65
     /**
67 66
      * Create new instance
68 67
      * @param Application $application
Please login to merge, or discard this patch.
src/Console/MakeCommand.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@
 block discarded – undo
56 56
  * @class MakeCommand
57 57
  * @package Platine\Framework\Console
58 58
  */
59
-abstract class MakeCommand extends BaseCommand
60
-{
59
+abstract class MakeCommand extends BaseCommand {
61 60
     /**
62 61
      * The type of class
63 62
      * @var string
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,14 +53,12 @@
 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
      * Create new instance
60 59
      * @param Application $app
61 60
      */
62
-    public function __construct(protected Application $app)
63
-    {
61
+    public function __construct(protected Application $app) {
64 62
     }
65 63
 
66 64
     /**
Please login to merge, or discard this patch.
src/Auth/Authorization/SessionAuthorization.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,14 +54,12 @@
 block discarded – undo
54 54
  * class SessionAuthorization
55 55
  * @package Platine\Framework\Auth\Authorization
56 56
  */
57
-class SessionAuthorization implements AuthorizationInterface
58
-{
57
+class SessionAuthorization implements AuthorizationInterface {
59 58
     /**
60 59
      * Create new instance
61 60
      * @param Session $session
62 61
      */
63
-    public function __construct(protected Session $session)
64
-    {
62
+    public function __construct(protected Session $session) {
65 63
     }
66 64
 
67 65
     /**
Please login to merge, or discard this patch.
src/Auth/Event/AuthLoginEvent.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,14 +54,12 @@
 block discarded – undo
54 54
  * @class AuthLoginEvent
55 55
  * @package Platine\Framework\Auth\Event
56 56
  */
57
-class AuthLoginEvent extends Event
58
-{
57
+class AuthLoginEvent extends Event {
59 58
     /**
60 59
      * Create new instance
61 60
      * @param User $user
62 61
      */
63
-    public function __construct(protected User $user)
64
-    {
62
+    public function __construct(protected User $user) {
65 63
         parent::__construct(__CLASS__, []);
66 64
     }
67 65
 
Please login to merge, or discard this patch.