@@ -25,18 +25,18 @@ |
||
25 | 25 | assert(is_string($field)); |
26 | 26 | } |
27 | 27 | |
28 | - if ((! isset($data[$field]) && // This is faster, |
|
28 | + if ((!isset($data[$field]) && // This is faster, |
|
29 | 29 | // but it will also return false on fields which |
30 | 30 | // value is null, so calling array_key_exists when that happens. |
31 | - ! array_key_exists($field, $data)) || |
|
31 | + !array_key_exists($field, $data)) || |
|
32 | 32 | ( |
33 | - ! $isInt && ( |
|
33 | + !$isInt && ( |
|
34 | 34 | ( |
35 | 35 | gettype($type) === 'string' && gettype($data[$field]) !== $type |
36 | 36 | ) || |
37 | 37 | ( |
38 | 38 | /** @phpstan-ignore-next-line */ |
39 | - gettype($type) === 'array' && ! in_array(gettype($data[$field]), $type, true) |
|
39 | + gettype($type) === 'array' && !in_array(gettype($data[$field]), $type, true) |
|
40 | 40 | ) |
41 | 41 | ) |
42 | 42 | ) |
@@ -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 | } |