Skip to content

Commit

Permalink
fixed coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 20, 2010
1 parent 87143b3 commit 6ea8782
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/Symfony/Framework/TwigBundle/Loader/Loader.php
Expand Up @@ -81,8 +81,7 @@ public function getCacheKey($name)
public function isFresh($name, $time)
{
if ($name instanceof Storage) {
if ($name instanceof FileStorage)
{
if ($name instanceof FileStorage) {
return filemtime((string) $name) < $time;
}

Expand Down
Expand Up @@ -31,8 +31,7 @@ public function parse(\Twig_Token $token)
$lineno = $token->getLine();
$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');
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
}
Expand Down
Expand Up @@ -31,8 +31,7 @@ public function parse(\Twig_Token $token)
$lineno = $token->getLine();
$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');
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
}
Expand Down
Expand Up @@ -31,8 +31,7 @@ public function parse(\Twig_Token $token)
$lineno = $token->getLine();
$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');
$nodes[] = $this->parser->getExpressionParser()->parseExpression();
}
Expand Down

0 comments on commit 6ea8782

Please sign in to comment.