Passed
Push — main ( ff0dd8...eefa6a )
by Breno
01:35
created
src/Rules/Document.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     public function validateNumbersWithCorrectLength(string $unmaskedInput): bool
52 52
     {
53
-        $numericWithSize = '/^\d{' . $this->unmaskedLength() . '}$/';
53
+        $numericWithSize = '/^\d{'.$this->unmaskedLength().'}$/';
54 54
         return preg_match($numericWithSize, $unmaskedInput) === 1;
55 55
     }
56 56
 
Please login to merge, or discard this patch.
src/Rules/Brazilian/DigitoVerificador.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             $sum += $number * $factor[$i++ % $size];
31 31
         }
32 32
 
33
-        return 11 - (($sum * 10 ) % 11);
33
+        return 11 - (($sum * 10) % 11);
34 34
     }
35 35
 
36 36
     public static function mod10($input): int
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
         $digits = substr($document, -2);
55 55
 
56 56
         $digit1 = DigitoVerificador::mod11($number);
57
-        $digit2 = DigitoVerificador::mod11($number . $digit1);
57
+        $digit2 = DigitoVerificador::mod11($number.$digit1);
58 58
 
59
-        return $digits === ($digit1 . $digit2);
59
+        return $digits === ($digit1.$digit2);
60 60
     }
61 61
 
62 62
     abstract protected function getDigit($number): int;
Please login to merge, or discard this patch.