Passed
Push — main ( e270df...c1496b )
by Breno
01:40
created
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.