Conditions | 9 |
Paths | 10 |
Total Lines | 25 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | protected function logProcess(array $values): string |
||
23 | { |
||
24 | foreach ($values as &$value) { |
||
25 | switch (gettype($value)) { |
||
26 | case 'boolean': |
||
27 | case 'bool': |
||
28 | $value = $value ? '"true"' : '"false"'; |
||
29 | break; |
||
30 | |||
31 | case 'integer': |
||
32 | case 'double': |
||
33 | $value = '"' . $value . '"'; |
||
34 | break; |
||
35 | |||
36 | case 'array': |
||
37 | $value = implode(', ', $value); |
||
38 | break; |
||
39 | |||
40 | case 'NULL': |
||
41 | $value = '"null"'; |
||
42 | break; |
||
43 | } |
||
44 | } |
||
45 | |||
46 | return implode(' ', $values); |
||
47 | } |
||
49 |