Conditions | 5 |
Paths | 5 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public static function generateArrayTypes(array $parameters): array |
||
22 | { |
||
23 | $types = []; |
||
24 | foreach ($parameters as $key => $value) { |
||
25 | if (is_array($value)) { |
||
26 | foreach ($value as $val) { |
||
27 | if (!is_int($val)) { |
||
28 | $types[$key] = Connection::PARAM_STR_ARRAY; |
||
29 | continue 2; |
||
30 | } |
||
31 | } |
||
32 | $types[$key] = Connection::PARAM_INT_ARRAY; |
||
33 | } |
||
34 | } |
||
35 | |||
36 | return $types; |
||
37 | } |
||
39 |