| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | 5 | public function rules() |
|
| 11 | { |
||
| 12 | // maybe move common rules to "RuleSets" to prevent code duplication? (post-lunch) |
||
| 13 | 5 | return new Assert\Collection([ |
|
| 14 | 5 | 'registration' => new Assert\Collection([ |
|
| 15 | 5 | 'email' => new Assert\Email(), |
|
| 16 | 5 | 'password' => new Assert\Length(['min' => 4, 'max' => 4096]), |
|
| 17 | 5 | 'username' => new Assert\Length(['min' => 4, 'max' => 50]), |
|
| 18 | ]), |
||
| 19 | ]); |
||
| 20 | } |
||
| 21 | } |
||
| 22 |