@@ -39,7 +39,7 @@ discard block |
||
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 |
||
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 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return $this; |
51 | 51 | } |
52 | 52 | |
53 | - public function validate(mixed $input, array $context = []): ValidationResult|ValidationResultByField |
|
53 | + public function validate(mixed $input, array $context = []): ValidationResult | ValidationResultByField |
|
54 | 54 | { |
55 | 55 | $violations = $this->newEmptyValidationResult(); |
56 | 56 | if (null === $input && $this->allowsNull()) { |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * @return ValidationSet[] |
152 | 152 | * @throws ReflectionException if the class does not exist |
153 | 153 | */ |
154 | - public static function fromProperties(string|object $objectOrClass, ?int $filter = null): array |
|
154 | + public static function fromProperties(string | object $objectOrClass, ?int $filter = null): array |
|
155 | 155 | { |
156 | 156 | $ruleSets = []; |
157 | 157 | foreach ((new ReflectionClass($objectOrClass))->getProperties($filter) as $property) { |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | * @return ValidationSet[] |
168 | 168 | * @throws ReflectionException |
169 | 169 | */ |
170 | - public static function fromMethods(string|object $objectOrClass, ?int $filter = null): array |
|
170 | + public static function fromMethods(string | object $objectOrClass, ?int $filter = null): array |
|
171 | 171 | { |
172 | 172 | $ruleSets = []; |
173 | 173 | foreach ((new ReflectionClass($objectOrClass))->getMethods($filter) as $method) { |
@@ -183,12 +183,12 @@ discard block |
||
183 | 183 | * @return static |
184 | 184 | * @throws ReflectionException if the class or property does not exist. |
185 | 185 | */ |
186 | - public static function fromProperty(string|object $objectOrClass, string $property): self |
|
186 | + public static function fromProperty(string | object $objectOrClass, string $property): self |
|
187 | 187 | { |
188 | 188 | return self::fromReflectionProperty(new ReflectionProperty($objectOrClass, $property)); |
189 | 189 | } |
190 | 190 | |
191 | - public static function fromMethod(string|object $objectOrClass, string $method): self |
|
191 | + public static function fromMethod(string | object $objectOrClass, string $method): self |
|
192 | 192 | { |
193 | 193 | return self::fromReflectionMethod(new ReflectionMethod($objectOrClass, $method)); |
194 | 194 | } |