From: Fabien Potencier Date: Tue, 28 Dec 2010 18:50:01 +0000 (+0100) Subject: fixed CS X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5c0d907e08e7612d8ba78639ee09f663ef100aea;p=web%2Fkonrad%2Ftwig.git fixed CS --- diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index 79ccfe1..a1aaea1 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -482,7 +482,7 @@ class Twig_Environment if (isset($this->functions[$name])) { return $this->functions[$name]; } - + return null; } diff --git a/lib/Twig/Extension.php b/lib/Twig/Extension.php index 7690984..8327c43 100644 --- a/lib/Twig/Extension.php +++ b/lib/Twig/Extension.php @@ -60,7 +60,7 @@ abstract class Twig_Extension implements Twig_ExtensionInterface { return array(); } - + /** * Returns a list of functions to add to the existing list. * diff --git a/lib/Twig/Node/Expression/AssignLocalName.php b/lib/Twig/Node/Expression/AssignLocalName.php index ff9f6a1..68868a8 100644 --- a/lib/Twig/Node/Expression/AssignLocalName.php +++ b/lib/Twig/Node/Expression/AssignLocalName.php @@ -12,7 +12,7 @@ /** * Represents a local private variable. - * + * * Such variables are not visible from templates. * * @package twig diff --git a/lib/Twig/Node/Expression/LocalName.php b/lib/Twig/Node/Expression/LocalName.php index 0601063..aac10bb 100644 --- a/lib/Twig/Node/Expression/LocalName.php +++ b/lib/Twig/Node/Expression/LocalName.php @@ -26,7 +26,7 @@ class Twig_Node_Expression_LocalName extends Twig_Node_Expression { if (null === $name) { $uniq = self::$counter++; - $name = '__' . $uniq; + $name = '__'.$uniq; } parent::__construct(array(), array('name' => $name), $lineno); @@ -34,7 +34,7 @@ class Twig_Node_Expression_LocalName extends Twig_Node_Expression public function compile($compiler) { - $compiler->raw('$' . $this->getAttribute('name')); + $compiler->raw('$'.$this->getAttribute('name')); } } diff --git a/lib/Twig/TokenParser/From.php b/lib/Twig/TokenParser/From.php index f71027a..788239b 100644 --- a/lib/Twig/TokenParser/From.php +++ b/lib/Twig/TokenParser/From.php @@ -47,8 +47,7 @@ class Twig_TokenParser_From extends Twig_TokenParser $node = new Twig_Node_From($macro, $token->getLine(), $this->getTag()); - foreach($targets as $name => $alias) - { + foreach($targets as $name => $alias) { $this->parser->addImportedFunction($alias, $name, $node->getNode('var')); }