mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +00:00
fixed CS
This commit is contained in:
@@ -482,7 +482,7 @@ class Twig_Environment
|
||||
if (isset($this->functions[$name])) {
|
||||
return $this->functions[$name];
|
||||
}
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ abstract class Twig_Extension implements Twig_ExtensionInterface
|
||||
{
|
||||
return array();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns a list of functions to add to the existing list.
|
||||
*
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
/**
|
||||
* Represents a local private variable.
|
||||
*
|
||||
*
|
||||
* Such variables are not visible from templates.
|
||||
*
|
||||
* @package twig
|
||||
|
||||
@@ -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'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user