Conditions | 5 |
Paths | 5 |
Total Lines | 21 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public static function validate($fullName) |
||
22 | { |
||
23 | $name = self::break($fullName); |
||
24 | |||
25 | if ($name['sobrenomes'] < 1) { |
||
26 | return false; |
||
27 | } |
||
28 | |||
29 | if (static::incluiInArray($name['full'], static::$notPermit)) { |
||
30 | return false; |
||
31 | } |
||
32 | |||
33 | if (static::incluiInArray($name['first'], static::$notPermitInFirst)) { |
||
34 | return false; |
||
35 | } |
||
36 | |||
37 | if (filter_var($name['full'], FILTER_SANITIZE_NUMBER_INT) !== '') { |
||
38 | return false; |
||
39 | } |
||
40 | |||
41 | return true; |
||
42 | } |
||
73 |