We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | final class UuidException extends ValidationException |
||
21 | { |
||
22 | public const VERSION = 'version'; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public static $defaultTemplates = [ |
||
28 | self::MODE_DEFAULT => [ |
||
29 | self::STANDARD => '{{name}} must be a valid UUID', |
||
30 | self::VERSION => '{{name}} must be a valid UUID version {{version}}', |
||
31 | ], |
||
32 | self::MODE_NEGATIVE => [ |
||
33 | self::STANDARD => '{{name}} must not be a valid UUID', |
||
34 | self::VERSION => '{{name}} must not be a valid UUID version {{version}}', |
||
35 | ], |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 1 | protected function chooseTemplate(): string |
|
50 |