We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
14 | class LengthException extends ValidationException |
||
15 | { |
||
16 | const BOTH = 0; |
||
17 | const LOWER = 1; |
||
18 | const GREATER = 2; |
||
19 | const EXACT = 3; |
||
20 | |||
21 | public static $defaultTemplates = [ |
||
22 | self::MODE_DEFAULT => [ |
||
23 | self::BOTH => '{{name}} must have a length between {{minValue}} and {{maxValue}}', |
||
24 | self::LOWER => '{{name}} must have a length greater than {{minValue}}', |
||
25 | self::GREATER => '{{name}} must have a length lower than {{maxValue}}', |
||
26 | self::EXACT => '{{name}} must have a length of {{maxValue}}', |
||
27 | ], |
||
28 | self::MODE_NEGATIVE => [ |
||
29 | self::BOTH => '{{name}} must not have a length between {{minValue}} and {{maxValue}}', |
||
30 | self::LOWER => '{{name}} must not have a length greater than {{minValue}}', |
||
31 | self::GREATER => '{{name}} must not have a length lower than {{maxValue}}', |
||
32 | self::EXACT => '{{name}} must not have a length of {{maxValue}}', |
||
33 | ], |
||
34 | ]; |
||
35 | |||
36 | 16 | public function chooseTemplate() |
|
52 | } |
||
53 |