From c22c4c6bb8c5185d368f4b0aa98179c77a555c34 Mon Sep 17 00:00:00 2001 From: Jonathan Ingram Date: Mon, 5 Dec 2011 12:43:41 +1100 Subject: [PATCH] Removed trailing white spaces --- lib/Twig/Node/Expression/Function.php | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) 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()); } -- 1.7.2.5