Passed
Pull Request — master (#402)
by
unknown
02:58
created
src/Rule/Url.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
  * Note that this rule only checks if the URL scheme and host part are correct.
25 25
  * It does not check the remaining parts of a URL.
26 26
  */
27
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
27
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
28 28
 final class Url implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface
29 29
 {
30 30
     use SkipOnEmptyTrait;
Please login to merge, or discard this patch.
src/Rule/Required.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *
20 20
  * @psalm-type EmptyCriteriaType = callable(mixed,bool):bool
21 21
  */
22
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
22
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
23 23
 final class Required implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface
24 24
 {
25 25
     use SkipOnErrorTrait;
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
          */
45 45
         private ?Closure $when = null,
46 46
     ) {
47
-        $this->emptyCriteria = $emptyCriteria ?? new WhenEmpty(trimString: true);
47
+        $this->emptyCriteria = $emptyCriteria ?? new WhenEmpty(trimString : true);
48 48
     }
49 49
 
50 50
     public function getName(): string
Please login to merge, or discard this patch.
src/Rule/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 /**
19 19
  * Validates that the value is a valid json.
20 20
  */
21
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
21
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
22 22
 final class Json implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface
23 23
 {
24 24
     use SkipOnEmptyTrait;
Please login to merge, or discard this patch.
src/Rule/Ip.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
  *
26 26
  * It also may change the value if normalization of IPv6 expansion is enabled.
27 27
  */
28
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
28
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
29 29
 final class Ip implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface
30 30
 {
31 31
     use SkipOnEmptyTrait;
Please login to merge, or discard this patch.
src/Rule/Subset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 use Yiisoft\Validator\ValidationContext;
16 16
 use Yiisoft\Validator\WhenInterface;
17 17
 
18
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
18
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
19 19
 final class Subset implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface
20 20
 {
21 21
     use SkipOnEmptyTrait;
Please login to merge, or discard this patch.
src/Rule/Each.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 /**
23 23
  * Validates an array by checking each of its elements against a set of rules.
24 24
  */
25
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
25
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
26 26
 final class Each implements
27 27
     SerializableRuleInterface,
28 28
     SkipOnErrorInterface,
Please login to merge, or discard this patch.
src/Rule/StopOnError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 /**
22 22
  * Can be used for validation of nested structures.
23 23
  */
24
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
24
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
25 25
 final class StopOnError implements SerializableRuleInterface, SkipOnErrorInterface, WhenInterface, SkipOnEmptyInterface
26 26
 {
27 27
     use SkipOnEmptyTrait;
Please login to merge, or discard this patch.
src/Rule/Callback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 use Yiisoft\Validator\ValidationContext;
19 19
 use Yiisoft\Validator\WhenInterface;
20 20
 
21
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
21
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
22 22
 final class Callback implements
23 23
     SerializableRuleInterface,
24 24
     SkipOnErrorInterface,
Please login to merge, or discard this patch.
src/Rule/NotEqual.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  * are checked byte by byte. When validating numbers, make sure to change {@see NotEqual::$type} to
20 20
  * {@see NotEqual::TYPE_NUMBER} to enable numeric validation.
21 21
  */
22
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
22
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
23 23
 final class NotEqual extends Compare
24 24
 {
25 25
     public function __construct(
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
             message: $this->message,
68 68
             type: $this->type,
69 69
             operator: $this->strict ? '!==' : '!=',
70
-            skipOnEmpty: $skipOnEmpty,
71
-            skipOnError: $this->skipOnError,
72
-            when: $this->when,
70
+            skipOnEmpty : $skipOnEmpty,
71
+            skipOnError : $this->skipOnError,
72
+            when : $this->when,
73 73
         );
74 74
     }
75 75
 
Please login to merge, or discard this patch.