Test Failed
Push — develop ( 64b6b0...ddb817 )
by nguereza
02:24
created
src/Service/Provider/LoggerServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      */
68 68
     public function register(): void
69 69
     {
70
-        $this->app->bind(LoggerInterface::class, function (ContainerInterface $app) {
70
+        $this->app->bind(LoggerInterface::class, function(ContainerInterface $app) {
71 71
             $cfg = new LoggerConfiguration(
72 72
                 $app->get(Config::class)->get('logging', [])
73 73
             );
Please login to merge, or discard this patch.
src/Demo/Action/User/LoginAction.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 $this->template,
80 80
                 'user/login',
81 81
                 [
82
-                   'param' => $formParam
82
+                    'param' => $formParam
83 83
                 ]
84 84
             );
85 85
         }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
                 $this->template,
92 92
                 'user/login',
93 93
                 [
94
-                   'param' => $formParam
94
+                    'param' => $formParam
95 95
                 ]
96 96
             );
97 97
         }
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
  *
22 22
  * @author tony
23 23
  */
24
-class LoginAction implements RequestHandlerInterface
25
-{
24
+class LoginAction implements RequestHandlerInterface {
26 25
 
27 26
     protected LoggerInterface $logger;
28 27
     protected Session $session;
Please login to merge, or discard this patch.
src/Demo/Action/User/CreateAction.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
                 $this->template,
79 79
                 'user/create',
80 80
                 [
81
-                   'param' => $formParam
81
+                    'param' => $formParam
82 82
                 ]
83 83
             );
84 84
         }
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
  *
22 22
  * @author tony
23 23
  */
24
-class CreateAction implements RequestHandlerInterface
25
-{
24
+class CreateAction implements RequestHandlerInterface {
26 25
 
27 26
     protected LoggerInterface $logger;
28 27
     protected Session $session;
Please login to merge, or discard this patch.
src/Demo/Form/Validator/AuthValidator.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@
 block discarded – undo
32 32
     public function setRules(): void
33 33
     {
34 34
         $this->validator->addRules('username', [
35
-           new NotEmpty(),
36
-           new MinLength(3)
35
+            new NotEmpty(),
36
+            new MinLength(3)
37 37
         ]);
38 38
 
39 39
         $this->validator->addRules('password', [
40
-           new NotEmpty(),
40
+            new NotEmpty(),
41 41
         ]);
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
src/Demo/Form/Validator/UserValidator.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -38,30 +38,30 @@
 block discarded – undo
38 38
     public function setRules(): void
39 39
     {
40 40
         $this->validator->addRules('username', [
41
-           new NotEmpty(),
42
-           new MinLength(3)
41
+            new NotEmpty(),
42
+            new MinLength(3)
43 43
         ]);
44 44
 
45 45
         $this->validator->addRules('lastname', [
46
-           new NotEmpty(),
47
-           new MinLength(3)
46
+            new NotEmpty(),
47
+            new MinLength(3)
48 48
         ]);
49 49
 
50 50
         $this->validator->addRules('firstname', [
51
-           new NotEmpty(),
52
-           new MinLength(3)
51
+            new NotEmpty(),
52
+            new MinLength(3)
53 53
         ]);
54 54
 
55 55
         $this->validator->addRules('age', [
56
-           new NotEmpty(),
57
-           new Number(),
58
-           new Min(0),
59
-           new Max(100),
56
+            new NotEmpty(),
57
+            new Number(),
58
+            new Min(0),
59
+            new Max(100),
60 60
         ]);
61 61
 
62 62
         $this->validator->addRules('password', [
63
-           new NotEmpty(),
64
-           new MinLength(5),
63
+            new NotEmpty(),
64
+            new MinLength(5),
65 65
         ]);
66 66
     }
67 67
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@  discard block
 block discarded – undo
10 10
 use Platine\Validator\Rule\Number;
11 11
 use Platine\Validator\Validator;
12 12
 
13
-class UserValidator extends AbstractValidator
14
-{
13
+class UserValidator extends AbstractValidator {
15 14
 
16 15
     protected UserParam $param;
17 16
 
@@ -20,8 +19,7 @@  discard block
 block discarded – undo
20 19
      * @param UserParam $param
21 20
      * @param Validator|null $validator
22 21
      */
23
-    public function __construct(UserParam $param, ?Validator $validator = null)
24
-    {
22
+    public function __construct(UserParam $param, ?Validator $validator = null) {
25 23
         parent::__construct($validator);
26 24
         $this->param = $param;
27 25
     }
Please login to merge, or discard this patch.
src/Demo/Form/Param/AuthParam.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Platine\Framework\Demo\Form\Param;
4 4
 
5
-class AuthParam extends BaseParam
6
-{
5
+class AuthParam extends BaseParam {
7 6
     protected string $username = '';
8 7
     protected string $password = '';
9 8
 
Please login to merge, or discard this patch.
src/Demo/Form/Param/UserParam.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Platine\Framework\Demo\Form\Param;
4 4
 
5
-class UserParam extends BaseParam
6
-{
5
+class UserParam extends BaseParam {
7 6
     protected string $username = '';
8 7
     protected string $lastname = '';
9 8
     protected string $firstname = '';
Please login to merge, or discard this patch.
src/Demo/Form/Param/BaseParam.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,15 +10,13 @@  discard block
 block discarded – undo
10 10
 
11 11
 use Platine\Stdlib\Helper\Str;
12 12
 
13
-class BaseParam
14
-{
13
+class BaseParam {
15 14
 
16 15
     /**
17 16
      * Create new instance
18 17
      * @param array<string, mixed> $data
19 18
      */
20
-    public function __construct(array $data = [])
21
-    {
19
+    public function __construct(array $data = []) {
22 20
         $params = array_merge($this->getDefault(), $data);
23 21
         $this->load($params);
24 22
     }
@@ -56,8 +54,7 @@  discard block
 block discarded – undo
56 54
      * @param string $name
57 55
      * @return mixed|null
58 56
      */
59
-    public function __get($name)
60
-    {
57
+    public function __get($name) {
61 58
         if (property_exists($this, $name)) {
62 59
             return $this->{$name};
63 60
         }
Please login to merge, or discard this patch.