Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed trailing white spaces

  • Loading branch information...
commit 989bb22c8f10b45d454847aa6fe80e62659965e8 1 parent f880bab
@jonathaningram jonathaningram authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/Twig/Node/Expression/Filter.php
View
10 lib/Twig/Node/Expression/Filter.php
@@ -19,22 +19,22 @@ public function __construct(Twig_NodeInterface $node, Twig_Node_Expression_Const
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());
}
Please sign in to comment.
Something went wrong with that request. Please try again.