Total Complexity | 6 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class ArrayHelper |
||
11 | { |
||
12 | /** |
||
13 | * Replace values that matches with the given keys. |
||
14 | * |
||
15 | * @param array $input Replacing array |
||
16 | * @param array $keys |
||
17 | * @param \Closure|string $replacement Handling callback |
||
18 | * |
||
19 | * @return array |
||
20 | */ |
||
21 | 10 | public static function replaceValuesByMatchingKeys(array $input, array $keys, $replacement) |
|
37 | } |
||
38 | } |