| Conditions | 5 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | private function toArrayHyphen($array, $trimNull): array |
||
| 33 | { |
||
| 34 | $hyphen_array = []; |
||
| 35 | foreach ($array as $key => $value) { |
||
| 36 | if ($trimNull && !isset($value)) { |
||
| 37 | continue; |
||
| 38 | } elseif (is_array($value)) { |
||
| 39 | $hyphen_array[SCT::toHyphen($key)] = $this->toArrayHyphen($value, $trimNull); |
||
| 40 | } else { |
||
| 41 | $hyphen_array[SCT::toHyphen($key)] = VT::toString($value); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | return $hyphen_array; |
||
| 46 | } |
||
| 48 |