@@ -161,9 +161,9 @@ |
||
| 161 | 161 | } |
| 162 | 162 | |
| 163 | 163 | /** |
| 164 | - * Boot the application |
|
| 165 | - * @return void |
|
| 166 | - */ |
|
| 164 | + * Boot the application |
|
| 165 | + * @return void |
|
| 166 | + */ |
|
| 167 | 167 | public function boot(): void |
| 168 | 168 | { |
| 169 | 169 | if ($this->booted) { |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | protected string $value; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * {@inheritdoc} |
|
| 31 | - */ |
|
| 30 | + * {@inheritdoc} |
|
| 31 | + */ |
|
| 32 | 32 | public function __construct(string $markup, &$tokens, Parser $parser) |
| 33 | 33 | { |
| 34 | 34 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -79,7 +79,7 @@ discard block |
||
| 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 |
||
| 91 | 91 | $this->template, |
| 92 | 92 | 'user/login', |
| 93 | 93 | [ |
| 94 | - 'param' => $formParam |
|
| 94 | + 'param' => $formParam |
|
| 95 | 95 | ] |
| 96 | 96 | ); |
| 97 | 97 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $this->template, |
| 79 | 79 | 'user/create', |
| 80 | 80 | [ |
| 81 | - 'param' => $formParam |
|
| 81 | + 'param' => $formParam |
|
| 82 | 82 | ] |
| 83 | 83 | ); |
| 84 | 84 | } |
@@ -32,12 +32,12 @@ |
||
| 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 | } |
@@ -38,30 +38,30 @@ |
||
| 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 | } |