@@ -21,8 +21,7 @@ |
||
| 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; |
@@ -21,8 +21,7 @@ |
||
| 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; |
@@ -10,8 +10,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -2,8 +2,7 @@ |
||
| 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 | |
@@ -2,8 +2,7 @@ |
||
| 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 = ''; |
@@ -10,15 +10,13 @@ discard block |
||
| 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 |
||
| 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 | } |