Skip to content
Browse files

Removed trailing white spaces

  • Loading branch information...
1 parent 2c79f49 commit c22c4c6bb8c5185d368f4b0aa98179c77a555c34 @jonathaningram jonathaningram committed with Dec 5, 2011
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/Twig/Node/Expression/Function.php
View
12 lib/Twig/Node/Expression/Function.php
@@ -18,24 +18,24 @@ public function __construct($name, Twig_NodeInterface $arguments, $lineno)
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());
}

0 comments on commit c22c4c6

Please sign in to comment.
Something went wrong with that request. Please try again.