[TASK] CGL FunctionCallArgumentSpacingNoSpaceAfterComma in sysext workspaces
authorRoland Waldner <most.wanted@gmx.at>
Tue, 12 Jun 2012 20:46:54 +0000 (22:46 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 20 Jun 2012 22:53:03 +0000 (00:53 +0200)
Change-Id: I94868e61fb5e66040b5ecea1f73304e8307f198c
Resolves: #37982
Releases: 6.0
Reviewed-on: http://review.typo3.org/12012
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/workspaces/Classes/ExtDirect/Server.php
typo3/sysext/workspaces/ext_tables.php
typo3/sysext/workspaces/tca.php

index 490e7c2..e965c16 100644 (file)
@@ -99,18 +99,18 @@ class Tx_Workspaces_ExtDirect_Server extends Tx_Workspaces_ExtDirect_AbstractHan
                if ($GLOBALS['TCA'][$parameter->table]) {
                        if ($GLOBALS['TCA'][$parameter->table]['interface']['showRecordFieldList']) {
                                $fieldsOfRecords = $GLOBALS['TCA'][$parameter->table]['interface']['showRecordFieldList'];
-                               $fieldsOfRecords = t3lib_div::trimExplode(',',$fieldsOfRecords,1);
+                               $fieldsOfRecords = t3lib_div::trimExplode(',', $fieldsOfRecords, 1);
                        }
                }
 
                foreach ($fieldsOfRecords as $fieldName) {
                                // check for exclude fields
-                       if ($GLOBALS['BE_USER']->isAdmin() || ($GLOBALS['TCA'][$parameter->table]['columns'][$fieldName]['exclude'] == 0) || t3lib_div::inList($GLOBALS['BE_USER']->groupData['non_exclude_fields'],$parameter->table.':'.$fieldName)) {
+                       if ($GLOBALS['BE_USER']->isAdmin() || ($GLOBALS['TCA'][$parameter->table]['columns'][$fieldName]['exclude'] == 0) || t3lib_div::inList($GLOBALS['BE_USER']->groupData['non_exclude_fields'], $parameter->table . ':' . $fieldName)) {
                                        // call diff class only if there is a difference
-                               if (strcmp($liveRecord[$fieldName],$versionRecord[$fieldName]) !== 0) {
+                               if (strcmp($liveRecord[$fieldName], $versionRecord[$fieldName]) !== 0) {
                                                // Select the human readable values before diff
-                                       $liveRecord[$fieldName] = t3lib_BEfunc::getProcessedValue($parameter->table,$fieldName,$liveRecord[$fieldName],0,1);
-                                       $versionRecord[$fieldName] = t3lib_BEfunc::getProcessedValue($parameter->table,$fieldName,$versionRecord[$fieldName],0,1);
+                                       $liveRecord[$fieldName] = t3lib_BEfunc::getProcessedValue($parameter->table, $fieldName, $liveRecord[$fieldName], 0, 1);
+                                       $versionRecord[$fieldName] = t3lib_BEfunc::getProcessedValue($parameter->table, $fieldName, $versionRecord[$fieldName], 0, 1);
 
                                                // Get the field's label. If not available, use the field name
                                        $fieldTitle = $GLOBALS['LANG']->sL(t3lib_BEfunc::getItemLabel($parameter->table, $fieldName));
@@ -191,8 +191,8 @@ class Tx_Workspaces_ExtDirect_Server extends Tx_Workspaces_ExtDirect_AbstractHan
                                'log_data,tstamp,userid',
                                'sys_log',
                                'action=6 and details_nr=30
-                               AND tablename='.$GLOBALS['TYPO3_DB']->fullQuoteStr($table,'sys_log').'
-                               AND recuid='.intval($uid),
+                               AND tablename='.$GLOBALS['TYPO3_DB']->fullQuoteStr($table, 'sys_log') . '
+                               AND recuid=' . intval($uid),
                                '',
                                'tstamp DESC'
                );
index 60402c4..d8c6f1b 100644 (file)
@@ -105,7 +105,7 @@ $icons = array(
        'generatepreviewlink' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/generate-ws-preview-link.png',
 );
 t3lib_SpriteManager::addSingleIcons($icons, $_EXTKEY);
-t3lib_extMgm::addLLrefForTCAdescr('sys_workspace_stage','EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xml');
+t3lib_extMgm::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xml');
 
 
 ?>
index 6f2e121..10d4146 100644 (file)
@@ -109,7 +109,7 @@ $TCA['sys_workspace'] = array(
                                'checkbox' => '0',
                                'default' => '0',
                                'range' => array(
-                                       'upper' => mktime(0,0,0,12,31,2020),
+                                       'upper' => mktime(0, 0, 0, 12, 31, 2020),
                                )
                        ),
                        'displayCond' => 'FALSE'                        // this feature doesn't work yet therefore it's not shown by default