[TASK] Add more fixers for php-cs-fixer
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Classes / ViewHelpers / Be / AbstractBackendViewHelper.php
index d72713a..d5e7ad6 100644 (file)
@@ -33,12 +33,12 @@ abstract class AbstractBackendViewHelper extends AbstractViewHelper
      */
     public function getDocInstance()
     {
      */
     public function getDocInstance()
     {
-        if ($this->viewHelperVariableContainer->exists(AbstractBackendViewHelper::class, 'DocumentTemplate')) {
-            $doc = $this->viewHelperVariableContainer->get(AbstractBackendViewHelper::class, 'DocumentTemplate');
+        if ($this->viewHelperVariableContainer->exists(self::class, 'DocumentTemplate')) {
+            $doc = $this->viewHelperVariableContainer->get(self::class, 'DocumentTemplate');
         } else {
             /** @var $doc DocumentTemplate */
             $doc = GeneralUtility::makeInstance(DocumentTemplate::class);
         } else {
             /** @var $doc DocumentTemplate */
             $doc = GeneralUtility::makeInstance(DocumentTemplate::class);
-            $this->viewHelperVariableContainer->add(AbstractBackendViewHelper::class, 'DocumentTemplate', $doc);
+            $this->viewHelperVariableContainer->add(self::class, 'DocumentTemplate', $doc);
         }
 
         return $doc;
         }
 
         return $doc;
@@ -52,12 +52,12 @@ abstract class AbstractBackendViewHelper extends AbstractViewHelper
      */
     public function getPageRenderer()
     {
      */
     public function getPageRenderer()
     {
-        if ($this->viewHelperVariableContainer->exists(AbstractBackendViewHelper::class, 'PageRenderer')) {
-            $pageRenderer = $this->viewHelperVariableContainer->get(AbstractBackendViewHelper::class, 'PageRenderer');
+        if ($this->viewHelperVariableContainer->exists(self::class, 'PageRenderer')) {
+            $pageRenderer = $this->viewHelperVariableContainer->get(self::class, 'PageRenderer');
         } else {
             /** @var $doc DocumentTemplate */
             $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
         } else {
             /** @var $doc DocumentTemplate */
             $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class);
-            $this->viewHelperVariableContainer->add(AbstractBackendViewHelper::class, 'PageRenderer', $pageRenderer);
+            $this->viewHelperVariableContainer->add(self::class, 'PageRenderer', $pageRenderer);
         }
 
         return $pageRenderer;
         }
 
         return $pageRenderer;