Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
14 | class Fullname extends AbstractRule |
||
15 | { |
||
16 | /** |
||
17 | * Check if the given value is a valid fullname |
||
18 | * |
||
19 | * A string should represent a full name (at least 6 characters, at least 2 word, each word at least 2 characters long) |
||
20 | * |
||
21 | * @credit <a href="https://github.com/siriusphp/validation">siriusphp/validation - Sirius\Validation\Rule\FullName</a> |
||
22 | * |
||
23 | * This is not going to work with Asian names, http://en.wikipedia.org/wiki/Chinese_name. |
||
24 | * |
||
25 | * @param mixed $value |
||
26 | */ |
||
27 | public function check($value): bool |
||
42 |