Skip to content

Commit

Permalink
Array processing replaced by faster iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar authored Jan 27, 2020
1 parent e861665 commit f599229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Concerns/HasCases.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ protected function convertKeysCase(array &$array): void

$result = [];

array_walk($array, function ($value, $key) use (&$result) {
foreach ($array as $key => $item) {
$key = $this->convertKeyCase($key);

$result[$key] = $value;
});
}

$array = $result;
}
Expand Down

0 comments on commit f599229

Please sign in to comment.