Skip to content

Commit 2899ae6

Browse files
committed
changes per discussion
1 parent 7247b2a commit 2899ae6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/validator-docs/Rules/Cpf.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111

1212
final class Cpf extends Sanitization
1313
{
14-
protected function validateFormat($value, $document, $attribute = null)
14+
protected function validateCPFFormat(string $value)
1515
{
1616
if (!empty($value)) {
17-
return (new ValidatorFormats())->execute($value, $document);
17+
return (new ValidatorFormats())->execute($value, 'cpf');
1818
}
1919
}
2020

2121
public function validateCpf($attribute, $value): bool
2222
{
2323

24-
if (!$this->validateFormat($value, 'cpf')) {
24+
if (!$this->validateCPFFormat($value)) {
2525
return false;
2626
}
2727

0 commit comments

Comments
 (0)