@@ -204,7 +204,8 @@ public static function json(string $field, array $data) : bool
204204 public static function regex (
205205 string $ field ,
206206 array $ data ,
207- #[Language('RegExp ' )] string $ pattern
207+ #[Language('RegExp ' )]
208+ string $ pattern
208209 ) : bool {
209210 $ data = static ::getData ($ field , $ data );
210211 return $ data !== null && \preg_match ($ pattern , $ data ) === 1 ;
@@ -222,9 +223,10 @@ public static function regex(
222223 public static function notRegex (
223224 string $ field ,
224225 array $ data ,
225- #[Language('RegExp ' )] string $ pattern
226+ #[Language('RegExp ' )]
227+ string $ pattern
226228 ) : bool {
227- return ! static ::regex ($ field , $ data , $ pattern );
229+ return !static ::regex ($ field , $ data , $ pattern );
228230 }
229231
230232 /**
@@ -239,11 +241,11 @@ public static function notRegex(
239241 public static function equals (string $ field , array $ data , string $ equalsField ) : bool
240242 {
241243 $ field = ArraySimple::value ($ field , $ data );
242- if ( ! \is_scalar ($ field )) {
244+ if (! \is_scalar ($ field )) {
243245 return false ;
244246 }
245247 $ equalsField = ArraySimple::value ($ equalsField , $ data );
246- if ( ! \is_scalar ($ equalsField )) {
248+ if (! \is_scalar ($ equalsField )) {
247249 return false ;
248250 }
249251 return (string ) $ field === (string ) $ equalsField ;
@@ -260,7 +262,7 @@ public static function equals(string $field, array $data, string $equalsField) :
260262 */
261263 public static function notEquals (string $ field , array $ data , string $ diffField ) : bool
262264 {
263- return ! static ::equals ($ field , $ data , $ diffField );
265+ return !static ::equals ($ field , $ data , $ diffField );
264266 }
265267
266268 /**
@@ -299,7 +301,7 @@ public static function notBetween(
299301 int | string $ min ,
300302 int | string $ max
301303 ) : bool {
302- return ! static ::between ($ field , $ data , $ min , $ max );
304+ return !static ::between ($ field , $ data , $ min , $ max );
303305 }
304306
305307 /**
@@ -330,7 +332,7 @@ public static function in(string $field, array $data, string $in, string ...$oth
330332 */
331333 public static function notIn (string $ field , array $ data , string $ notIn , string ...$ others ) : bool
332334 {
333- return ! static ::in ($ field , $ data , $ notIn , ...$ others );
335+ return !static ::in ($ field , $ data , $ notIn , ...$ others );
334336 }
335337
336338 /**
@@ -376,7 +378,7 @@ public static function url(string $field, array $data) : bool
376378 return false ;
377379 }
378380 if (\preg_match ('/^(?:([^:]*)\:)?\/\/(.+)$/ ' , $ data , $ matches )) {
379- if ( ! \in_array ($ matches [1 ], ['http ' , 'https ' ], true )) {
381+ if (! \in_array ($ matches [1 ], ['http ' , 'https ' ], true )) {
380382 return false ;
381383 }
382384 $ data = $ matches [2 ];
0 commit comments