mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-05-03 10:33:08 +03:00
Remove unnecessary if statement
This commit is contained in:
parent
2e1b67208d
commit
83199fbd65
@ -540,11 +540,7 @@ class Template
|
|||||||
|
|
||||||
$namedArguments = array();
|
$namedArguments = array();
|
||||||
foreach ($arguments->getNamedArguments() as $key => $value) {
|
foreach ($arguments->getNamedArguments() as $key => $value) {
|
||||||
if (false === $value instanceof String) {
|
$namedArguments[$key] = $context->get($value);
|
||||||
$value = $context->get($value);
|
|
||||||
}
|
|
||||||
|
|
||||||
$namedArguments[$key] = $value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return array_merge($positionalArgs, $namedArguments);
|
return array_merge($positionalArgs, $namedArguments);
|
||||||
|
Loading…
Reference in New Issue
Block a user