Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | 1 | public function create(SymfonyConstraint $constraint): Constraint |
|
18 | { |
||
19 | /** @var Assert\Length $constraint */ |
||
20 | |||
21 | 1 | return new ParsleyAssert\MaxLength([ |
|
22 | 1 | 'max' => $constraint->max, |
|
23 | 1 | 'message' => $this->transChoice( |
|
24 | 1 | $constraint->maxMessage, |
|
25 | 1 | (int) $constraint->max, |
|
26 | 1 | ['{{ limit }}' => $constraint->max] |
|
27 | ), |
||
39 |