Passed
Push — develop ( dd1d01...9e310a )
by nguereza
10:33
created
src/Rule/Password.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,25 +105,25 @@
 block discarded – undo
105 105
             return false;
106 106
         }
107 107
 
108
-        if ($rules['uppercase'] && ((bool)preg_match('~[A-Z]~', $value)) === false) {
108
+        if ($rules['uppercase'] && ((bool) preg_match('~[A-Z]~', $value)) === false) {
109 109
             $this->errorType = self::ERROR_TYPE_UPPERCASE;
110 110
 
111 111
             return false;
112 112
         }
113 113
 
114
-        if ($rules['lowercase'] && ((bool)preg_match('~[a-z]~', $value)) === false) {
114
+        if ($rules['lowercase'] && ((bool) preg_match('~[a-z]~', $value)) === false) {
115 115
             $this->errorType = self::ERROR_TYPE_LOWERCASE;
116 116
 
117 117
             return false;
118 118
         }
119 119
 
120
-        if ($rules['number'] && ((bool)preg_match('~[0-9]~', $value)) === false) {
120
+        if ($rules['number'] && ((bool) preg_match('~[0-9]~', $value)) === false) {
121 121
             $this->errorType = self::ERROR_TYPE_NUMBER;
122 122
 
123 123
             return false;
124 124
         }
125 125
 
126
-        if ($rules['special_chars'] && ((bool)preg_match('~[^\w]~', $value)) === false) {
126
+        if ($rules['special_chars'] && ((bool) preg_match('~[^\w]~', $value)) === false) {
127 127
             $this->errorType = self::ERROR_TYPE_SPECIAL_CHAR;
128 128
 
129 129
             return false;
Please login to merge, or discard this patch.
src/Rule/Min.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      * Constructor
60 60
      * @param string|float|int|bool|null $value the value to compare against
61 61
      */
62
-    public function __construct(protected string|float|int|bool|null $value)
62
+    public function __construct(protected string | float | int | bool | null $value)
63 63
     {
64 64
         $this->value = $value;
65 65
     }
Please login to merge, or discard this patch.
src/Rule/Max.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      * Constructor
60 60
      * @param string|float|int|bool|null $value the value to compare against
61 61
      */
62
-    public function __construct(protected string|float|int|bool|null $value)
62
+    public function __construct(protected string | float | int | bool | null $value)
63 63
     {
64 64
         $this->value = $value;
65 65
     }
Please login to merge, or discard this patch.
src/Rule/Range.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
61 61
      * @param string|float|int|bool|null $max the maximum value to compare against
62 62
      */
63 63
     public function __construct(
64
-        protected string|float|int|bool|null $min,
65
-        protected string|float|int|bool|null $max
64
+        protected string | float | int | bool | null $min,
65
+        protected string | float | int | bool | null $max
66 66
     ) {
67 67
         $this->min = $min;
68 68
         $this->max = $max;
Please login to merge, or discard this patch.
src/Rule/Regex.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
             return true;
75 75
         }
76 76
 
77
-        return (bool) preg_match($this->regex, (string)$value);
77
+        return (bool) preg_match($this->regex, (string) $value);
78 78
     }
79 79
 
80 80
     /**
Please login to merge, or discard this patch.