[TASK] Apply rector set php56 48/62448/10
authorAlexander Schnitzler <git@alexanderschnitzler.de>
Sun, 1 Dec 2019 14:16:28 +0000 (15:16 +0100)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 18 Dec 2019 13:29:52 +0000 (14:29 +0100)
    php bin/rector process

Releases: master
Resolves: #89807
Change-Id: I667199693dc519d0353d8e10b40d86faf1cf946a
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62448
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Jan Stockfisch <typo3@jan-stockfisch.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Jan Stockfisch <typo3@jan-stockfisch.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
99 files changed:
rector.yml
typo3/sysext/adminpanel/Classes/Modules/Debug/PageTitle.php
typo3/sysext/adminpanel/Classes/Modules/PreviewModule.php
typo3/sysext/backend/Classes/Backend/Shortcut/ShortcutRepository.php
typo3/sysext/backend/Classes/Controller/ContentElement/ElementHistoryController.php
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/Controller/LinkBrowserController.php
typo3/sysext/backend/Classes/Controller/NewRecordController.php
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php
typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php
typo3/sysext/backend/Classes/Form/Element/InputColorPickerElement.php
typo3/sysext/backend/Classes/Form/Element/SelectMultipleSideBySideElement.php
typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRecordTitle.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaTypesShowitem.php
typo3/sysext/backend/Classes/History/RecordHistory.php
typo3/sysext/backend/Classes/Provider/PageTsBackendLayoutDataProvider.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseRowInitializeNewTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineConfigurationTest.php
typo3/sysext/belog/Classes/Module/BackendLogModuleBootstrap.php
typo3/sysext/core/Classes/Command/SiteListCommand.php
typo3/sysext/core/Classes/Configuration/FlexForm/FlexFormTools.php
typo3/sysext/core/Classes/Configuration/SiteConfiguration.php
typo3/sysext/core/Classes/Core/Bootstrap.php
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php
typo3/sysext/core/Classes/DataHandling/Model/RecordStateFactory.php
typo3/sysext/core/Classes/Database/QueryGenerator.php
typo3/sysext/core/Classes/Database/QueryView.php
typo3/sysext/core/Classes/Database/SoftReferenceIndex.php
typo3/sysext/core/Classes/Domain/Repository/PageRepository.php
typo3/sysext/core/Classes/Error/ErrorHandler.php
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
typo3/sysext/core/Classes/Imaging/ImageManipulation/CropVariant.php
typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php
typo3/sysext/core/Classes/Mail/Rfc822AddressesParser.php
typo3/sysext/core/Classes/Resource/Search/QueryRestrictions/FolderRestriction.php
typo3/sysext/core/Classes/TypoScript/TemplateService.php
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Classes/Utility/MathUtility.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/DefaultRestrictionContainerTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/DefaultTcaSchemaSqliteTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/DefaultTcaSchemaTest.php
typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbQueryParser.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Controller/BlogController.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Controller/ContentController.php
typo3/sysext/extbase/Tests/Functional/Mvc/Validation/ActionControllerValidationTest.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/DataMapFactoryTest.php
typo3/sysext/felogin/Classes/Controller/FrontendLoginController.php
typo3/sysext/felogin/Classes/Redirect/RedirectModeHandler.php
typo3/sysext/fluid/Classes/ViewHelpers/Format/BytesViewHelper.php
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/BytesViewHelperTest.php
typo3/sysext/form/Classes/Controller/FormFrontendController.php
typo3/sysext/form/Classes/Domain/Configuration/FrameworkConfiguration/Extractors/FormElement/PropertyPathsExtractor.php
typo3/sysext/form/Classes/Domain/Finishers/EmailFinisher.php
typo3/sysext/form/Classes/Domain/Finishers/SaveToDatabaseFinisher.php
typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php
typo3/sysext/frontend/Classes/Authentication/FrontendUserAuthentication.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php
typo3/sysext/frontend/Tests/Functional/Rendering/TitleTagRenderingTest.php
typo3/sysext/frontend/Tests/Functional/Rendering/UriPrefixRenderingTest.php
typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php
typo3/sysext/impexp/Tests/Functional/AbstractImportExportTestCase.php
typo3/sysext/indexed_search/Classes/Controller/SearchController.php
typo3/sysext/indexed_search/Classes/FileContentParser.php
typo3/sysext/indexed_search/Classes/Hook/CrawlerHook.php
typo3/sysext/indexed_search/Classes/Indexer.php
typo3/sysext/indexed_search/Classes/Utility/DoubleMetaPhoneUtility.php
typo3/sysext/install/Classes/Controller/UpgradeController.php
typo3/sysext/install/Classes/Service/UpgradeWizardsService.php
typo3/sysext/install/Classes/UpgradeAnalysis/DocumentationFile.php
typo3/sysext/linkvalidator/Classes/Linktype/InternalLinktype.php
typo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php
typo3/sysext/recordlist/Classes/Browser/FileBrowser.php
typo3/sysext/recycler/Classes/Task/CleanerFieldProvider.php
typo3/sysext/redirects/Classes/Service/SlugService.php
typo3/sysext/redirects/Tests/Unit/Service/RedirectServiceTest.php
typo3/sysext/reports/Classes/Report/Status/ConfigurationStatus.php
typo3/sysext/reports/Classes/Report/Status/FalStatus.php
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
typo3/sysext/scheduler/Classes/Task/CachingFrameworkGarbageCollectionAdditionalFieldProvider.php
typo3/sysext/scheduler/Classes/Task/FileStorageExtractionAdditionalFieldProvider.php
typo3/sysext/scheduler/Classes/Task/FileStorageIndexingAdditionalFieldProvider.php
typo3/sysext/scheduler/Classes/Task/OptimizeDatabaseTableAdditionalFieldProvider.php
typo3/sysext/scheduler/Classes/Task/RecyclerGarbageCollectionAdditionalFieldProvider.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php
typo3/sysext/workspaces/Classes/Controller/AjaxController.php
typo3/sysext/workspaces/Classes/Controller/PreviewController.php
typo3/sysext/workspaces/Classes/Controller/Remote/ActionHandler.php
typo3/sysext/workspaces/Classes/Preview/PreviewUriBuilder.php

index 61a2aa1..a932b80 100644 (file)
@@ -9,8 +9,7 @@ parameters:
       - 'typo3/sysext/*/Configuration/'
       - 'typo3/sysext/core/Tests/Unit/Configuration/TypoScript/ConditionMatching/Fixtures/ConditionMatcherUserFuncs.php'
       - 'typo3/sysext/*/Tests/Unit/Acceptance'
-      - 'typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/ClassNameMatcherFixture.php'
-      - 'typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/PropertyExistsStaticMatcherFixture.php'
+      - 'typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/'
       - 'ClassAliasMap.php'
       - 'class.ext_update.php'
   exclude_rectors:
@@ -19,3 +18,4 @@ parameters:
     - 'php53'
     - 'php54'
     - 'php55'
+    - 'php56'
index 8e9dd6d..bf7060a 100644 (file)
@@ -65,6 +65,9 @@ class PageTitle extends AbstractSubModule implements DataProviderInterface
      */
     public function getDataToStore(ServerRequestInterface $request): ModuleData
     {
+        $data = [
+            'cacheEnabled' => true
+        ];
         if ($this->isNoCacheEnabled()) {
             $data = [
                 'orderedProviders' => [],
@@ -85,8 +88,6 @@ class PageTitle extends AbstractSubModule implements DataProviderInterface
                     }
                 }
             }
-        } else {
-            $data['cacheEnabled'] = true;
         }
         return new ModuleData($data);
     }
