Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class Cidr extends AbstractRule |
||
15 | { |
||
16 | /** |
||
17 | * Check if the value is a Classless Inter-Domain Routing notation (CIDR). |
||
18 | * |
||
19 | * @see https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing |
||
20 | * @credit <a href="https://github.com/Intervention/validation">Intervention/validation - \Intervention\Validation\Rules\Cidr</a> |
||
21 | * |
||
22 | * @param mixed $value |
||
23 | */ |
||
24 | public function check($value): bool |
||
50 |