|
@@ -25,8 +25,7 @@ |
|
|
block discarded – undo |
|
25
|
25
|
foreach ($input as $key => $value) { |
|
26
|
26
|
if(is_array($value)) { |
|
27
|
27
|
$input[$key] = static::replaceValuesByMatchingKeys($value, $keys, $replacement); |
|
28
|
|
- } |
|
29
|
|
- elseif(is_string($key) && in_array(strtolower($key), $keys)) { |
|
|
28
|
+ } elseif(is_string($key) && in_array(strtolower($key), $keys)) { |
|
30
|
29
|
$input[$key] = $replacement instanceof \Closure |
|
31
|
30
|
? $replacement($key, $value) |
|
32
|
31
|
: $replacement; |
Please login to merge, or discard this patch.