mirror of
https://github.com/Mibew/handlebars.php.git
synced 2025-05-03 10:33:08 +03:00
Fixed indentation and comments in the fix for #105
This commit is contained in:
parent
84b3031a44
commit
8eb24bd9e4
@ -51,7 +51,7 @@ class IfHelper implements Helper
|
|||||||
public function execute(Template $template, Context $context, $args, $source)
|
public function execute(Template $template, Context $context, $args, $source)
|
||||||
{
|
{
|
||||||
$parsedArgs = $template->parseArguments($args);
|
$parsedArgs = $template->parseArguments($args);
|
||||||
$tmp = $context->get($parsedArgs[0]);
|
$tmp = $context->get($parsedArgs[0]);
|
||||||
|
|
||||||
$context->push($context->last());
|
$context->push($context->last());
|
||||||
if ($tmp) {
|
if ($tmp) {
|
||||||
|
@ -1177,7 +1177,7 @@ class HandlebarsTest extends \PHPUnit_Framework_TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test integer literals in the context of if and unless helpers
|
* Test string literals in the context of if and unless helpers
|
||||||
*
|
*
|
||||||
* @param string $template template text
|
* @param string $template template text
|
||||||
* @param array $data context data
|
* @param array $data context data
|
||||||
|
Loading…
Reference in New Issue
Block a user