Passed
Push — main ( f5ccb0...e270df )
by Breno
01:34
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
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             $sum += $number * $factor[$i++ % $size];
40 40
         }
41 41
 
42
-        return 11 - (($sum * 10 ) % 11);
42
+        return 11 - (($sum * 10) % 11);
43 43
     }
44 44
 
45 45
     public static function mod10($input): int
@@ -63,8 +63,8 @@  discard block
 block discarded – undo
63 63
         $digits = substr($document, -2);
64 64
 
65 65
         $digit1 = DigitoVerificador::mod11($number);
66
-        $digit2 = DigitoVerificador::mod11($number . $digit1);
66
+        $digit2 = DigitoVerificador::mod11($number.$digit1);
67 67
 
68
-        return $digits === ($digit1 . $digit2);
68
+        return $digits === ($digit1.$digit2);
69 69
     }
70 70
 }
Please login to merge, or discard this patch.