Passed
Push — main ( bd8ab6...d7b565 )
by Breno
01:49
created
src/Rules/Brazilian/Document.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     protected function validateNumbersWithCorrectLength(string $unmaskedInput): bool
54 54
     {
55
-        $numericWithSize = '/^\d{' . $this->unmaskedLength() . '}$/';
55
+        $numericWithSize = '/^\d{'.$this->unmaskedLength().'}$/';
56 56
         return preg_match($numericWithSize, $unmaskedInput) === 1;
57 57
     }
58 58
 
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
         $digits = substr($unmaskedDocument, -2);
63 63
 
64 64
         $digit1 = DigitoVerificador::mod11($number);
65
-        $digit2 = DigitoVerificador::mod11($number . $digit1);
65
+        $digit2 = DigitoVerificador::mod11($number.$digit1);
66 66
 
67
-        return $digits === ($digit1 . $digit2);
67
+        return $digits === ($digit1.$digit2);
68 68
     }
69 69
 
70 70
     abstract protected function isValidDocument(string $input): bool;
Please login to merge, or discard this patch.