mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Minor simplification.
This commit is contained in:
parent
074fced586
commit
f655e8a7bc
1 changed files with 5 additions and 6 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue