@@ -9,8 +9,8 @@ |
||
9 | 9 | |
10 | 10 | namespace Flipbox\Transform\Helpers; |
11 | 11 | |
12 | -use Flipbox\Transform\Transformers\TransformerInterface; |
|
13 | 12 | use Closure; |
13 | +use Flipbox\Transform\Transformers\TransformerInterface; |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * @author Flipbox Factory <[email protected]> |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public static function replaceKeys(array $array, array $keyMap): array |
44 | 44 | { |
45 | - array_walk($keyMap, function ($to, $from) use (&$array) { |
|
45 | + array_walk($keyMap, function($to, $from) use (&$array) { |
|
46 | 46 | $newKey = array_key_exists($from, $array) ? $to : false; |
47 | 47 | if ($newKey !== false) { |
48 | 48 | $array[$to] = $array[$from]; |