From: Jonathan Ingram Date: Mon, 5 Dec 2011 01:45:22 +0000 (+1100) Subject: Removed trailing white spaces X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=989bb22c8f10b45d454847aa6fe80e62659965e8;p=web%2Fkonrad%2Ftwig.git Removed trailing white spaces --- diff --git a/lib/Twig/Node/Expression/Filter.php b/lib/Twig/Node/Expression/Filter.php index 7f3cc5b..0056240 100644 --- a/lib/Twig/Node/Expression/Filter.php +++ b/lib/Twig/Node/Expression/Filter.php @@ -19,22 +19,22 @@ class Twig_Node_Expression_Filter extends Twig_Node_Expression public function compile(Twig_Compiler $compiler) { $name = $this->getNode('filter')->getAttribute('value'); - + if (false === $filter = $compiler->getEnvironment()->getFilter($name)) { $alternativeFilters = array(); - + foreach ($compiler->getEnvironment()->getFilters() as $filterName => $filter) { if (false !== strpos($filterName, $name)) { $alternativeFilters[] = $filterName; } } - + $exceptionMessage = sprintf('The filter "%s" does not exist', $name); - + if (count($alternativeFilters)) { $exceptionMessage = sprintf('%s. Did you mean "%s"?', $exceptionMessage, implode('", "', $alternativeFilters)); } - + throw new Twig_Error_Syntax($exceptionMessage, $this->getLine()); }