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 | 22 |
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 | public static $defaultTemplates = [ |
||
21 | self::MODE_DEFAULT => [ |
||
22 | self::STANDARD => '{{name}} must be an IP address', |
||
23 | self::NETWORK_RANGE => '{{name}} must be an IP address in the {{range}} range', |
||
24 | ], |
||
25 | self::MODE_NEGATIVE => [ |
||
26 | self::STANDARD => '{{name}} must not be an IP address', |
||
27 | self::NETWORK_RANGE => '{{name}} must not be an IP address in the {{range}} range', |
||
28 | ], |
||
29 | ]; |
||
30 | |||
31 | 1 | protected function chooseTemplate(): string |
|
40 |