From 6e8ad38e8f5b0ff5f20ee6d5cf2cae188a3b69e9 Mon Sep 17 00:00:00 2001 From: Arvid Jakobsson Date: Sun, 16 Sep 2012 22:40:34 +0200 Subject: [PATCH] [TASK] Remove superfluous parenthesis in sysexts Removes superfluous parenthesis in sysexts "tstemplate_analyzer", "tstemplate_ceditor", "tstemplate_info" and "tstemplate_objbrowser". Change ("a" . "b") . "c" into "a" . "b" . "c" using the lex-pass tool. Change-Id: I7724aa9b38d7db641db4bd75c1a059bf8a71038b Resolves: #40973 Related: #40095 Reviewed-on: http://review.typo3.org/14632 Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters Reviewed-by: Jigal van Hemert Tested-by: Jigal van Hemert --- ...mplateAnalyzerModuleFunctionController.php | 34 +++---- ...ConstantEditorModuleFunctionController.php | 8 +- ...ateInformationModuleFunctionController.php | 76 ++++++++-------- ...eObjectBrowserModuleFunctionController.php | 88 +++++++++---------- 4 files changed, 103 insertions(+), 103 deletions(-) diff --git a/typo3/sysext/tstemplate_analyzer/Classes/Controller/TemplateAnalyzerModuleFunctionController.php b/typo3/sysext/tstemplate_analyzer/Classes/Controller/TemplateAnalyzerModuleFunctionController.php index 8fe55bdebc04..239f33b02c71 100644 --- a/typo3/sysext/tstemplate_analyzer/Classes/Controller/TemplateAnalyzerModuleFunctionController.php +++ b/typo3/sysext/tstemplate_analyzer/Classes/Controller/TemplateAnalyzerModuleFunctionController.php @@ -83,7 +83,7 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module $existTemplate = $this->initialize_editor($this->pObj->id, $template_uid); // initialize if ($existTemplate) { - $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('currentTemplate', TRUE), (((\TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord('sys_template', $GLOBALS['tplRow']) . '') . $this->pObj->linkWrapTemplateTitle($GLOBALS['tplRow']['title'])) . '') . htmlspecialchars((trim($GLOBALS['tplRow']['sitetitle']) ? (' (' . $GLOBALS['tplRow']['sitetitle']) . ')' : ''))); + $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('currentTemplate', TRUE), \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord('sys_template', $GLOBALS['tplRow']) . '' . $this->pObj->linkWrapTemplateTitle($GLOBALS['tplRow']['title']) . '' . htmlspecialchars((trim($GLOBALS['tplRow']['sitetitle']) ? ' (' . $GLOBALS['tplRow']['sitetitle'] . ')' : ''))); } if ($manyTemplatesMenu) { $theOutput .= $this->pObj->doc->section('', $manyTemplatesMenu); @@ -95,16 +95,16 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module $GLOBALS['tmpl']->processIncludes(); $hierarArr = array(); $head = ''; - $head .= ('' . $GLOBALS['LANG']->getLL('title', TRUE)) . ''; - $head .= ('' . $GLOBALS['LANG']->getLL('rootlevel', TRUE)) . ''; - $head .= ('' . $GLOBALS['LANG']->getLL('clearSetup', TRUE)) . ''; - $head .= ('' . $GLOBALS['LANG']->getLL('clearConstants', TRUE)) . ''; - $head .= ('' . $GLOBALS['LANG']->getLL('pid', TRUE)) . ''; - $head .= ('' . $GLOBALS['LANG']->getLL('rootline', TRUE)) . ''; - $head .= ('' . $GLOBALS['LANG']->getLL('nextLevel', TRUE)) . ''; + $head .= '' . $GLOBALS['LANG']->getLL('title', TRUE) . ''; + $head .= '' . $GLOBALS['LANG']->getLL('rootlevel', TRUE) . ''; + $head .= '' . $GLOBALS['LANG']->getLL('clearSetup', TRUE) . ''; + $head .= '' . $GLOBALS['LANG']->getLL('clearConstants', TRUE) . ''; + $head .= '' . $GLOBALS['LANG']->getLL('pid', TRUE) . ''; + $head .= '' . $GLOBALS['LANG']->getLL('rootline', TRUE) . ''; + $head .= '' . $GLOBALS['LANG']->getLL('nextLevel', TRUE) . ''; $head .= ''; $hierar = implode(array_reverse($GLOBALS['tmpl']->ext_getTemplateHierarchyArr($GLOBALS['tmpl']->hierarchyInfoArr, '', array(), 1)), ''); - $hierar = (('' . $head) . $hierar) . '
'; + $hierar = '' . $head . $hierar . '
'; $theOutput .= $this->pObj->doc->spacer(5); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('templateHierarchy', TRUE), $hierar, 0, 1); $urlParameters = array( @@ -112,14 +112,14 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module 'template' => 'all' ); $aHref = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('web_ts', $urlParameters); - $completeLink = ((('

