[TASK] CGL: Whitespace fixes 52/55352/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 13 Jan 2018 17:06:33 +0000 (18:06 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 13 Jan 2018 17:42:14 +0000 (18:42 +0100)
Apply a series of CGL whitespace fixes, mostly:
* No whitespace after type cast
* One space around '='

Change-Id: I6279e083a4bd867bfb70c9567c35b6bab1412043
Resolves: #83557
Releases: master
Reviewed-on: https://review.typo3.org/55352
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
102 files changed:
typo3/sysext/backend/Classes/Clipboard/Clipboard.php
typo3/sysext/backend/Classes/ContextMenu/ContextMenu.php
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/AbstractProvider.php
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/RecordProvider.php
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php
typo3/sysext/backend/Classes/Controller/ContentElement/MoveElementController.php
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php
typo3/sysext/backend/Classes/Controller/FormSelectTreeAjaxController.php
typo3/sysext/backend/Classes/Controller/Wizard/SuggestWizardController.php
typo3/sysext/backend/Classes/Form/Container/FlexFormContainerContainer.php
typo3/sysext/backend/Classes/Form/Container/FlexFormTabsContainer.php
typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php
typo3/sysext/backend/Classes/Form/Container/PaletteAndSingleContainer.php
typo3/sysext/backend/Classes/Form/Container/TabsContainer.php
typo3/sysext/backend/Classes/Form/Element/CheckboxElement.php
typo3/sysext/backend/Classes/Form/Element/RadioElement.php
typo3/sysext/backend/Classes/Form/FieldControl/AddRecord.php
typo3/sysext/backend/Classes/Form/FieldControl/EditPopup.php
typo3/sysext/backend/Classes/Form/FieldControl/ListModule.php
typo3/sysext/backend/Classes/Form/FieldControl/TableWizard.php
typo3/sysext/backend/Classes/Form/FieldWizard/FileThumbnails.php
typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php
typo3/sysext/backend/Classes/Form/FormDataProvider/EvaluateDisplayConditions.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaFlexPrepare.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php
typo3/sysext/backend/Classes/Security/CategoryPermissionsAspect.php
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/core/Classes/Cache/Backend/Typo3DatabaseBackend.php
typo3/sysext/core/Classes/Configuration/ExtensionConfiguration.php
typo3/sysext/core/Classes/Configuration/FlexForm/FlexFormTools.php
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php
typo3/sysext/core/Classes/Database/Schema/Parser/Lexer.php
typo3/sysext/core/Classes/Http/Message.php
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
typo3/sysext/core/Classes/Localization/LanguageService.php
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Classes/Resource/Index/MetaDataRepository.php
typo3/sysext/core/Classes/Resource/Service/UserFileMountService.php
typo3/sysext/core/Classes/Service/DependencyOrderingService.php
typo3/sysext/core/Classes/Session/Backend/DatabaseSessionBackend.php
typo3/sysext/core/Classes/Tree/TableConfiguration/ArrayTreeRenderer.php
typo3/sysext/core/Classes/Tree/TableConfiguration/TreeDataProviderFactory.php
typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php
typo3/sysext/core/Classes/TypoScript/TemplateService.php
typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/documentation/Classes/Service/DocumentationService.php
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbQueryParser.php
typo3/sysext/extbase/Classes/Utility/DebuggerUtility.php
typo3/sysext/extbase/Classes/Utility/TypeHandlingUtility.php
typo3/sysext/extensionmanager/Classes/Controller/DownloadController.php
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php
typo3/sysext/filelist/Classes/FileList.php
typo3/sysext/fluid/Classes/Core/Widget/AbstractWidgetController.php
typo3/sysext/fluid/Classes/ViewHelpers/Debug/RenderViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php
typo3/sysext/form/Classes/Mvc/Property/PropertyMappingConfiguration.php
typo3/sysext/form/Classes/Mvc/Property/TypeConverter/UploadedFileReferenceConverter.php
typo3/sysext/form/Classes/ViewHelpers/Form/DatePickerViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/Form/TimePickerViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/RenderAllFormValuesViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/RenderRenderableViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/TranslateElementErrorViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/TranslateElementPropertyViewHelper.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php
typo3/sysext/frontend/Classes/Imaging/GifBuilder.php
typo3/sysext/frontend/Classes/Service/TypoLinkCodecService.php
typo3/sysext/frontend/Classes/Typolink/AbstractTypolinkBuilder.php
typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php
typo3/sysext/indexed_search/Classes/Controller/SearchController.php
typo3/sysext/install/Classes/Controller/EnvironmentController.php
typo3/sysext/install/Classes/Controller/InstallerController.php
typo3/sysext/install/Classes/Controller/MaintenanceController.php
typo3/sysext/install/Classes/Controller/SettingsController.php
typo3/sysext/install/Classes/ExtensionScanner/Php/CodeStatistics.php
typo3/sysext/install/Classes/Service/ExtensionConfigurationService.php
typo3/sysext/install/Classes/Service/SilentConfigurationUpgradeService.php
typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php
typo3/sysext/install/Classes/Updates/SectionFrameToFrameClassUpdate.php
typo3/sysext/install/Classes/ViewHelpers/Form/TypoScriptConstantsViewHelper.php
typo3/sysext/lang/Classes/Domain/Model/Extension.php
typo3/sysext/lang/Classes/Service/TerService.php
typo3/sysext/lang/Classes/Service/TranslationService.php
typo3/sysext/recordlist/Classes/Browser/DatabaseBrowser.php
typo3/sysext/recordlist/Classes/LinkHandler/AbstractLinkHandler.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
typo3/sysext/reports/Classes/Report/Status/ConfigurationStatus.php
typo3/sysext/rsaauth/Classes/Backend/CommandLineBackend.php
typo3/sysext/saltedpasswords/Classes/Utility/ExtensionManagerConfigurationUtility.php
typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
typo3/sysext/scheduler/Classes/Task/ExecuteSchedulableCommandAdditionalFieldProvider.php
typo3/sysext/scheduler/Classes/Task/FileStorageIndexingAdditionalFieldProvider.php
typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php
typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php
typo3/sysext/viewpage/Classes/Controller/ViewModuleController.php
typo3/sysext/workspaces/Classes/Service/WorkspaceService.php

index e31a072..0c81fcb 100644 (file)
@@ -693,7 +693,7 @@ class Clipboard
     {
         if ($this->getBackendUser()->jsConfirmation(JsConfirmation::COPY_MOVE_PASTE)) {
             $labelKey = 'LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:mess.' . ($this->currentMode() === 'copy' ? 'copy' : 'move') . ($this->current === 'normal' ? '' : 'cb') . '_' . $type;
-            $msg = $this->getLanguageService()->sL($labelKey . ($columnLabel ? '_colPos': ''));
+            $msg = $this->getLanguageService()->sL($labelKey . ($columnLabel ? '_colPos' : ''));
             if ($table === '_FILE') {
                 $thisRecTitle = basename($rec);
                 if ($this->current === 'normal') {
index 19eedd2..2d65fe1 100644 (file)
@@ -39,7 +39,7 @@ class ContextMenu
      * @param string $context
      * @return array
      */
-    public function getItems(string $table, string $identifier, string $context=''): array
+    public function getItems(string $table, string $identifier, string $context = ''): array
     {
         $items = [];
         $itemsProviders = $this->getAvailableProviders($table, $identifier, $context);
index 00715ea..c0ed264 100644 (file)
@@ -86,7 +86,7 @@ class AbstractProvider implements ProviderInterface
      * @param string $identifier
      * @param string $context
      */
-    public function __construct(string $table, string $identifier, string $context='')
+    public function __construct(string $table, string $identifier, string $context = '')
     {
         $this->table = $table;
         $this->identifier = $identifier;
@@ -143,7 +143,7 @@ class AbstractProvider implements ProviderInterface
      */
     protected function initDisabledItems()
     {
-        $TSkey = $this->table . ($this->context ?  '.' . $this->context : '');
+        $TSkey = $this->table . ($this->context ? '.' . $this->context : '');
         $this->disabledItems = GeneralUtility::trimExplode(',', $this->backendUser->getTSConfigVal('options.contextMenu.table.' . $TSkey . '.disableItems'), true);
     }
 
index bf169da..89ac092 100644 (file)
@@ -493,7 +493,7 @@ class RecordProvider extends AbstractProvider
     protected function isDeletionDisabledInTS(): bool
     {
         $disableDeleteTS = $this->backendUser->getTSConfig('options.disableDelete');
-        $disableDelete = (bool) trim($disableDeleteTS['properties'][$this->table] ?? (string)$disableDeleteTS['value']);
+        $disableDelete = (bool)trim($disableDeleteTS['properties'][$this->table] ?? (string)$disableDeleteTS['value']);
         return $disableDelete;
     }
 
index 2a40d2d..2894bf6 100644 (file)
@@ -236,10 +236,10 @@ class ElementInformationController
                 $view->assignMultiple($this->getReferences());
                 $view->assignMultiple($this->getBackButton());
                 $view->assign('maxTitleLength', $this->getBackendUser()->uc['titleLen'] ?? 20);
-                $content .=  $view->render();
+                $content .= $view->render();
             }
         } else {
-            $content .=  $view->render();
+            $content .= $view->render();
         }
 
         $this->moduleTemplate->setContent($content);
@@ -284,7 +284,7 @@ class ElementInformationController
 
         // check if file is marked as missing
         if ($this->fileObject->isMissing()) {
-            $preview['missingFile'] =$this->fileObject->getName();
+            $preview['missingFile'] = $this->fileObject->getName();
         } else {
             /** @var \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry $rendererRegistry */
             $rendererRegistry = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::class);
index c33c43d..2aaca45 100644 (file)
@@ -237,7 +237,7 @@ class MoveElementController
                 'EXT:backend/Resources/Private/Templates/ContentElement/MoveElement.html'
             ));
             $view->assignMultiple($assigns);
-            $this->content .=  $view->render();
+            $this->content .= $view->render();
         }
         // Setting up the buttons and markers for docheader
         $this->getButtons();
index 690a323..c66255b 100644 (file)
@@ -273,7 +273,7 @@ class NewContentElementController
                         // Onclick action for icon/title:
                         $aOnClick = 'document.getElementsByName(\'tempB\')[' . $cc . '].checked=1;' . $wizardOnClick . 'return false;';
                     } else {
-                        $aOnClick = "document.editForm.defValues.value=unescape('" . rawurlencode($wInfo['params']) . "');goToalt_doc();" . (!$this->onClickEvent?"window.location.hash='#sel2';":'');
+                        $aOnClick = "document.editForm.defValues.value=unescape('" . rawurlencode($wInfo['params']) . "');goToalt_doc();" . (!$this->onClickEvent ? "window.location.hash='#sel2';" : '');
                     }
 
                     $icon = $this->moduleTemplate->getIconFactory()->getIcon($wInfo['iconIdentifier'])->render();
index 66a82d6..8a6e447 100644 (file)
@@ -41,7 +41,7 @@ class FormSelectTreeAjaxController
 
         // Prepare processedTca: Remove all column definitions except the one that contains
         // our tree definition. This way only this field is calculated, everything else is ignored.
-        if (!isset($GLOBALS['TCA'][$tableName])  || !is_array($GLOBALS['TCA'][$tableName])) {
+        if (!isset($GLOBALS['TCA'][$tableName]) || !is_array($GLOBALS['TCA'][$tableName])) {
             throw new \RuntimeException(
                 'TCA for table ' . $tableName . ' not found',
                 1479386729
index adaae69..8ec88ab 100644 (file)
@@ -129,7 +129,7 @@ class SuggestWizardController
                         $replacement['###PAGE_TSCONFIG_ID###'] = (int)$fieldTSconfig['PAGE_TSCONFIG_ID'];
                     }
                     if (isset($fieldTSconfig['PAGE_TSCONFIG_IDLIST'])) {
-                        $replacement['###PAGE_TSCONFIG_IDLIST###'] =  implode(',', GeneralUtility::intExplode(',', $fieldTSconfig['PAGE_TSCONFIG_IDLIST']));
+                        $replacement['###PAGE_TSCONFIG_IDLIST###'] = implode(',', GeneralUtility::intExplode(',', $fieldTSconfig['PAGE_TSCONFIG_IDLIST']));
                     }
                     if (isset($fieldTSconfig['PAGE_TSCONFIG_STR'])) {
                         $connection = GeneralUtility::makeInstance(ConnectionPool::class)->getConnectionForTable($fieldConfig['foreign_table']);
index 7e496f8..a93f510 100644 (file)
@@ -72,7 +72,7 @@ class FlexFormContainerContainer extends AbstractContainer
 
         $options = $this->data;
         // Append container specific stuff to field prefix
-        $options['flexFormFormPrefix'] =  $flexFormFormPrefix . '[' . $flexFormContainerIdentifier . '][' . $this->data['flexFormContainerName'] . '][el]';
+        $options['flexFormFormPrefix'] = $flexFormFormPrefix . '[' . $flexFormContainerIdentifier . '][' . $this->data['flexFormContainerName'] . '][el]';
         $options['flexFormDataStructureArray'] = $flexFormDataStructureArray['el'];
         $options['renderType'] = 'flexFormElementContainer';
         $containerContentResult = $this->nodeFactory->create($options)->render();
index 2fa9d16..70572dc 100644 (file)
@@ -55,7 +55,7 @@ class FlexFormTabsContainer extends AbstractContainer
                 continue;
             }
 
-            $tabCounter ++;
+            $tabCounter++;
 
             // Assemble key for loading the correct CSH file
             // @todo: what is that good for? That is for the title of single elements ... see FlexFormElementContainer!
index c0272af..c713b58 100644 (file)
@@ -236,10 +236,10 @@ class InlineControlContainer extends AbstractContainer
         $numberOfNotYetLocalizedChildren = 0;
         foreach ($this->data['parameterArray']['fieldConf']['children'] as $child) {
             if (!$child['isInlineDefaultLanguageRecordInLocalizedParentContext']) {
-                $numberOfFullLocalizedChildren ++;
+                $numberOfFullLocalizedChildren++;
             }
             if ($isLocalizedParent && $child['isInlineDefaultLanguageRecordInLocalizedParentContext']) {
-                $numberOfNotYetLocalizedChildren ++;
+                $numberOfNotYetLocalizedChildren++;
             }
         }
 
@@ -316,7 +316,7 @@ class InlineControlContainer extends AbstractContainer
         $html .= $fieldWizardHtml;
 
         // Add the level links after all child records:
-        if ($config['appearance']['levelLinksPosition'] ===  'both' || $config['appearance']['levelLinksPosition'] === 'bottom') {
+        if ($config['appearance']['levelLinksPosition'] === 'both' || $config['appearance']['levelLinksPosition'] === 'bottom') {
             $html .= $levelLinks . $localizationLinks;
         }
         if (is_array($config['customControls'])) {
index 43af13d..aeed797 100644 (file)
@@ -117,7 +117,7 @@ class PaletteAndSingleContainer extends AbstractContainer
             if ($fieldName === '--palette--') {
                 $paletteElementArray = $this->createPaletteContentArray($fieldConfiguration['paletteName']);
                 if (!empty($paletteElementArray)) {
-                    $mainStructureCounter ++;
+                    $mainStructureCounter++;
                     $paletteLabel = $fieldConfiguration['fieldLabel'];
                     if ($paletteLabel === null
                         && !empty($this->data['processedTca']['palettes'][$fieldConfiguration['paletteName']]['label'])
@@ -145,7 +145,7 @@ class PaletteAndSingleContainer extends AbstractContainer
                 $childResultArray = $this->nodeFactory->create($options)->render();
 
                 if (!empty($childResultArray['html'])) {
-                    $mainStructureCounter ++;
+                    $mainStructureCounter++;
                     $fieldLabel = '';
                     if (!empty($this->data['processedTca']['columns'][$fieldName]['label'])) {
                         $fieldLabel = $this->data['processedTca']['columns'][$fieldName]['label'];
index 4da144f..7ff9f14 100644 (file)
@@ -68,7 +68,7 @@ class TabsContainer extends AbstractContainer
         $tabCounter = 0;
         $tabElements = [];
         foreach ($tabsArray as $tabWithLabelAndElements) {
-            $tabCounter ++;
+            $tabCounter++;
             $elements = $tabWithLabelAndElements['elements'];
 
             // Merge elements of this tab into a single list again and hand over to
index e066221..f811120 100644 (file)
@@ -119,7 +119,7 @@ class CheckboxElement extends AbstractFormElement
             $counter = 0;
             foreach ($items as $itemKey => $itemDefinition) {
                 $label = $itemDefinition[0];
-                $elementHtml .=  $this->renderSingleCheckboxElement($label, $counter, $formElementValue, $numberOfItems, $this->data['parameterArray'], $disabled);
+                $elementHtml .= $this->renderSingleCheckboxElement($label, $counter, $formElementValue, $numberOfItems, $this->data['parameterArray'], $disabled);
                 $counter = $counter + 1;
             }
         }
index 1a722d2..b3e8f14 100644 (file)
@@ -58,7 +58,7 @@ class RadioElement extends AbstractFormElement
 
         $html = [];
         foreach ($this->data['parameterArray']['fieldConf']['config']['items'] as $itemNumber => $itemLabelAndValue) {
-            $label =  $itemLabelAndValue[0];
+            $label = $itemLabelAndValue[0];
             $value = $itemLabelAndValue[1];
             $radioId = htmlspecialchars($this->data['parameterArray']['itemFormElID'] . '_' . $itemNumber);
             $radioChecked = (string)$value === (string)$this->data['parameterArray']['itemFormElValue'] ? ' checked="checked"' : '';
index 131ad29..9db35a3 100644 (file)
@@ -81,7 +81,7 @@ class AddRecord extends AbstractNode
             $flexFormPath = str_replace('][', '/', substr($itemName, strlen($prefixOfFormElName) + 1, -1));
         }
 
-        $urlParameters  = [
+        $urlParameters = [
             'P' => [
                 'params' => [
                     'table' => $table,
index 6ef3c58..27fcfbe 100644 (file)
@@ -41,7 +41,7 @@ class EditPopup extends AbstractNode
         $itemName = $parameterArray['itemFormElName'];
         $windowOpenParameters = $options['windowOpenParameters'] ?? 'height=800,width=600,status=0,menubar=0,scrollbars=1';
 
-        $urlParameters  = [
+        $urlParameters = [
             'P' => [
                 'table' => $this->data['tableName'],
                 'field' => $this->data['fieldName'],
index 5529503..156b4d4 100644 (file)
@@ -70,7 +70,7 @@ class ListModule extends AbstractNode
             $pid = 0;
         }
 
-        $urlParameters  = [
+        $urlParameters = [
             'P' => [
                 'params' => [
                     'table' => $table,
index 26ea657..6808ea0 100644 (file)
@@ -52,7 +52,7 @@ class TableWizard extends AbstractNode
             $flexFormPath = str_replace('][', '/', substr($itemName, strlen($prefixOfFormElName) + 1, -1));
         }
 
-        $urlParameters  = [
+        $urlParameters = [
             'P' => [
                 'params' => [
                     'xmlOutput' => $xmlOutput,
index 4419d56..baf9859 100644 (file)
@@ -110,7 +110,7 @@ class FileThumbnails extends AbstractNode
             }
         }
 
-        $html= [];
+        $html = [];
         if (!empty($thumbnailsHtml)) {
             $html[] = '<ul class="list-inline">';
             $html[] =   implode(LF, $thumbnailsHtml);
index ab4dd8b..a0e943d 100644 (file)
@@ -72,7 +72,7 @@ class TableList extends AbstractNode
             }
         }
 
-        $html= [];
+        $html = [];
         $html[] = '<div class="help-block">';
         $html[] =   implode(LF, $allowedTablesHtml);
         $html[] = '</div>';
index 57b0f0f..a299fdb 100644 (file)
@@ -241,7 +241,7 @@ abstract class AbstractItemProvider
                     // Item configuration:
                     $items[] = [
                         rtrim($excludeArray['origin'] === 'flexForm' ? $excludeArray['fieldLabel'] : $languageService->sL($GLOBALS['TCA'][$excludeArray['table']]['columns'][$excludeArray['fieldName']]['label']), ':') . ' (' . $excludeArray['fieldName'] . ')',
-                        $excludeArray['table'] . ':' . $excludeArray['fullField'] ,
+                        $excludeArray['table'] . ':' . $excludeArray['fullField'],
                         'empty-empty',
                         $helpText
                     ];
index bcf5940..91367d3 100644 (file)
@@ -272,7 +272,7 @@ class EvaluateDisplayConditions implements FormDataProviderInterface
                     );
                 }
                 $fieldName = $conditionArray[1];
-                $allowedOperators = [ 'REQ', '>', '<', '>=', '<=', '-', '!-', '=', '!=', 'IN', '!IN', 'BIT', '!BIT' ];
+                $allowedOperators = ['REQ', '>', '<', '>=', '<=', '-', '!-', '=', '!=', 'IN', '!IN', 'BIT', '!BIT'];
                 if (empty($conditionArray[2]) || !in_array($conditionArray[2], $allowedOperators)) {
                     throw new \RuntimeException(
                         'Field condition "' . $conditionString . '" must have a valid operator as third part, non or invalid one given.'
@@ -303,7 +303,7 @@ class EvaluateDisplayConditions implements FormDataProviderInterface
                             1481401892
                         );
                     }
-                } elseif (in_array($namedConditionArray['operator'], [ '>', '<', '>=', '<=', 'BIT', '!BIT' ])) {
+                } elseif (in_array($namedConditionArray['operator'], ['>', '<', '>=', '<=', 'BIT', '!BIT'])) {
                     if (!MathUtility::canBeInterpretedAsInteger($operand)) {
                         throw new \RuntimeException(
                             'Field condition "' . $conditionString . '" with comparison operator ' . $namedConditionArray['operator']
index b9d2359..a90f54f 100644 (file)
@@ -73,7 +73,7 @@ class TcaFlexPrepare implements FormDataProviderInterface
             $flexFormTools = GeneralUtility::makeInstance(FlexFormTools::class);
 
             $dataStructureIdentifier = '';
-            $dataStructureArray = [ 'sheets' => [ 'sDEF' => [] ] ];
+            $dataStructureArray = ['sheets' => ['sDEF' => []]];
 
             try {
                 $dataStructureIdentifier = $flexFormTools->getDataStructureIdentifier(
index cc8f985..4f1c99b 100644 (file)
@@ -217,7 +217,7 @@ class TcaInline extends AbstractDatabaseRecordProvider implements FormDataProvid
             ];
             /** @var OnTheFly $formDataGroup */
             $formDataGroup = GeneralUtility::makeInstance(OnTheFly::class);
-            $formDataGroup->setProviderList([ TcaSelectItems::class ]);
+            $formDataGroup->setProviderList([TcaSelectItems::class]);
             /** @var FormDataCompiler $formDataCompiler */
             $formDataCompiler = GeneralUtility::makeInstance(FormDataCompiler::class, $formDataGroup);
             $compilerResult = $formDataCompiler->compile($selectDataInput);
@@ -289,7 +289,7 @@ class TcaInline extends AbstractDatabaseRecordProvider implements FormDataProvid
                 // exists. This is a data inconsistency, we catch this exception and create a flash message
                 $message = vsprintf(
                     $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang.xlf:formEngine.databaseRecordErrorInlineChildChild'),
-                    [ $e->getTableName(), $e->getUid(), $childTableName, (int)$childUid ]
+                    [$e->getTableName(), $e->getUid(), $childTableName, (int)$childUid]
                 );
                 $flashMessage = GeneralUtility::makeInstance(
                     FlashMessage::class,
index 3779ba7..2bc60f7 100644 (file)
@@ -128,7 +128,7 @@ class CategoryPermissionsAspect
 
                 /** @var TreeNode $node */
                 $node = $this->lookUpCategoryMountPointInTreeNodes($categoryMountPoint, $treeNode->getChildNodes());
-                if (! is_null($node)) {
+                if (!is_null($node)) {
                     $result = $node;
                     break;
                 }
index 96e5471..c98fe20 100644 (file)
@@ -935,7 +935,7 @@ function jumpToUrl(URL) {
     {
         $backendFavicon = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('backend', 'backendFavicon');
         if (!empty($backendFavicon)) {
-            $path =  $this->getUriForFileName($backendFavicon);
+            $path = $this->getUriForFileName($backendFavicon);
         } else {
             $path = ExtensionManagementUtility::extPath('backend') . 'Resources/Public/Icons/favicon.ico';
         }
index bd06437..851e51c 100644 (file)
@@ -1995,7 +1995,7 @@ class BackendUtility
                                 // Add additional where clause if foreign_match_fields are defined
                                 $foreignMatchFields = [];
                                 if (is_array($theColConf['foreign_match_fields'])) {
-                                    $foreignMatchFields =  $theColConf['foreign_match_fields'];
+                                    $foreignMatchFields = $theColConf['foreign_match_fields'];
                                 }
 
                                 foreach ($foreignMatchFields as $matchField => $matchValue) {
@@ -2095,9 +2095,9 @@ class BackendUtility
                                 while ($MMrow = $result->fetch()) {
                                     // Keep sorting of $selectUids
                                     $selectedUid = array_search($MMrow['uid'], $selectUids);
-                                    $mmlA[$selectedUid] =  $MMrow['uid'];
+                                    $mmlA[$selectedUid] = $MMrow['uid'];
                                     if (!$noRecordLookup) {
-                                        $mmlA[$selectedUid] =  static::getRecordTitle(
+                                        $mmlA[$selectedUid] = static::getRecordTitle(
                                             $theColConf['foreign_table'],
                                             $MMrow,
                                             false,
index 16ec0c3..e291b68 100644 (file)
@@ -1937,7 +1937,7 @@ class PageLayoutView implements LoggerAwareInterface
                 }
                 // Delete
                 $disableDeleteTS = $this->getBackendUser()->getTSConfig('options.disableDelete');
-                $disableDelete = (bool) trim($disableDeleteTS['properties']['tt_content'] ?? $disableDeleteTS['value']);
+                $disableDelete = (bool)trim($disableDeleteTS['properties']['tt_content'] ?? $disableDeleteTS['value']);
                 if (!$disableDelete) {
                     $params = '&cmd[tt_content][' . $row['uid'] . '][delete]=1';
                     $confirm = $this->getLanguageService()->getLL('deleteWarning')
index af58aec..fb9630c 100644 (file)
@@ -136,7 +136,7 @@ class Typo3DatabaseBackend extends AbstractBackend implements TaggableBackendInt
         $this->throwExceptionIfFrontendDoesNotExist();
         $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
             ->getQueryBuilderForTable($this->cacheTable);
-        $cacheRow =  $queryBuilder->select('content')
+        $cacheRow = $queryBuilder->select('content')
             ->from($this->cacheTable)
             ->where(
                 $queryBuilder->expr()->eq(
index 42fc6d6..820716b 100644 (file)
@@ -145,10 +145,10 @@ class ExtensionConfiguration
         $configurationManager = GeneralUtility::makeInstance(ConfigurationManager::class);
         if ($path === '' && $value === null) {
             // Remove whole extension config
-            $configurationManager->removeLocalConfigurationKeysByPath([ 'EXTENSIONS/' . $extension ]);
+            $configurationManager->removeLocalConfigurationKeysByPath(['EXTENSIONS/' . $extension]);
         } elseif ($path !== '' && $value === null) {
             // Remove a single value or sub path
-            $configurationManager->removeLocalConfigurationKeysByPath([ 'EXTENSIONS/' . $extension . '/' . $path]);
+            $configurationManager->removeLocalConfigurationKeysByPath(['EXTENSIONS/' . $extension . '/' . $path]);
         } elseif ($path === '' && $value !== null) {
             // Set full extension config
             $configurationManager->setLocalConfigurationValueByPath('EXTENSIONS/' . $extension, $value);
index ae9a090..d542170 100644 (file)
@@ -770,7 +770,7 @@ class FlexFormTools
         // Get data structure. The methods may throw various exceptions, with some of them being
         // ok in certain scenarios, for instance on new record rows. Those are ok to "eat" here
         // and substitute with a dummy DS.
-        $dataStructureArray = [ 'sheets' => [ 'sDEF' => [] ] ];
+        $dataStructureArray = ['sheets' => ['sDEF' => []]];
         try {
             $dataStructureIdentifier = $this->getDataStructureIdentifier($GLOBALS['TCA'][$table]['columns'][$field], $table, $field, $row);
             $dataStructureArray = $this->parseDataStructureByIdentifier($dataStructureIdentifier);
index 7300c12..71e0527 100644 (file)
@@ -166,7 +166,7 @@ class SystemEnvironmentBuilder
                 // Base the script path on the path taken from the environment
                 // to make relative path calculations work in case only one of both is symlinked
                 // or has the real path
-                $scriptName =  substr($scriptPath, strlen($rootPath));
+                $scriptName = substr($scriptPath, strlen($rootPath));
             }
             $rootPath = GeneralUtility::fixWindowsFilePath(getenv('TYPO3_PATH_ROOT'));
             $scriptPath = $rootPath . $scriptName;
index d0083c4..766cdf8 100644 (file)
@@ -2449,10 +2449,10 @@ class DataHandler implements LoggerAwareInterface
             // Get data structure. The methods may throw various exceptions, with some of them being
             // ok in certain scenarios, for instance on new record rows. Those are ok to "eat" here
             // and substitute with a dummy DS.
-            $dataStructureArray = [ 'sheets' => [ 'sDEF' => [] ] ];
+            $dataStructureArray = ['sheets' => ['sDEF' => []]];
             try {
                 $dataStructureIdentifier = $flexFormTools->getDataStructureIdentifier(
-                    [ 'config' => $tcaFieldConf ],
+                    ['config' => $tcaFieldConf],
                     $table,
                     $field,
                     $row
@@ -3883,7 +3883,7 @@ class DataHandler implements LoggerAwareInterface
             // Get current value array:
             $flexFormTools = GeneralUtility::makeInstance(FlexFormTools::class);
             $dataStructureIdentifier = $flexFormTools->getDataStructureIdentifier(
-                [ 'config' => $conf ],
+                ['config' => $conf],
                 $table,
                 $field,
                 $row
@@ -5948,7 +5948,7 @@ class DataHandler implements LoggerAwareInterface
                                         BackendUtility::workspaceOL($table, $origRecordRow);
                                         // Get current data structure and value array:
                                         $dataStructureIdentifier = $flexFormTools->getDataStructureIdentifier(
-                                            [ 'config' => $conf ],
+                                            ['config' => $conf],
                                             $table,
                                             $fieldName,
                                             $origRecordRow
index 03e9323..5c0bbcc 100644 (file)
@@ -1247,7 +1247,7 @@ class DataMapProcessor
         $languageRecord = BackendUtility::getRecord('sys_language', $language, 'title');
         list($pageId) = BackendUtility::getTSCpid($tableName, $fromId, $data['pid'] ?? null);
 
-        $TSconfig =  $this->backendUser->getTSConfig(
+        $TSconfig = $this->backendUser->getTSConfig(
             'TCEMAIN',
             BackendUtility::getPagesTSconfig($pageId)
         );
index 00fb9b0..3df756c 100644 (file)
@@ -134,7 +134,7 @@ class Lexer extends \Doctrine\Common\Lexer
     const T_CHECKSUM = 352;
     const T_COMPRESSION = 353;
     const T_CONNECTION = 354;
-    const T_DATA= 355;
+    const T_DATA = 355;
     const T_DIRECTORY = 356;
     const T_DELAY_KEY_WRITE = 357;
     const T_ENCRYPTION = 358;
index 02bee07..a04c80e 100644 (file)
@@ -475,7 +475,7 @@ class Message implements MessageInterface
             // 32-126, 128-254 === visible
             // 127 === DEL
             // 255 === null byte
-            if (($ascii < 32 && ! in_array($ascii, [9, 10, 13], true)) || $ascii === 127 || $ascii > 254) {
+            if (($ascii < 32 && !in_array($ascii, [9, 10, 13], true)) || $ascii === 127 || $ascii > 254) {
                 return false;
             }
         }
index ccf6df5..a756cca 100644 (file)
@@ -2452,7 +2452,7 @@ class GraphicalFunctions
         }
         // If addFrameSelection is set in the Install Tool, a frame number is added to
         // select a specific page of the image (by default this will be the first page)
-        $frame  = $this->addFrameSelection ? '[' . (int)$frame . ']' : '';
+        $frame = $this->addFrameSelection ? '[' . (int)$frame . ']' : '';
         $cmd = CommandUtility::imageMagickCommand('convert', $params . ' ' . CommandUtility::escapeShellArgument($input . $frame) . ' ' . CommandUtility::escapeShellArgument($output));
         $this->IM_commands[] = [$output, $cmd];
         $ret = CommandUtility::exec($cmd);
index d0420d1..d7d9a4c 100644 (file)
@@ -241,8 +241,7 @@ class LanguageService
                             $fieldName = substr($fieldName, 1);
                         }
                         // Append label
-                        $label = $lVal[0]['target'] ? :
-                            $lVal[0]['source'];
+                        $label = $lVal[0]['target'] ?: $lVal[0]['source'];
                         if ($specialInstruction) {
                             $GLOBALS['TCA_DESCR'][$table]['columns'][$fieldName][$type] .= LF . $label;
                         } else {
index e5e7415..447a197 100644 (file)
@@ -1311,7 +1311,7 @@ class LocalDriver extends AbstractHierarchicalFilesystemDriver
             );
         }
         $parentFolderIdentifier = $this->canonicalizeAndCheckFolderIdentifier($parentFolderIdentifier);
-        $fileIdentifier =  $this->canonicalizeAndCheckFileIdentifier(
+        $fileIdentifier = $this->canonicalizeAndCheckFileIdentifier(
             $parentFolderIdentifier . $this->sanitizeFileName(ltrim($fileName, '/'))
         );
         $absoluteFilePath = $this->getAbsolutePath($fileIdentifier);
index 456a47e..011a758 100644 (file)
@@ -127,7 +127,7 @@ class MetaDataRepository implements SingletonInterface
      */
     public function createMetaDataRecord($fileUid, array $additionalFields = [])
     {
-        $emptyRecord =  [
+        $emptyRecord = [
             'file' => (int)$fileUid,
             'pid' => 0,
             'crdate' => $GLOBALS['EXEC_TIME'],
@@ -146,7 +146,7 @@ class MetaDataRepository implements SingletonInterface
 
         $record = $emptyRecord;
         $record['uid'] = $connection->lastInsertId($this->tableName);
-        $record['newlyCreated']  = true;
+        $record['newlyCreated'] = true;
 
         $this->emitRecordCreatedSignal($record);
 
index 61ad894..ff9d8fe 100644 (file)
@@ -127,7 +127,7 @@ class UserFileMountService
             try {
                 $subFolderItems = $this->getSubfoldersForOptionList($subFolder, $level);
             } catch (InsufficientFolderReadPermissionsException $e) {
-                $subFolderItems  = [];
+                $subFolderItems = [];
             }
             $allFolderItems = array_merge($allFolderItems, $subFolderItems);
         }
index a98f7f2..fb29c9b 100644 (file)
@@ -266,7 +266,7 @@ class DependencyOrderingService
     {
         $preparedDependencies = [];
         foreach ($dependencies as $id => $dependency) {
-            foreach ([ $beforeKey, $afterKey ] as $relation) {
+            foreach ([$beforeKey, $afterKey] as $relation) {
                 if (!isset($dependency[$relation]) || !is_array($dependency[$relation])) {
                     $dependency[$relation] = [];
                 }
index be88cf0..f8c4cfb 100644 (file)
@@ -191,7 +191,7 @@ class DatabaseSessionBackend implements SessionBackendInterface
 
         $query->delete($this->configuration['table'])
             ->where($query->expr()->lt('ses_tstamp', (int)($GLOBALS['EXEC_TIME'] - (int)$maximumLifetime)))
-            ->andWhere($this->hasAnonymousSessions ? $query->expr()->eq('ses_anonymous', 0) :' 1 = 1');
+            ->andWhere($this->hasAnonymousSessions ? $query->expr()->eq('ses_anonymous', 0) : ' 1 = 1');
         $query->execute();
 
         if ($maximumAnonymousLifetime > 0 && $this->hasAnonymousSessions) {
index bf35e3f..22225aa 100644 (file)
@@ -58,7 +58,7 @@ class ArrayTreeRenderer extends \TYPO3\CMS\Backend\Tree\Renderer\AbstractTreeRen
      */
     protected function getNodeArray(\TYPO3\CMS\Backend\Tree\TreeRepresentationNode $node)
     {
-        $overlayIconName  = '';
+        $overlayIconName = '';
         if (is_object($node->getIcon())) {
             $iconName = $node->getIcon()->getIdentifier();
             if (is_object($node->getIcon()->getOverlayIcon())) {
index bf11ae3..e42165f 100644 (file)
@@ -53,7 +53,7 @@ class TreeDataProviderFactory
                 $dataProvider->setTableName($tableName);
                 if ($tableName == $table) {
                     // The uid of the currently opened row can not be selected in a table relation to "self"
-                    $unselectableUids = [ $currentValue['uid'] ];
+                    $unselectableUids = [$currentValue['uid']];
                     $dataProvider->setItemUnselectableList($unselectableUids);
                 }
             } else {
index 716f668..6a46cd9 100644 (file)
@@ -369,7 +369,7 @@ class TypoScriptParser
                         // Find object name string until we meet an operator
                         $varL = strcspn($line, TAB . ' {=<>(');
                         // check for special ":=" operator
-                        if ($varL > 0 && substr($line, $varL-1, 2) === ':=') {
+                        if ($varL > 0 && substr($line, $varL - 1, 2) === ':=') {
                             --$varL;
                         }
                         // also remove tabs after the object string name
index 0b9d3d6..a4fa5c5 100644 (file)
@@ -1683,7 +1683,7 @@ class TemplateService
             array_unshift($this->config, (string)$GLOBALS['TYPO3_CONF_VARS']['FE']['defaultTypoScript_setup']);
             array_unshift($this->templateIncludePaths, '');
             // prepare a proper entry to hierachyInfo (used by TemplateAnalyzer in BE)
-            $rootTemplateId = $this->hierarchyInfo[count($this->hierarchyInfo)-1]['templateID'];
+            $rootTemplateId = $this->hierarchyInfo[count($this->hierarchyInfo) - 1]['templateID'];
             $defaultTemplateInfo = [
                 'root' => '',
                 'next' => '',
index 067bf50..764fbc9 100644 (file)
@@ -820,7 +820,7 @@ class ExtensionManagementUtility
             $iconRegistry->registerIcon(
                 $iconIdentifier,
                 $iconProvider,
-                [ 'source' => GeneralUtility::getFileAbsFileName($moduleConfiguration['icon']) ]
+                ['source' => GeneralUtility::getFileAbsFileName($moduleConfiguration['icon'])]
             );
             $moduleConfiguration['iconIdentifier'] = $iconIdentifier;
             unset($moduleConfiguration['icon']);
@@ -892,7 +892,7 @@ class ExtensionManagementUtility
                 $iconRegistry->registerIcon(
                     $iconIdentifier,
                     $iconProvider,
-                    [ 'source' => GeneralUtility::getFileAbsFileName($moduleConfiguration['icon']) ]
+                    ['source' => GeneralUtility::getFileAbsFileName($moduleConfiguration['icon'])]
                 );
                 $moduleConfiguration['iconIdentifier'] = $iconIdentifier;
                 unset($moduleConfiguration['icon']);
index 45f7f79..4c4dbb1 100644 (file)
@@ -1675,7 +1675,7 @@ class GeneralUtility
                                 $current[$tagName] = (int)$current[$tagName];
                                 break;
                             case 'double':
-                                $current[$tagName] = (double) $current[$tagName];
+                                $current[$tagName] = (double)$current[$tagName];
                                 break;
                             case 'boolean':
                                 $current[$tagName] = (bool)$current[$tagName];
@@ -2230,7 +2230,7 @@ class GeneralUtility
 
             foreach ($allowedFileExtensionArray as $allowedFileExtension) {
                 if (
-                    ($extensionList === ',,' || stripos($extensionList, ',' . substr($entry, strlen($allowedFileExtension)*-1, strlen($allowedFileExtension)) . ',') !== false)
+                    ($extensionList === ',,' || stripos($extensionList, ',' . substr($entry, strlen($allowedFileExtension) * -1, strlen($allowedFileExtension)) . ',') !== false)
                     && ($excludePattern === '' || !preg_match(('/^' . $excludePattern . '$/'), $entry))
                 ) {
                     if ($order !== 'mtime') {
@@ -4000,7 +4000,7 @@ class GeneralUtility
     public static function quoteJSvalue($value)
     {
         return strtr(
-            json_encode((string)$value, JSON_HEX_AMP|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_HEX_TAG),
+            json_encode((string)$value, JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_TAG),
             [
                 '"' => '\'',
                 '\\\\' => '\\u005C',
index 0756b9e..c855426 100644 (file)
@@ -294,7 +294,7 @@ class DocumentationService
             while (($zipEntry = zip_read($zip)) !== false) {
                 $zipEntryName = zip_entry_name($zipEntry);
                 if (strpos($zipEntryName, '/') !== false) {
-                    $zipEntryPathSegments =  explode('/', $zipEntryName);
+                    $zipEntryPathSegments = explode('/', $zipEntryName);
                     $fileName = array_pop($zipEntryPathSegments);
                     // It is a folder, because the last segment is empty, let's create it
                     if (empty($fileName)) {
index a2e01b7..0825e89 100644 (file)
@@ -897,7 +897,7 @@ class Typo3DbQueryParser
             $column1Name = $this->dataMapper->convertPropertyNameToColumnName($joinCondition->getProperty1Name(), $leftClassName);
             $column2Name = $this->dataMapper->convertPropertyNameToColumnName($joinCondition->getProperty2Name(), $rightClassName);
 
-            $joinConditionExpression =  $this->queryBuilder->expr()->eq(
+            $joinConditionExpression = $this->queryBuilder->expr()->eq(
                 $leftTableAlias . '.' . $column1Name,
                 $this->queryBuilder->quoteIdentifier($rightTableAlias . '.' . $column2Name)
             );
index a28ed40..c080a65 100644 (file)
@@ -263,7 +263,7 @@ class DebuggerUtility
         } else {
             $dump .= '<span class="extbase-debug-type">' . htmlspecialchars($className) . '</span>';
         }
-        if (! $object instanceof \Closure) {
+        if (!$object instanceof \Closure) {
             if ($object instanceof \TYPO3\CMS\Core\SingletonInterface) {
                 $scope = 'singleton';
             } else {
@@ -403,7 +403,7 @@ class DebuggerUtility
                     $dump .= '<span class="extbase-debug-closure">) {' . PHP_EOL . '</span>';
                 }
                 $lines = file($reflectionFunction->getFileName());
-                for ($l = $reflectionFunction->getStartLine(); $l < $reflectionFunction->getEndLine() -1; ++$l) {
+                for ($l = $reflectionFunction->getStartLine(); $l < $reflectionFunction->getEndLine() - 1; ++$l) {
                     $dump .= $plainText ? $lines[$l] : htmlspecialchars($lines[$l]);
                 }
                 $dump .= str_repeat(self::PLAINTEXT_INDENT, $level);
index a363b85..9d1c986 100644 (file)
@@ -161,7 +161,7 @@ class TypeHandlingUtility
         $binaryData = '';
         $length = strlen($hexadecimalData);
         for ($i = 0; $i < $length; $i += 2) {
-            $binaryData .=  pack('C', hexdec(substr($hexadecimalData, $i, 2)));
+            $binaryData .= pack('C', hexdec(substr($hexadecimalData, $i, 2)));
         }
         return $binaryData;
     }
index ef56929..fce9f4a 100644 (file)
@@ -201,7 +201,7 @@ class DownloadController extends AbstractController
         $this->view
             ->assign('result', $result)
             ->assign('extension', $extension)
-            ->assign('installationTypeLanguageKey', $isAutomaticInstallationEnabled ?  '' : '.downloadOnly')
+            ->assign('installationTypeLanguageKey', $isAutomaticInstallationEnabled ? '' : '.downloadOnly')
             ->assign('unresolvedDependencies', $errorMessages);
     }
 
index 80d0f79..a590a45 100644 (file)
@@ -415,7 +415,7 @@ class FileHandlingUtility implements \TYPO3\CMS\Core\SingletonInterface
 
         $version = $this->getExtensionVersion($extension);
         if (empty($version)) {
-            $version =  '0.0.0';
+            $version = '0.0.0';
         }
 
         if (!@is_dir(PATH_site . 'typo3temp/var/ExtensionManager/')) {
@@ -430,11 +430,11 @@ class FileHandlingUtility implements \TYPO3\CMS\Core\SingletonInterface
 
         // Get all the files of the extension, but exclude the ones specified in the excludePattern
         $files = GeneralUtility::getAllFilesAndFoldersInPath(
-            [],            // No files pre-added
-            $extensionPath,        // Start from here
-            '',                    // Do not filter files by extension
-            true,                // Include subdirectories
-            PHP_INT_MAX,        // Recursion level
+            [], // No files pre-added
+            $extensionPath, // Start from here
+            '', // Do not filter files by extension
+            true, // Include subdirectories
+            PHP_INT_MAX, // Recursion level
             $excludePattern        // Files and directories to exclude.
         );
 
index 7ea3638..6094798 100644 (file)
@@ -420,7 +420,7 @@ class FileList
                     if ($filesFrom + $this->iLimit > $filesCount) {
                         $filesNum = $filesCount - $filesFrom;
                     } else {
-                        $filesNum  = $this->iLimit;
+                        $filesNum = $this->iLimit;
                     }
                 }
             }
@@ -1209,7 +1209,7 @@ class FileList
      */
     public function linkWrapSort($code, $folderIdentifier, $col)
     {
-        $params = ['id' => $folderIdentifier, 'SET' => [ 'sort' => $col ]];
+        $params = ['id' => $folderIdentifier, 'SET' => ['sort' => $col]];
 
         if ($this->sort === $col) {
             // Check reverse sorting
index 19c6564..0dd9d11 100644 (file)
@@ -70,9 +70,9 @@ abstract class AbstractWidgetController extends \TYPO3\CMS\Extbase\Mvc\Controlle
             $pluginConfiguration['templateRootPaths'][10] = $pluginConfiguration['templateRootPath'];
         }
         $widgetViewConfiguration = array_merge_recursive(
-            (array) $rootConfiguration,
-            (array) $parentConfiguration,
-            (array) $pluginConfiguration
+            (array)$rootConfiguration,
+            (array)$parentConfiguration,
+            (array)$pluginConfiguration
         );
         $view->getTemplatePaths()->fillFromConfigurationArray($widgetViewConfiguration);
     }
index 92fcfbd..31fb27f 100644 (file)
@@ -61,8 +61,8 @@ class RenderViewHelper extends AbstractViewHelper
     {
         $section = $this->arguments['section'];
         $partial = $this->arguments['partial'];
-        $arguments = (array) $this->arguments['arguments'];
-        $optional = (boolean) $this->arguments['optional'];
+        $arguments = (array)$this->arguments['arguments'];
+        $optional = (boolean)$this->arguments['optional'];
         $contentAs = $this->arguments['contentAs'];
         $tagContent = $this->renderChildren();
 
index 0eec3bb..727b81b 100644 (file)
@@ -113,7 +113,7 @@ class CheckboxViewHelper extends AbstractFormFieldViewHelper
         } elseif ($multiple === true) {
             $nameAttribute .= '[]';
         } elseif ($propertyValue !== null) {
-            $checked = (boolean) $propertyValue === (boolean) $valueAttribute;
+            $checked = (boolean)$propertyValue === (boolean)$valueAttribute;
         }
 
         $this->registerFieldNameForFormTokenGeneration($nameAttribute);
index 4f837a5..8137d54 100644 (file)
@@ -78,7 +78,7 @@ class PropertyMappingConfiguration
                 $persistenceIdentifier = $renderable->getRootForm()->getPersistenceIdentifier();
                 if (!empty($persistenceIdentifier)) {
                     $pathinfo = PathUtility::pathinfo($persistenceIdentifier);
-                    $saveToFileMountIdentifier  = $pathinfo['dirname'];
+                    $saveToFileMountIdentifier = $pathinfo['dirname'];
                     if ($this->checkSaveFileMountAccess($saveToFileMountIdentifier)) {
                         $uploadConfiguration[UploadedFileReferenceConverter::CONFIGURATION_UPLOAD_FOLDER] = $saveToFileMountIdentifier;
                     }
index d7474ba..36b8cd2 100644 (file)
@@ -200,7 +200,7 @@ class UploadedFileReferenceConverter extends AbstractTypeConverter
         $conflictMode = $configuration->getConfigurationValue(self::class, self::CONFIGURATION_UPLOAD_CONFLICT_MODE) ?: $this->defaultConflictMode;
 
         $uploadFolder = $this->resourceFactory->retrieveFileOrFolderObject($uploadFolderId);
-        $uploadedFile =  $uploadFolder->addUploadedFile($uploadInfo, $conflictMode);
+        $uploadedFile = $uploadFolder->addUploadedFile($uploadInfo, $conflictMode);
 
         $validators = $configuration->getConfigurationValue(self::class, self::CONFIGURATION_FILE_VALIDATORS);
         if (is_array($validators)) {
index b12a3c0..1795343 100644 (file)
@@ -127,7 +127,7 @@ class DatePickerViewHelper extends AbstractFormFieldViewHelper
     protected function getSelectedDate()
     {
         /** @var FormRuntime $formRuntime */
-        $formRuntime =  $this->renderingContext
+        $formRuntime = $this->renderingContext
             ->getViewHelperVariableContainer()
             ->get(RenderRenderableViewHelper::class, 'formRuntime');
 
index bae0a7f..3dcabd7 100644 (file)
@@ -97,7 +97,7 @@ class TimePickerViewHelper extends AbstractFormFieldViewHelper
     protected function getSelectedDate()
     {
         /** @var FormRuntime $formRuntime */
-        $formRuntime =  $this->renderingContext
+        $formRuntime = $this->renderingContext
             ->getViewHelperVariableContainer()
             ->get(RenderRenderableViewHelper::class, 'formRuntime');
 
index 739cb27..9117b0b 100644 (file)
@@ -72,7 +72,7 @@ class RenderAllFormValuesViewHelper extends AbstractViewHelper
             $elements = [$renderable];
         }
 
-        $formRuntime =  $renderingContext
+        $formRuntime = $renderingContext
             ->getViewHelperVariableContainer()
             ->get(RenderRenderableViewHelper::class, 'formRuntime');
 
index 4cce3af..d23a43f 100644 (file)
@@ -63,7 +63,7 @@ class RenderRenderableViewHelper extends AbstractViewHelper
     {
 
         /** @var FormRuntime $formRuntime */
-        $formRuntime =  $renderingContext
+        $formRuntime = $renderingContext
             ->getViewHelperVariableContainer()
             ->get(self::class, 'formRuntime');
 
index e385353..a72528f 100644 (file)
@@ -59,7 +59,7 @@ class TranslateElementErrorViewHelper extends AbstractViewHelper
         $element = $arguments['element'];
 
         /** @var FormRuntime $formRuntime */
-        $formRuntime =  $renderingContext
+        $formRuntime = $renderingContext
             ->getViewHelperVariableContainer()
             ->get(RenderRenderableViewHelper::class, 'formRuntime');
 
index 7c3de11..cb2a413 100644 (file)
@@ -76,7 +76,7 @@ class TranslateElementPropertyViewHelper extends AbstractViewHelper
         }
 
         /** @var FormRuntime $formRuntime */
-        $formRuntime =  $renderingContext
+        $formRuntime = $renderingContext
             ->getViewHelperVariableContainer()
             ->get(RenderRenderableViewHelper::class, 'formRuntime');
 
index 4d58c1a..9a55bd2 100644 (file)
@@ -1448,7 +1448,7 @@ class ContentObjectRenderer
             'aTagParams' => &$aTagParams
         ];
         foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content.php']['getATagParamsPostProc'] ?? [] as $className) {
-            $processor =& GeneralUtility::makeInstance($className);
+            $processor = & GeneralUtility::makeInstance($className);
             $aTagParams = $processor->process($_params, $this);
         }
 
@@ -4391,7 +4391,7 @@ class ContentObjectRenderer
     {
         $aTagParams = $this->getATagParams($conf);
         $textstr = '';
-        foreach ([ 'http://', 'https://' ] as $scheme) {
+        foreach (['http://', 'https://'] as $scheme) {
             $textpieces = explode($scheme, $data);
             $pieces = count($textpieces);
             $textstr = $textpieces[0];
@@ -4891,7 +4891,7 @@ class ContentObjectRenderer
                             $rootLine = $tsfe->rootLine;
                             array_shift($rootLine);
                             foreach ($rootLine as $rootLinePage) {
-                                $retVal = (string) $rootLinePage['backend_layout_next_level'];
+                                $retVal = (string)$rootLinePage['backend_layout_next_level'];
                                 // If layout for "next level" is set to "none" - don't use any and stop searching
                                 if ($retVal === '-1') {
                                     $retVal = 'none';
@@ -6804,8 +6804,7 @@ class ContentObjectRenderer
                 // Use this option to include records that don't have a default translation
                 // (originalpointerfield is 0 and the language field contains the requested language)
                 $includeRecordsWithoutDefaultTranslation = isset($conf['includeRecordsWithoutDefaultTranslation.']) ?
-                    $this->stdWrap($conf['includeRecordsWithoutDefaultTranslation'], $conf['includeRecordsWithoutDefaultTranslation.']) :
-                    $conf['includeRecordsWithoutDefaultTranslation'];
+                    $this->stdWrap($conf['includeRecordsWithoutDefaultTranslation'], $conf['includeRecordsWithoutDefaultTranslation.']) : $conf['includeRecordsWithoutDefaultTranslation'];
                 if (trim($includeRecordsWithoutDefaultTranslation) !== '') {
                     $languageQuery = $expressionBuilder->orX(
                         $languageQuery,
index 6ad4c9e..a54adda 100644 (file)
@@ -479,7 +479,7 @@ class GalleryProcessor implements DataProcessorInterface
 
         $croppingConfiguration = $fileObject->getProperty('crop');
         $cropVariantCollection = CropVariantCollection::create((string)$croppingConfiguration);
-        return (int) $cropVariantCollection->getCropArea($this->cropVariant)->makeAbsoluteBasedOnFile($fileObject)->asArray()[$dimensionalProperty];
+        return (int)$cropVariantCollection->getCropArea($this->cropVariant)->makeAbsoluteBasedOnFile($fileObject)->asArray()[$dimensionalProperty];
     }
 
     /**
index 69aaf05..fb0097a 100644 (file)
@@ -135,7 +135,7 @@ class GifBuilder extends GraphicalFunctions
                         $this->charRangeMap[$cRMkey] = [];
                         $this->charRangeMap[$cRMkey]['charMapConfig'] = $cRMcfg['charMapConfig.'];
                         $this->charRangeMap[$cRMkey]['cfgKey'] = substr($cRMcfgkey, 0, -1);
-                        $this->charRangeMap[$cRMkey]['multiplicator'] = (double) $cRMcfg['fontSizeMultiplicator'];
+                        $this->charRangeMap[$cRMkey]['multiplicator'] = (double)$cRMcfg['fontSizeMultiplicator'];
                         $this->charRangeMap[$cRMkey]['pixelSpace'] = (int)$cRMcfg['pixelSpaceFontSizeRef'];
                     }
                 }
index 684f572..606c80d 100644 (file)
@@ -51,7 +51,7 @@ class TypoLinkCodecService
         foreach ($reverseSortedParameters as $key => &$value) {
             $value = $typoLinkParts[$key] ?? '';
             // escape special character \ and "
-            $value = str_replace([ '\\', '"' ], [ '\\\\', '\\"' ], $value);
+            $value = str_replace(['\\', '"'], ['\\\\', '\\"'], $value);
             // enclose with quotes if a string contains the delimiter
             if (strpos($value, static::$partDelimiter) !== false) {
                 $value = '"' . $value . '"';
@@ -78,7 +78,7 @@ class TypoLinkCodecService
     {
         $typoLink = trim($typoLink);
         if ($typoLink !== '') {
-            $parts = str_replace([ '\\\\', '\\"' ], [ '\\', '"' ], str_getcsv($typoLink, static::$partDelimiter));
+            $parts = str_replace(['\\\\', '\\"'], ['\\', '"'], str_getcsv($typoLink, static::$partDelimiter));
         } else {
             $parts = '';
         }
index debadfd..11f4072 100644 (file)
@@ -67,7 +67,7 @@ abstract class AbstractTypolinkBuilder
      */
     protected function forceAbsoluteUrl(string $url, array $configuration): string
     {
-        if (!empty($url) && !empty($configuration['forceAbsoluteUrl']) &&  preg_match('#^(?:([a-z]+)(://)([^/]*)/?)?(.*)$#', $url, $matches)) {
+        if (!empty($url) && !empty($configuration['forceAbsoluteUrl']) && preg_match('#^(?:([a-z]+)(://)([^/]*)/?)?(.*)$#', $url, $matches)) {
             $urlParts = [
                 'scheme' => $matches[1],
                 'delimiter' => '://',
index 29e09af..3f7e539 100644 (file)
@@ -181,7 +181,7 @@ class PageLinkBuilder extends AbstractTypolinkBuilder
             $LD['target'] = $target;
             // Convert IDNA-like domain (if any)
             if (!preg_match('/^[a-z0-9.\\-]*$/i', $targetDomain)) {
-                $targetDomain =  GeneralUtility::idnaEncode($targetDomain);
+                $targetDomain = GeneralUtility::idnaEncode($targetDomain);
             }
             $url = $absoluteUrlScheme . '://' . $targetDomain . '/index.php?id=' . $page['uid'] . $addQueryParams . $sectionMark;
         } else {
index 1d77ec3..36c4023 100644 (file)
@@ -1216,7 +1216,7 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle
                     ->execute();
 
                 while ($row = $result->fetch()) {
-                    $allOptions[$row['uid']]= $row['title'];
+                    $allOptions[$row['uid']] = $row['title'];
                 }
             }
             // disable single entries by TypoScript
index 7dc701c..cefd3e6 100644 (file)
@@ -292,7 +292,7 @@ class EnvironmentController extends AbstractController
     {
         if (!$this->isImageMagickEnabledAndConfigured()) {
             return new JsonResponse([
-                'status' => [ $this->imageMagickDisabledMessage() ],
+                'status' => [$this->imageMagickDisabledMessage()],
             ]);
         }
         $imageBasePath = ExtensionManagementUtility::extPath('install') . 'Resources/Public/Images/';
@@ -330,7 +330,7 @@ class EnvironmentController extends AbstractController
             ];
         } else {
             $result = [
-                'status' => [ $this->imageGenerationFailedMessage() ],
+                'status' => [$this->imageGenerationFailedMessage()],
             ];
         }
         return $this->getImageTestResponse($result);
@@ -345,7 +345,7 @@ class EnvironmentController extends AbstractController
     {
         if (!$this->isImageMagickEnabledAndConfigured()) {
             return new JsonResponse([
-                'status' => [ $this->imageMagickDisabledMessage() ],
+                'status' => [$this->imageMagickDisabledMessage()],
             ]);
         }
         $imageBasePath = ExtensionManagementUtility::extPath('install') . 'Resources/Public/Images/';
@@ -362,7 +362,7 @@ class EnvironmentController extends AbstractController
             ];
         } else {
             $result = [
-                'status' => [ $this->imageGenerationFailedMessage() ],
+                'status' => [$this->imageGenerationFailedMessage()],
             ];
         }
         return $this->getImageTestResponse($result);
@@ -377,7 +377,7 @@ class EnvironmentController extends AbstractController
     {
         if (!$this->isImageMagickEnabledAndConfigured()) {
             return new JsonResponse([
-                'status' => [ $this->imageMagickDisabledMessage() ],
+                'status' => [$this->imageMagickDisabledMessage()],
             ]);
         }
         $imageBasePath = ExtensionManagementUtility::extPath('install') . 'Resources/Public/Images/';
@@ -394,7 +394,7 @@ class EnvironmentController extends AbstractController
             ];
         } else {
             $result = [
-                'status' => [ $this->imageGenerationFailedMessage() ],
+                'status' => [$this->imageGenerationFailedMessage()],
             ];
         }
         return $this->getImageTestResponse($result);
@@ -409,7 +409,7 @@ class EnvironmentController extends AbstractController
     {
         if (!$this->isImageMagickEnabledAndConfigured()) {
             return new JsonResponse([
-                'status' => [ $this->imageMagickDisabledMessage() ],
+                'status' => [$this->imageMagickDisabledMessage()],
             ]);
         }
         $imageBasePath = ExtensionManagementUtility::extPath('install') . 'Resources/Public/Images/';
@@ -426,7 +426,7 @@ class EnvironmentController extends AbstractController
             ];
         } else {
             $result = [
-                'status' => [ $this->imageGenerationFailedMessage() ],
+                'status' => [$this->imageGenerationFailedMessage()],
             ];
         }
         return $this->getImageTestResponse($result);
@@ -441,7 +441,7 @@ class EnvironmentController extends AbstractController
     {
         if (!$this->isImageMagickEnabledAndConfigured()) {
             return new JsonResponse([
-                'status' => [ $this->imageMagickDisabledMessage() ],
+                'status' => [$this->imageMagickDisabledMessage()],
             ]);
         }
         $imageBasePath = ExtensionManagementUtility::extPath('install') . 'Resources/Public/Images/';
@@ -458,7 +458,7 @@ class EnvironmentController extends AbstractController
             ];
         } else {
             $result = [
-                'status' => [ $this->imageGenerationFailedMessage() ],
+                'status' => [$this->imageGenerationFailedMessage()],
             ];
         }
         return $this->getImageTestResponse($result);
@@ -473,7 +473,7 @@ class EnvironmentController extends AbstractController
     {
         if (!$this->isImageMagickEnabledAndConfigured()) {
             return new JsonResponse([
-                'status' => [ $this->imageMagickDisabledMessage() ],
+                'status' => [$this->imageMagickDisabledMessage()],
             ]);
         }
         $imageBasePath = ExtensionManagementUtility::extPath('install') . 'Resources/Public/Images/';
@@ -494,7 +494,7 @@ class EnvironmentController extends AbstractController
             ];
         } else {
             $result = [
-                'status' => [ $this->imageGenerationFailedMessage() ],
+                'status' => [$this->imageGenerationFailedMessage()],
             ];
         }
         return $this->getImageTestResponse($result);
@@ -509,7 +509,7 @@ class EnvironmentController extends AbstractController
     {
         if (!$this->isImageMagickEnabledAndConfigured()) {
             return new JsonResponse([
-                'status' => [ $this->imageMagickDisabledMessage() ],
+                'status' => [$this->imageMagickDisabledMessage()],
             ]);
         }
         $imageBasePath = ExtensionManagementUtility::extPath('install') . 'Resources/Public/Images/';
@@ -530,7 +530,7 @@ class EnvironmentController extends AbstractController
             ];
         } else {
             $result = [
-                'status' => [ $this->imageGenerationFailedMessage() ],
+                'status' => [$this->imageGenerationFailedMessage()],
             ];
         }
         return $this->getImageTestResponse($result);
@@ -642,7 +642,7 @@ class EnvironmentController extends AbstractController
     {
         if (!$this->isImageMagickEnabledAndConfigured()) {
             return new JsonResponse([
-                'status' => [ $this->imageMagickDisabledMessage() ],
+                'status' => [$this->imageMagickDisabledMessage()],
             ]);
         }
         $imageProcessor = $this->initializeImageProcessor();
@@ -689,7 +689,7 @@ class EnvironmentController extends AbstractController
     {
         if (!$this->isImageMagickEnabledAndConfigured()) {
             return new JsonResponse([
-                'status' => [ $this->imageMagickDisabledMessage() ],
+                'status' => [$this->imageMagickDisabledMessage()],
             ]);
         }
         $imageProcessor = $this->initializeImageProcessor();
@@ -785,7 +785,7 @@ class EnvironmentController extends AbstractController
     {
         if (!$this->isImageMagickEnabledAndConfigured()) {
             return new JsonResponse([
-                'status' => [ $this->imageMagickDisabledMessage() ],
+                'status' => [$this->imageMagickDisabledMessage()],
             ]);
         }
         if (!GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], $inputFormat)) {
@@ -813,7 +813,7 @@ class EnvironmentController extends AbstractController
                 'command' => $imageProcessor->IM_commands,
             ];
         } else {
-            $result['status'] = [ $this->imageGenerationFailedMessage() ];
+            $result['status'] = [$this->imageGenerationFailedMessage()];
         }
         return $this->getImageTestResponse($result);
     }
index 9b48a21..bc8272a 100644 (file)
@@ -436,7 +436,7 @@ class InstallerController
             }
             $configurationManager = GeneralUtility::makeInstance(ConfigurationManager::class);
             // Remove full default connection array
-            $configurationManager->removeLocalConfigurationKeysByPath([ 'DB/Connections/Default' ]);
+            $configurationManager->removeLocalConfigurationKeysByPath(['DB/Connections/Default']);
             // Write new values
             $configurationManager->setLocalConfigurationValuesByPathValuePairs($localConfigurationPathValuePairs);
         }
@@ -507,7 +507,7 @@ class InstallerController
             if ($status->getSeverity() === FlashMessage::ERROR) {
                 return new JsonResponse([
                     'success' => false,
-                    'status' => [ $status ],
+                    'status' => [$status],
                 ]);
             }
         } elseif ($postValues['type'] === 'existing' && !empty($postValues['existing'])) {
@@ -515,7 +515,7 @@ class InstallerController
             if ($status->getSeverity() === FlashMessage::ERROR) {
                 return new JsonResponse([
                     'success' => false,
-                    'status' => [ $status ],
+                    'status' => [$status],
                 ]);
             }
         } else {
index b27eadb..01107b8 100644 (file)
@@ -471,7 +471,7 @@ class MaintenanceController extends AbstractController
                     // Update the LocalConfiguration.php file with the new list
                     $configurationManager = GeneralUtility::makeInstance(ConfigurationManager::class);
                     $configurationManager->setLocalConfigurationValuesByPathValuePairs(
-                        [ 'SYS/systemMaintainers' => $newSystemMaintainersList ]
+                        ['SYS/systemMaintainers' => $newSystemMaintainersList]
                     );
                 }
 
index 7f1f7ce..6715709 100644 (file)
@@ -182,7 +182,7 @@ class SettingsController extends AbstractController
 
         $configurationManager = GeneralUtility::makeInstance(ConfigurationManager::class);
         $configurationManager->setLocalConfigurationValuesByPathValuePairs(
-            [ 'SYS/systemMaintainers' => $validatedUserList ]
+            ['SYS/systemMaintainers' => $validatedUserList]
         );
 
         $messages = [];
index 449702e..90ec063 100644 (file)
@@ -55,7 +55,7 @@ class CodeStatistics extends NodeVisitorAbstract
         $startLineOfNode = $node->getAttribute('startLine');
         if ($startLineOfNode !== $this->currentLineNumber) {
             $this->currentLineNumber = $startLineOfNode;
-            $this->numberOfEffectiveCodeLines ++;
+            $this->numberOfEffectiveCodeLines++;
 
             // Class statements may contain the @extensionScannerIgnoreFile statements
             if ($node instanceof Class_) {
@@ -75,7 +75,7 @@ class CodeStatistics extends NodeVisitorAbstract
             if (!empty($comments)) {
                 foreach ($comments as $comment) {
                     if (strstr($comment->getText(), '@extensionScannerIgnoreLine') !== false) {
-                        $this->numberOfIgnoreLines ++;
+                        $this->numberOfIgnoreLines++;
                         break;
                     }
                 }
index 112a0a0..741a3f0 100644 (file)
@@ -483,7 +483,7 @@ class ExtensionConfigurationService
                     // Find object name string until we meet an operator
                     $varL = strcspn($line, TAB . ' {=<>(');
                     // check for special ":=" operator
-                    if ($varL > 0 && substr($line, $varL-1, 2) === ':=') {
+                    if ($varL > 0 && substr($line, $varL - 1, 2) === ':=') {
                         --$varL;
                     }
                     // also remove tabs after the object string name
index 64dc7e7..eb06440 100644 (file)
@@ -655,7 +655,7 @@ class SilentConfigurationUpgradeService
         }
 
         try {
-            $value= $confManager->getLocalConfigurationValueByPath('DB/password');
+            $value = $confManager->getLocalConfigurationValueByPath('DB/password');
             $removeSettings[] = 'DB/password';
             $newSettings['DB/Connections/Default/password'] = $value;
         } catch (\RuntimeException $e) {
index 00006e8..aaca96c 100644 (file)
@@ -179,7 +179,7 @@ class DatabaseRowsUpdateWizard extends AbstractUpdate
                 $updatedFields = array_diff_assoc($row, $rowBefore);
                 if (empty($updatedFields)) {
                     // Updaters changed no field of that row
-                    $rowCountWithoutUpdate ++;
+                    $rowCountWithoutUpdate++;
                     if ($rowCountWithoutUpdate >= 200) {
                         // Update startPosition if there were many rows without data change
                         $startPosition = [
index 54fb322..fe9270a 100644 (file)
@@ -117,6 +117,6 @@ class SectionFrameToFrameClassUpdate extends AbstractUpdate
         if (array_key_exists($sectionFrame, $mapping)) {
             return $mapping[$sectionFrame];
         }
-        return 'custom-' . (int) $sectionFrame;
+        return 'custom-' . (int)$sectionFrame;
     }
 }
index d5b2665..5cc3f10 100644 (file)
@@ -41,7 +41,7 @@ class TypoScriptConstantsViewHelper extends AbstractTagBasedViewHelper
         'user' => 'renderUserFunction',
         'small' => 'renderSmallTextField',
         'string' => 'renderTextField',
-        'input' => 'renderTextField',  // only for backwards compatibility, many extensions depend on that
+        'input' => 'renderTextField', // only for backwards compatibility, many extensions depend on that
         'default' => 'renderTextField' // only for backwards compatibility, many extensions depend on that
     ];
 
index f75fe3d..23baa2f 100644 (file)
@@ -64,7 +64,7 @@ class Extension extends AbstractEntity
      * @param string $title Title of the extension
      * @param string $icon Icon representing the extension
      */
-    public function __construct($key = '', $title= '', $icon = '')
+    public function __construct($key = '', $title = '', $icon = '')
     {
         $this->setKey($key);
         $this->setTitle($title);
index c452cfa..a1affcc 100644 (file)
@@ -216,7 +216,7 @@ class TerService extends TerUtility implements SingletonInterface
             while (($zipEntry = zip_read($zip)) !== false) {
                 $zipEntryName = zip_entry_name($zipEntry);
                 if (strpos($zipEntryName, '/') !== false) {
-                    $zipEntryPathSegments =  explode('/', $zipEntryName);
+                    $zipEntryPathSegments = explode('/', $zipEntryName);
                     $fileName = array_pop($zipEntryPathSegments);
                     // It is a folder, because the last segment is empty, let's create it
                     if (empty($fileName)) {
index 2e5e623..7b1f96b 100644 (file)
@@ -90,7 +90,7 @@ class TranslationService implements SingletonInterface
         if (is_string($locales)) {
             $locales = GeneralUtility::trimExplode(',', $locales);
         }
-        $locales = array_flip((array) $locales);
+        $locales = array_flip((array)$locales);
         foreach ($locales as $locale => $key) {
             $state = static::TRANSLATION_INVALID;
             $error = '';
index 32377d9..1f81858 100644 (file)
@@ -197,7 +197,7 @@ class DatabaseBrowser extends AbstractElementBrowser implements ElementBrowserIn
     protected function renderTableRecords($tables)
     {
         $backendUser = $this->getBackendUser();
-        if ($this->expandPage === null  || $this->expandPage < 0 || !$backendUser->isInWebMount($this->expandPage)) {
+        if ($this->expandPage === null || $this->expandPage < 0 || !$backendUser->isInWebMount($this->expandPage)) {
             return '';
         }
         // Set array with table names to list:
index c09fe39..545b533 100644 (file)
@@ -34,7 +34,7 @@ abstract class AbstractLinkHandler
      *
      * @var string[]
      */
-    protected $linkAttributes = [ 'target', 'title', 'class', 'params', 'rel' ];
+    protected $linkAttributes = ['target', 'title', 'class', 'params', 'rel'];
 
     /**
      * @var bool
index 8c2a7b6..0c4a35b 100644 (file)
@@ -2049,7 +2049,7 @@ class DatabaseRecordList
             }
             // "Delete" link:
             $disableDeleteTS = $this->getBackendUserAuthentication()->getTSConfig('options.disableDelete');
-            $disableDelete = (bool) trim($disableDeleteTS['properties'][$table] ?? $disableDeleteTS['value']);
+            $disableDelete = (bool)trim($disableDeleteTS['properties'][$table] ?? $disableDeleteTS['value']);
             if ($permsEdit && !$disableDelete && ($table === 'pages' && $localCalcPerms & Permission::PAGE_DELETE || $table !== 'pages' && $this->calcPerms & Permission::CONTENT_EDIT)) {
                 // Check if the record version is in "deleted" state, because that will switch the action to "restore"
                 if ($this->getBackendUserAuthentication()->workspace > 0 && isset($row['t3ver_state']) && (int)$row['t3ver_state'] === 2) {
index 7c57f99..3ffa48d 100644 (file)
@@ -76,7 +76,7 @@ class ConfigurationStatus implements StatusProviderInterface
         if (!$count && $lastRefIndexUpdate) {
             $value = $this->getLanguageService()->getLL('status_empty');
             $severity = ReportStatus::WARNING;
-            $url =  (string)$uriBuilder->buildUriFromRoute('system_dbint') . '&id=0&SET[function]=refindex';
+            $url = (string)$uriBuilder->buildUriFromRoute('system_dbint') . '&id=0&SET[function]=refindex';
             $message = sprintf($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:warning.backend_reference_index'), '<a href="' . htmlspecialchars($url) . '">', '</a>', BackendUtility::datetime($lastRefIndexUpdate));
         }
         return GeneralUtility::makeInstance(ReportStatus::class, $this->getLanguageService()->getLL('status_referenceIndex'), $value, $message, $severity);
index 532b2f0..487c099 100644 (file)
@@ -56,7 +56,7 @@ class CommandLineBackend extends AbstractBackend
         $this->opensslPath = CommandUtility::getCommand('openssl');
         // Get temporary directory from the configuration
         $path = trim(GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('rsaauth', 'temporaryDirectory'));
-        if ($path !== ''  && $path[0] === '/'  && @is_dir($path)  && is_writable($path)) {
+        if ($path !== '' && $path[0] === '/' && @is_dir($path) && is_writable($path)) {
             $this->temporaryDirectory = $path;
         } else {
             $this->temporaryDirectory = PATH_site . 'typo3temp/var/transient';
index 2fca23b..266b5d3 100644 (file)
@@ -146,7 +146,7 @@ class ExtensionManagerConfigurationUtility
      */
     private function init()
     {
-        $requestSetup = $this->processPostData((array) $_REQUEST['data']);
+        $requestSetup = $this->processPostData((array)$_REQUEST['data']);
         $extConf = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('saltedpasswords');
         $this->extConf['BE'] = array_merge((array)$extConf['BE'], (array)$requestSetup['BE']);
         $this->extConf['FE'] = array_merge((array)$extConf['FE'], (array)$requestSetup['FE']);
index a008f3e..7485a52 100644 (file)
@@ -173,7 +173,7 @@ class SchedulerModuleController
         } else {
             // If no access, only display the module's title
             $content = '<h1>' . $this->getLanguageService()->getLL('title.') . '</h1>';
-            $content .='<div style="padding-top: 5px;"></div>';
+            $content .= '<div style="padding-top: 5px;"></div>';
         }
         $this->getButtons();
         $this->getModuleMenu();
index 3e069c8..4eeaa0b 100644 (file)
@@ -41,8 +41,8 @@ class ExecuteSchedulableCommandAdditionalFieldProvider implements AdditionalFiel
      */
     protected static $blacklistedCommands = [
         \TYPO3\CMS\Scheduler\Command\SchedulerCommand::class, // scheduler:run
-        \TYPO3\CMS\Extbase\Command\CoreCommand::class,        // _core_command
-        \TYPO3\CMS\Extbase\Command\HelpCommand::class,        // _extbase_help
+        \TYPO3\CMS\Extbase\Command\CoreCommand::class, // _core_command
+        \TYPO3\CMS\Extbase\Command\HelpCommand::class, // _extbase_help
     ];
 
     /**
index e4cbaea..bad5c84 100644 (file)
@@ -52,9 +52,9 @@ class FileStorageIndexingAdditionalFieldProvider implements \TYPO3\CMS\Scheduler
         foreach ($storages as $storage) {
             $selected = '';
             if ($task !== null && $task->storageUid === $storage->getUid()) {
-                $selected =' selected="selected"';
+                $selected = ' selected="selected"';
             } elseif ((int)$taskInfo['scheduler_fileStorageIndexing_storage'] === $storage->getUid()) {
-                $selected =' selected="selected"';
+                $selected = ' selected="selected"';
             }
             $options[] = '<option value="' . $storage->getUid() . '" ' . $selected . ' >' . $storage->getName() . '</option>';
         }
index eb260c9..d3d65f9 100644 (file)
@@ -223,7 +223,7 @@ class TaskModuleController extends BaseScriptClass
             'EXT:taskcenter/Resources/Private/Templates/ModuleContent.html'
         ));
         $view->assignMultiple($assigns);
-        $this->content .=  $view->render();
+        $this->content .= $view->render();
     }
 
     /**
@@ -245,7 +245,7 @@ class TaskModuleController extends BaseScriptClass
             'EXT:taskcenter/Resources/Private/Templates/InformationContent.html'
         ));
         $view->assignMultiple($assigns);
-        $this->content .=  $view->render();
+        $this->content .= $view->render();
     }
 
     /**
index dc26ebe..87db910 100644 (file)
@@ -131,7 +131,7 @@ class TypoScriptTemplateInformationModuleFunctionController extends AbstractFunc
         $existTemplate = $this->initialize_editor($this->pObj->id, $template_uid);
         $saveId = 0;
         if ($existTemplate) {
-            $saveId = $this->templateRow['_ORIG_uid'] ? : $this->templateRow['uid'];
+            $saveId = $this->templateRow['_ORIG_uid'] ?: $this->templateRow['uid'];
         }
         /** @var \TYPO3\CMS\Backend\Routing\UriBuilder $uriBuilder */
         $uriBuilder = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Routing\UriBuilder::class);
index d3aeebb..6b4acc2 100644 (file)
@@ -145,12 +145,12 @@ class ViewModuleController extends ActionController
 
         $current = ($this->getBackendUser()->uc['moduleData']['web_view']['States']['current'] ?: []);
         $current['label'] = ($current['label'] ?? $this->getLanguageService()->sL('LLL:EXT:viewpage/Resources/Private/Language/locallang.xlf:custom'));
-        $current['width'] = (isset($current['width']) && (int) $current['width'] >= 300 ? (int) $current['width'] : 320);
-        $current['height'] = (isset($current['height']) && (int) $current['height'] >= 300 ? (int) $current['height'] : 480);
+        $current['width'] = (isset($current['width']) && (int)$current['width'] >= 300 ? (int)$current['width'] : 320);
+        $current['height'] = (isset($current['height']) && (int)$current['height'] >= 300 ? (int)$current['height'] : 480);
 
         $custom = ($this->getBackendUser()->uc['moduleData']['web_view']['States']['custom'] ?: []);
-        $custom['width'] = (isset($current['custom']) && (int) $current['custom'] >= 300 ? (int) $current['custom'] : 320);
-        $custom['height'] = (isset($current['custom']) && (int) $current['custom'] >= 300 ? (int) $current['custom'] : 480);
+        $custom['width'] = (isset($current['custom']) && (int)$current['custom'] >= 300 ? (int)$current['custom'] : 320);
+        $custom['height'] = (isset($current['custom']) && (int)$current['custom'] >= 300 ? (int)$current['custom'] : 480);
 
         $this->view->assign('icons', $icons);
         $this->view->assign('current', $current);
@@ -278,10 +278,10 @@ class ViewModuleController extends ActionController
                     'key' => substr($item, 0, -1),
                     'label' => ($conf['label'] ?? null),
                     'type' => ($conf['type'] ?? 'unknown'),
-                    'width' => ((isset($conf['width']) && (int) $conf['width'] > 0 && strpos($conf['width'], '%') === false) ? (int) $conf['width'] : null),
-                    'height' => ((isset($conf['height']) && (int) $conf['height'] > 0 && strpos($conf['height'], '%') === false) ? (int) $conf['height'] : null),
+                    'width' => ((isset($conf['width']) && (int)$conf['width'] > 0 && strpos($conf['width'], '%') === false) ? (int)$conf['width'] : null),
+                    'height' => ((isset($conf['height']) && (int)$conf['height'] > 0 && strpos($conf['height'], '%') === false) ? (int)$conf['height'] : null),
                 ];
-                $width = (int) substr($item, 0, -1);
+                $width = (int)substr($item, 0, -1);
                 if (!isset($data['width']) && $width > 0) {
                     $data['width'] = $width;
                 }
index cec02df..74750a0 100644 (file)
@@ -486,7 +486,7 @@ class WorkspaceService implements SingletonInterface
 
         if ($pageList) {
             $pidField = $table === 'pages' ? 'B.uid' : 'A.pid';
-            $constraints[] =  $queryBuilder->expr()->in(
+            $constraints[] = $queryBuilder->expr()->in(
                 $pidField,
                 $queryBuilder->createNamedParameter(
                     GeneralUtility::intExplode(',', $pageList, true),