@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use function function_exists; |
6 | 6 | |
7 | -if (! function_exists('WyriHaximus\validate_array')) { |
|
8 | - require __DIR__ . '/functions.php'; |
|
7 | +if (!function_exists('WyriHaximus\validate_array')) { |
|
8 | + require __DIR__.'/functions.php'; |
|
9 | 9 | } |
@@ -27,17 +27,17 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | /** @psalm-suppress PossiblyInvalidArrayOffset */ |
30 | - if ((! isset($data[$field]) && // This is faster, |
|
30 | + if ((!isset($data[$field]) && // This is faster, |
|
31 | 31 | // but it will also return false on fields which |
32 | 32 | // value is null, so calling array_key_exists when that happens. |
33 | - ! array_key_exists($field, $data)) || |
|
33 | + !array_key_exists($field, $data)) || |
|
34 | 34 | ( |
35 | - ! $isInt && ( |
|
35 | + !$isInt && ( |
|
36 | 36 | ( |
37 | 37 | is_string($type) && gettype($data[$field]) !== $type |
38 | 38 | ) || |
39 | 39 | ( |
40 | - is_array($type) && ! in_array(gettype($data[$field]), $type, true) |
|
40 | + is_array($type) && !in_array(gettype($data[$field]), $type, true) |
|
41 | 41 | ) |
42 | 42 | ) |
43 | 43 | ) |