Reduce CGL violations FunctionCallArgumentSpacingTooMuchSpaceAfterComma
authorRoland Waldner <most.wanted@gmx.at>
Fri, 1 Jun 2012 12:14:15 +0000 (14:14 +0200)
committerGeorg Ringer <mail@ringerge.org>
Fri, 1 Jun 2012 13:17:15 +0000 (15:17 +0200)
There are violations against the CGL rule
FunctionCallArgumentSpacingTooMuchSpaceAfterComma.

These should be reduced.

Change-Id: I0c12729c67f0e94813e8d080995741858be24341
Resolves: #37682
Releases: 6.0
Reviewed-on: http://review.typo3.org/11792
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php
t3lib/stddb/tca_sys_file.php
typo3/classes/class.typo3ajax.php
typo3/index.php
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/cms/tslib/index_ts.php
typo3/sysext/indexed_search/Classes/Controller/SearchController.php
typo3/sysext/indexed_search/class.doublemetaphone.php
typo3/sysext/lowlevel/config/index.php
typo3/sysext/sys_action/task/class.tx_sysaction_task.php
typo3/view_help.php

index 6b5e6d1..4c430da 100644 (file)
@@ -174,7 +174,7 @@ class t3lib_cache_backend_FileBackend extends t3lib_cache_backend_AbstractBacken
                                $documentRoot = '/';
                        }
                        if (TYPO3_OS === 'WIN') {
-                               if (substr($cacheDirectory, 0,  strlen($documentRoot)) === $documentRoot) {
+                               if (substr($cacheDirectory, 0, strlen($documentRoot)) === $documentRoot) {
                                        $documentRoot = '';
                                }
                        }
index 29c6c03..430bb59 100644 (file)
@@ -84,11 +84,11 @@ $TCA['sys_file'] = array (
                                'type' => 'select',
                                'size' => '1',
                                'items' => array(
-                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.unknown',  0),
-                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.text',     1),
-                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.image',    2),
-                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.audio',    3),
-                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.video',    4),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.unknown', 0),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.text', 1),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.image', 2),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.audio', 3),
+                                       array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.video', 4),
                                        array('LLL:EXT:lang/locallang_tca.xlf:sys_file.type.software', 5),
                                ),
                        )
index ff8811a..0d2057e 100644 (file)
@@ -72,7 +72,7 @@ class TYPO3AJAX {
                        // we need to convert the POST and GET parameters in the right charset
                if ($this->charset != $this->requestCharset) {
                        $GLOBALS['LANG']->csConvObj->convArray($_POST, $this->requestCharset, $this->charset);
-                       $GLOBALS['LANG']->csConvObj->convArray($_GET,  $this->requestCharset, $this->charset);
+                       $GLOBALS['LANG']->csConvObj->convArray($_GET, $this->requestCharset, $this->charset);
                }
 
                $this->ajaxId = $ajaxId;
index 00f9fdd..eb05878 100644 (file)
@@ -571,7 +571,7 @@ class SC_index {
 
                        $title = ($GLOBALS['TYPO3_CONF_VARS']['BE']['loginNewsTitle'] ? $GLOBALS['TYPO3_CONF_VARS']['BE']['loginNewsTitle'] : $GLOBALS['LANG']->getLL('newsheadline'));
 
-                       $newsContent = t3lib_parsehtml::substituteMarker($newsContent,  '###NEWS_HEADLINE###', htmlspecialchars($title));
+                       $newsContent = t3lib_parsehtml::substituteMarker($newsContent, '###NEWS_HEADLINE###', htmlspecialchars($title));
                        $newsContent = t3lib_parsehtml::substituteSubpart($newsContent, '###NEWS_ITEM###', $newsItem);
                }
 
index 4c8ee3a..eb9a005 100644 (file)
@@ -3802,7 +3802,7 @@ if (version == "n3") {
                                        $previewInfo .= t3lib_div::callUserFunction($_funcRef, $_params, $this);
                                }
                        }
-                       $this->content = str_ireplace('</body>',  $previewInfo . '</body>', $this->content);
+                       $this->content = str_ireplace('</body>', $previewInfo . '</body>', $this->content);
                }
        }
 
