[BUGFIX] Optimize implementation of CompilableInterface
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Classes / ViewHelpers / Format / HtmlspecialcharsViewHelper.php
index 9903861..9e191be 100644 (file)
@@ -58,31 +58,8 @@ class HtmlspecialcharsViewHelper extends AbstractEncodingViewHelper implements C
         * @api
         */
        public function render($value = NULL, $keepQuotes = FALSE, $encoding = NULL, $doubleEncode = TRUE) {
-               return self::renderStatic(
-                       array(
-                               'value' => $value,
-                               'keepQuotes' => $keepQuotes,
-                               'encoding' => $encoding,
-                               'doubleEncode' => $doubleEncode
-                       ),
-                       $this->buildRenderChildrenClosure(),
-                       $this->renderingContext
-               );
-       }
-
-       /**
-        * @param array $arguments
-        * @param callable $renderChildrenClosure
-        * @param RenderingContextInterface $renderingContext
-        * @return string
-        */
-       static public function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) {
-               $value = $arguments['value'];
-               $keepQuotes = $arguments['keepQuotes'];
-               $encoding = $arguments['encoding'];
-               $doubleEncode = $arguments['doubleEncode'];
                if ($value === NULL) {
-                       $value = $renderChildrenClosure();
+                       $value = $this->renderChildren();
                }
                if (!is_string($value)) {
                        return $value;
@@ -113,4 +90,4 @@ class HtmlspecialcharsViewHelper extends AbstractEncodingViewHelper implements C
                                $valueVariableName, $valueVariableName, $valueVariableName, $argumentsVariableName, $argumentsVariableName, $argumentsVariableName, $argumentsVariableName);
        }
 
-}
\ No newline at end of file
+}