Passed
Push — main ( c1496b...da1fb1 )
by Breno
02:02
created
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.
src/ValidationSet.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.