Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Apr 9, 2019
1 parent f6b9c04 commit a4210fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function set(array &$data, $key, $value)
foreach ($segments as $segment) {
if (!array_key_exists($segment, $data)) {
$data[$segment] = array();
} else if (!is_array($data[$segment])) {
} elseif (!is_array($data[$segment])) {
throw new \UnexpectedValueException('Non-array segment encountered');
}

Expand All @@ -125,7 +125,7 @@ public static function forget(array &$data, $key)
foreach ($segments as $segment) {
if (!array_key_exists($segment, $data)) {
return;
} else if (!is_array($data[$segment])) {
} elseif (!is_array($data[$segment])) {
throw new \UnexpectedValueException('Non-array segment encountered');
}

Expand Down

0 comments on commit a4210fb

Please sign in to comment.