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