| Total Complexity | 13 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class AbstractOptionsOutput implements OptionsOutputInterface |
||
| 9 | { |
||
| 10 | 4 | public function removeRecursivelyNullValue(&$options): void |
|
| 17 | } |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | 4 | public function removeRecursivelyEmptyArray(array &$options): void |
|
| 22 | { |
||
| 23 | 4 | foreach ($options as $key => $value) { |
|
| 24 | 4 | if (is_array($value)) { |
|
| 25 | 4 | $this->removeRecursivelyEmptyArray($options[$key]); |
|
| 26 | |||
| 27 | 4 | if (empty($options[$key])) { |
|
| 28 | 2 | unset($options[$key]); |
|
| 29 | } |
||
| 30 | } |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | 4 | public function renameRecursivelyKeys(array $options): array |
|
| 56 | } |
||
| 57 | } |
||
| 58 |