[TASK] Fix CGL violations against DoubleQuoteUsage
authorWouter Wolters <typo3@wouterwolters.nl>
Sun, 24 Jun 2012 20:43:56 +0000 (22:43 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 28 Jun 2012 19:03:12 +0000 (21:03 +0200)
Fix CGL violations against DoubleQuoteUsage

Change-Id: I2ffaee5d31866b13bc061fcd4ee0b5827e7c49d1
Resolves: #38359
Releases: 6.0
Reviewed-on: http://review.typo3.org/12340
Reviewed-by: Oliver Klee
Reviewed-by: Ludwig Rafelsberger
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/version/class.tx_version_gui.php
typo3/sysext/version/class.tx_version_tcemain.php
typo3/sysext/version/ws/index.php

index 71d6d24..1f2acd3 100644 (file)
@@ -79,7 +79,7 @@ class tx_version_gui {
                                $management = '<input type="button" value="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:ver.mgm', TRUE) . '" onclick="window.location.href=\'' .
                                                htmlspecialchars($GLOBALS['BACK_PATH'] . t3lib_extMgm::extRelPath('version') . 'cm1/index.php?table=pages&uid=' . $onlineId) . '\';" />';
                                        // Create onchange handler:
-                               $onChange = "window.location.href=this.options[this.selectedIndex].value;";
+                               $onChange = 'window.location.href=this.options[this.selectedIndex].value;';
 
                                        // Controls:
                                if ($id == $onlineId) {
index 434a397..ea5b6bc 100644 (file)
@@ -352,7 +352,7 @@ class tx_version_tcemain {
                                        $recordWasMoved = FALSE;
                                }
                        } else {
-                               $tcemainObj->newlog("Move attempt failed due to workspace restrictions: " . implode(' // ', $workspaceAccessBlocked), 1);
+                               $tcemainObj->newlog('Move attempt failed due to workspace restrictions: ' . implode(' // ', $workspaceAccessBlocked), 1);
                        }
                }
        }
index 27ae63e..7016cf2 100755 (executable)
@@ -145,39 +145,39 @@ class SC_mod_user_ws_index extends t3lib_SCbase {
 
                                        if ($GLOBALS['TCA'][$table] && t3lib_utility_Math::canBeInterpretedAsInteger($uid)) {
                                                switch ($post['_with_selected_do']) {
-                                                       case "stage_-1":
+                                                       case 'stage_-1':
                                                                $cmdArray[$table][$uid]['version']['action'] = 'setStage';
                                                                $cmdArray[$table][$uid]['version']['stageId'] = -1;
                                                        break;
-                                                       case "stage_0":
+                                                       case 'stage_0':
                                                                $cmdArray[$table][$uid]['version']['action'] = 'setStage';
                                                                $cmdArray[$table][$uid]['version']['stageId'] = 0;
                                                        break;
-                                                       case "stage_1":
+                                                       case 'stage_1':
                                                                $cmdArray[$table][$uid]['version']['action'] = 'setStage';
                                                                $cmdArray[$table][$uid]['version']['stageId'] = 1;
                                                        break;
-                                                       case "stage_10":
+                                                       case 'stage_10':
                                                                $cmdArray[$table][$uid]['version']['action'] = 'setStage';
                                                                $cmdArray[$table][$uid]['version']['stageId'] = 10;
                                                        break;
-                                                       case "publish":
+                                                       case 'publish':
                                                                if ($onlineRec = t3lib_BEfunc::getLiveVersionOfRecord($table, $uid, 'uid')) {
                                                                        $cmdArray[$table][$onlineRec['uid']]['version']['action'] = 'swap';
                                                                        $cmdArray[$table][$onlineRec['uid']]['version']['swapWith'] = $uid;
                                                                }
                                                        break;
-                                                       case "swap":
+                                                       case 'swap':
                                                        if ($onlineRec = t3lib_BEfunc::getLiveVersionOfRecord($table, $uid, 'uid')) {
                                                                $cmdArray[$table][$onlineRec['uid']]['version']['action'] = 'swap';
                                                                $cmdArray[$table][$onlineRec['uid']]['version']['swapWith'] = $uid;
                                                                $cmdArray[$table][$onlineRec['uid']]['version']['swapIntoWS'] = 1;
                                                        }
                                                        break;
-                                                       case "release":
+                                                       case 'release':
                                                                $cmdArray[$table][$uid]['version']['action'] = 'clearWSID';
                                                        break;
-                                                       case "flush":
+                                                       case 'flush':
                                                                $cmdArray[$table][$uid]['version']['action'] = 'flush';
                                                        break;
                                                }