| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Cpf implements \Validate\Contracts\Validate |
||
| 8 | { |
||
| 9 | use FakeNameTrait; |
||
| 10 | |||
| 11 | public static function toDatabase($cpf) |
||
| 12 | { |
||
| 13 | return preg_replace('/[^0-9]/', '', $cpf); |
||
| 14 | } |
||
| 15 | |||
| 16 | public static function toUser($cpf) |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function validate($cpf) |
||
| 25 | } |
||
| 26 | |||
| 27 | public static function isSame(string $to, string $from) |
||
| 33 |