From: Jonathan Ingram Date: Mon, 5 Dec 2011 01:43:41 +0000 (+1100) Subject: Removed trailing white spaces X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=c22c4c6bb8c5185d368f4b0aa98179c77a555c34;p=web%2Fkonrad%2Ftwig.git Removed trailing white spaces --- diff --git a/lib/Twig/Node/Expression/Function.php b/lib/Twig/Node/Expression/Function.php index b1fa858..e3f973f 100644 --- a/lib/Twig/Node/Expression/Function.php +++ b/lib/Twig/Node/Expression/Function.php @@ -18,24 +18,24 @@ class Twig_Node_Expression_Function extends Twig_Node_Expression public function compile(Twig_Compiler $compiler) { $name = $this->getAttribute('name'); - + $function = $compiler->getEnvironment()->getFunction($name); - + if (false === $function) { $alternativeFunctions = array(); - + foreach ($compiler->getEnvironment()->getFunctions() as $functionName => $function) { if (false !== strpos($functionName, $name)) { $alternativeFunctions[] = $functionName; } } - + $exceptionMessage = sprintf('The function "%s" does not exist', $name); - + if (count($alternativeFunctions)) { $exceptionMessage = sprintf('%s. Did you mean "%s"?', $exceptionMessage, implode('", "', $alternativeFunctions)); } - + throw new Twig_Error_Syntax($exceptionMessage, $this->getLine()); }