CGL FunctionCallArgumentSpacingNoSpaceAfterComma in setup
authorLudwig Rafelsberger <ludwig.rafelsberger@gmx.at>
Mon, 11 Jun 2012 20:09:01 +0000 (22:09 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 11 Jun 2012 20:34:49 +0000 (22:34 +0200)
Fix CGL violations against FunctionCallArgumentSpacingNoSpaceAfterComma
in /typo3/sysext/setup.

Change-Id: I34e805a53d1e36394bc99526f1ea2567c2cf2bfa
Resolves: #37917
Releases: 6.0
Reviewed-on: http://review.typo3.org/11948
Reviewed-by: Roland Waldner
Reviewed-by: Obadja Hauser
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/setup/ext_tables.php
typo3/sysext/setup/mod/index.php

index e5b264f..5d8cfa0 100755 (executable)
@@ -1,9 +1,9 @@
 <?php
 if (!defined ('TYPO3_MODE'))   die ('Access denied.');
 
-if (TYPO3_MODE=='BE') {
-       t3lib_extMgm::addModule('user','setup','after:task',t3lib_extMgm::extPath($_EXTKEY).'mod/');
-       t3lib_extMgm::addLLrefForTCAdescr('_MOD_user_setup','EXT:setup/locallang_csh_mod.xml');
+if (TYPO3_MODE == 'BE') {
+       t3lib_extMgm::addModule('user', 'setup', 'after:task', t3lib_extMgm::extPath($_EXTKEY) . 'mod/');
+       t3lib_extMgm::addLLrefForTCAdescr('_MOD_user_setup', 'EXT:setup/locallang_csh_mod.xml');
 }
 
 $GLOBALS['TYPO3_USER_SETTINGS'] = array(
index c0bab7c..8c84f74 100755 (executable)
@@ -488,7 +488,7 @@ class SC_mod_user_setup_index {
                );
 
                if ($GLOBALS['BE_USER']->mayMakeShortcut()) {
-                       $buttons['shortcut'] = $this->doc->makeShortcutIcon('','',$this->MCONF['name']);
+                       $buttons['shortcut'] = $this->doc->makeShortcutIcon('', '', $this->MCONF['name']);
                }
 
                return $buttons;
@@ -785,11 +785,11 @@ class SC_mod_user_setup_index {
                        $opt = array();
                        foreach ($users as $rr) {
                                if ($rr['uid'] != $GLOBALS['BE_USER']->user['uid']) {
-                                       $opt[] = '<option value="'.$rr['uid'].'"'.($this->simUser==$rr['uid']?' selected="selected"':'').'>'.htmlspecialchars($rr['username'].' ('.$rr['realName'].')').'</option>';
+                                       $opt[] = '<option value="' . $rr['uid'] . '"' . ($this->simUser==$rr['uid']?' selected="selected"':'') . '>' . htmlspecialchars($rr['username'] . ' (' . $rr['realName'] . ')') . '</option>';
                                }
                        }
                        if (count($opt)) {
-                               $this->simulateSelector = '<select id="field_simulate" name="simulateUser" onchange="window.location.href=\'index.php?simUser=\'+this.options[this.selectedIndex].value;"><option></option>'.implode('',$opt).'</select>';
+                               $this->simulateSelector = '<select id="field_simulate" name="simulateUser" onchange="window.location.href=\'index.php?simUser=\'+this.options[this.selectedIndex].value;"><option></option>' . implode('', $opt) . '</select>';
                        }
                }
 
@@ -855,7 +855,7 @@ class SC_mod_user_setup_index {
 
 
                if (isset($this->overrideConf[($key?$key:$str)])) {
-                       $out = '<span style="color:#999999">'.$out.'</span>';
+                       $out = '<span style="color:#999999">' . $out . '</span>';
                }
 
                if($addLabelTag) {