[TASK] CGL: Fix a series of minor indentation issues 50/55350/3
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 13 Jan 2018 16:19:33 +0000 (17:19 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 13 Jan 2018 16:50:10 +0000 (17:50 +0100)
Apply various minor indentation CGL fixes, as suggested
by scrutinizer-ci, mostly related to places where indentation
is done with 1 or 3 spaces instead of 4.

Change-Id: Ie3345c7391c0735e8074fd633dd9523616a6b82d
Resolves: #83555
Releases: master
Reviewed-on: https://review.typo3.org/55350
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
35 files changed:
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/Controller/File/CreateFolderController.php
typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/sysext/backend/Classes/Form/FieldWizard/FileUpload.php
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php
typo3/sysext/backend/Classes/Tree/View/PageTreeView.php
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/beuser/Classes/Controller/PermissionAjaxController.php
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php
typo3/sysext/core/Classes/DataHandling/DataHandler.php
typo3/sysext/core/Classes/Database/ReferenceIndex.php
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
typo3/sysext/core/Classes/Migrations/TcaMigration.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php
typo3/sysext/extbase/Classes/Configuration/AbstractConfigurationManager.php
typo3/sysext/extbase/Classes/Domain/Model/FileReference.php
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php
typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php
typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php
typo3/sysext/frontend/Classes/Http/RequestHandler.php
typo3/sysext/frontend/Classes/View/AdminPanelView.php
typo3/sysext/impexp/Classes/Import.php
typo3/sysext/impexp/Classes/Task/ImportExportTask.php
typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php
typo3/sysext/info/Classes/Controller/InfoModuleController.php
typo3/sysext/recordlist/Classes/Browser/AbstractElementBrowser.php
typo3/sysext/recordlist/Classes/Browser/FileBrowser.php
typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
typo3/sysext/reports/Classes/ViewHelpers/IconViewHelper.php
typo3/sysext/setup/Classes/Controller/SetupModuleController.php
typo3/sysext/workspaces/Classes/Service/WorkspaceService.php

index ba4dd4d..e4729c8 100644 (file)
@@ -1626,8 +1626,8 @@ class EditDocumentController
                             }
                             if ($addOption) {
                                 $menuItem = $languageMenu->makeMenuItem()
-                                                         ->setTitle($lang['title'] . $newTranslation)
-                                                         ->setHref($href);
+                                    ->setTitle($lang['title'] . $newTranslation)
+                                    ->setHref($href);
                                 if ((int)$lang['uid'] === $currentLanguage) {
                                     $menuItem->setActive(true);
                                 }
index eb67050..d095945 100644 (file)
@@ -242,9 +242,9 @@ class CreateFolderController
         // Back
         if ($this->returnUrl) {
             $backButton = $buttonBar->makeLinkButton()
-               ->setHref($this->returnUrl)
-               ->setTitle($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.goBack'))
-               ->setIcon($this->moduleTemplate->getIconFactory()->getIcon('actions-view-go-back', Icon::SIZE_SMALL));
+                ->setHref($this->returnUrl)
+                ->setTitle($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.goBack'))
+                ->setIcon($this->moduleTemplate->getIconFactory()->getIcon('actions-view-go-back', Icon::SIZE_SMALL));
             $buttonBar->addButton($backButton);
         }
 
index e1b9a48..fec04f1 100644 (file)
@@ -499,7 +499,7 @@ class FormInlineAjaxController extends AbstractFormEngineAjaxController
             'inlineParentTableName' => $parentData['tableName'],
             'inlineParentFieldName' => $parentFieldName,
 
-             // values of the top most parent element set on first level and not overridden on following levels
+            // values of the top most parent element set on first level and not overridden on following levels
             'inlineTopMostParentUid' => $inlineTopMostParent['uid'],
             'inlineTopMostParentTableName' => $inlineTopMostParent['table'],
             'inlineTopMostParentFieldName' => $inlineTopMostParent['field'],
index 0fb0708..23549fd 100644 (file)
@@ -726,7 +726,7 @@ class PageLayoutController
                 ' . ($this->popView ? BackendUtility::viewOnClick($this->id, '', BackendUtility::BEgetRootLine($this->id)) : '') . '
                 function deleteRecord(table,id,url) {   //
                     window.location.href = ' . GeneralUtility::quoteJSvalue((string)$uriBuilder->buildUriFromRoute('tce_db') . '&cmd[')
-                                             . ' + table + "][" + id + "][delete]=1&redirect=" + encodeURIComponent(url);
+                                            . ' + table + "][" + id + "][delete]=1&redirect=" + encodeURIComponent(url);
                     return false;
                 }
             ');
index 8b322fa..9c9b9f0 100644 (file)
@@ -55,7 +55,7 @@ class FileUpload extends AbstractNode
             // If maxItems = 1 then automatically replace the current item file selector
             $resultArray['additionalJavaScriptPost'][] =
                 'TBE_EDITOR.clearBeforeSettingFormValueFromBrowseWin[' . GeneralUtility::quoteJSvalue($itemName) . '] = {'
-                   . 'itemFormElID_file: ' . GeneralUtility::quoteJSvalue($uploadFieldId)
+                    . 'itemFormElID_file: ' . GeneralUtility::quoteJSvalue($uploadFieldId)
                 . '}';
         }
 
index 5c0a75f..96e5471 100644 (file)
@@ -927,10 +927,10 @@ function jumpToUrl(URL) {
     }
 
     /**
-    * Retrieves configured favicon for backend (with fallback)
-    *
-    * @return string
-    */
+     * Retrieves configured favicon for backend (with fallback)
+     *
+     * @return string
+     */
     protected function getBackendFavicon()
     {
         $backendFavicon = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('backend', 'backendFavicon');
index 51b6c4e..f5eef50 100644 (file)
@@ -740,7 +740,6 @@ abstract class AbstractTreeView
      * @param int $uid item id for which to select subitems (parent id)
      * @param int $depth Max depth (recursivity limit)
      * @param string $depthData HTML-code prefix for recursive calls.
-
      * @return int The count of items on the level
      */
     public function getTree($uid, $depth = 999, $depthData = '')
index 1a58a58..8f0c7d7 100644 (file)
@@ -126,16 +126,16 @@ class PageTreeView extends AbstractTreeView
         $lang = $this->getLanguageService();
         if ($this->ext_showNavTitle && isset($row['nav_title']) && trim($row['nav_title']) !== '') {
             $title = '<span title="' . htmlspecialchars($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_tca.xlf:title')) . ' '
-                     . htmlspecialchars(trim($row['title'])) . '">'
-                     . htmlspecialchars(GeneralUtility::fixed_lgd_cs($row['nav_title'], $titleLen))
-                     . '</span>';
+                        . htmlspecialchars(trim($row['title'])) . '">'
+                        . htmlspecialchars(GeneralUtility::fixed_lgd_cs($row['nav_title'], $titleLen))
+                        . '</span>';
         } else {
             $title = htmlspecialchars(GeneralUtility::fixed_lgd_cs($row['title'], $titleLen));
             if (isset($row['nav_title']) && trim($row['nav_title']) !== '') {
                 $title = '<span title="'
-                         . htmlspecialchars($lang->sL('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.nav_title'))
-                         . ' ' . htmlspecialchars(trim($row['nav_title'])) . '">' . $title
-                         . '</span>';
+                            . htmlspecialchars($lang->sL('LLL:EXT:frontend/Resources/Private/Language/locallang_tca.xlf:pages.nav_title'))
+                            . ' ' . htmlspecialchars(trim($row['nav_title'])) . '">' . $title
+                            . '</span>';
             }
             $title = trim($row['title']) === ''
                 ? '<em>[' . htmlspecialchars($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.no_title')) . ']</em>'
index 6c6e162..16ec0c3 100644 (file)
@@ -1942,7 +1942,7 @@ class PageLayoutView implements LoggerAwareInterface
                     $params = '&cmd[tt_content][' . $row['uid'] . '][delete]=1';
                     $confirm = $this->getLanguageService()->getLL('deleteWarning')
                         . BackendUtility::translationCount('tt_content', $row['uid'], (' '
-                                                                                       . $this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.translationsOfRecord')));
+                        . $this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.translationsOfRecord')));
                     $out .= '<a class="btn btn-default t3js-modal-trigger" href="' . htmlspecialchars(BackendUtility::getLinkToDataHandlerAction($params)) . '"'
                         . ' data-severity="warning"'
                         . ' data-title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_alt_doc.xlf:label.confirm.delete_record.title')) . '"'
index dcedd7c..23c2f35 100644 (file)
@@ -199,9 +199,9 @@ class PermissionAjaxController
         $options = '<option value="0"></option>' . $options;
         $selector = '<select name="new_page_owner" id="new_page_owner">' . $options . '</select>';
         $saveButton = '<a class="saveowner btn btn-default" data-page="' . $page . '" data-owner="' . $ownerUid
-                      . '" data-element-id="' . $elementId . '" title="Change owner">'
-                      . $this->iconFactory->getIcon('actions-document-save', Icon::SIZE_SMALL)->render()
-                      . '</a>';
+                        . '" data-element-id="' . $elementId . '" title="Change owner">'
+                        . $this->iconFactory->getIcon('actions-document-save', Icon::SIZE_SMALL)->render()
+                        . '</a>';
         $cancelButton = '<a class="restoreowner btn btn-default" data-page="' . $page . '"  data-owner="' . $ownerUid
                         . '" data-element-id="' . $elementId . '"'
                         . (!empty($username) ? ' data-username="' . htmlspecialchars($username) . '"' : '')
@@ -256,9 +256,9 @@ class PermissionAjaxController
         $options = '<option value="0"></option>' . $options;
         $selector = '<select name="new_page_group" id="new_page_group">' . $options . '</select>';
         $saveButton = '<a class="savegroup btn btn-default" data-page="' . $page . '" data-group-id="' . $groupUid
-                      . '" data-element-id="' . $elementId . '" title="Change group">'
-                      . $this->iconFactory->getIcon('actions-document-save', Icon::SIZE_SMALL)->render()
-                      . '</a>';
+                        . '" data-element-id="' . $elementId . '" title="Change group">'
+                        . $this->iconFactory->getIcon('actions-document-save', Icon::SIZE_SMALL)->render()
+                        . '</a>';
         $cancelButton = '<a class="restoregroup btn btn-default" data-page="' . $page . '" data-group-id="' . $groupUid
                         . '" data-element-id="' . $elementId . '"'
                         . (!empty($groupname) ? ' data-groupname="' . htmlspecialchars($groupname) . '"' : '')
@@ -286,12 +286,12 @@ class PermissionAjaxController
         $page = (int)$page;
         if ($editLockState === 1) {
             $ret = '<span id="el_' . $page . '"><a class="editlock btn btn-default" data-page="' . $page
-                   . '" data-lockstate="1" title="The page and all content is locked for editing by all non-Admin users.">'
-                   . $this->iconFactory->getIcon('actions-lock', Icon::SIZE_SMALL)->render() . '</a></span>';
+                    . '" data-lockstate="1" title="The page and all content is locked for editing by all non-Admin users.">'
+                    . $this->iconFactory->getIcon('actions-lock', Icon::SIZE_SMALL)->render() . '</a></span>';
         } else {
             $ret = '<span id="el_' . $page . '"><a class="editlock btn btn-default" data-page="' . $page .
-                   '" data-lockstate="0" title="Enable the &raquo;Admin-only&laquo; edit lock for this page">'
-                   . $this->iconFactory->getIcon('actions-unlock', Icon::SIZE_SMALL)->render() . '</a></span>';
+                    '" data-lockstate="0" title="Enable the &raquo;Admin-only&laquo; edit lock for this page">'
+                    . $this->iconFactory->getIcon('actions-unlock', Icon::SIZE_SMALL)->render() . '</a></span>';
         }
         return $ret;
     }
index 4b183f2..af7c86a 100644 (file)
@@ -1984,13 +1984,13 @@ class BackendUserAuthentication extends AbstractUserAuthentication
     }
 
     /**
-    * Returns a \TYPO3\CMS\Core\Resource\Folder object that could be used for uploading
-    * temporary files in user context. The folder _temp_ below the default upload folder
-    * of the user is used.
-    *
-    * @return \TYPO3\CMS\Core\Resource\Folder|null
-    * @see \TYPO3\CMS\Core\Authentication\BackendUserAuthentication::getDefaultUploadFolder();
-    */
+     * Returns a \TYPO3\CMS\Core\Resource\Folder object that could be used for uploading
+     * temporary files in user context. The folder _temp_ below the default upload folder
+     * of the user is used.
+     *
+     * @return \TYPO3\CMS\Core\Resource\Folder|null
+     * @see \TYPO3\CMS\Core\Authentication\BackendUserAuthentication::getDefaultUploadFolder();
+     */
     public function getDefaultUploadTemporaryFolder()
     {
         $defaultTemporaryFolder = null;
index 7f820d7..d0083c4 100644 (file)
@@ -4819,7 +4819,7 @@ class DataHandler implements LoggerAwareInterface
                 ($fCfg['l10n_mode'] === 'exclude')
                     && $fN != $GLOBALS['TCA'][$table]['ctrl']['languageField']
                     && $fN != $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']
-             ) {
+            ) {
                 // Otherwise, do not copy field (unless it is the language field or
                 // pointer to the original language)
                 $excludeFields[] = $fN;
index d34a4e6..834674e 100644 (file)
@@ -1335,8 +1335,8 @@ class ReferenceIndex implements LoggerAwareInterface
             } catch (DBALException $e) {
                 // Table exists in TCA but does not exist in the database
                 $msg = 'Table "' .
-                       $tableName .
-                       '" exists in TCA but does not exist in the database. You should run the Database Analyzer in the Install Tool to fix this.';
+                        $tableName .
+                        '" exists in TCA but does not exist in the database. You should run the Database Analyzer in the Install Tool to fix this.';
                 $this->logger->error($msg, ['exception' => $e]);
                 continue;
             }
index b7058d3..ccf6df5 100644 (file)
@@ -2481,10 +2481,10 @@ class GraphicalFunctions
         $this->imageMagickExec($mask, $theMask, '-colorspace GRAY +matte');
 
         $parameters = '-compose over +matte '
-                      . CommandUtility::escapeShellArgument($input) . ' '
-                      . CommandUtility::escapeShellArgument($overlay) . ' '
-                      . CommandUtility::escapeShellArgument($theMask) . ' '
-                      . CommandUtility::escapeShellArgument($output);
+            . CommandUtility::escapeShellArgument($input) . ' '
+            . CommandUtility::escapeShellArgument($overlay) . ' '
+            . CommandUtility::escapeShellArgument($theMask) . ' '
+            . CommandUtility::escapeShellArgument($output);
         $cmd = CommandUtility::imageMagickCommand('combine', $parameters);
         $this->IM_commands[] = [$output, $cmd];
         $ret = CommandUtility::exec($cmd);
index 2b19054..bd6d5d0 100644 (file)
@@ -2248,27 +2248,27 @@ class TcaMigration
                                 if ($control === 'browser') {
                                     $fieldConfig['config']['fieldControl']['elementBrowser']['disabled'] = true;
                                     $this->messages[] = 'The \'type\' = \'group\' option \'disable_controls\' = \'browser\''
-                                       . ' from TCA ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\']'
-                                       . ' and has been migrated to'
-                                       . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\'][\'fieldControl\'][\'elementBrowser\'][\'disabled\'] = true';
+                                        . ' from TCA ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\']'
+                                        . ' and has been migrated to'
+                                        . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\'][\'fieldControl\'][\'elementBrowser\'][\'disabled\'] = true';
                                 } elseif ($control === 'delete') {
                                     $this->messages[] = 'The \'type\' = \'group\' option \'disable_controls\' = \'delete\''
-                                       . ' from TCA ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\']'
-                                       . ' and has been migrated to'
-                                       . $table . '[\'columns\'][\' . $fieldName . \'][\'config\'][\'hideDeleteIcon\'] = true';
+                                        . ' from TCA ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\']'
+                                        . ' and has been migrated to'
+                                        . $table . '[\'columns\'][\' . $fieldName . \'][\'config\'][\'hideDeleteIcon\'] = true';
                                     $fieldConfig['config']['hideDeleteIcon'] = true;
                                 } elseif ($control === 'allowedTables') {
                                     $fieldConfig['config']['fieldWizard']['tableList']['disabled'] = true;
                                     $this->messages[] = 'The \'type\' = \'group\' option \'disable_controls\' = \'allowedTables\''
-                                       . ' from TCA ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\']'
-                                       . ' and has been migrated to'
-                                       . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\'][\'fieldWizard\'][\'tableList\'][\'disabled\'] = true';
+                                        . ' from TCA ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\']'
+                                        . ' and has been migrated to'
+                                        . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\'][\'fieldWizard\'][\'tableList\'][\'disabled\'] = true';
                                 } elseif ($control === 'upload') {
                                     $fieldConfig['config']['fieldWizard']['fileUpload']['disabled'] = true;
                                     $this->messages[] = 'The \'type\' = \'group\' option \'disable_controls\' = \'upload\''
-                                       . ' from TCA ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\']'
-                                       . ' and has been migrated to'
-                                       . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\'][\'fieldWizard\'][\'fileUpload\'][\'disabled\'] = true';
+                                        . ' from TCA ' . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\']'
+                                        . ' and has been migrated to'
+                                        . $table . '[\'columns\'][\'' . $fieldName . '\'][\'config\'][\'fieldWizard\'][\'fileUpload\'][\'disabled\'] = true';
                                 }
                             }
                             unset($fieldConfig['config']['disable_controls']);
index 7611358..def4d7e 100644 (file)
@@ -1204,7 +1204,7 @@ class ResourceStorage implements ResourceStorageInterface
 
     /**
      * Creates a (cryptographic) hash for a fileIdentifier.
-
+     *
      * @param string $fileIdentifier
      * @param string $hash
      *
index e5122a9..3dfa281 100644 (file)
@@ -171,11 +171,9 @@ abstract class AbstractConfigurationManager implements \TYPO3\CMS\Core\Singleton
 
         if (!empty($frameworkConfiguration['persistence']['storagePid'])) {
             if (is_array($frameworkConfiguration['persistence']['storagePid'])) {
-                /**
-                    * We simulate the frontend to enable the use of cObjects in
-                    * stdWrap. Than we convert the configuration to normal TypoScript
-                    * and apply the stdWrap to the storagePid
-                    */
+                // We simulate the frontend to enable the use of cObjects in
+                // stdWrap. Than we convert the configuration to normal TypoScript
+                // and apply the stdWrap to the storagePid
                 if (!$this->environmentService->isEnvironmentInFrontendMode()) {
                     \TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::simulateFrontendEnvironment($this->getContentObject());
                 }
index ab651ff..62d1532 100644 (file)
@@ -22,11 +22,11 @@ namespace TYPO3\CMS\Extbase\Domain\Model;
 class FileReference extends \TYPO3\CMS\Extbase\Domain\Model\AbstractFileFolder
 {
     /**
-      * Uid of the referenced sys_file. Needed for extbase to serialize the
-      * reference correctly.
-      *
-      * @var int
-      */
+     * Uid of the referenced sys_file. Needed for extbase to serialize the
+     * reference correctly.
+     *
+     * @var int
+     */
     protected $uidLocal;
 
     /**
index 75bd84a..484d7c0 100644 (file)
@@ -474,7 +474,7 @@ class Typo3DbBackend implements BackendInterface, SingletonInterface
                 $tableName = $source['alias'] ?: $source['table'];
                 $fieldName = $queryBuilder->quoteIdentifier('uid');
                 $queryBuilder->resetQueryPart('groupBy')
-                             ->selectLiteral(sprintf('COUNT(DISTINCT %s.%s)', $tableName, $fieldName));
+                    ->selectLiteral(sprintf('COUNT(DISTINCT %s.%s)', $tableName, $fieldName));
             } else {
                 $queryBuilder->count('*');
             }
index d8490f6..8882d2e 100644 (file)
@@ -241,7 +241,7 @@ class DependencyUtility implements \TYPO3\CMS\Core\SingletonInterface
             if (!($dependency->getLowestVersion() === '') && version_compare(PHP_VERSION, $dependency->getLowestVersion()) === -1) {
                 throw new Exception\UnresolvedPhpDependencyException(
                     'Your PHP version is lower than necessary. You need at least PHP version ' . $dependency->getLowestVersion(),
-                     1377977857
+                    1377977857
                 );
             }
             if (!($dependency->getHighestVersion() === '') && version_compare($dependency->getHighestVersion(), PHP_VERSION) === -1) {
index 395d438..0ec01ba 100644 (file)
@@ -517,8 +517,8 @@ abstract class AbstractMenuContentObject
     }
 
     /**
-    * @return string The HTML for the menu
-    */
+     * @return string The HTML for the menu
+     */
     public function writeMenu()
     {
         return '';
index 6320aa7..06e40ce 100644 (file)
@@ -4513,7 +4513,7 @@ class TypoScriptFrontendController implements LoggerAwareInterface
      *
      * @param int $targetPid Target page id
      * @return mixed Return domain data or NULL
-    */
+     */
     public function getDomainDataForPid($targetPid)
     {
         // Using array_key_exists() here, nice $result can be NULL
index 4fd5332..320b08e 100644 (file)
@@ -273,7 +273,7 @@ class RequestHandler implements RequestHandlerInterface
             $response->getBody()->write($this->controller->content);
         }
         GeneralUtility::makeInstance(LogManager::class)
-                      ->getLogger(get_class())->debug('END of FRONTEND session', ['_FLUSH' => true]);
+            ->getLogger(get_class())->debug('END of FRONTEND session', ['_FLUSH' => true]);
         return $response;
     }
 
index 19f87e4..529c448 100644 (file)
@@ -476,14 +476,14 @@ class AdminPanelView
                 ->removeAll()
                 ->add(GeneralUtility::makeInstance(DeletedRestriction::class));
             $optionCount = $queryBuilder->count('fe_groups.uid')
-               ->from('fe_groups')
-               ->from('pages')
-               ->where(
-                   $queryBuilder->expr()->eq('pages.uid', $queryBuilder->quoteIdentifier('fe_groups.pid')),
-                   $this->getBackendUser()->getPagePermsClause(Permission::PAGE_SHOW)
-               )
-               ->execute()
-               ->fetchColumn(0);
+                ->from('fe_groups')
+                ->from('pages')
+                ->where(
+                    $queryBuilder->expr()->eq('pages.uid', $queryBuilder->quoteIdentifier('fe_groups.pid')),
+                    $this->getBackendUser()->getPagePermsClause(Permission::PAGE_SHOW)
+                )
+                ->execute()
+                ->fetchColumn(0);
             if ($optionCount > 0) {
                 $result = $queryBuilder->select('fe_groups.uid', 'fe_groups.title')
                     ->from('fe_groups')
index ccd6e28..f094926 100644 (file)
@@ -471,8 +471,8 @@ class Import extends ImportExport
                 unset($this->dat['records']['sys_file_reference:' . $sysFileReferenceUid]);
                 $this->error(
                     'Error: sys_file_reference record ' . (int)$sysFileReferenceUid
-                             . ' with relation to sys_file record ' . (int)$fileReferenceRecord['uid_local']
-                             . ', which is not part of the import data, was not imported.'
+                    . ' with relation to sys_file record ' . (int)$fileReferenceRecord['uid_local']
+                    . ', which is not part of the import data, was not imported.'
                 );
             }
         }
@@ -503,7 +503,7 @@ class Import extends ImportExport
      *
      * @param int $oldFileUid
      * @param int $newFileUid
-    */
+     */
     protected function fixUidLocalInSysFileReferenceRecords($oldFileUid, $newFileUid)
     {
         if (!isset($this->dat['header']['records']['sys_file_reference'])) {
index 568307c..305d223 100644 (file)
@@ -123,16 +123,16 @@ class ImportExportTask implements TaskInterface
                     }
                     // Owner
                     $description[] = $lang->getLL('task.owner') . ': '
-                                     . (
-                                         $presetCfg['user_uid'] === $GLOBALS['BE_USER']->user['uid']
+                        . (
+                            $presetCfg['user_uid'] === $GLOBALS['BE_USER']->user['uid']
                             ? $lang->getLL('task.own')
                             : '[' . htmlspecialchars($usernames[$presetCfg['user_uid']]['username']) . ']'
-                                     );
+                        );
                     // Page & path
                     if ($configuration['pagetree']['id']) {
                         $description[] = $lang->getLL('task.page') . ': ' . $configuration['pagetree']['id'];
                         $description[] = $lang->getLL('task.path') . ': ' . htmlspecialchars(
-                                BackendUtility::getRecordPath($configuration['pagetree']['id'], $clause, 20)
+                            BackendUtility::getRecordPath($configuration['pagetree']['id'], $clause, 20)
                         );
                     } else {
                         $description[] = $lang->getLL('single-record');
index 3098ee5..28ed736 100644 (file)
@@ -610,10 +610,10 @@ class IndexSearchRepository
                 case '10':
                     // Sounds like
                     /**
-                    * Indexer object
-                    *
-                    * @var Indexer
-                    */
+                     * Indexer object
+                     *
+                     * @var Indexer
+                     */
                     $indexerObj = GeneralUtility::makeInstance(Indexer::class);
                     // Perform metaphone search
                     $storeMetaphoneInfoAsWords = !$this->isTableUsed('index_words');
index e70ca2b..77a740b 100644 (file)
@@ -188,8 +188,8 @@ class InfoModuleController extends BaseScriptClass
 
         // CSH
         $cshButton = $buttonBar->makeHelpButton()
-          ->setModuleName('xMOD_csh_corebe')
-          ->setFieldName('pagetree_overview');
+            ->setModuleName('xMOD_csh_corebe')
+            ->setFieldName('pagetree_overview');
         $buttonBar->addButton($cshButton);
     }
 
index 2e819da..205e4aa 100644 (file)
@@ -30,8 +30,8 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
 abstract class AbstractElementBrowser
 {
     /**
-    * @var DocumentTemplate
-    */
+     * @var DocumentTemplate
+     */
     protected $doc;
 
     /**
index bf48674..101cf4e 100644 (file)
@@ -58,8 +58,8 @@ class FileBrowser extends AbstractElementBrowser implements ElementBrowserInterf
     protected $elements = [];
 
     /**
-    * @var string
-    */
+     * @var string
+     */
     protected $searchWord;
 
     /**
index da4b14a..00828ef 100644 (file)
@@ -1241,8 +1241,8 @@ class AbstractDatabaseRecordList extends AbstractRecordList
                 }
             } else {
                 GeneralUtility::makeInstance(LogManager::class)
-                              ->getLogger(__CLASS__)
-                              ->error('TCA is broken for the table "' . $table . '": no required "columns" entry in TCA.');
+                    ->getLogger(__CLASS__)
+                    ->error('TCA is broken for the table "' . $table . '": no required "columns" entry in TCA.');
             }
         }
         return $fieldListArr;
index 0b0f430..8c2a7b6 100644 (file)
@@ -1907,8 +1907,8 @@ class DatabaseRecordList
         if ($table === 'pages' || $table === 'tt_content') {
             $onClick = $this->getOnClickForRow($table, $row);
             $viewAction = '<a class="btn btn-default" href="#" onclick="'
-                          . htmlspecialchars(
-                              $onClick
+                            . htmlspecialchars(
+                                $onClick
                 ) . '" title="' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.showPage')) . '">';
             if ($table === 'pages') {
                 $viewAction .= $this->iconFactory->getIcon('actions-view-page', Icon::SIZE_SMALL)->render();
@@ -2032,17 +2032,17 @@ class DatabaseRecordList
                     if ($row[$hiddenField]) {
                         $params = 'data[' . $table . '][' . $rowUid . '][' . $hiddenField . ']=0';
                         $hideAction = '<a class="btn btn-default t3js-record-hide" data-state="hidden" href="#"'
-                                      . ' data-params="' . htmlspecialchars($params) . '"'
-                                      . ' title="' . $unhideTitle . '"'
-                                      . ' data-toggle-title="' . $hideTitle . '">'
-                                      . $this->iconFactory->getIcon('actions-edit-unhide', Icon::SIZE_SMALL)->render() . '</a>';
+                                        . ' data-params="' . htmlspecialchars($params) . '"'
+                                        . ' title="' . $unhideTitle . '"'
+                                        . ' data-toggle-title="' . $hideTitle . '">'
+                                        . $this->iconFactory->getIcon('actions-edit-unhide', Icon::SIZE_SMALL)->render() . '</a>';
                     } else {
                         $params = 'data[' . $table . '][' . $rowUid . '][' . $hiddenField . ']=1';
                         $hideAction = '<a class="btn btn-default t3js-record-hide" data-state="visible" href="#"'
-                                      . ' data-params="' . htmlspecialchars($params) . '"'
-                                      . ' title="' . $hideTitle . '"'
-                                      . ' data-toggle-title="' . $unhideTitle . '">'
-                                      . $this->iconFactory->getIcon('actions-edit-hide', Icon::SIZE_SMALL)->render() . '</a>';
+                                        . ' data-params="' . htmlspecialchars($params) . '"'
+                                        . ' title="' . $hideTitle . '"'
+                                        . ' data-toggle-title="' . $unhideTitle . '">'
+                                        . $this->iconFactory->getIcon('actions-edit-hide', Icon::SIZE_SMALL)->render() . '</a>';
                     }
                 }
                 $this->addActionToCellGroup($cells, $hideAction, 'hide');
@@ -3713,8 +3713,8 @@ class DatabaseRecordList
                 }
             } else {
                 GeneralUtility::makeInstance(LogManager::class)
-                              ->getLogger(__CLASS__)
-                              ->error('TCA is broken for the table "' . $table . '": no required "columns" entry in TCA.');
+                    ->getLogger(__CLASS__)
+                    ->error('TCA is broken for the table "' . $table . '": no required "columns" entry in TCA.');
             }
         }
         return $fieldListArr;
index 19544a1..d240096 100644 (file)
@@ -79,7 +79,7 @@ class IconViewHelper extends AbstractBackendViewHelper
         }
 
         return '<img src="' . htmlspecialchars(PathUtility::getAbsoluteWebPath($icon))
-               . '" width="16" height="16" title="' . htmlspecialchars($title)
-               . '" alt="' . htmlspecialchars($title) . '" />';
+                . '" width="16" height="16" title="' . htmlspecialchars($title)
+                . '" alt="' . htmlspecialchars($title) . '" />';
     }
 }
index a3a8d89..8d70c15 100644 (file)
@@ -821,11 +821,11 @@ class SetupModuleController
         }
 
         return '<div class="form-inline"><div class="form-group"><p>'
-             . '<label for="field_simulate" style="margin-right: 20px;">'
-             . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:setup/Resources/Private/Language/locallang.xlf:simulate'))
-             . '</label>'
-             . $this->simulateSelector
-             . '</p></div></div>';
+                . '<label for="field_simulate" style="margin-right: 20px;">'
+                . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:setup/Resources/Private/Language/locallang.xlf:simulate'))
+                . '</label>'
+                . $this->simulateSelector
+                . '</p></div></div>';
     }
 
     /**
index 45f8a84..cec02df 100644 (file)
@@ -1024,7 +1024,7 @@ class WorkspaceService implements SingletonInterface
 
             $movePointerParameter = $queryBuilder->createNamedParameter(
                 VersionState::MOVE_POINTER,
-               \PDO::PARAM_INT
+                \PDO::PARAM_INT
             );
             $workspaceIdParameter = $queryBuilder->createNamedParameter(
                 $workspaceId,