Skip to content

Commit

Permalink
Tidied up get key array handling
Browse files Browse the repository at this point in the history
  • Loading branch information
J0sh0nat0r committed Mar 28, 2018
1 parent 37bceda commit 9d02c56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ public function set($key, $value = null)
public function get($key, $default = null)
{
if (is_array($key)) {
$values = $key;
$keys = $key;
$results = [];

foreach ($values as $key => $value) {
foreach ($keys as $key) {
$results[$key] = $this->get($key, $default);
}

Expand Down

0 comments on commit 9d02c56

Please # to comment.