| Total Complexity | 10 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | final class ArrayUtils |
||
| 14 | { |
||
| 15 | public static function arrayFlatten(array $translations, string $prefix = ''): array |
||
| 30 | } |
||
| 31 | |||
| 32 | public static function recursiveKsort(array &$array): bool |
||
| 33 | { |
||
| 34 | foreach ($array as &$value) { |
||
| 35 | if (is_array($value)) { |
||
| 36 | self::recursiveKsort($value); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 40 | return ksort($array); |
||
| 41 | } |
||
| 42 | |||
| 43 | public static function keyToArray(string $translationKey, string $value): array |
||
| 58 | } |
||
| 59 | } |
||
| 60 |