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 | 75% |
Changes | 0 |
1 | <?php |
||
16 | final class IpException extends ValidationException |
||
17 | { |
||
18 | private const NETWORK_RANGE = 'network_range'; |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public static $defaultTemplates = [ |
||
24 | self::MODE_DEFAULT => [ |
||
25 | self::STANDARD => '{{name}} must be an IP address', |
||
26 | self::NETWORK_RANGE => '{{name}} must be an IP address in the {{range}} range', |
||
27 | ], |
||
28 | self::MODE_NEGATIVE => [ |
||
29 | self::STANDARD => '{{name}} must not be an IP address', |
||
30 | self::NETWORK_RANGE => '{{name}} must not be an IP address in the {{range}} range', |
||
31 | ], |
||
32 | ]; |
||
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 1 | protected function chooseTemplate(): string |
|
46 |