Explorar o código

fixed coding standards

Fabien Potencier %!s(int64=15) %!d(string=hai) anos
pai
achega
6ea878242b

+ 1 - 2
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;
             }
 

+ 1 - 2
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();
         }

+ 1 - 2
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();
         }

+ 1 - 2
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();
         }