Passed
Push — main ( bd8ab6...d7b565 )
by Breno
01:49
created
src/Rules/Brazilian/DigitoVerificador.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             $sum += $number * $factor[$i++ % $size];
33 33
         }
34 34
 
35
-        return 11 - (($sum * 10 ) % 11);
35
+        return 11 - (($sum * 10) % 11);
36 36
     }
37 37
 
38 38
     public static function mod10($input): int
Please login to merge, or discard this patch.
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.