Test Failed
Push — develop ( 64b6b0...ddb817 )
by nguereza
02:24
created
src/Demo/Action/User/LoginAction.php 1 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 1 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/UserValidator.php 1 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.