@@ -91,12 +91,12 @@ |
||
| 91 | 91 | public function setValidationRules(): void |
| 92 | 92 | { |
| 93 | 93 | $this->addRules('username', [ |
| 94 | - new NotEmpty(), |
|
| 95 | - new MinLength(3) |
|
| 94 | + new NotEmpty(), |
|
| 95 | + new MinLength(3) |
|
| 96 | 96 | ]); |
| 97 | 97 | |
| 98 | 98 | $this->addRules('password', [ |
| 99 | - new NotEmpty(), |
|
| 99 | + new NotEmpty(), |
|
| 100 | 100 | ]); |
| 101 | 101 | } |
| 102 | 102 | } |
@@ -92,12 +92,12 @@ |
||
| 92 | 92 | public function setValidationRules(): void |
| 93 | 93 | { |
| 94 | 94 | $this->addRules('name', [ |
| 95 | - new NotEmpty(), |
|
| 96 | - new MinLength(2) |
|
| 95 | + new NotEmpty(), |
|
| 96 | + new MinLength(2) |
|
| 97 | 97 | ]); |
| 98 | 98 | |
| 99 | 99 | $this->addRules('description', [ |
| 100 | - new MinLength(3) |
|
| 100 | + new MinLength(3) |
|
| 101 | 101 | ]); |
| 102 | 102 | } |
| 103 | 103 | } |
@@ -100,37 +100,37 @@ |
||
| 100 | 100 | public function setValidationRules(): void |
| 101 | 101 | { |
| 102 | 102 | $this->addRules('username', [ |
| 103 | - new NotEmpty(), |
|
| 104 | - new MinLength(3), |
|
| 105 | - new AlphaDash() |
|
| 103 | + new NotEmpty(), |
|
| 104 | + new MinLength(3), |
|
| 105 | + new AlphaDash() |
|
| 106 | 106 | ]); |
| 107 | 107 | |
| 108 | 108 | $this->addRules('lastname', [ |
| 109 | - new NotEmpty(), |
|
| 110 | - new MinLength(3) |
|
| 109 | + new NotEmpty(), |
|
| 110 | + new MinLength(3) |
|
| 111 | 111 | ]); |
| 112 | 112 | |
| 113 | 113 | $this->addRules('firstname', [ |
| 114 | - new NotEmpty(), |
|
| 115 | - new MinLength(3) |
|
| 114 | + new NotEmpty(), |
|
| 115 | + new MinLength(3) |
|
| 116 | 116 | ]); |
| 117 | 117 | |
| 118 | 118 | $this->addRules('status', [ |
| 119 | - new NotEmpty(), |
|
| 120 | - new InList(['A', 'D']) |
|
| 119 | + new NotEmpty(), |
|
| 120 | + new InList(['A', 'D']) |
|
| 121 | 121 | ]); |
| 122 | 122 | |
| 123 | 123 | $this->addRules('email', [ |
| 124 | - new NotEmpty(), |
|
| 125 | - new Email() |
|
| 124 | + new NotEmpty(), |
|
| 125 | + new Email() |
|
| 126 | 126 | ]); |
| 127 | 127 | |
| 128 | 128 | $this->addRules('role', [ |
| 129 | - new MinLength(3) |
|
| 129 | + new MinLength(3) |
|
| 130 | 130 | ]); |
| 131 | 131 | |
| 132 | 132 | $this->addRules('password', [ |
| 133 | - new MinLength(5), |
|
| 133 | + new MinLength(5), |
|
| 134 | 134 | ]); |
| 135 | 135 | } |
| 136 | 136 | } |
@@ -94,18 +94,18 @@ |
||
| 94 | 94 | public function setValidationRules(): void |
| 95 | 95 | { |
| 96 | 96 | $this->addRules('code', [ |
| 97 | - new NotEmpty(), |
|
| 98 | - new MinLength(2), |
|
| 99 | - new AlphaDash() |
|
| 97 | + new NotEmpty(), |
|
| 98 | + new MinLength(2), |
|
| 99 | + new AlphaDash() |
|
| 100 | 100 | ]); |
| 101 | 101 | |
| 102 | 102 | $this->addRules('description', [ |
| 103 | - new NotEmpty(), |
|
| 104 | - new MinLength(3) |
|
| 103 | + new NotEmpty(), |
|
| 104 | + new MinLength(3) |
|
| 105 | 105 | ]); |
| 106 | 106 | |
| 107 | 107 | $this->addRules('depend', [ |
| 108 | - new MinLength(2) |
|
| 108 | + new MinLength(2) |
|
| 109 | 109 | ]); |
| 110 | 110 | } |
| 111 | 111 | } |