') . $GLOBALS['LANG']->getLL('viewCompleteTS', TRUE)) . '

'; + $completeLink = '

' . $GLOBALS['LANG']->getLL('viewCompleteTS', TRUE) . '

'; $theOutput .= $this->pObj->doc->spacer(5); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('completeTS', TRUE), $completeLink, 0, 1); $theOutput .= $this->pObj->doc->spacer(15); // Output options $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('displayOptions', TRUE), '', FALSE, TRUE); $addParams = \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template') ? '&template=' . \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template') : ''; - $theOutput .= ((((((((('
' . \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_analyzer_checkLinenum]', $this->pObj->MOD_SETTINGS['ts_analyzer_checkLinenum'], '', $addParams, 'id="checkTs_analyzer_checkLinenum"')) . ' ') . \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_analyzer_checkSyntax]', $this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'], '', $addParams, 'id="checkTs_analyzer_checkSyntax"')) . ' ') . (!$this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'] ? ((((((\TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_analyzer_checkComments]', $this->pObj->MOD_SETTINGS['ts_analyzer_checkComments'], '', $addParams, 'id="checkTs_analyzer_checkComments"') . ' ') . \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_analyzer_checkCrop]', $this->pObj->MOD_SETTINGS['ts_analyzer_checkCrop'], '', $addParams, 'id="checkTs_analyzer_checkCrop"')) . ' ' : '')) . '
'; + $theOutput .= '
' . \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_analyzer_checkLinenum]', $this->pObj->MOD_SETTINGS['ts_analyzer_checkLinenum'], '', $addParams, 'id="checkTs_analyzer_checkLinenum"') . ' ' . \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_analyzer_checkSyntax]', $this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'], '', $addParams, 'id="checkTs_analyzer_checkSyntax"') . ' ' . (!$this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'] ? \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_analyzer_checkComments]', $this->pObj->MOD_SETTINGS['ts_analyzer_checkComments'], '', $addParams, 'id="checkTs_analyzer_checkComments"') . ' ' . \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_analyzer_checkCrop]', $this->pObj->MOD_SETTINGS['ts_analyzer_checkCrop'], '', $addParams, 'id="checkTs_analyzer_checkCrop"') . ' ' : '') . '
'; $theOutput .= $this->pObj->doc->spacer(25); // Output Constants if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template')) { @@ -136,11 +136,11 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module foreach ($GLOBALS['tmpl']->constants as $key => $val) { $cVal = current($GLOBALS['tmpl']->clearList_const); if ($cVal == \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template') || \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template') == 'all') { - $theOutput .= (((' + $theOutput .= ' - ' . htmlspecialchars($GLOBALS['tmpl']->templateTitles[$cVal])) . ' + ' . htmlspecialchars($GLOBALS['tmpl']->templateTitles[$cVal]) . ' -
') . $GLOBALS['tmpl']->ext_outputTS(array($val), $this->pObj->MOD_SETTINGS['ts_analyzer_checkLinenum'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkComments'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkCrop'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'], 0)) . '
+
' . $GLOBALS['tmpl']->ext_outputTS(array($val), $this->pObj->MOD_SETTINGS['ts_analyzer_checkLinenum'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkComments'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkCrop'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'], 0) . '
'; @@ -169,11 +169,11 @@ class TemplateAnalyzerModuleFunctionController extends \TYPO3\CMS\Backend\Module reset($GLOBALS['tmpl']->clearList_setup); foreach ($GLOBALS['tmpl']->config as $key => $val) { if (current($GLOBALS['tmpl']->clearList_setup) == \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template') || \TYPO3\CMS\Core\Utility\GeneralUtility::_GET('template') == 'all') { - $theOutput .= (((' + $theOutput .= ' - ' . htmlspecialchars($GLOBALS['tmpl']->templateTitles[current($GLOBALS['tmpl']->clearList_setup)])) . ' + ' . htmlspecialchars($GLOBALS['tmpl']->templateTitles[current($GLOBALS['tmpl']->clearList_setup)]) . ' -
') . $GLOBALS['tmpl']->ext_outputTS(array($val), $this->pObj->MOD_SETTINGS['ts_analyzer_checkLinenum'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkComments'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkCrop'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'], 0)) . '
+
' . $GLOBALS['tmpl']->ext_outputTS(array($val), $this->pObj->MOD_SETTINGS['ts_analyzer_checkLinenum'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkComments'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkCrop'], $this->pObj->MOD_SETTINGS['ts_analyzer_checkSyntax'], 0) . '
'; diff --git a/typo3/sysext/tstemplate_ceditor/Classes/Controller/TypoScriptTemplateConstantEditorModuleFunctionController.php b/typo3/sysext/tstemplate_ceditor/Classes/Controller/TypoScriptTemplateConstantEditorModuleFunctionController.php index cd021f3f82ae..b1ea53dddba6 100644 --- a/typo3/sysext/tstemplate_ceditor/Classes/Controller/TypoScriptTemplateConstantEditorModuleFunctionController.php +++ b/typo3/sysext/tstemplate_ceditor/Classes/Controller/TypoScriptTemplateConstantEditorModuleFunctionController.php @@ -59,9 +59,9 @@ class TypoScriptTemplateConstantEditorModuleFunctionController extends \TYPO3\CM */ public function displayExample($theOutput) { global $tmpl; - if (($tmpl->helpConfig['imagetag'] || $tmpl->helpConfig['description']) || $tmpl->helpConfig['header']) { + if ($tmpl->helpConfig['imagetag'] || $tmpl->helpConfig['description'] || $tmpl->helpConfig['header']) { $theOutput .= $this->pObj->doc->spacer(30); - $theOutput .= $this->pObj->doc->section($tmpl->helpConfig['header'], ((('
' . $tmpl->helpConfig['imagetag']) . '

') . ($tmpl->helpConfig['description'] ? implode(explode('//', $tmpl->helpConfig['description']), '
') . '
' : '')) . ($tmpl->helpConfig['bulletlist'] ? ('' : '
')); + $theOutput .= $this->pObj->doc->section($tmpl->helpConfig['header'], '
' . $tmpl->helpConfig['imagetag'] . '

' . ($tmpl->helpConfig['description'] ? implode(explode('//', $tmpl->helpConfig['description']), '
') . '
' : '') . ($tmpl->helpConfig['bulletlist'] ? '' : '
')); } return $theOutput; } @@ -112,7 +112,7 @@ class TypoScriptTemplateConstantEditorModuleFunctionController extends \TYPO3\CM $this->pObj->MOD_MENU['constant_editor_cat'] = $tmpl->ext_getCategoryLabelArray(); $this->pObj->MOD_SETTINGS = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleData($this->pObj->MOD_MENU, \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('SET'), $this->pObj->MCONF['name']); // Resetting the menu (stop) - $content = (((\TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord('sys_template', $tplRow) . '') . $this->pObj->linkWrapTemplateTitle($tplRow['title'], 'constants')) . '') . htmlspecialchars((trim($tplRow['sitetitle']) ? (' (' . $tplRow['sitetitle']) . ')' : '')); + $content = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord('sys_template', $tplRow) . '' . $this->pObj->linkWrapTemplateTitle($tplRow['title'], 'constants') . '' . htmlspecialchars((trim($tplRow['sitetitle']) ? ' (' . $tplRow['sitetitle'] . ')' : '')); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('editConstants', TRUE), $content, FALSE, TRUE); if ($manyTemplatesMenu) { $theOutput .= $this->pObj->doc->section('', $manyTemplatesMenu); @@ -120,7 +120,7 @@ class TypoScriptTemplateConstantEditorModuleFunctionController extends \TYPO3\CM $theOutput .= $this->pObj->doc->spacer(10); if (count($this->pObj->MOD_MENU['constant_editor_cat'])) { $menu = \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->pObj->id, 'SET[constant_editor_cat]', $this->pObj->MOD_SETTINGS['constant_editor_cat'], $this->pObj->MOD_MENU['constant_editor_cat']); - $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('category', TRUE), ('' . $menu) . '', FALSE); + $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('category', TRUE), '' . $menu . '', FALSE); } else { $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('noConstants', TRUE), $GLOBALS['LANG']->getLL('noConstantsDescription', TRUE), FALSE, FALSE, 1); } diff --git a/typo3/sysext/tstemplate_info/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php b/typo3/sysext/tstemplate_info/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php index 15351b3f970f..15f6c2b8991a 100644 --- a/typo3/sysext/tstemplate_info/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php +++ b/typo3/sysext/tstemplate_info/Classes/Controller/TypoScriptTemplateInformationModuleFunctionController.php @@ -30,8 +30,8 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B 'id' => $this->pObj->id ); $aHref = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('web_ts', $urlParameters); - $ret .= ((((('') . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:editField', TRUE)))) . '') . $label) . '  '; - $ret .= ('' . $data) . ' '; + $ret .= '' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:editField', TRUE))) . '' . $label . '  '; + $ret .= '' . $data . ' '; return $ret; } @@ -48,33 +48,33 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B $out = ''; $bgcol = $func ? ' class="bgColor4"' : ''; foreach ($arr as $k => $v) { - $path = ((PATH_site . $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['uploadfolder']) . '/') . $v; + $path = PATH_site . $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['uploadfolder'] . '/' . $v; $functions = ''; if ($func) { - $functions = ((((('' . $GLOBALS['LANG']->getLL('delete')) . ' '; - $functions .= ((((((('') . $GLOBALS['LANG']->getLL('toTop')) . ' '; - $functions .= (''; + $functions = '' . $GLOBALS['LANG']->getLL('delete') . ' '; + $functions .= '' . $GLOBALS['LANG']->getLL('toTop') . ' '; + $functions .= ''; $fI = \TYPO3\CMS\Core\Utility\GeneralUtility::split_fileref($v); if (\TYPO3\CMS\Core\Utility\GeneralUtility::inList($this->pObj->textExtensions, $fI['fileext'])) { $urlParameters = array( 'id' => $this->pObj->id ); $aHref = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('web_ts', $urlParameters); - $functions .= ((('') . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:editFile', TRUE)))) . ''; + $functions .= '' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:editFile', TRUE))) . ''; } $functions .= ''; } $thumb = \TYPO3\CMS\Backend\Utility\BackendUtility::thumbCode(array('resources' => $v), 'sys_template', 'resources', $GLOBALS['BACK_PATH'], ''); - $out .= ((((((((((((('') . $v) . '   ') . \TYPO3\CMS\Core\Utility\GeneralUtility::formatSize(@filesize($path))) . ' ') . $functions) . '') . trim($thumb)) . ''; + $out .= '' . $v . '   ' . \TYPO3\CMS\Core\Utility\GeneralUtility::formatSize(@filesize($path)) . ' ' . $functions . '' . trim($thumb) . ''; } if ($out) { if ($func) { - $out = ('' . $out) . '
'; - $out = (' - + $out = '
' . $out) . '
' . $out . '
'; + $out = ' +
' . $out . '
'; } else { - $out = ('' . $out) . '
'; + $out = '' . $out . '
'; } } return $out; @@ -98,12 +98,12 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B foreach ($theResources as $k => $v) { $fI = pathinfo($v); if (\TYPO3\CMS\Core\Utility\GeneralUtility::inList($this->pObj->textExtensions, strtolower($fI['extension']))) { - $path = ((PATH_site . $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['uploadfolder']) . '/') . $v; + $path = PATH_site . $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['uploadfolder'] . '/' . $v; $thumb = \TYPO3\CMS\Backend\Utility\BackendUtility::thumbCode(array('resources' => $v), 'sys_template', 'resources', $GLOBALS['BACK_PATH'], ''); - $out .= ((((((((((((((('') . $v) . '   ') . \TYPO3\CMS\Core\Utility\GeneralUtility::formatSize(@filesize($path))) . ' ') . trim($thumb)) . ''; + $out .= '' . $v . '   ' . \TYPO3\CMS\Core\Utility\GeneralUtility::formatSize(@filesize($path)) . ' ' . trim($thumb) . ''; } } - $out = $out ? ('' . $out) . '
' : ''; + $out = $out ? '' . $out . '
' : ''; return $out; } @@ -204,7 +204,7 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B if ($existTemplate) { // Update template ? $POST = \TYPO3\CMS\Core\Utility\GeneralUtility::_POST(); - if ((($POST['submit'] || \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['submit_x']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['submit_y'])) || $POST['saveclose']) || \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['saveclose_x']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['saveclose_y'])) { + if ($POST['submit'] || \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['submit_x']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['submit_y']) || $POST['saveclose'] || \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['saveclose_x']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['saveclose_y'])) { // Set the data to be saved $recData = array(); $alternativeFileName = array(); @@ -247,18 +247,18 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B } // If files has been edited: if (is_array($edit)) { - if (($edit['filename'] && $tplRow['resources']) && \TYPO3\CMS\Core\Utility\GeneralUtility::inList($tplRow['resources'], $edit['filename'])) { + if ($edit['filename'] && $tplRow['resources'] && \TYPO3\CMS\Core\Utility\GeneralUtility::inList($tplRow['resources'], $edit['filename'])) { // Check if there are resources, and that the file is in the resourcelist. - $path = ((PATH_site . $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['uploadfolder']) . '/') . $edit['filename']; + $path = PATH_site . $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['uploadfolder'] . '/' . $edit['filename']; $fI = \TYPO3\CMS\Core\Utility\GeneralUtility::split_fileref($edit['filename']); - if ((@is_file($path) && \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($path)) && \TYPO3\CMS\Core\Utility\GeneralUtility::inList($this->pObj->textExtensions, $fI['fileext'])) { + if (@is_file($path) && \TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($path) && \TYPO3\CMS\Core\Utility\GeneralUtility::inList($this->pObj->textExtensions, $fI['fileext'])) { // checks that have already been done.. Just to make sure // @TODO: Check if the hardcorded value already has a config member, otherwise create one // Checks that have already been done.. Just to make sure if (filesize($path) < 30720) { \TYPO3\CMS\Core\Utility\GeneralUtility::writeFile($path, $edit['file']); $theOutput .= $this->pObj->doc->spacer(10); - $theOutput .= $this->pObj->doc->section(('' . $GLOBALS['LANG']->getLL('fileChanged')) . '', sprintf($GLOBALS['LANG']->getLL('resourceUpdated'), $edit['filename']), 0, 0, 0, 1); + $theOutput .= $this->pObj->doc->section('' . $GLOBALS['LANG']->getLL('fileChanged') . '', sprintf($GLOBALS['LANG']->getLL('resourceUpdated'), $edit['filename']), 0, 0, 0, 1); // Clear cache - the file has probably affected the template setup // @TODO: Check if the edited file really had something to do with cached data and prevent this clearing if possible! /** @var $tce \TYPO3\CMS\Core\DataHandler\DataHandler */ @@ -284,7 +284,7 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B } } } - $content = (((\TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord('sys_template', $tplRow) . '') . htmlspecialchars($tplRow['title'])) . '') . htmlspecialchars((trim($tplRow['sitetitle']) ? (' (' . $tplRow['sitetitle']) . ')' : '')); + $content = \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIconForRecord('sys_template', $tplRow) . '' . htmlspecialchars($tplRow['title']) . '' . htmlspecialchars((trim($tplRow['sitetitle']) ? ' (' . $tplRow['sitetitle'] . ')' : '')); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('templateInformation'), $content, 0, 1); if ($manyTemplatesMenu) { $theOutput .= $this->pObj->doc->section('', $manyTemplatesMenu); @@ -292,47 +292,47 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B $theOutput .= $this->pObj->doc->spacer(10); $numberOfRows = 35; // If abort pressed, nothing should be edited: - if ((($POST['abort'] || \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['abort_x']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['abort_y'])) || $POST['saveclose']) || \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['saveclose_x']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['saveclose_y'])) { + if ($POST['abort'] || \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['abort_x']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['abort_y']) || $POST['saveclose'] || \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['saveclose_x']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($POST['saveclose_y'])) { unset($e); } if ($e['title']) { - $outCode = ((('pObj->doc->formWidth()) . '>'; + $outCode = 'pObj->doc->formWidth() . '>'; $outCode .= ''; $theOutput .= $this->pObj->doc->spacer(15); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('title'), $outCode, TRUE); } if ($e['sitetitle']) { - $outCode = ((('pObj->doc->formWidth()) . '>'; + $outCode = 'pObj->doc->formWidth() . '>'; $outCode .= ''; $theOutput .= $this->pObj->doc->spacer(15); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('sitetitle'), $outCode, TRUE); } if ($e['description']) { - $outCode = (((''; + $outCode = ''; $outCode .= ''; $theOutput .= $this->pObj->doc->spacer(15); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('description'), $outCode, TRUE); } if ($e['constants']) { - $outCode = (((((''; + $outCode = ''; $outCode .= ''; // Display "Include TypoScript file content?" checkbox $outCode .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[includeTypoScriptFileContent]', $this->pObj->MOD_SETTINGS['includeTypoScriptFileContent'], '', '&e[constants]=1', 'id="checkIncludeTypoScriptFileContent"'); - $outCode .= ('
'; + $outCode .= '
'; $theOutput .= $this->pObj->doc->spacer(15); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('constants'), '', TRUE); $theOutput .= $this->pObj->doc->sectionEnd() . $outCode; } if ($e['file']) { - $path = ((PATH_site . $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['uploadfolder']) . '/') . $e[file]; + $path = PATH_site . $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['uploadfolder'] . '/' . $e[file]; $fI = \TYPO3\CMS\Core\Utility\GeneralUtility::split_fileref($e[file]); if (@is_file($path) && \TYPO3\CMS\Core\Utility\GeneralUtility::inList($this->pObj->textExtensions, $fI['fileext'])) { if (filesize($path) < $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['max_size'] * 1024) { $fileContent = \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl($path); - $outCode = (($GLOBALS['LANG']->getLL('file') . ' ') . $e[file]) . '
'; - $outCode .= (((((''; - $outCode .= (''; - $outCode .= (''; + $outCode = $GLOBALS['LANG']->getLL('file') . ' ' . $e[file] . '
'; + $outCode .= ''; + $outCode .= ''; + $outCode .= ''; $theOutput .= $this->pObj->doc->spacer(15); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('editResource'), ''); $theOutput .= $this->pObj->doc->sectionEnd() . $outCode; @@ -340,23 +340,23 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B $theOutput .= $this->pObj->doc->spacer(15); $fileToBig = sprintf($GLOBALS['LANG']->getLL('filesizeExceeded'), $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['max_size']); $filesizeNotAllowed = sprintf($GLOBALS['LANG']->getLL('notAllowed'), $GLOBALS['TCA']['sys_template']['columns']['resources']['config']['max_size']); - $theOutput .= $this->pObj->doc->section(('' . $fileToBig) . '', $filesizeNotAllowed, 0, 0, 0, 1); + $theOutput .= $this->pObj->doc->section('' . $fileToBig . '', $filesizeNotAllowed, 0, 0, 0, 1); } } } if ($e['config']) { - $outCode = (((((''; + $outCode = ''; $outCode .= ''; // Display "Include TypoScript file content?" checkbox $outCode .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[includeTypoScriptFileContent]', $this->pObj->MOD_SETTINGS['includeTypoScriptFileContent'], '', '&e[config]=1', 'id="checkIncludeTypoScriptFileContent"'); - $outCode .= ('
'; + $outCode .= '
'; if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('tsconfig_help')) { $url = $BACK_PATH . 'wizard_tsconfig.php?mode=tsref'; $params = array( 'formName' => 'editForm', 'itemName' => 'data[config]' ); - $outCode .= (((((('') . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-system-typoscript-documentation-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:tsRef', TRUE)))) . ''; + $outCode .= '' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-system-typoscript-documentation-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_common.xml:tsRef', TRUE))) . ''; } $theOutput .= $this->pObj->doc->spacer(15); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('setup'), '', TRUE); @@ -369,9 +369,9 @@ class TypoScriptTemplateInformationModuleFunctionController extends \TYPO3\CMS\B $outCode .= $this->tableRow($GLOBALS['LANG']->getLL('description'), nl2br(htmlspecialchars($tplRow['description'])), 'description'); $outCode .= $this->tableRow($GLOBALS['LANG']->getLL('constants'), sprintf($GLOBALS['LANG']->getLL('editToView'), trim($tplRow[constants]) ? count(explode(LF, $tplRow[constants])) : 0), 'constants'); $outCode .= $this->tableRow($GLOBALS['LANG']->getLL('setup'), sprintf($GLOBALS['LANG']->getLL('editToView'), trim($tplRow[config]) ? count(explode(LF, $tplRow[config])) : 0), 'config'); - $outCode = ('' . $outCode) . '
'; + $outCode = '' . $outCode . '
'; // Edit all icon: - $outCode .= (((('
') . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open', array('title' => $GLOBALS['LANG']->getLL('editTemplateRecord')))) . $GLOBALS['LANG']->getLL('editTemplateRecord')) . ''; + $outCode .= '
' . \TYPO3\CMS\Backend\Utility\IconUtility::getSpriteIcon('actions-document-open', array('title' => $GLOBALS['LANG']->getLL('editTemplateRecord'))) . $GLOBALS['LANG']->getLL('editTemplateRecord') . ''; $theOutput .= $this->pObj->doc->section('', $outCode); // hook after compiling the output if (isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/tstemplate_info/class.tx_tstemplateinfo.php']['postOutputProcessingHook'])) { diff --git a/typo3/sysext/tstemplate_objbrowser/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php b/typo3/sysext/tstemplate_objbrowser/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php index 67254f0b81e0..34437a576e5f 100644 --- a/typo3/sysext/tstemplate_objbrowser/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php +++ b/typo3/sysext/tstemplate_objbrowser/Classes/Controller/TypoScriptTemplateObjectBrowserModuleFunctionController.php @@ -190,12 +190,12 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS $existTemplate = $this->initialize_editor($this->pObj->id, $template_uid); // initialize if ($existTemplate) { - $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('currentTemplate'), ((((' ') . $this->pObj->linkWrapTemplateTitle($tplRow['title'], ($bType == 'setup' ? 'config' : 'constants'))) . '') . htmlspecialchars((trim($tplRow['sitetitle']) ? (' (' . $tplRow['sitetitle']) . ')' : ''))); + $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('currentTemplate'), ' ' . $this->pObj->linkWrapTemplateTitle($tplRow['title'], ($bType == 'setup' ? 'config' : 'constants')) . '' . htmlspecialchars((trim($tplRow['sitetitle']) ? ' (' . $tplRow['sitetitle'] . ')' : ''))); if ($manyTemplatesMenu) { $theOutput .= $this->pObj->doc->section('', $manyTemplatesMenu); } $theOutput .= $this->pObj->doc->spacer(10); - if (($POST['add_property'] || $POST['update_value']) || $POST['clear_object']) { + if ($POST['add_property'] || $POST['update_value'] || $POST['clear_object']) { // add property $line = ''; if (is_array($POST['data'])) { @@ -208,16 +208,16 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS if ($POST['add_property']) { $property = trim($POST['data'][$name]['name']); if (preg_replace('/[^a-zA-Z0-9_\\.]*/', '', $property) != $property) { - $badPropertyMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', ($GLOBALS['LANG']->getLL('noSpaces') . '
') . $GLOBALS['LANG']->getLL('nothingUpdated'), $GLOBALS['LANG']->getLL('badProperty'), \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR); + $badPropertyMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', $GLOBALS['LANG']->getLL('noSpaces') . '
' . $GLOBALS['LANG']->getLL('nothingUpdated'), $GLOBALS['LANG']->getLL('badProperty'), \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR); \TYPO3\CMS\Core\Messaging\FlashMessageQueue::addMessage($badPropertyMessage); } else { - $pline = ((($name . '.') . $property) . ' = ') . trim($POST['data'][$name]['propertyValue']); + $pline = $name . '.' . $property . ' = ' . trim($POST['data'][$name]['propertyValue']); $propertyAddedMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', htmlspecialchars($pline), $GLOBALS['LANG']->getLL('propertyAdded')); \TYPO3\CMS\Core\Messaging\FlashMessageQueue::addMessage($propertyAddedMessage); $line .= LF . $pline; } } elseif ($POST['update_value']) { - $pline = ($name . ' = ') . trim($POST['data'][$name]['value']); + $pline = $name . ' = ' . trim($POST['data'][$name]['value']); $updatedMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', htmlspecialchars($pline), $GLOBALS['LANG']->getLL('valueUpdated')); \TYPO3\CMS\Core\Messaging\FlashMessageQueue::addMessage($updatedMessage); $line .= LF . $pline; @@ -298,32 +298,32 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS // Value $out = ''; $out .= htmlspecialchars($this->pObj->sObj) . ' =
'; - $out .= ((((('formWidth(40)) . ' />'; - $out .= (''; + $out .= 'formWidth(40) . ' />'; + $out .= ''; $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('editProperty'), $out, 0, 0); // Property if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('tsconfig_help')) { $url = $BACK_PATH . 'wizard_tsconfig.php?mode=tsref&onlyProperty=1'; $params = array(); $params['formName'] = 'editForm'; - $params['itemName'] = ('data[' . htmlspecialchars($this->pObj->sObj)) . '][name]'; - $params['itemValue'] = ('data[' . htmlspecialchars($this->pObj->sObj)) . '][propertyValue]'; - $TSicon = ((((((((''; + $params['itemName'] = 'data[' . htmlspecialchars($this->pObj->sObj) . '][name]'; + $params['itemValue'] = 'data[' . htmlspecialchars($this->pObj->sObj) . '][propertyValue]'; + $TSicon = ''; } else { $TSicon = ''; } $out = ''; - $out = ('' . htmlspecialchars($this->pObj->sObj)) . '.'; - $out .= ((((('formWidth(20)) . ' />') . $TSicon) . ' =
'; - $out .= ((('formWidth(40)) . ' />'; - $out .= (''; + $out = '' . htmlspecialchars($this->pObj->sObj) . '.'; + $out .= 'formWidth(20) . ' />' . $TSicon . ' =
'; + $out .= 'formWidth(40) . ' />'; + $out .= ''; $theOutput .= $this->pObj->doc->spacer(20); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('addProperty'), $out, 0, 0); // clear $out = ''; - $out = ((htmlspecialchars($this->pObj->sObj) . ' ') . $GLOBALS['LANG']->csConvObj->conv_case($GLOBALS['LANG']->charSet, $GLOBALS['LANG']->getLL('clear'), 'toUpper')) . '   '; - $out .= (''; - $out .= (''; + $out = htmlspecialchars($this->pObj->sObj) . ' ' . $GLOBALS['LANG']->csConvObj->conv_case($GLOBALS['LANG']->charSet, $GLOBALS['LANG']->getLL('clear'), 'toUpper') . '   '; + $out .= ''; + $out .= ''; $theOutput .= $this->pObj->doc->spacer(20); $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('clearObject'), $out, 0, 0); $theOutput .= $this->pObj->doc->spacer(10); @@ -339,11 +339,11 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS $aHref = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl('web_ts', $urlParameters); if (!$this->pObj->MOD_SETTINGS[('ts_browser_TLKeys_' . $bType)][$this->pObj->sObj]) { if (count($theSetup)) { - $out = (''; + $out = ''; $out .= sprintf($GLOBALS['LANG']->getLL('addKey'), htmlspecialchars($this->pObj->sObj)); } } else { - $out = (''; + $out = ''; $out .= sprintf($GLOBALS['LANG']->getLL('removeKey'), htmlspecialchars($this->pObj->sObj)); } if ($out) { @@ -352,7 +352,7 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS } // back $out = $GLOBALS['LANG']->getLL('back'); - $out = ((('') . $out) . ''; + $out = '' . $out . ''; $theOutput .= $this->pObj->doc->divider(5); $theOutput .= $this->pObj->doc->section('', $out); } else { @@ -361,18 +361,18 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS // If any POST-vars are send, update the condition array $tmpl->tsbrowser_depthKeys = $tmpl->ext_getSearchKeys($theSetup, '', \TYPO3\CMS\Core\Utility\GeneralUtility::_POST('search_field'), array()); } - $menu = ('
'; + $menu = '
'; $menu .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->pObj->id, 'SET[ts_browser_type]', $bType, $this->pObj->MOD_MENU['ts_browser_type']); - $menu .= (((''; - $menu .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->pObj->id, ('SET[ts_browser_toplevel_' . $bType) . ']', $this->pObj->MOD_SETTINGS['ts_browser_toplevel_' . $bType], $this->pObj->MOD_MENU['ts_browser_toplevel_' . $bType]); + $menu .= ''; + $menu .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->pObj->id, 'SET[ts_browser_toplevel_' . $bType . ']', $this->pObj->MOD_SETTINGS['ts_browser_toplevel_' . $bType], $this->pObj->MOD_MENU['ts_browser_toplevel_' . $bType]); //search - $menu .= (''; - $menu .= ((('formWidth(20)) . '/>'; - $menu .= (''; + $menu .= ''; + $menu .= 'formWidth(20) . '/>'; + $menu .= ''; $menu .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_browser_regexsearch]', $this->pObj->MOD_SETTINGS['ts_browser_regexsearch'], '', '', 'id="checkTs_browser_regexsearch"'); - $menu .= (''; + $menu .= ''; $menu .= '
'; - $theOutput .= $this->pObj->doc->section('', ('' . $menu) . ''); + $theOutput .= $this->pObj->doc->section('', '' . $menu . ''); $theKey = $this->pObj->MOD_SETTINGS['ts_browser_toplevel_' . $bType]; if (!$theKey || !str_replace('-', '', $theKey)) { $theKey = ''; @@ -392,56 +392,56 @@ class TypoScriptTemplateObjectBrowserModuleFunctionController extends \TYPO3\CMS foreach ($tmpl->parserErrors[$pEkey] as $inf) { $errorLink = ''; if ($templateAnalyzerInstalled) { - $errorLink = (((' ') . $GLOBALS['LANG']->getLL('errorShowDetails')) . ''; + $errorLink = ' ' . $GLOBALS['LANG']->getLL('errorShowDetails') . ''; } - $errMsg[] = (($inf[1] . ':    ') . $inf[0]) . $errorLink; + $errMsg[] = $inf[1] . ':    ' . $inf[0] . $errorLink; } $theOutput .= $this->pObj->doc->spacer(10); $flashMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Messaging\\FlashMessage', implode($errMsg, '
'), $GLOBALS['LANG']->getLL('errorsWarnings'), \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR); $theOutput .= $flashMessage->render(); } if (isset($this->pObj->MOD_SETTINGS['ts_browser_TLKeys_' . $bType][$theKey])) { - $remove = ((('') . $GLOBALS['LANG']->getLL('removeKey')) . ''; + $remove = '' . $GLOBALS['LANG']->getLL('removeKey') . ''; } else { $remove = ''; } $label = $theKey ? $theKey : ($bType == 'setup' ? $GLOBALS['LANG']->csConvObj->conv_case($GLOBALS['LANG']->charSet, $GLOBALS['LANG']->getLL('setupRoot'), 'toUpper') : $GLOBALS['LANG']->csConvObj->conv_case($GLOBALS['LANG']->charSet, $GLOBALS['LANG']->getLL('constantRoot'), 'toUpper')); $theOutput .= $this->pObj->doc->spacer(15); $theOutput .= $this->pObj->doc->sectionEnd(); - $theOutput .= (((((((' + $theOutput .= '
- ') . $remove) . ' + ' . $remove . ' - ') . ($remove ? '' : '')) . ' + ' . ($remove ? '' : '') . '
' . $label) . '' . $label . '
') . $tree) . '' . $tree . '
'; // second row options $menu = '
'; $menu .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_browser_showComments]', $this->pObj->MOD_SETTINGS['ts_browser_showComments'], '', '', 'id="checkTs_browser_showComments"'); - $menu .= (''; + $menu .= ''; $menu .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_browser_alphaSort]', $this->pObj->MOD_SETTINGS['ts_browser_alphaSort'], '', '', 'id="checkTs_browser_alphaSort"'); - $menu .= (''; + $menu .= ''; $menu .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncCheck($this->pObj->id, 'SET[ts_browser_fixedLgd]', $this->pObj->MOD_SETTINGS['ts_browser_fixedLgd'], '', '', 'id="checkTs_browser_fixedLgd"'); - $menu .= (''; + $menu .= ''; if ($bType == 'setup' && !$this->pObj->MOD_SETTINGS['ts_browser_fixedLgd']) { - $menu .= ('

'; + $menu .= '

'; $menu .= \TYPO3\CMS\Backend\Utility\BackendUtility::getFuncMenu($this->pObj->id, 'SET[ts_browser_const]', $this->pObj->MOD_SETTINGS['ts_browser_const'], $this->pObj->MOD_MENU['ts_browser_const']); } $menu .= '
'; - $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('displayOptions'), ('' . $menu) . '', 0, 1); + $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('displayOptions'), '' . $menu . '', 0, 1); // Conditions: if (is_array($tmpl->sections)) { $theOutput .= $this->pObj->doc->section($GLOBALS['LANG']->getLL('conditions'), '', 0, 1); $out = ''; foreach ($tmpl->sections as $key => $val) { - $out .= ((((((('pObj->MOD_SETTINGS['tsbrowser_conditions'][$key] ? ' checked' : '')) . ' />'; - $out .= (((''; + $out .= 'pObj->MOD_SETTINGS['tsbrowser_conditions'][$key] ? ' checked' : '') . ' />'; + $out .= ''; } - $theOutput .= (((' - ' . $out) . ' - + $theOutput .= ' +

' . $out . ' +

'; -- 2.20.1