| Total Complexity | 10 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | final class ArrayUtils |
||
| 7 | { |
||
| 8 | 24 | public static function isSequential(array $list): bool |
|
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Recursively merges/replaces array $a and array $b. |
||
| 24 | * |
||
| 25 | * If determined that $b is list, it is appended to $a and the resulting array is made unique |
||
| 26 | * Otherwise values from $b replaces values from $a with the same keys |
||
| 27 | * |
||
| 28 | * @param array $a |
||
| 29 | * @param array $b |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | 13 | public static function merge(array $a, array $b): array |
|
| 60 |