index 20c60d2..379bff1 100644 (file)
@@ -366,8 +366,8 @@ echo $TSFE->beLoginLinkIPList();
 // Admin panel
 // *************
 if (is_object($BE_USER) && $BE_USER->isAdminPanelVisible() && $TSFE->isBackendUserLoggedIn()) {
-       $TSFE->content = str_ireplace('</head>',  $BE_USER->adminPanel->getAdminPanelHeaderData() . '</head>', $TSFE->content);
-       $TSFE->content = str_ireplace('</body>',  $BE_USER->displayAdminPanel() . '</body>', $TSFE->content);
+       $TSFE->content = str_ireplace('</head>', $BE_USER->adminPanel->getAdminPanelHeaderData() . '</head>', $TSFE->content);
+       $TSFE->content = str_ireplace('</body>', $BE_USER->displayAdminPanel() . '</body>', $TSFE->content);
 }
 
 if ($sendTSFEContent) {
index 6d84f92..9cc43f4 100644 (file)
@@ -895,7 +895,7 @@ class Tx_IndexedSearch_Controller_SearchController extends Tx_Extbase_MVC_Contro
                                                // Add operators for various languages
                                                // Converts the operators to UTF-8 and lowercase
                                        array($GLOBALS['TSFE']->csConvObj->conv_case('utf-8',$GLOBALS['TSFE']->csConvObj->utf8_encode(Tx_Extbase_Utility_Localization::translate('localizedOperandAnd', 'indexed_search'), $GLOBALS['TSFE']->renderCharset), 'toLower'), 'AND'),
-                                       array($GLOBALS['TSFE']->csConvObj->conv_case('utf-8',$GLOBALS['TSFE']->csConvObj->utf8_encode(Tx_Extbase_Utility_Localization::translate('localizedOperandOr', 'indexed_search'),  $GLOBALS['TSFE']->renderCharset), 'toLower'), 'OR'),
+                                       array($GLOBALS['TSFE']->csConvObj->conv_case('utf-8',$GLOBALS['TSFE']->csConvObj->utf8_encode(Tx_Extbase_Utility_Localization::translate('localizedOperandOr', 'indexed_search'), $GLOBALS['TSFE']->renderCharset), 'toLower'), 'OR'),
                                        array($GLOBALS['TSFE']->csConvObj->conv_case('utf-8',$GLOBALS['TSFE']->csConvObj->utf8_encode(Tx_Extbase_Utility_Localization::translate('localizedOperandNot', 'indexed_search'), $GLOBALS['TSFE']->renderCharset), 'toLower'), 'AND NOT'),
                                );
 
index c5c8dea..4ad2ed0 100755 (executable)
@@ -392,7 +392,7 @@ class user_DoubleMetaPhone
                            array("B","H","D")))
                 // e.g. 'bough'
                 || (($this->current > 2)
-                    &&  $this->StringAt($this->original, $this->current - 3, 1,
+                    && $this->StringAt($this->original, $this->current - 3, 1,
                                array("B","H","D")))
                 // e.g. 'broughton'
                 || (($this->current > 3)
@@ -979,7 +979,7 @@ class user_DoubleMetaPhone
 
     } // end while
 
-    $this->primary   = substr($this->primary,   0, 4);
+    $this->primary   = substr($this->primary, 0, 4);
     $this->secondary = substr($this->secondary, 0, 4);
 
     $result["primary"] = $this->primary ;
index 73f555a..2c56ac6 100755 (executable)
@@ -276,7 +276,7 @@ class SC_mod_tools_config_index {
                                        $flashMessage = t3lib_div::makeInstance(
                                                't3lib_FlashMessage',
                                                '',
-                                               sprintf($GLOBALS['LANG']->getLL('writeMessage', TRUE), TYPO3_extTableDef_script,  '<br />', '<strong>' . nl2br($changedLine) . '</strong>'),
+                                               sprintf($GLOBALS['LANG']->getLL('writeMessage', TRUE), TYPO3_extTableDef_script, '<br />', '<strong>' . nl2br($changedLine) . '</strong>'),
                                                t3lib_FlashMessage::OK
                                        );
                                } else {
index b26d399..d37f645 100644 (file)
@@ -647,7 +647,7 @@ class tx_sysaction_task implements tx_taskcenter_Task {
 
                                // walk through every wanted DB-Mount and check if it allowed for the current user
                        foreach ($dbMounts as $dbMount) {
-                               $uid = intval(substr($dbMount,  (strrpos($dbMount, '_') + 1)));
+                               $uid = intval(substr($dbMount, (strrpos($dbMount, '_') + 1)));
                                $page = t3lib_BEfunc::getRecord('pages', $uid);
 
                                        // check rootline and access rights
@@ -743,7 +743,7 @@ class tx_sysaction_task implements tx_taskcenter_Task {
                }
 
                $content .= '<option value=""></option>';
-               $grList = t3lib_div::trimExplode(',',  $record['t1_allowed_groups'], 1);
+               $grList = t3lib_div::trimExplode(',', $record['t1_allowed_groups'], 1);
                foreach($grList as $group) {
                        $checkGroup = t3lib_BEfunc::getRecord('be_groups', $group);
                        if (is_array($checkGroup)) {
index 28be01d..5103829 100644 (file)
@@ -299,7 +299,7 @@ class SC_view_help {
                $output.= '
 
                        <h2>'.$GLOBALS['LANG']->getLL('introduction', 1).'</h2>
-                       <p>'.$GLOBALS['LANG']->getLL('description',  1).'</p>';
+                       <p>'.$GLOBALS['LANG']->getLL('description', 1).'</p>';
 
                $output.= '