mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-04-15 10:57:24 +03:00
fix php cs also fixes #105
This commit is contained in:
parent
704da1e222
commit
639c8e4b27
@ -51,7 +51,7 @@ class IfHelper implements Helper
|
||||
public function execute(Template $template, Context $context, $args, $source)
|
||||
{
|
||||
$parsedArgs = $template->parseArguments($args);
|
||||
$tmp = $context->get($parsedArgs[0]);
|
||||
$tmp = $context->get($parsedArgs[0]);
|
||||
|
||||
$context->push($context->last());
|
||||
if ($tmp) {
|
||||
|
@ -50,8 +50,8 @@ class UnlessHelper implements Helper
|
||||
*/
|
||||
public function execute(Template $template, Context $context, $args, $source)
|
||||
{
|
||||
$parsedArgs = $template->parseArguments($args);
|
||||
$tmp = $context->get($parsedArgs[0]);
|
||||
$parsedArgs = $template->parseArguments($args);
|
||||
$tmp = $context->get($parsedArgs[0]);
|
||||
|
||||
$context->push($context->last());
|
||||
|
||||
@ -65,7 +65,7 @@ class UnlessHelper implements Helper
|
||||
$template->setStopToken(false);
|
||||
$buffer = $template->render($context);
|
||||
}
|
||||
|
||||
|
||||
$context->pop();
|
||||
|
||||
return $buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user