From 6ea878242bd447d5f9ade3f1f22702b64ea22a16 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 20 May 2010 19:29:12 +0200 Subject: [PATCH] fixed coding standards --- src/Symfony/Framework/TwigBundle/Loader/Loader.php | 3 +-- .../Framework/TwigBundle/TokenParser/RenderTokenParser.php | 3 +-- .../Framework/TwigBundle/TokenParser/RouteTokenParser.php | 3 +-- .../Framework/TwigBundle/TokenParser/StylesheetTokenParser.php | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Symfony/Framework/TwigBundle/Loader/Loader.php b/src/Symfony/Framework/TwigBundle/Loader/Loader.php index 5ecd9fcdfe..0b4cc4f4a4 100644 --- a/src/Symfony/Framework/TwigBundle/Loader/Loader.php +++ b/src/Symfony/Framework/TwigBundle/Loader/Loader.php @@ -81,8 +81,7 @@ class Loader implements \Twig_LoaderInterface public function isFresh($name, $time) { if ($name instanceof Storage) { - if ($name instanceof FileStorage) - { + if ($name instanceof FileStorage) { return filemtime((string) $name) < $time; } diff --git a/src/Symfony/Framework/TwigBundle/TokenParser/RenderTokenParser.php b/src/Symfony/Framework/TwigBundle/TokenParser/RenderTokenParser.php index 31f34ccf27..ae685be452 100644 --- a/src/Symfony/Framework/TwigBundle/TokenParser/RenderTokenParser.php +++ b/src/Symfony/Framework/TwigBundle/TokenParser/RenderTokenParser.php @@ -31,8 +31,7 @@ class RenderTokenParser extends \Twig_TokenParser $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(); } diff --git a/src/Symfony/Framework/TwigBundle/TokenParser/RouteTokenParser.php b/src/Symfony/Framework/TwigBundle/TokenParser/RouteTokenParser.php index 9696446ee2..3c0b8c989e 100644 --- a/src/Symfony/Framework/TwigBundle/TokenParser/RouteTokenParser.php +++ b/src/Symfony/Framework/TwigBundle/TokenParser/RouteTokenParser.php @@ -31,8 +31,7 @@ class RouteTokenParser extends \Twig_TokenParser $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(); } diff --git a/src/Symfony/Framework/TwigBundle/TokenParser/StylesheetTokenParser.php b/src/Symfony/Framework/TwigBundle/TokenParser/StylesheetTokenParser.php index a3ae0891d4..0af774a7a5 100644 --- a/src/Symfony/Framework/TwigBundle/TokenParser/StylesheetTokenParser.php +++ b/src/Symfony/Framework/TwigBundle/TokenParser/StylesheetTokenParser.php @@ -31,8 +31,7 @@ class StylesheetTokenParser extends \Twig_TokenParser $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(); }