Passed
Push — master ( 11848a...152feb )
by nguereza
13:16 queued 12s
created
config/mail.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,5 +11,5 @@
 block discarded – undo
11 11
             'response_timeout' => env('PL_MAIL_SMTP_RESPONSE_TIMEOUT', 10, 'int'),
12 12
             'username' => env('PL_MAIL_SMTP_USERNAME', ''),
13 13
             'password' => env('PL_MAIL_SMTP_PASSWORD', ''),
14
-         ],
14
+            ],
15 15
     ];
Please login to merge, or discard this patch.
config/middlewares.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
         CsrfMiddleware::class,
15 15
         AuthenticationMiddleware::class,
16 16
         AuthorizationMiddleware::class,
17
-       // SecurityPolicyMiddleware::class,
17
+        // SecurityPolicyMiddleware::class,
18 18
         RouteDispatcherMiddleware::class,
19 19
     ];
Please login to merge, or discard this patch.
config/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
     use Platine\App\Http\Action\HomeAction;
5 5
     use Platine\Route\Router;
6 6
 
7
-    return [static function (Router $router): void {
7
+    return [static function(Router $router): void {
8 8
         $router->get('/', HomeAction::class, 'home');
9 9
     }];
Please login to merge, or discard this patch.
app/Http/Action/User/AuthAction.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
 class AuthAction extends BaseAction
23 23
 {
24 24
     /**
25
-    * Create new instance
26
-    * @param AuthenticationInterface $authentication
27
-    * @param ActionHelper<T> $actionHelper
28
-    */
25
+     * Create new instance
26
+     * @param AuthenticationInterface $authentication
27
+     * @param ActionHelper<T> $actionHelper
28
+     */
29 29
     public function __construct(
30 30
         protected AuthenticationInterface $authentication,
31 31
         ActionHelper $actionHelper,
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     /**
37
-    * {@inheritdoc}
38
-    */
37
+     * {@inheritdoc}
38
+     */
39 39
     public function respond(): ResponseInterface
40 40
     {
41 41
         $this->setView('user/login');
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
 * @template T
20 20
 * @extends BaseAction<T>
21 21
 */
22
-class AuthAction extends BaseAction
23
-{
22
+class AuthAction extends BaseAction {
24 23
     /**
25 24
     * Create new instance
26 25
     * @param AuthenticationInterface $authentication
Please login to merge, or discard this patch.
app/Http/Action/User/LogoutAction.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
 class LogoutAction extends BaseAction
19 19
 {
20 20
     /**
21
-    * Create new instance
22
-    * @param AuthenticationInterface $authentication
23
-    * @param ActionHelper<T> $actionHelper
24
-    */
21
+     * Create new instance
22
+     * @param AuthenticationInterface $authentication
23
+     * @param ActionHelper<T> $actionHelper
24
+     */
25 25
     public function __construct(
26 26
         protected AuthenticationInterface $authentication,
27 27
         ActionHelper $actionHelper,
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
     }
31 31
 
32 32
     /**
33
-    * {@inheritdoc}
34
-    */
33
+     * {@inheritdoc}
34
+     */
35 35
     public function respond(): ResponseInterface
36 36
     {
37 37
         $this->authentication->logout();
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,7 @@
 block discarded – undo
15 15
 * @template T
16 16
 * @extends BaseAction<T> 
17 17
 */
18
-class LogoutAction extends BaseAction
19
-{
18
+class LogoutAction extends BaseAction {
20 19
     /**
21 20
     * Create new instance
22 21
     * @param AuthenticationInterface $authentication
Please login to merge, or discard this patch.
app/Validator/RoleValidator.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,18 +19,18 @@  discard block
 block discarded – undo
19 19
 class RoleValidator extends AbstractValidator
20 20
 {
21 21
     /**
22
-    * Create new instance
23
-    * @param RoleParam<TEntity> $param
24
-    * @param Lang $lang
25
-    */
22
+     * Create new instance
23
+     * @param RoleParam<TEntity> $param
24
+     * @param Lang $lang
25
+     */
26 26
     public function __construct(protected RoleParam $param, Lang $lang)
27 27
     {
28 28
         parent::__construct($lang);
29 29
     }
30 30
 
31 31
     /**
32
-    * {@inheritdoc}
33
-    */
32
+     * {@inheritdoc}
33
+     */
34 34
     public function setValidationData(): void
35 35
     {
36 36
         $this->addData('name', $this->param->getName());
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    * {@inheritdoc}
42
-    */
41
+     * {@inheritdoc}
42
+     */
43 43
     public function setValidationRules(): void
44 44
     {
45 45
         $this->addRules('name', [
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,15 +16,13 @@
 block discarded – undo
16 16
 * @package Platine\App\Validator
17 17
 * @template TEntity as \Platine\Orm\Entity
18 18
 */
19
-class RoleValidator extends AbstractValidator
20
-{
19
+class RoleValidator extends AbstractValidator {
21 20
     /**
22 21
     * Create new instance
23 22
     * @param RoleParam<TEntity> $param
24 23
     * @param Lang $lang
25 24
     */
26
-    public function __construct(protected RoleParam $param, Lang $lang)
27
-    {
25
+    public function __construct(protected RoleParam $param, Lang $lang) {
28 26
         parent::__construct($lang);
29 27
     }
30 28
 
Please login to merge, or discard this patch.
app/Validator/AuthValidator.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@  discard block
 block discarded – undo
20 20
 class AuthValidator extends AbstractValidator
21 21
 {
22 22
     /**
23
-    * Create new instance
24
-    * @param AuthParam<TEntity> $param
25
-    * @param Lang $lang
26
-    */
23
+     * Create new instance
24
+     * @param AuthParam<TEntity> $param
25
+     * @param Lang $lang
26
+     */
27 27
     public function __construct(protected AuthParam $param, Lang $lang)
28 28
     {
29 29
         parent::__construct($lang);
30 30
     }
31 31
 
32 32
     /**
33
-    * {@inheritdoc}
34
-    */
33
+     * {@inheritdoc}
34
+     */
35 35
     public function setValidationData(): void
36 36
     {
37 37
         $this->addData('username', $this->param->getUsername());
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-    * {@inheritdoc}
43
-    */
42
+     * {@inheritdoc}
43
+     */
44 44
     public function setValidationRules(): void
45 45
     {
46 46
         $this->addRules('username', [
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,15 +17,13 @@
 block discarded – undo
17 17
 * @package Platine\App\Validator
18 18
 * @template TEntity as \Platine\Orm\Entity
19 19
 */
20
-class AuthValidator extends AbstractValidator
21
-{
20
+class AuthValidator extends AbstractValidator {
22 21
     /**
23 22
     * Create new instance
24 23
     * @param AuthParam<TEntity> $param
25 24
     * @param Lang $lang
26 25
     */
27
-    public function __construct(protected AuthParam $param, Lang $lang)
28
-    {
26
+    public function __construct(protected AuthParam $param, Lang $lang) {
29 27
         parent::__construct($lang);
30 28
     }
31 29
 
Please login to merge, or discard this patch.
app/Validator/UserValidator.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@  discard block
 block discarded – undo
24 24
 class UserValidator extends AbstractValidator
25 25
 {
26 26
     /**
27
-    * Create new instance
28
-    * @param UserParam<TEntity> $param
29
-    * @param Lang $lang
30
-    * @param bool $ignorePassword
31
-    */
27
+     * Create new instance
28
+     * @param UserParam<TEntity> $param
29
+     * @param Lang $lang
30
+     * @param bool $ignorePassword
31
+     */
32 32
     public function __construct(
33 33
         protected UserParam $param,
34 34
         Lang $lang,
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    * {@inheritdoc}
42
-    */
41
+     * {@inheritdoc}
42
+     */
43 43
     public function setValidationData(): void
44 44
     {
45 45
         $this->addData('username', $this->param->getUsername());
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-    * {@inheritdoc}
57
-    */
56
+     * {@inheritdoc}
57
+     */
58 58
     public function setValidationRules(): void
59 59
     {
60 60
         $this->addRules('username', [
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
 * @package Platine\App\Validator
22 22
 * @template TEntity as \Platine\Orm\Entity
23 23
 */
24
-class UserValidator extends AbstractValidator
25
-{
24
+class UserValidator extends AbstractValidator {
26 25
     /**
27 26
     * Create new instance
28 27
     * @param UserParam<TEntity> $param
Please login to merge, or discard this patch.
app/Validator/ProductCategoryValidator.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,18 +19,18 @@  discard block
 block discarded – undo
19 19
 class ProductCategoryValidator extends AbstractValidator
20 20
 {
21 21
     /**
22
-    * Create new instance
23
-    * @param ProductCategoryParam<TEntity> $param
24
-    * @param Lang $lang
25
-    */
22
+     * Create new instance
23
+     * @param ProductCategoryParam<TEntity> $param
24
+     * @param Lang $lang
25
+     */
26 26
     public function __construct(protected ProductCategoryParam $param, Lang $lang)
27 27
     {
28 28
         parent::__construct($lang);
29 29
     }
30 30
 
31 31
     /**
32
-    * {@inheritdoc}
33
-    */
32
+     * {@inheritdoc}
33
+     */
34 34
     public function setValidationData(): void
35 35
     {
36 36
         $this->addData('name', $this->param->getName());
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    * {@inheritdoc}
42
-    */
41
+     * {@inheritdoc}
42
+     */
43 43
     public function setValidationRules(): void
44 44
     {
45 45
         $this->addRules('name', [
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,15 +16,13 @@
 block discarded – undo
16 16
 * @package Platine\App\Validator
17 17
 * @template TEntity as \Platine\Orm\Entity
18 18
 */
19
-class ProductCategoryValidator extends AbstractValidator
20
-{
19
+class ProductCategoryValidator extends AbstractValidator {
21 20
     /**
22 21
     * Create new instance
23 22
     * @param ProductCategoryParam<TEntity> $param
24 23
     * @param Lang $lang
25 24
     */
26
-    public function __construct(protected ProductCategoryParam $param, Lang $lang)
27
-    {
25
+    public function __construct(protected ProductCategoryParam $param, Lang $lang) {
28 26
         parent::__construct($lang);
29 27
     }
30 28
 
Please login to merge, or discard this patch.