index 2b78bfd..a41a8a1 100644 (file)
@@ -217,6 +217,7 @@ class PreviewModule extends AbstractModule implements RequestEnricherInterface,
      */
     protected function parseDate(string $simulateDate): ?int
     {
+        $simTime = null;
         $date = false;
         try {
             $date = new \DateTime($simulateDate);
index ca87b67..35b28ba 100644 (file)
@@ -601,6 +601,7 @@ class ShortcutRepository
      */
     protected function getShortcutIcon(array $row, array $shortcut): string
     {
+        $selectFields = [];
         switch ($row['module_name']) {
             case 'xMOD_alt_doc.php':
                 $table = $shortcut['table'];
index e17d60f..427a297 100644 (file)
@@ -220,6 +220,7 @@ class ElementHistoryController
      */
     protected function prepareDisplaySettings(ServerRequestInterface $request)
     {
+        $selector = [];
         // Get current selection from UC, merge data, write it back to UC
         $currentSelection = is_array($this->getBackendUser()->uc['moduleData']['history'])
             ? $this->getBackendUser()->uc['moduleData']['history']
index f26310c..83ddd7d 100644 (file)
@@ -467,6 +467,8 @@ class NewContentElementController
      */
     protected function removeInvalidWizardItems(array &$wizardItems): void
     {
+        $removeItems = [];
+        $keepItems = [];
         // Get TCEFORM from TSconfig of current page
         $row = ['pid' => $this->id];
         $TCEFORM_TSconfig = BackendUtility::getTCEFORM_TSconfig('tt_content', $row);
index bea6ac2..045b8b0 100644 (file)
@@ -2403,6 +2403,7 @@ class EditDocumentController
      */
     protected function closeDocument($mode, ServerRequestInterface $request): ?ResponseInterface
     {
+        $setupArr = [];
         $mode = (int)$mode;
         // If current document is found in docHandler,
         // then unset it, possibly unset it ALL and finally, write it to the session data
index f6c87ae..4c1973b 100644 (file)
@@ -132,6 +132,7 @@ class LinkBrowserController extends AbstractLinkBrowserController
      */
     protected function getBodyTagAttributes()
     {
+        $formEngineParameters = [];
         $parameters = parent::getBodyTagAttributes();
 
         $formEngineParameters['fieldChangeFunc'] = $this->parameters['fieldChangeFunc'];
index 98f91b2..e79dcf5 100644 (file)
@@ -328,6 +328,7 @@ class NewRecordController
      */
     protected function getButtons(): void
     {
+        $buttons = [];
         $lang = $this->getLanguageService();
         $buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar();
         // Regular new element:
index aadefce..1eec0ac 100644 (file)
@@ -1026,6 +1026,7 @@ class PageLayoutController
      */
     protected function getNumberOfHiddenElements(array $contentConfig = []): int
     {
+        $andWhere = [];
         $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tt_content');
         $queryBuilder->getRestrictions()
             ->removeAll()
index a717cf9..51415c1 100644 (file)
@@ -596,6 +596,7 @@ class InlineControlContainer extends AbstractContainer
      */
     protected function renderPossibleRecordsSelectorTypeSelect(array $config, array $uniqueIds)
     {
+        $onChange = '';
         $possibleRecords = $config['selectorOrUniquePossibleRecords'];
         $nameObject = $this->inlineStackProcessor->getCurrentStructureDomObjectIdPrefix($this->data['inlineFirstPid']);
         // Create option tags:
index b699985..1e35860 100644 (file)
@@ -328,6 +328,7 @@ class ImageManipulationElement extends AbstractFormElement
      */
     protected function getWizardPayload(array $cropVariants, File $image): array
     {
+        $uriArguments = [];
         $arguments = [
             'cropVariants' => $cropVariants,
             'image' => $image->getUid(),
index 153ecf5..de70573 100644 (file)
@@ -65,6 +65,7 @@ class InputColorPickerElement extends AbstractFormElement
      */
     public function render()
     {
+        $evalData = '';
         $languageService = $this->getLanguageService();
 
         $table = $this->data['tableName'];
@@ -115,6 +116,7 @@ class InputColorPickerElement extends AbstractFormElement
                         $itemValue = $evalObj->deevaluateFieldValue($_params);
                     }
                     if (method_exists($evalObj, 'returnFieldJS')) {
+                        // @todo: variable $evalData must be replaced with $func
                         $resultArray['additionalJavaScriptPost'][] = 'TBE_EDITOR.customEvalFunctions[' . GeneralUtility::quoteJSvalue($evalData) . '] = function(value) {' . $evalObj->returnFieldJS() . '};';
                     }
                 }
index 888aa69..cd45621 100644 (file)
@@ -91,6 +91,7 @@ class SelectMultipleSideBySideElement extends AbstractFormElement
      */
     public function render()
     {
+        $filterTextfield = [];
         $languageService = $this->getLanguageService();
         $resultArray = $this->initializeResultArray();
 
index 90bc263..e44e2f1 100644 (file)
@@ -31,6 +31,7 @@ class SelectIcons extends AbstractNode
      */
     public function render(): array
     {
+        $selectIcons = [];
         $result = $this->initializeResultArray();
 
         $parameterArray = $this->data['parameterArray'];
index 6b2b8ca..d43067b 100644 (file)
@@ -466,6 +466,8 @@ abstract class AbstractItemProvider
      */
     protected function addItemsFromForeignTable(array $result, $fieldName, array $items)
     {
+        $databaseError = null;
+        $queryResult = null;
         // Guard
         if (empty($result['processedTca']['columns'][$fieldName]['config']['foreign_table'])
             || !is_string($result['processedTca']['columns'][$fieldName]['config']['foreign_table'])
@@ -1303,9 +1305,6 @@ abstract class AbstractItemProvider
         $languageService = $this->getLanguageService();
 
         foreach ($itemArray as $key => $item) {
-            if (!isset($dynamicItems[$key])) {
-                $staticValues[$item[1]] = $item;
-            }
             if (isset($result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['altLabels.'][$item[1]])
                 && !empty($result['pageTsConfig']['TCEFORM.'][$table . '.'][$fieldName . '.']['altLabels.'][$item[1]])
             ) {
index 09e1601..68530fb 100644 (file)
@@ -288,7 +288,7 @@ class TcaRecordTitle implements FormDataProviderInterface
         } else {
             $labelParts = [];
             foreach ($fieldConfig['items'] as $key => $val) {
-                if ($value & pow(2, $key)) {
+                if ($value & 2 ** $key) {
                     $labelParts[] = $val[0];
                 }
             }
index 4ff4294..b9af592 100644 (file)
@@ -190,8 +190,8 @@ class TcaTypesShowitem implements FormDataProviderInterface
             $bitKey = (int)$bitKey;
             $isNegative = (bool)($bitKey < 0);
             $bit = abs($bitKey);
-            if (!$isNegative && ($bitmaskValue & pow(2, $bit))
-                || $isNegative && !($bitmaskValue & pow(2, $bit))
+            if (!$isNegative && ($bitmaskValue & 2 ** $bit)
+                || $isNegative && !($bitmaskValue & 2 ** $bit)
             ) {
                 $removeListArray = array_merge($removeListArray, GeneralUtility::trimExplode(',', $excludeList, true));
             }
index 2ee02db..2b463a2 100644 (file)
@@ -493,6 +493,7 @@ class RecordHistory
      */
     protected function hasPageAccess($table, $uid): bool
     {
+        $pageRecord = null;
         $uid = (int)$uid;
 
         if ($table === 'pages') {
index e3adeda..9ff01b4 100644 (file)
@@ -170,6 +170,7 @@ class PageTsBackendLayoutDataProvider implements DataProviderInterface
      */
     protected function generateBackendLayoutFromTsConfig($identifier, $data)
     {
+        $backendLayout = [];
         if (!empty($data['config.']['backend_layout.']) && is_array($data['config.']['backend_layout.'])) {
             $backendLayout['uid'] = substr($identifier, 0, -1);
             $backendLayout['title'] = $data['title'] ?: $backendLayout['uid'];
index 62b8b46..bd1f9ba 100644 (file)
@@ -1506,6 +1506,7 @@ class BackendUtility
      */
     public static function getRecordTitle($table, $row, $prep = false, $forceResult = true)
     {
+        $params = [];
         $recordTitle = '';
         if (isset($GLOBALS['TCA'][$table]) && is_array($GLOBALS['TCA'][$table])) {
             // If configured, call userFunc
@@ -1931,7 +1932,7 @@ class BackendUtility
                 } else {
                     $lA = [];
                     foreach ($theColConf['items'] as $key => $val) {
-                        if ($value & pow(2, $key)) {
+                        if ($value & 2 ** $key) {
                             $lA[] = $lang->sL($val[0]);
                         }
                     }
index 893235e..0fcb379 100644 (file)
@@ -626,6 +626,7 @@ class DatabaseRowInitializeNewTest extends UnitTestCase
             'inlineChildChildUid' => null,
             'isInlineChild' => false,
         ];
+        $expected = [];
         $expected['pid'] = 23;
         $result = (new DatabaseRowInitializeNew)->addData($input);
         self::assertSame($expected, $result['databaseRow']);
index 0369460..81a7d29 100644 (file)
@@ -86,6 +86,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
                 ],
             ],
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         self::assertEquals($expected, (new TcaInlineConfiguration)->addData($input));
     }
@@ -108,6 +109,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
                 ],
             ],
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['minitems'] = 23;
         self::assertEquals($expected, (new TcaInlineConfiguration)->addData($input));
@@ -131,6 +133,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
                 ],
             ],
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['minitems'] = 0;
         self::assertEquals($expected, (new TcaInlineConfiguration)->addData($input));
@@ -154,6 +157,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
                 ],
             ],
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['maxitems'] = 23;
         self::assertEquals($expected, (new TcaInlineConfiguration)->addData($input));
@@ -177,6 +181,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
                 ],
             ],
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['maxitems'] = 1;
         self::assertEquals($expected, (new TcaInlineConfiguration)->addData($input));
@@ -205,6 +210,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
                 ],
             ],
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['appearance']['levelLinksPosition'] = 'both';
         $expected['processedTca']['columns']['aField']['config']['appearance']['enabledControls']['dragdrop'] = false;
@@ -236,6 +242,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
             'type' => 'select',
             'foreign_table' => 'anotherForeignTableName',
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['foreign_selector'] = 'aField';
         $expected['processedTca']['columns']['aField']['config']['selectorOrUniqueConfiguration'] = [
@@ -278,6 +285,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
             'type' => 'select',
             'foreign_table' => 'anotherForeignTableName',
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['foreign_selector'] = 'aField';
         $expected['processedTca']['columns']['aField']['config']['selectorOrUniqueConfiguration'] = [
@@ -315,6 +323,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
                 ],
             ],
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['appearance']['showPossibleLocalizationRecords'] = true;
         self::assertEquals($expected, (new TcaInlineConfiguration)->addData($input));
@@ -340,6 +349,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
                 ],
             ],
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['appearance']['showPossibleLocalizationRecords'] = false;
         self::assertEquals($expected, (new TcaInlineConfiguration)->addData($input));
@@ -365,6 +375,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
                 ],
             ],
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['appearance']['showRemovedLocalizationRecords'] = true;
         self::assertEquals($expected, (new TcaInlineConfiguration)->addData($input));
@@ -390,6 +401,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
                 ],
             ],
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['appearance']['showRemovedLocalizationRecords'] = false;
         self::assertEquals($expected, (new TcaInlineConfiguration)->addData($input));
@@ -600,6 +612,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
             'type' => 'select',
             'foreign_table' => 'anotherForeignTableName',
         ];
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['foreign_unique'] = 'aField';
         $expected['processedTca']['columns']['aField']['config']['selectorOrUniqueConfiguration'] = [
@@ -655,6 +668,7 @@ class TcaInlineConfigurationTest extends UnitTestCase
             'aGivenSetting' => 'aGivenValue',
         ];
 
+        $expected = [];
         $expected['processedTca']['columns']['aField']['config'] = $this->defaultConfig;
         $expected['processedTca']['columns']['aField']['config']['appearance']['levelLinksPosition'] = 'none';
         $expected['processedTca']['columns']['aField']['config']['foreign_selector'] = 'aField';
index 54b08e9..d960a7e 100644 (file)
@@ -36,6 +36,7 @@ class BackendLogModuleBootstrap
      */
     public function main()
     {
+        $options = [];
         $_GET['tx_belog_system_beloglog']['pageId'] = GeneralUtility::_GP('id');
         $_GET['tx_belog_system_beloglog']['layout'] = 'Plain';
         $serverRequest = $GLOBALS['TYPO3_REQUEST'] ?? null;
index 9b33d91..6b2205b 100644 (file)
@@ -43,6 +43,8 @@ class SiteListCommand extends Command
      */
     protected function execute(InputInterface $input, OutputInterface $output)
     {
+        $locales = [];
+        $status = [];
         $io = new SymfonyStyle($input, $output);
         $siteFinder = new SiteFinder();
         $sites = $siteFinder->getAllSites();
index f891d3a..de8be98 100644 (file)
@@ -766,6 +766,7 @@ class FlexFormTools
      */
     public function traverseFlexFormXMLData($table, $field, $row, $callBackObj, $callBackMethod_value)
     {
+        $PA = [];
         if (!is_array($GLOBALS['TCA'][$table]) || !is_array($GLOBALS['TCA'][$table]['columns'][$field])) {
             return 'TCA table/field was not defined.';
         }
index 26d16a7..4e630ce 100644 (file)
@@ -145,6 +145,7 @@ class SiteConfiguration implements SingletonInterface
      */
     protected function getAllSiteConfigurationFromFiles(bool $useCache = true): array
     {
+        $siteConfiguration = null;
         // Check if the data is already cached
         if ($useCache && $siteConfiguration = $this->getCache()->get($this->cacheIdentifier)) {
             // Due to the nature of PhpFrontend, the `<?php` and `#` wraps have to be removed
index f896968..9fcd93e 100644 (file)
@@ -363,6 +363,8 @@ class Bootstrap
      */
     protected static function initializeErrorHandling()
     {
+        $displayErrors = 0;
+        $exceptionHandlerClassName = null;
         $productionExceptionHandlerClassName = $GLOBALS['TYPO3_CONF_VARS']['SYS']['productionExceptionHandler'];
         $debugExceptionHandlerClassName = $GLOBALS['TYPO3_CONF_VARS']['SYS']['debugExceptionHandler'];
 
index 88fc187..0e9d748 100644 (file)
@@ -1489,6 +1489,7 @@ class DataHandler implements LoggerAwareInterface
      */
     public function checkValue($table, $field, $value, $id, $status, $realPid, $tscPID, $incomingFieldArray = [])
     {
+        $curValueRec = null;
         // Result array
         $res = [];
 
@@ -4188,6 +4189,7 @@ class DataHandler implements LoggerAwareInterface
      */
     public function moveRecord_procBasedOnFieldType($table, $uid, $destPid, $field, $value, $conf)
     {
+        $dbAnalysis = null;
         if ($conf['type'] === 'inline') {
             $foreign_table = $conf['foreign_table'];
             $moveChildrenWithParent = !isset($conf['behaviour']['disableMovingChildrenWithParent']) || !$conf['behaviour']['disableMovingChildrenWithParent'];
@@ -5226,6 +5228,7 @@ class DataHandler implements LoggerAwareInterface
             $overrideArray[$GLOBALS['TCA'][$table]['ctrl']['editlock']] = 0;
         }
         // Checking if the record already has a version in the current workspace of the backend user
+        $versionRecord = ['uid' => null];
         if ($this->BE_USER->workspace !== 0) {
             // Look for version already in workspace:
             $versionRecord = BackendUtility::getWorkspaceVersionOfRecord($this->BE_USER->workspace, $table, $id, 'uid');
index d737776..9a6ec0e 100644 (file)
@@ -440,6 +440,7 @@ class DataMapProcessor
      */
     protected function synchronizeDirectRelations(DataMapItem $item, string $fieldName, array $fromRecord)
     {
+        $specialTableName = null;
         $configuration = $GLOBALS['TCA'][$item->getTableName()]['columns'][$fieldName];
         $isSpecialLanguageField = ($configuration['config']['special'] ?? null) === 'languages';
 
@@ -973,6 +974,7 @@ class DataMapProcessor
      */
     protected function fetchDependentIdMap(string $tableName, array $ids, int $desiredLanguage)
     {
+        $ancestorIdMap = [];
         if (empty($ids)) {
             return [];
         }
@@ -1322,6 +1324,7 @@ class DataMapProcessor
      */
     protected function prefixLanguageTitle(string $tableName, $fromId, int $language, array $data): array
     {
+        $prefix = '';
         $prefixFieldNames = array_intersect(
             array_keys($data),
             $this->getPrefixLanguageTitleFieldNames($tableName)
index 4ef8c37..ca2c295 100644 (file)
@@ -113,6 +113,8 @@ class RecordStateFactory
      */
     protected function resolveLanguageLink(array $aspectFieldNames): ?EntityPointerLink
     {
+        $languageSourceLink = null;
+        $languageParentLink = null;
         if (!empty($aspectFieldNames['languageSource'])) {
             $languageSourceLink = GeneralUtility::makeInstance(
                 EntityPointerLink::class,
index 4d7c505..e2105a9 100644 (file)
@@ -768,6 +768,7 @@ class QueryGenerator
      */
     public function makeOptionList($fieldName, $conf, $table)
     {
+        $from_table_Arr = [];
         $out = [];
         $fieldSetup = $this->fields[$fieldName];
         $languageService = $this->getLanguageService();
@@ -802,10 +803,10 @@ class QueryGenerator
                 } else {
                     $value = $val[0];
                 }
-                if (GeneralUtility::inList($conf['inputValue'], pow(2, $key))) {
-                    $out[] = '<option value="' . pow(2, $key) . '" selected>' . htmlspecialchars($value) . '</option>';
+                if (GeneralUtility::inList($conf['inputValue'], 2 ** $key)) {
+                    $out[] = '<option value="' . 2 ** $key . '" selected>' . htmlspecialchars($value) . '</option>';
                 } else {
-                    $out[] = '<option value="' . pow(2, $key) . '">' . htmlspecialchars($value) . '</option>';
+                    $out[] = '<option value="' . 2 ** $key . '">' . htmlspecialchars($value) . '</option>';
                 }
             }
         }
index bf47f92..aa5a0a5 100644 (file)
@@ -315,6 +315,7 @@ class QueryView
      */
     public function procesStoreControl()
     {
+        $flashMessage = null;
         $storeArray = $this->initStoreArray();
         $storeQueryConfigs = unserialize($this->settings['storeQueryConfigs'], ['allowed_classes' => false]);
         $storeControl = GeneralUtility::_GP('storeControl');
@@ -933,6 +934,7 @@ class QueryView
      */
     public function makeValueList($fieldName, $fieldValue, $conf, $table, $splitString)
     {
+        $from_table_Arr = [];
         $fieldSetup = $conf;
         $out = '';
         if ($fieldSetup['type'] === 'multiple') {
index 7c78478..239c647 100644 (file)
@@ -308,6 +308,7 @@ class SoftReferenceIndex implements SingletonInterface
      */
     public function findRef_email($content, $spParams)
     {
+        $elements = [];
         // Email:
         $parts = preg_split('/([^[:alnum:]]+)([A-Za-z0-9\\._-]+[@][A-Za-z0-9\\._-]+[\\.].[A-Za-z0-9]+)/', ' ' . $content . ' ', 10000, PREG_SPLIT_DELIM_CAPTURE);
         foreach ($parts as $idx => $value) {
@@ -344,6 +345,7 @@ class SoftReferenceIndex implements SingletonInterface
      */
     public function findRef_url($content, $spParams)
     {
+        $elements = [];
         // URLs
         $parts = preg_split('/([^[:alnum:]"\']+)((https?|ftp):\\/\\/[^[:space:]"\'<>]*)([[:space:]])/', ' ' . $content . ' ', 10000, PREG_SPLIT_DELIM_CAPTURE);
         foreach ($parts as $idx => $value) {
@@ -382,6 +384,7 @@ class SoftReferenceIndex implements SingletonInterface
      */
     public function findRef_extension_fileref($content)
     {
+        $elements = [];
         // Files starting with EXT:
         $parts = preg_split('/([^[:alnum:]"\']+)(EXT:[[:alnum:]_]+\\/[^[:space:]"\',]*)/', ' ' . $content . ' ', 10000, PREG_SPLIT_DELIM_CAPTURE);
         foreach ($parts as $idx => $value) {
index 6360588..d19d702 100644 (file)
@@ -625,16 +625,16 @@ class PageRepository implements LoggerAwareInterface
                     } elseif ($OLmode === 'hideNonTranslated' && (int)$row[$tableControl['languageField']] === 0) {
                         // Unset, if non-translated records should be hidden. ONLY done if the source
                         // record really is default language and not [All] in which case it is allowed.
-                        unset($row);
+                        $row = null;
                     }
                 } elseif ($sys_language_content != $row[$tableControl['languageField']]) {
-                    unset($row);
+                    $row = null;
                 }
             } else {
                 // When default language is displayed, we never want to return a record carrying
                 // another language!
                 if ($row[$tableControl['languageField']] > 0) {
-                    unset($row);
+                    $row = null;
                 }
             }
         }
index e99a49c..f1b02e0 100644 (file)
@@ -106,6 +106,7 @@ class ErrorHandler implements ErrorHandlerInterface, LoggerAwareInterface
      */
     public function handleError($errorLevel, $errorMessage, $errorFile, $errorLine)
     {
+        $flashMessageSeverity = FlashMessage::OK;
         // Don't do anything if error_reporting is disabled by an @ sign or $errorLevel is something we won't handle
         $shouldHandleErrorLevel = (bool)($this->errorHandlerErrors & $errorLevel);
         if (error_reporting() === 0 || !$shouldHandleErrorLevel) {
index 1acbc3b..fc98081 100644 (file)
@@ -832,6 +832,7 @@ class GraphicalFunctions
      */
     public function calcTextCordsForMap($cords, $offset, $conf)
     {
+        $newCords = [];
         $pars = GeneralUtility::intExplode(',', $conf['explode'] . ',');
         $newCords[0] = $cords[0] + $offset[0] - $pars[0];
         $newCords[1] = $cords[1] + $offset[1] + $pars[1];
@@ -2306,6 +2307,7 @@ class GraphicalFunctions
      */
     public function getImageScale($info, $w, $h, $options)
     {
+        $out = [];
         $max = strpos($w . $h, 'm') !== false ? 1 : 0;
         if (strpos($w . $h, 'c') !== false) {
             $out['cropH'] = (int)substr(strstr($w, 'c'), 1);
index 135339d..895d54c 100644 (file)
@@ -119,6 +119,7 @@ class CropVariant
      */
     public function asArray(): array
     {
+        $coverAreasAsArray = null;
         $allowedAspectRatiosAsArray = [];
         foreach ($this->allowedAspectRatios as $id => $allowedAspectRatio) {
             $allowedAspectRatiosAsArray[$id] = $allowedAspectRatio->asArray();
index 9059983..21eb39f 100644 (file)
@@ -56,6 +56,7 @@ class LegacyLinkNotationConverter
      */
     public function resolve(string $linkParameter): array
     {
+        $a = [];
         if (stripos(rawurldecode(trim($linkParameter)), 'phar://') === 0) {
             throw new \RuntimeException(
                 'phar scheme not allowed as soft reference target',
index 1111861..e662e97 100644 (file)
@@ -207,6 +207,8 @@ class Rfc822AddressesParser
      */
     protected function _splitAddresses($address)
     {
+        $split_char = '';
+        $is_group = false;
         if (!empty($this->limit) && count($this->addresses) == $this->limit) {
             return '';
         }
@@ -395,6 +397,7 @@ class Rfc822AddressesParser
      */
     protected function _validateAddress($address)
     {
+        $structure = [];
         $is_group = false;
         $addresses = [];
         if ($address['group']) {
@@ -546,6 +549,8 @@ class Rfc822AddressesParser
      */
     protected function validateMailbox(&$mailbox)
     {
+        $route_addr = null;
+        $addr_spec = [];
         // A couple of defaults.
         $phrase = '';
         $comments = [];
@@ -620,6 +625,8 @@ class Rfc822AddressesParser
      */
     protected function _validateRouteAddr($route_addr)
     {
+        $route = '';
+        $return = [];
         // Check for colon.
         if (strpos($route_addr, ':') !== false) {
             $parts = explode(':', $route_addr);
@@ -630,7 +637,7 @@ class Rfc822AddressesParser
         // If $route is same as $route_addr then the colon was in
         // quotes or brackets or, of course, non existent.
         if ($route === $route_addr) {
-            unset($route);
+            $route = '';
             $addr_spec = $route_addr;
             if (($addr_spec = $this->_validateAddrSpec($addr_spec)) === false) {
                 return false;
@@ -646,11 +653,7 @@ class Rfc822AddressesParser
                 return false;
             }
         }
-        if (isset($route)) {
-            $return['adl'] = $route;
-        } else {
-            $return['adl'] = '';
-        }
+        $return['adl'] = $route;
         $return = array_merge($return, $addr_spec);
         return $return;
     }
@@ -661,7 +664,7 @@ class Rfc822AddressesParser
      *
      * @internal
      * @param string $route The string to check.
-     * @return mixed False on failure, or the validated $route on success.
+     * @return string|bool False on failure, or the validated $route on success.
      */
     protected function _validateRoute($route)
     {
@@ -688,6 +691,7 @@ class Rfc822AddressesParser
      */
     protected function _validateDomain($domain)
     {
+        $sub_domains = [];
         // Note the different use of $subdomains and $sub_domains
         $subdomains = explode('.', $domain);
         while (!empty($subdomains)) {
index b880e68..1427235 100644 (file)
@@ -68,6 +68,7 @@ class FolderRestriction extends AbstractRestrictionContainer
 
     private function createFolderRestriction(): QueryRestrictionInterface
     {
+        $hashedFolderIdentifiers = [];
         $hashedFolderIdentifiers[] = $this->folder->getHashedIdentifier();
         if ($this->recursive) {
             foreach ($this->folder->getSubfolders(0, 0, Folder::FILTER_MODE_NO_FILTERS, true) as $subFolder) {
index 665cc6f..9ebb51d 100644 (file)
@@ -411,6 +411,7 @@ class TemplateService
      */
     public function start($theRootLine)
     {
+        $cc = [];
         // @deprecated - can be removed with TYPO3 v11.0
         if ((bool)$this->forceTemplateParsing) {
             $this->context->setAspect('typoscript', GeneralUtility::makeInstance(TypoScriptAspect::class, true));
@@ -429,7 +430,7 @@ class TemplateService
                 $cc = $this->getTypoScriptFrontendController()->all;
                 // The two rowSums must NOT be different from each other - which they will be if start/endtime or hidden has changed!
                 if (serialize($this->rowSum) !== serialize($cc['rowSum'])) {
-                    unset($cc);
+                    $cc = [];
                 } else {
                     // If $TSFE->all contains valid data, we don't need to update cache_pagesection (because this data was fetched from there already)
                     if (serialize($this->rootLine) === serialize($cc['rootLine'])) {
@@ -441,7 +442,7 @@ class TemplateService
             }
             // This is about getting the hash string which is used to fetch the cached TypoScript template.
             // If there was some cached currentPageData ($cc) then that's good (it gives us the hash).
-            if (isset($cc) && is_array($cc)) {
+            if (!empty($cc)) {
                 // If currentPageData was actually there, we match the result (if this wasn't done already in $TSFE->getFromCache()...)
                 if (!$cc['match']) {
                     // @todo check if this can ever be the case - otherwise remove
@@ -454,7 +455,6 @@ class TemplateService
                 $rowSumHash = md5('ROWSUM:' . serialize($this->rowSum));
                 $result = $this->getCacheEntry($rowSumHash);
                 if (is_array($result)) {
-                    $cc = [];
                     $cc['all'] = $result;
                     $cc['rowSum'] = $this->rowSum;
                     $cc = $this->matching($cc);
index 864e880..ea622a6 100644 (file)
@@ -817,6 +817,7 @@ class ExtensionManagementUtility
         if (!empty($moduleConfiguration['path'])) {
             $path = $moduleConfiguration['path'];
             $path = '/' . ltrim($path, '/');
+            $legacyPath = '';
         } else {
             $path = str_replace('_', '/', $fullModuleSignature);
             $path = trim($path, '/');
index 8b2c934..616f382 100644 (file)
@@ -900,6 +900,7 @@ class ExtendedFileUtility extends BasicFileUtility
      */
     public function func_newfolder($cmds)
     {
+        $resultObject = false;
         $targetFolderObject = $this->getFileObject($cmds['target']);
         if (!$targetFolderObject instanceof Folder) {
             $this->writeLog(SystemLogFileAction::NEW_FOLDER, SystemLogErrorClassification::SYSTEM_ERROR, 104, 'Destination "%s" was not a directory', [$cmds['target']]);
@@ -1144,6 +1145,7 @@ class ExtendedFileUtility extends BasicFileUtility
      */
     protected function replaceFile(array $cmdArr)
     {
+        $fileObjectToReplace = null;
         $uploadPosition = $cmdArr['data'];
         $fileInfo = $_FILES['replace_' . $uploadPosition];
         if (empty($fileInfo['name'])) {
index b7f1caf..8a2c3ea 100644 (file)
@@ -714,6 +714,7 @@ class GeneralUtility
      */
     public static function split_fileref($fileNameWithPath)
     {
+        $info = [];
         $reg = [];
         if (preg_match('/(.*\\/)(.*)$/', $fileNameWithPath, $reg)) {
             $info['path'] = $reg[1];
@@ -811,12 +812,12 @@ class GeneralUtility
         }
         $sizeInBytes = max($sizeInBytes, 0);
         $multiplier = floor(($sizeInBytes ? log($sizeInBytes) : 0) / log($base));
-        $sizeInUnits = $sizeInBytes / pow($base, $multiplier);
+        $sizeInUnits = $sizeInBytes / $base ** $multiplier;
         if ($sizeInUnits > ($base * .9)) {
             $multiplier++;
         }
         $multiplier = min($multiplier, count($labelArr) - 1);
-        $sizeInUnits = $sizeInBytes / pow($base, $multiplier);
+        $sizeInUnits = $sizeInBytes / $base ** $multiplier;
         return number_format($sizeInUnits, (($multiplier > 0) && ($sizeInUnits < 20)) ? 2 : 0, $localeInfo['decimal_point'], '') . $labelArr[$multiplier];
     }
 
@@ -1899,6 +1900,7 @@ class GeneralUtility
      */
     public static function fixPermissions($path, $recursive = false)
     {
+        $targetPermissions = null;
         if (Environment::isWindows()) {
             return true;
         }
index a7f00e0..307f68f 100644 (file)
@@ -152,7 +152,7 @@ class MathUtility
                     $buffer *= $v;
                 }
                 if ($sign === '^') {
-                    $buffer = pow($buffer, $v);
+                    $buffer = $buffer ** $v;
                 }
             }
         }
index 18f6894..8580898 100644 (file)
@@ -35,6 +35,7 @@ class DefaultRestrictionContainerTest extends AbstractRestrictionTestCase
         $GLOBALS['SIM_ACCESS_TIME'] = 123;
         $subject = new DefaultRestrictionContainer();
         $expression = $subject->buildExpression(['aTable' => 'aTable'], $this->expressionBuilder);
+        $more = [];
         $more[] = $expression;
         $expression = $this->expressionBuilder->andX($expression);
 
index f5f7461..37bd861 100644 (file)
@@ -60,11 +60,13 @@ class DefaultTcaSchemaSqliteTest extends UnitTestCase
         $table = new Table('aTable');
         $table->addColumn('uid', 'integer');
         $table->addColumn('pid', 'integer');
+        $input = [];
         $input[] = $table;
 
         $table = new Table('aTable');
         $table->addColumn('uid', 'integer');
         $table->addColumn('pid', 'integer');
+        $expected = [];
         $expected[] = $table;
 
         self::assertEquals($expected, $this->subject->enrich($input));
@@ -79,6 +81,7 @@ class DefaultTcaSchemaSqliteTest extends UnitTestCase
 
         $table = new Table('aTable');
         $table->addColumn('foo', 'integer');
+        $input = [];
         $input[] = $table;
         $table = new Table('aTable');
         $table->addColumn('uid', 'integer');
@@ -87,6 +90,7 @@ class DefaultTcaSchemaSqliteTest extends UnitTestCase
 
         $table = new Table('aTable');
         $table->addColumn('foo', 'integer');
+        $expected = [];
         $expected[] = $table;
         $table = new Table('aTable');
         $table->addColumn('uid', 'integer');
@@ -105,6 +109,7 @@ class DefaultTcaSchemaSqliteTest extends UnitTestCase
 
         $table = new Table('aTable');
         $table->addColumn('foo', 'integer');
+        $input = [];
         $input[] = $table;
         $table = new Table('aTable');
         $table->addColumn('bar', 'integer');
index ae97f69..d873d81 100644 (file)
@@ -60,11 +60,13 @@ class DefaultTcaSchemaTest extends UnitTestCase
         $table = new Table('aTable');
         $table->addColumn('uid', 'integer');
         $table->addColumn('pid', 'integer');
+        $input = [];
         $input[] = $table;
 
         $table = new Table('aTable');
         $table->addColumn('uid', 'integer');
         $table->addColumn('pid', 'integer');
+        $expected = [];
         $expected[] = $table;
 
         self::assertEquals($expected, $this->subject->enrich($input));
@@ -79,6 +81,7 @@ class DefaultTcaSchemaTest extends UnitTestCase
 
         $table = new Table('aTable');
         $table->addColumn('foo', 'integer');
+        $input = [];
         $input[] = $table;
         $table = new Table('aTable');
         $table->addColumn('uid', 'integer');
@@ -87,6 +90,7 @@ class DefaultTcaSchemaTest extends UnitTestCase
 
         $table = new Table('aTable');
         $table->addColumn('foo', 'integer');
+        $expected = [];
         $expected[] = $table;
         $table = new Table('aTable');
         $table->addColumn('uid', 'integer');
@@ -105,6 +109,7 @@ class DefaultTcaSchemaTest extends UnitTestCase
 
         $table = new Table('aTable');
         $table->addColumn('foo', 'integer');
+        $input = [];
         $input[] = $table;
         $table = new Table('aTable');
         $table->addColumn('bar', 'integer');
index 0faae07..757040d 100644 (file)
@@ -354,12 +354,13 @@ class ActionController implements ControllerInterface
      */
     protected function resolveView()
     {
+        $view = null;
         if ($this->defaultViewObjectName != '') {
             /** @var ViewInterface $view */
             $view = $this->objectManager->get($this->defaultViewObjectName);
             $this->setViewConfiguration($view);
             if ($view->canRender($this->controllerContext) === false) {
-                unset($view);
+                $view = null;
             }
         }
         if (!isset($view)) {
index d393578..8edf694 100644 (file)
@@ -581,6 +581,7 @@ class Typo3DbQueryParser
      */
     protected function parseOperand(Qom\DynamicOperandInterface $operand, Qom\SourceInterface $source)
     {
+        $tableName = null;
         if ($operand instanceof Qom\LowerCaseInterface) {
             $constraintSQL = 'LOWER(' . $this->parseOperand($operand->getOperand(), $source) . ')';
         } elseif ($operand instanceof Qom\UpperCaseInterface) {
index e98c518..aaa0c8c 100644 (file)
@@ -44,6 +44,7 @@ class BlogController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
     public function listAction()
     {
         $blogs = $this->blogRepository->findAll();
+        $value = [];
         $value[$this->getRuntimeIdentifier()] = $this->getStructure($blogs);
 
         $this->view->assign('value', $value);
index bad9311..90c1e8a 100644 (file)
@@ -46,6 +46,7 @@ class ContentController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
     public function listAction()
     {
         $content = $this->contentRepository->findAll();
+        $value = [];
         $value[$this->getRuntimeIdentifier()] = $this->getStructure($content);
         // this is required so we don't try to json_encode content of the image
         $this->view->setConfiguration(['value' => [
index 930aac0..a77cda8 100644 (file)
@@ -77,6 +77,7 @@ class ActionControllerValidationTest extends FunctionalTestCase
         $request->setArgument('blogPost', $blogPostArgument);
         $request->setArgument('__trustedProperties', $this->generateTrustedPropertiesToken($trustedProperties));
 
+        $referrerRequest = [];
         $referrerRequest['@action'] = 'testForm';
         $request->setArgument(
             '__referrer',
@@ -140,6 +141,7 @@ class ActionControllerValidationTest extends FunctionalTestCase
             )
         );
 
+        $referrerRequest = [];
         $referrerRequest['@action'] = 'testForm';
         $request->setArgument(
             '__referrer',
index eae656e..a5d97c9 100644 (file)
@@ -290,6 +290,7 @@ class DataMapFactoryTest extends UnitTestCase
                 'MM_opposite_field' => 'rights'
             ]
         ];
+        $leftColumnsDefinition = [];
         $leftColumnsDefinition['rights']['MM_opposite_field'] = 'opposite_field';
         $mockColumnMap = $this->createMock(\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\ColumnMap::class);
         $mockColumnMap->expects(self::once())->method('setTypeOfRelation')->with(self::equalTo(ColumnMap::RELATION_HAS_AND_BELONGS_TO_MANY));
index 505dec1..9a29b06 100644 (file)
@@ -218,6 +218,7 @@ class FrontendLoginController extends AbstractPlugin
      */
     protected function showForgot()
     {
+        $markerArray = [];
         $subpart = $this->templateService->getSubpart($this->template, '###TEMPLATE_FORGOT###');
         $subpartArray = ($linkpartArray = []);
         $postData = GeneralUtility::_POST($this->prefixId);
@@ -306,6 +307,7 @@ class FrontendLoginController extends AbstractPlugin
      */
     protected function changePassword()
     {
+        $markerArray = [];
         $subpartArray = ($linkpartArray = []);
         $done = false;
         $minLength = (int)$this->conf['newPasswordMinLength'] ?: 6;
@@ -525,6 +527,7 @@ class FrontendLoginController extends AbstractPlugin
      */
     protected function showLogout()
     {
+        $markerArray = [];
         $subpart = $this->templateService->getSubpart($this->template, '###TEMPLATE_LOGOUT###');
         $subpartArray = ($linkpartArray = []);
         $markerArray['###STATUS_HEADER###'] = $this->getDisplayText('status_header', $this->conf['logoutHeader_stdWrap.']);
index 6cc5c89..ca983a9 100644 (file)
@@ -133,11 +133,12 @@ class RedirectModeHandler
      */
     public function redirectModeLogin(int $redirectPageLogin): string
     {
+        $redirectUrl = '';
         if ($redirectPageLogin !== 0) {
             $redirectUrl = $this->buildUriForPageUid($redirectPageLogin);
         }
 
-        return $redirectUrl ?? '';
+        return $redirectUrl;
     }
 
     /**
@@ -148,6 +149,7 @@ class RedirectModeHandler
      */
     public function redirectModeReferrer(string $redirectReferrer): string
     {
+        $redirectUrl = '';
         if ($redirectReferrer !== 'off') {
             // Avoid forced logout, when trying to login immediately after a logout
             $redirectUrl = preg_replace('/[&?]logintype=[a-z]+/', '', $this->getRefererRequestParam());
@@ -165,6 +167,7 @@ class RedirectModeHandler
      */
     public function redirectModeRefererDomains(string $domains, string $redirectReferrer): string
     {
+        $redirectUrl = '';
         if ($redirectReferrer !== '') {
             return '';
         }
@@ -208,11 +211,12 @@ class RedirectModeHandler
      */
     public function redirectModeLoginError(int $redirectPageLoginError = 0): string
     {
+        $redirectUrl = '';
         if ($redirectPageLoginError > 0) {
             $redirectUrl = $this->buildUriForPageUid($redirectPageLoginError);
         }
 
-        return $redirectUrl ?? '';
+        return $redirectUrl;
     }
 
     /**
@@ -223,11 +227,12 @@ class RedirectModeHandler
      */
     public function redirectModeLogout(int $redirectPageLogout): string
     {
+        $redirectUrl = '';
         if ($redirectPageLogout > 0) {
             $redirectUrl = $this->buildUriForPageUid($redirectPageLogout);
         }
 
-        return $redirectUrl ?? '';
+        return $redirectUrl;
     }
 
     protected function buildUriForPageUid(int $pageUid): string
@@ -240,11 +245,12 @@ class RedirectModeHandler
 
     protected function getRefererRequestParam(): string
     {
+        $referer = '';
         $requestReferer = (string)$this->serverRequestHandler->getPropertyFromGetAndPost('referer');
         if ($this->redirectUrlValidator->isValid($requestReferer)) {
             $referer = $requestReferer;
         }
 
-        return $referer ?? '';
+        return $referer;
     }
 }
index 6e90c5e..3fefd1a 100644 (file)
@@ -110,7 +110,7 @@ class BytesViewHelper extends AbstractViewHelper
         $bytes = max($value, 0);
         $pow = floor(($bytes ? log($bytes) : 0) / log(1024));
         $pow = min($pow, count($units) - 1);
-        $bytes /= pow(2, 10 * $pow);
+        $bytes /= 2 ** (10 * $pow);
 
         return sprintf(
             '%s %s',
index b99c262..8cd24ec 100644 (file)
@@ -100,14 +100,14 @@ class BytesViewHelperTest extends ViewHelperBaseTestcase
                 'expected' => '1.024.0 MB'
             ],
             [
-                'value' => pow(1024, 5),
+                'value' => 1024 ** 5,
                 'decimals' => 1,
                 'decimalSeparator' => null,
                 'thousandsSeparator' => null,
                 'expected' => '1.0 PB'
             ],
             [
-                'value' => pow(1024, 8),
+                'value' => 1024 ** 8,
                 'decimals' => 1,
                 'decimalSeparator' => null,
                 'thousandsSeparator' => null,
index d356666..f8c19dc 100644 (file)
@@ -192,6 +192,7 @@ class FormFrontendController extends ActionController
         array $flexForm,
         string $sheetIdentifier
     ): array {
+        $sheetData = [];
         $sheetData['data'] = array_filter(
             $flexForm['data'] ?? [],
             function ($key) use ($sheetIdentifier) {
index 632c476..a203110 100644 (file)
@@ -45,6 +45,7 @@ class PropertyPathsExtractor extends AbstractExtractor
      */
     protected function getPropertyPaths(string $value, array $matches): array
     {
+        $paths = [];
         [, $formElementType, $formEditorIndex] = $matches;
 
         $paths[$formElementType]['propertyPaths'] = [];
index 78e5674..bf0520c 100644 (file)
@@ -74,6 +74,7 @@ class EmailFinisher extends AbstractFinisher
      */
     protected function executeInternal()
     {
+        $languageBackup = null;
         // Flexform overrides write strings instead of integers so
         // we need to cast the string '0' to false.
         if (
index f34d2dc..f84f2ae 100644 (file)
@@ -196,6 +196,7 @@ class SaveToDatabaseFinisher extends AbstractFinisher
      */
     protected function executeInternal()
     {
+        $options = [];
         if (isset($this->options['table'])) {
             $options[] = $this->options;
         } else {
index b312c5d..c88d6f4 100644 (file)
@@ -83,7 +83,6 @@ class YamlSource
      *
      * @param File|string $fileToSave The file to write to.
      * @param array $configuration The configuration to save
-     * @return mixed
      * @throws FileWriteException if the file could not be written
      * @internal
      */
@@ -121,8 +120,6 @@ class YamlSource
                 throw new FileWriteException($error['message'], 1512582929);
             }
         }
-
-        return $return;
     }
 
     /**
index c0e735c..7b8442e 100644 (file)
@@ -480,6 +480,7 @@ class FrontendUserAuthentication extends AbstractUserAuthentication
      */
     protected function performLogoff()
     {
+        $oldSession = [];
         $sessionData = [];
         try {
             // Session might not be loaded at this point, so fetch it
index f171585..3aeb208 100644 (file)
@@ -3951,7 +3951,6 @@ class ContentObjectRenderer implements LoggerAwareInterface
                             unset($contentAccum[$contentAccumP - 1]);
                             $contentAccumP -= 2;
                         }
-                        unset($currentTag);
                         $treated = true;
                     }
                     // other tags
@@ -4119,6 +4118,7 @@ class ContentObjectRenderer implements LoggerAwareInterface
      */
     public function http_makelinks($data, $conf)
     {
+        $parts = [];
         $aTagParams = $this->getATagParams($conf);
         $textstr = '';
         foreach (['http://', 'https://'] as $scheme) {
@@ -4195,6 +4195,7 @@ class ContentObjectRenderer implements LoggerAwareInterface
      */
     public function mailto_makelinks($data, $conf)
     {
+        $parts = [];
         // http-split
         $aTagParams = $this->getATagParams($conf);
         $textpieces = explode('mailto:', $data);
@@ -4255,6 +4256,7 @@ class ContentObjectRenderer implements LoggerAwareInterface
      */
     public function getImgResource($file, $fileArray)
     {
+        $importedFile = null;
         if (empty($file) && empty($fileArray)) {
             return null;
         }
@@ -5478,6 +5480,7 @@ class ContentObjectRenderer implements LoggerAwareInterface
      */
     public function getQueryArguments($conf, $overruleQueryArguments = [], $forceOverruleArguments = false)
     {
+        $exclude = [];
         $method = (string)($conf['method'] ?? '');
         if ($method === 'POST') {
             trigger_error('Assigning typolink.addQueryString.method = POST is not supported anymore since TYPO3 v10.0.', E_USER_WARNING);
index 1720d08..3800513 100644 (file)
@@ -1322,6 +1322,7 @@ class TypoScriptFrontendController implements LoggerAwareInterface
      */
     protected function getPageAndRootline()
     {
+        $requestedPageRowWithoutGroupCheck = [];
         $this->resolveTranslatedPageId();
         if (empty($this->page)) {
             // If no page, we try to find the page before in the rootLine.
index 0241b49..7d9232d 100644 (file)
@@ -511,6 +511,8 @@ class AbstractPlugin
      */
     public function pi_list_browseresults($showResultCount = 1, $tableParams = '', $wrapArr = [], $pointerName = 'pointer', $hscText = true, $forceOutput = false)
     {
+        $wrapper = [];
+        $markerArray = [];
         foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::class]['pi_list_browseresults'] ?? [] as $classRef) {
             $hookObj = GeneralUtility::makeInstance($classRef);
             if (method_exists($hookObj, 'pi_list_browseresults')) {
index 75ba2d3..51587df 100644 (file)
@@ -228,6 +228,7 @@ class TitleTagRenderingTest extends FunctionalTestCase
         if (empty($template)) {
             self::fail('Cannot find root template on page with id: "' . $pageId . '"');
         }
+        $updateFields = [];
         $updateFields['sitetitle'] = $siteTitle;
         $connection->update(
             'sys_template',
index a60f425..e1823d4 100644 (file)
@@ -383,6 +383,7 @@ class UriPrefixRenderingTest extends FunctionalTestCase
         if (empty($template)) {
             self::fail('Cannot find root template on page with id: "' . $pageId . '"');
         }
+        $updateFields = [];
         $updateFields['constants'] = ($append ? $template['constants'] . LF : '') . $constants;
         $connection->update(
             'sys_template',
index c2f16e3..462345b 100644 (file)
@@ -4445,6 +4445,7 @@ class ContentObjectRendererTest extends UnitTestCase
         int $times
     ): void {
         $content = $this->getUniqueId('content');
+        $conf = [];
         $conf['cache.'] = $confCache;
         $tags = [$this->getUniqueId('tags')];
         $lifetime = $this->getUniqueId('lifetime');
@@ -6936,8 +6937,10 @@ class ContentObjectRendererTest extends UnitTestCase
     {
         $content = $this->getUniqueId('content');
         $will = $this->getUniqueId('will');
+        $conf = [];
         $conf['prefixComment'] = $this->getUniqueId('prefixComment');
         $emptyConf1 = [];
+        $emptyConf2 = [];
         $emptyConf2['prefixComment'] = '';
         return [
             'standard case' => [$will, $content, $conf, false, 1, $will],
index e40ba01..bb7367e 100644 (file)
@@ -91,6 +91,7 @@ abstract class AbstractImportExportTestCase extends FunctionalTestCase
             $tree->getTree($pidToStart, $depth, '');
         }
 
+        $idH = [];
         $idH[$pidToStart]['uid'] = $pidToStart;
         if (!empty($tree->buffer_idH)) {
             $idH[$pidToStart]['subrow'] = $tree->buffer_idH;
index 3eb2528..021daf9 100644 (file)
@@ -625,7 +625,7 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle
                     // (3 MSB bit, 224 is highest value of order_val1 currently)
                     $base = $row['order_val1'] * 256;
                     // 15-3 MSB = 12
-                    $freqNumber = $row['order_val2'] / $this->firstRow['order_val2'] * pow(2, 12);
+                    $freqNumber = $row['order_val2'] / $this->firstRow['order_val2'] * 2 ** 12;
                     $total = MathUtility::forceIntegerInRange($base + $freqNumber, 0, 32767);
                     return ceil(log($total) / log(32767) * 100) . '%';
                 }
@@ -731,9 +731,10 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle
      */
     protected function makeDescription($row, $noMarkup = false, $length = 180)
     {
+        $markedSW = '';
+        $outputStr = '';
         if ($row['show_resume']) {
             if (!$noMarkup) {
-                $markedSW = '';
                 $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('index_fulltext');
                 $ftdrow = $queryBuilder
                     ->select('*')
index 752e4eb..bcb56d8 100644 (file)
@@ -458,6 +458,7 @@ class FileContentParser
      */
     public function readFileContent($ext, $absFile, $cPKey)
     {
+        $cmd = null;
         $contentArr = null;
         // Return immediately if initialization didn't set support up:
         if (!$this->supportedExtensions[$ext]) {
index b9b59a7..79ea2c1 100644 (file)
@@ -71,6 +71,7 @@ class CrawlerHook
      */
     public function crawler_init(&$pObj)
     {
+        $message = null;
         // Select all indexing configuration which are waiting to be activated:
         $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable('index_config');
         $queryBuilder = $connection->createQueryBuilder();
index 259c13d..e2ed9f9 100644 (file)
@@ -729,6 +729,7 @@ class Indexer
      */
     public function extractLinks($content)
     {
+        $crawler = null;
         // Get links:
         $list = $this->extractHyperLinks($content);
         if ($this->indexerConfig['useCrawlerForExternalFiles'] && \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('crawler')) {
@@ -1257,6 +1258,7 @@ class Indexer
      */
     public function bodyDescription($contentArr)
     {
+        $bodyDescription = '';
         // Setting description
         $maxL = MathUtility::forceIntegerInRange($this->conf['index_descrLgd'], 0, 255, 200);
         if ($maxL) {
@@ -1308,7 +1310,7 @@ class Indexer
                 $this->metaphoneContent .= ' ' . $retArr[$val]['metaphone'];
             }
             // Priority used for flagBitMask feature (see extension configuration)
-            $retArr[$val]['cmp'] = $retArr[$val]['cmp'] | pow(2, $offset);
+            $retArr[$val]['cmp'] = $retArr[$val]['cmp'] | 2 ** $offset;
             // Increase number of occurrences
             $retArr[$val]['count']++;
             $this->wordcount++;
index e68d898..3639585 100644 (file)
@@ -799,6 +799,7 @@ class DoubleMetaPhoneUtility
         // end while
         $this->primary = substr($this->primary, 0, 4);
         $this->secondary = substr($this->secondary, 0, 4);
+        $result = [];
         $result['primary'] = $this->primary;
         $result['secondary'] = $this->secondary;
         return $result;
index 1cce33f..a560b72 100644 (file)
@@ -297,6 +297,7 @@ class UpgradeController extends AbstractController
      */
     public function coreUpdateIsUpdateAvailableAction(): ResponseInterface
     {
+        $action = null;
         $this->coreUpdateInitialize();
         $messageQueue = new FlashMessageQueue('install');
         if ($this->coreVersionService->isInstalledVersionAReleasedVersion()) {
index 87068fe..37b0492 100644 (file)
@@ -340,6 +340,7 @@ class UpgradeWizardsService
      */
     public function executeWizard(string $identifier): FlashMessageQueue
     {
+        $performResult = false;
         $this->assertIdentifierIsValid($identifier);
 
         $class = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update'][$identifier];
index 3e0e557..6ba1f8b 100644 (file)
@@ -123,6 +123,7 @@ class DocumentationFile
      */
     public function getListEntry(string $file): array
     {
+        $entry = [];
         if (strcasecmp($file, $this->changelogPath) < 0 || strpos($file, $this->changelogPath) === false) {
             throw new \InvalidArgumentException('the given file does not belong to the changelog dir. Aborting', 1485425531);
         }
index 4c9ca09..4708aaa 100644 (file)
@@ -66,6 +66,7 @@ class InternalLinktype extends AbstractLinktype
      */
     public function checkLink($url, $softRefEntry, $reference)
     {
+        $page = null;
         $anchor = '';
         $this->responseContent = true;
         // Might already contain values - empty it
@@ -227,6 +228,8 @@ class InternalLinktype extends AbstractLinktype
      */
     public function getErrorMessage($errorParams)
     {
+        $errorPage = null;
+        $errorContent = null;
         $lang = $this->getLanguageService();
         $errorType = $errorParams['errorType'];
         if (is_array($errorParams['page'])) {
index fedba4d..cf583fe 100644 (file)
@@ -310,6 +310,7 @@ class ValidatorTask extends AbstractTask
      */
     protected function checkPageLinks($page)
     {
+        $pageRow = null;
         $page = (int)$page;
         $pageSections = '';
         $pageIds = '';
@@ -391,6 +392,7 @@ class ValidatorTask extends AbstractTask
      */
     protected function getSearchField(array $modTS)
     {
+        $searchFields = [];
         // Get the searchFields from TypoScript
         foreach ($modTS['searchFields.'] as $table => $fieldList) {
             $fields = GeneralUtility::trimExplode(',', $fieldList);
@@ -398,7 +400,7 @@ class ValidatorTask extends AbstractTask
                 $searchFields[$table][] = $field;
             }
         }
-        return $searchFields ?? [];
+        return $searchFields;
     }
 
     /**
index f9ed609..daf06e1 100644 (file)
@@ -126,6 +126,7 @@ class FileBrowser extends AbstractElementBrowser implements ElementBrowserInterf
      */
     public function render()
     {
+        $_MCONF = [];
         $backendUser = $this->getBackendUser();
 
         // The key number 3 of the bparams contains the "allowed" string. Disallowed is not passed to
@@ -405,6 +406,7 @@ class FileBrowser extends AbstractElementBrowser implements ElementBrowserInterf
      */
     protected function getBulkSelector($filesCount)
     {
+        $_MCONF = [];
         if (!$filesCount) {
             return '';
         }
index 294491f..1f1837f 100644 (file)
@@ -44,6 +44,7 @@ class CleanerFieldProvider extends AbstractAdditionalFieldProvider
             $taskInfo['RecyclerCleanerPeriod'] = $task->getPeriod();
         }
 
+        $additionalFields = [];
         $additionalFields['period'] = [
             'code' => '<input type="text" class="form-control" name="tx_scheduler[RecyclerCleanerPeriod]" value="' . $taskInfo['RecyclerCleanerPeriod'] . '">',
             'label' => 'LLL:EXT:recycler/Resources/Private/Language/locallang_tasks.xlf:cleanerTaskPeriod',
index f7e4ca6..e7e4dbc 100644 (file)
@@ -282,6 +282,7 @@ class SlugService implements LoggerAwareInterface
     protected function persistNewSlug(int $uid, string $newSlug): void
     {
         $this->disableHook();
+        $data = [];
         $data['pages'][$uid]['slug'] = $newSlug;
         $dataHandler = GeneralUtility::makeInstance(DataHandler::class);
         $dataHandler->start($data, []);
index d6e9226..c63e542 100644 (file)
@@ -566,6 +566,7 @@ class RedirectServiceTest extends UnitTestCase
         ];
         $this->linkServiceProphecy->resolve($pageRecord)->willReturn($linkDetails);
 
+        $queryParams = [];
         $queryParams['foo'] = 'bar';
         $uri = new Uri('/page?foo=bar');
 
index 6749104..d62ab61 100644 (file)
@@ -222,6 +222,8 @@ class ConfigurationStatus implements StatusProviderInterface
      */
     protected function getMysqlDatabaseUtf8Status()
     {
+        $collationConstraint = null;
+        $charset = '';
         $connection = GeneralUtility::makeInstance(ConnectionPool::class)
             ->getConnectionByName(ConnectionPool::DEFAULT_CONNECTION_NAME);
         /** @var QueryBuilder $queryBuilder */
index dea40df..378c486 100644 (file)
@@ -67,6 +67,7 @@ class FalStatus implements StatusProviderInterface
             }
         }
 
+        $queryBuilder = null;
         if (!empty($storages)) {
             $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('sys_file');
 
index 7ee5ddd..245e75c 100644 (file)
@@ -1121,6 +1121,7 @@ class SchedulerModuleController
      */
     protected function preprocessData()
     {
+        $cronErrorCode = 0;
         $result = true;
         // Validate id
         $this->submittedData['uid'] = empty($this->submittedData['uid']) ? 0 : (int)$this->submittedData['uid'];
@@ -1173,7 +1174,6 @@ class SchedulerModuleController
                 $this->addMessage($this->getLanguageService()->getLL('msg.noFrequency'), FlashMessage::ERROR);
                 $result = false;
             } else {
-                $cronErrorCode = 0;
                 $cronErrorMessage = '';
                 // Try interpreting the cron command
                 try {
@@ -1187,11 +1187,11 @@ class SchedulerModuleController
                     // If yes, assume it is a frequency in seconds, and unset cron error code
                     if (is_numeric($frequency)) {
                         $this->submittedData['interval'] = (int)$frequency;
-                        unset($cronErrorCode);
+                        $cronErrorCode = 0;
                     }
                 }
                 // If there's a cron error code, issue validation error message
-                if (!empty($cronErrorCode)) {
+                if ($cronErrorCode > 0) {
                     $this->addMessage(sprintf($this->getLanguageService()->getLL('msg.frequencyError'), $cronErrorMessage, $cronErrorCode), FlashMessage::ERROR);
                     $result = false;
                 }
index 0fa9cef..52fd8e6 100644 (file)
@@ -57,6 +57,7 @@ class CachingFrameworkGarbageCollectionAdditionalFieldProvider extends AbstractA
         $fieldId = 'task_cachingFrameworkGarbageCollection_selectedBackends';
         $fieldOptions = $this->getCacheBackendOptions($taskInfo['scheduler_cachingFrameworkGarbageCollection_selectedBackends']);
         $fieldHtml = '<select class="form-control" name="' . $fieldName . '" id="' . $fieldId . '" class="from-control" size="10" multiple="multiple">' . $fieldOptions . '</select>';
+        $additionalFields = [];
         $additionalFields[$fieldId] = [
             'code' => $fieldHtml,
             'label' => 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.cachingFrameworkGarbageCollection.selectBackends',
index 83e5648..6bd42c6 100644 (file)
@@ -42,6 +42,7 @@ class FileStorageExtractionAdditionalFieldProvider implements AdditionalFieldPro
         if ($task !== null && !$task instanceof FileStorageExtractionTask) {
             throw new \InvalidArgumentException('Task not of type FileStorageExtractionTask', 1384275695);
         }
+        $additionalFields = [];
         $additionalFields['scheduler_fileStorageIndexing_storage'] = $this->getAllStoragesField($task);
         $additionalFields['scheduler_fileStorageIndexing_fileCount'] = $this->getFileCountField($task);
         $additionalFields['scheduler_fileStorageIndexing_registeredExtractors'] = $this->getRegisteredExtractorsField($task);
index be8c109..cfdc75a 100644 (file)
@@ -34,6 +34,7 @@ class FileStorageIndexingAdditionalFieldProvider implements \TYPO3\CMS\Scheduler
         if ($task !== null && !$task instanceof FileStorageIndexingTask) {
             throw new \InvalidArgumentException('Task not of type FileStorageExtractionTask', 1384275696);
         }
+        $additionalFields = [];
         $additionalFields['scheduler_fileStorageIndexing_storage'] = $this->getAllStoragesField($task, $taskInfo);
         return $additionalFields;
     }
index abc9674..ad21d07 100644 (file)
@@ -65,6 +65,7 @@ class OptimizeDatabaseTableAdditionalFieldProvider extends AbstractAdditionalFie
             . '" class="from-control" size="10" multiple="multiple">'
             . $fieldOptions
             . '</select>';
+        $additionalFields = [];
         $additionalFields[$fieldId] = [
             'code' => $fieldHtml,
             'label' => $this->languageFile . ':label.optimizeDatabaseTables.selectTables',
index 3db1f17..89c3111 100644 (file)
@@ -60,6 +60,7 @@ class RecyclerGarbageCollectionAdditionalFieldProvider extends AbstractAdditiona
         $fieldId = 'task_recyclerGarbageCollection_numberOfDays';
         $fieldValue = (int)$taskInfo['scheduler_recyclerGarbageCollection_numberOfDays'];
         $fieldHtml = '<input class="form-control" type="text" name="' . $fieldName . '" id="' . $fieldId . '" value="' . htmlspecialchars($fieldValue) . '">';
+        $additionalFields = [];
         $additionalFields[$fieldId] = [
             'code' => $fieldHtml,
             'label' => 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:label.recyclerGarbageCollection.numberOfDays',
index 55dd1cc..c3aea77 100644 (file)
@@ -411,6 +411,7 @@ class TypoScriptTemplateModuleController
     {
         $this->templateService = GeneralUtility::makeInstance(ExtendedTemplateService::class);
 
+        $moduleContent = [];
         $moduleContent['state'] = InfoboxViewHelper::STATE_INFO;
 
         // New standard?
index d4d29c7..9258f89 100644 (file)
@@ -37,6 +37,7 @@ class AjaxController
      */
     public function switchWorkspaceAction(ServerRequestInterface $request): ResponseInterface
     {
+        $page = [];
         $parsedBody = $request->getParsedBody();
         $queryParams = $request->getQueryParams();
         $workspaceId = (int)($parsedBody['workspaceId'] ?? $queryParams['workspaceId']);
index b67b104..4c1750d 100644 (file)
@@ -111,6 +111,7 @@ class PreviewController
      */
     public function handleRequest(ServerRequestInterface $request): ResponseInterface
     {
+        $liveUrl = false;
         $this->initializeView('Index');
 
         // Get all the GET parameters to pass them on to the frames
index d9757fd..38a58a6 100644 (file)
@@ -88,6 +88,7 @@ class ActionHandler
         $versionRecord = BackendUtility::getRecord($table, $orig_uid);
         $currentWorkspace = $this->setTemporaryWorkspace($versionRecord['t3ver_wsid']);
 
+        $cmd = [];
         $cmd[$table][$t3ver_oid]['version'] = [
             'action' => 'swap',
             'swapWith' => $orig_uid,
@@ -110,6 +111,7 @@ class ActionHandler
         $versionRecord = BackendUtility::getRecord($table, $uid);
         $currentWorkspace = $this->setTemporaryWorkspace($versionRecord['t3ver_wsid']);
 
+        $cmd = [];
         $cmd[$table][$uid]['version'] = [
             'action' => 'clearWSID'
         ];
index fda2364..e4ffbd7 100644 (file)
@@ -132,6 +132,7 @@ class PreviewUriBuilder
      */
     public function buildUriForElement(string $table, int $uid, array $liveRecord = null, array $versionRecord = null): string
     {
+        $movePlaceholder = [];
         if ($table === 'pages') {
             return BackendUtility::viewOnClick(BackendUtility::getLiveVersionIdOfRecord('pages', $uid));
         }