fixed coding standards
This commit is contained in:
parent
87143b3dd3
commit
6ea878242b
@ -81,8 +81,7 @@ class Loader implements \Twig_LoaderInterface
|
|||||||
public function isFresh($name, $time)
|
public function isFresh($name, $time)
|
||||||
{
|
{
|
||||||
if ($name instanceof Storage) {
|
if ($name instanceof Storage) {
|
||||||
if ($name instanceof FileStorage)
|
if ($name instanceof FileStorage) {
|
||||||
{
|
|
||||||
return filemtime((string) $name) < $time;
|
return filemtime((string) $name) < $time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,8 +31,7 @@ class RenderTokenParser extends \Twig_TokenParser
|
|||||||
$lineno = $token->getLine();
|
$lineno = $token->getLine();
|
||||||
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
||||||
|
|
||||||
if ($this->parser->getStream()->test(\Twig_Token::NAME_TYPE, 'with'))
|
if ($this->parser->getStream()->test(\Twig_Token::NAME_TYPE, 'with')) {
|
||||||
{
|
|
||||||
$this->parser->getStream()->expect(\Twig_Token::NAME_TYPE, 'with');
|
$this->parser->getStream()->expect(\Twig_Token::NAME_TYPE, 'with');
|
||||||
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,7 @@ class RouteTokenParser extends \Twig_TokenParser
|
|||||||
$lineno = $token->getLine();
|
$lineno = $token->getLine();
|
||||||
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
||||||
|
|
||||||
if ($this->parser->getStream()->test(\Twig_Token::NAME_TYPE, 'with'))
|
if ($this->parser->getStream()->test(\Twig_Token::NAME_TYPE, 'with')) {
|
||||||
{
|
|
||||||
$this->parser->getStream()->expect(\Twig_Token::NAME_TYPE, 'with');
|
$this->parser->getStream()->expect(\Twig_Token::NAME_TYPE, 'with');
|
||||||
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,7 @@ class StylesheetTokenParser extends \Twig_TokenParser
|
|||||||
$lineno = $token->getLine();
|
$lineno = $token->getLine();
|
||||||
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
||||||
|
|
||||||
if ($this->parser->getStream()->test(\Twig_Token::NAME_TYPE, 'with'))
|
if ($this->parser->getStream()->test(\Twig_Token::NAME_TYPE, 'with')) {
|
||||||
{
|
|
||||||
$this->parser->getStream()->expect(\Twig_Token::NAME_TYPE, 'with');
|
$this->parser->getStream()->expect(\Twig_Token::NAME_TYPE, 'with');
|
||||||
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user