| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | 4 | public function rules() |
|
| 11 | { |
||
| 12 | 4 | return new Assert\Collection([ |
|
| 13 | 4 | 'profile' => new Assert\Collection([ |
|
| 14 | 4 | 'first_name' => new Assert\Length(['min' => 2, 'max' => 50]), |
|
| 15 | 4 | 'last_name' => new Assert\Length(['min' => 2, 'max' => 50]), |
|
| 16 | 4 | 'birth_date' => new Assert\Date(), |
|
| 17 | 4 | 'about' => new Assert\Length(['max' => 255]), |
|
| 18 | 4 | 'public_email' => new Assert\Email(), |
|
| 19 | ]), |
||
| 20 | ]); |
||
| 21 | } |
||
| 22 | } |
||
| 23 |