From: Fabien Potencier Date: Thu, 10 Jun 2010 13:37:24 +0000 (+0200) Subject: fixed \ before classes X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=fa5740729078d9ab410e9db84bbe4bccb81e0501;p=konrad%2Ftwig.git fixed \ before classes --- diff --git a/lib/Twig/SimpleTokenParser.php b/lib/Twig/SimpleTokenParser.php index 64d4c86..0ae775b 100644 --- a/lib/Twig/SimpleTokenParser.php +++ b/lib/Twig/SimpleTokenParser.php @@ -47,34 +47,34 @@ abstract class Twig_SimpleTokenParser extends Twig_TokenParser protected function getAttribute($node, $attribute, $arguments = array(), $line = -1) { - return new \Twig_Node_Expression_GetAttr( - $node instanceof Twig_NodeInterface ? $node : new \Twig_Node_Expression_Name($node, $line), - $attribute instanceof Twig_NodeInterface ? $attribute : new \Twig_Node_Expression_Constant($attribute, $line), - $arguments instanceof Twig_NodeInterface ? $arguments : new \Twig_Node($arguments), - \Twig_Node_Expression_GetAttr::TYPE_ANY, + return new Twig_Node_Expression_GetAttr( + $node instanceof Twig_NodeInterface ? $node : new Twig_Node_Expression_Name($node, $line), + $attribute instanceof Twig_NodeInterface ? $attribute : new Twig_Node_Expression_Constant($attribute, $line), + $arguments instanceof Twig_NodeInterface ? $arguments : new Twig_Node($arguments), + Twig_Node_Expression_GetAttr::TYPE_ANY, $line ); } protected function markAsSafe(Twig_NodeInterface $node, $line = -1) { - return new \Twig_Node_Expression_Filter( + return new Twig_Node_Expression_Filter( $node, - new \Twig_Node(array(new \Twig_Node_Expression_Constant('safe', $line), new \Twig_Node())), + new Twig_Node(array(new Twig_Node_Expression_Constant('safe', $line), new Twig_Node())), $line ); } protected function output(Twig_NodeInterface $node, $line = -1) { - return new \Twig_Node_Print($node, $line); + return new Twig_Node_Print($node, $line); } protected function getNodeValues(array $values) { $nodes = array(); foreach ($values as $value) { - if ($value instanceof \Twig_NodeInterface) { + if ($value instanceof Twig_NodeInterface) { $nodes[] = $value; } }