@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $number = substr($stringInput, 0, -1); |
33 | 33 | $digit = (int) substr($stringInput, -1); |
34 | 34 | return |
35 | - $digit === match ($this->algorithm) { |
|
35 | + $digit === match($this->algorithm) { |
|
36 | 36 | self::MOD11 => self::mod11($number), |
37 | 37 | self::MOD10 => self::mod10($number), |
38 | 38 | default => throw new InvalidArgumentException('Algoritmo de cálculo de dígito inválido') |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $sum += $number * $factor[$i++ % $size]; |
50 | 50 | } |
51 | 51 | |
52 | - return 11 - (($sum * 10 ) % 11); |
|
52 | + return 11 - (($sum * 10) % 11); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | public static function mod10($input): int |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | $digits = substr($document, -2); |
74 | 74 | |
75 | 75 | $digit1 = DigitoVerificador::mod11($number); |
76 | - $digit2 = DigitoVerificador::mod11($number . $digit1); |
|
76 | + $digit2 = DigitoVerificador::mod11($number.$digit1); |
|
77 | 77 | |
78 | - return $digits === ($digit1 . $digit2); |
|
78 | + return $digits === ($digit1.$digit2); |
|
79 | 79 | } |
80 | 80 | } |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | return $this->ruleSets[] = ValidationSet::forField($field); |
28 | 28 | } |
29 | 29 | |
30 | - public function field(string $field, Validation|ValidationSet ...$rules): self |
|
30 | + public function field(string $field, Validation | ValidationSet ...$rules): self |
|
31 | 31 | { |
32 | 32 | $this->ruleSet($field)->add(...$rules); |
33 | 33 | return $this; |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | * @return static |
113 | 113 | * @throws ReflectionException if the class does not exist |
114 | 114 | */ |
115 | - public static function fromProperties(string|object $objectOrClass, ?int $filter = null): self |
|
115 | + public static function fromProperties(string | object $objectOrClass, ?int $filter = null): self |
|
116 | 116 | { |
117 | 117 | $instance = new self; |
118 | 118 | $instance->ruleSets = ValidationSet::fromProperties($objectOrClass, $filter); |