Minor simplification.

This commit is contained in:
mark_story 2013-08-24 21:49:17 -04:00
parent 074fced586
commit f655e8a7bc

View file

@ -250,12 +250,11 @@ class Hash {
foreach ($data as $k => $v) { foreach ($data as $k => $v) {
if (self::_matchToken($k, $token)) { if (self::_matchToken($k, $token)) {
if ($conditions) { if ($conditions && self::_matches($v, $conditions)) {
if (self::_matches($v, $conditions)) {
$data[$k] = array_merge($v, $values); $data[$k] = array_merge($v, $values);
continue; continue;
} }
} else { if (!$conditions) {
$data[$k] = self::insert($v, $nextPath, $values); $data[$k] = self::insert($v, $nextPath, $values);
} }
} }