[FOLLOWUP][TASK] Move arguments to initializeArguments() in DebugVH 96/49096/2
authorNicole Cordes <typo3@cordes.co>
Tue, 19 Jul 2016 11:49:33 +0000 (13:49 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 19 Jul 2016 17:19:52 +0000 (19:19 +0200)
This patch removes unnecessary variable initializations.

Resolves: #77141
Releases: master
Change-Id: Ic113fd3a5410a2e5dd23fa0b712c3f95169a04a3
Reviewed-on: https://review.typo3.org/49096
Reviewed-by: Markus Friedrich <markus.friedrich@dkd.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Jan Haffner <info@jan-haffner.de>
Tested-by: Jan Haffner <info@jan-haffner.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/fluid/Classes/ViewHelpers/DebugViewHelper.php

index 53c09e6..507e239 100644 (file)
@@ -56,7 +56,6 @@ class DebugViewHelper extends AbstractViewHelper
     /**
      * Initialize arguments.
      *
-     * @api
      * @throws \TYPO3Fluid\Fluid\Core\ViewHelper\Exception
      */
     public function initializeArguments()
@@ -78,23 +77,8 @@ class DebugViewHelper extends AbstractViewHelper
      */
     public function render()
     {
-        $title = $this->arguments['title'];
-        $maxDepth = $this->arguments['maxDepth'];
-        $plainText = $this->arguments['plainText'];
-        $ansiColors = $this->arguments['ansiColors'];
-        $inline = $this->arguments['inline'];
-        $blacklistedClassNames = $this->arguments['blacklistedClassNames'];
-        $blacklistedPropertyNames = $this->arguments['blacklistedPropertyNames'];
         return static::renderStatic(
-            array(
-                'title' => $title,
-                'maxDepth' => $maxDepth,
-                'plainText' => $plainText,
-                'ansiColors' => $ansiColors,
-                'inline' => $inline,
-                'blacklistedClassNames' => $blacklistedClassNames,
-                'blacklistedPropertyNames' => $blacklistedPropertyNames
-            ),
+            $this->arguments,
             $this->buildRenderChildrenClosure(),
             $this->renderingContext
         );