| Total Complexity | 7 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ArrayUtils { |
||
| 8 | |||
| 9 | public static function apply(array &$items, Closure $closure): void { |
||
| 10 | foreach($items as $item) { |
||
| 11 | $closure($item); |
||
| 12 | } |
||
| 13 | } |
||
| 14 | |||
| 15 | public static function createArray(array $keys, array $values): array { |
||
| 31 | } |
||
| 32 | |||
| 33 | public static function createArrayWithKeys(array $items, Closure $keyFunc): array { |
||
| 42 | } |
||
| 43 | } |