[TASK] Change InfoModule member function access types 51/56651/3
authorJan Stockfisch <jan.stockfisch@googlemail.com>
Fri, 13 Apr 2018 15:18:02 +0000 (17:18 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Sun, 15 Apr 2018 08:36:33 +0000 (10:36 +0200)
The changed methods are used in getContent(). While overriding
getContent there is no need for copying the changed methods anymore.

Resolves: #84716
Releases: master
Change-Id: I42bafea9292ab54718e166eec432a417c0213db3
Reviewed-on: https://review.typo3.org/56651
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/adminpanel/Classes/Modules/InfoModule.php

index 82ba912..3cac594 100644 (file)
@@ -99,7 +99,7 @@ class InfoModule extends AbstractModule
      *
      * @return array
      */
-    private function collectImagesOnPage(): array
+    protected function collectImagesOnPage(): array
     {
         $imagesOnPage = [
             'files' => [],
@@ -135,7 +135,7 @@ class InfoModule extends AbstractModule
      * Gets the document size from the current page in a human readable format
      * @return string
      */
-    private function collectDocumentSize(): string
+    protected function collectDocumentSize(): string
     {
         $documentSize = 0;
         if ($this->isNoCacheEnabled() === true) {
@@ -148,7 +148,7 @@ class InfoModule extends AbstractModule
     /**
      * @return bool
      */
-    private function isNoCacheEnabled(): bool
+    protected function isNoCacheEnabled(): bool
     {
         return (bool)$this->getTypoScriptFrontendController()->no_cache;
     }