[TASK] Fix CGL violations against SuperfluousWhitespace
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 9 Jul 2012 18:45:25 +0000 (20:45 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 9 Jul 2012 20:01:41 +0000 (22:01 +0200)
Fix CGL violations against SuperfluousWhitespace

Change-Id: Ife95d3c3bb82f1c71816d90f1956bb17f03e46ac
Resolves: #38816
Releases: 6.0
Reviewed-on: http://review.typo3.org/12724
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/version/Classes/Preview.php
typo3/sysext/version/cm1/index.php

index 84f14b1..c974a94 100644 (file)
@@ -55,7 +55,7 @@ class Tx_Version_Preview implements t3lib_Singleton {
        /**
         * hook to check if the preview is activated
         * right now, this hook is called at the end of "$TSFE->connectToDB"
-        * 
+        *
         * @param $params (not needed right now)
         * @param $pObj the instance of the tslib_fe object
         * @return void
@@ -81,7 +81,7 @@ class Tx_Version_Preview implements t3lib_Singleton {
                        );
 
                                // Configuration after initialization of TSFE object.
-                               // Basically this unsets the BE cookie if any and forces 
+                               // Basically this unsets the BE cookie if any and forces
                                // the BE user set according to the preview configuration.
                                // @previouslyknownas TSFE->ADMCMD_preview_postInit
                                // Clear cookies:
@@ -179,7 +179,7 @@ class Tx_Version_Preview implements t3lib_Singleton {
                        );
 
                                // Get: Backend login status, Frontend login status
-                               // - Make sure to remove fe/be cookies (temporarily); 
+                               // - Make sure to remove fe/be cookies (temporarily);
                                // BE already done in ADMCMD_preview_postInit()
                        if (is_array($previewData)) {
                                if (!count(t3lib_div::_POST())) {
@@ -187,9 +187,9 @@ class Tx_Version_Preview implements t3lib_Singleton {
                                        $previewConfig = unserialize($previewData['config']);
 
                                                // For full workspace preview we only ADD a get variable
-                                               // to set the preview of the workspace - so all other Get 
+                                               // to set the preview of the workspace - so all other Get
                                                // vars are accepted. Hope this is not a security problem.
-                                               // Still posting is not allowed and even if a backend user 
+                                               // Still posting is not allowed and even if a backend user
                                                // get initialized it shouldn't lead to situations where
                                                // users can use those credentials.
                                        if ($previewConfig['fullWorkspace']) {
@@ -197,11 +197,11 @@ class Tx_Version_Preview implements t3lib_Singleton {
                                                        // Set the workspace preview value:
                                                t3lib_div::_GETset($previewConfig['fullWorkspace'], 'ADMCMD_previewWS');
 
-                                                       // If ADMCMD_prev is set the $inputCode value cannot come 
+                                                       // If ADMCMD_prev is set the $inputCode value cannot come
                                                        // from a cookie and we set that cookie here. Next time it will
                                                        // be found from the cookie if ADMCMD_prev is not set again...
                                                if (t3lib_div::_GP($this->previewKey)) {
-                                                               // Lifetime is 1 hour, does it matter much? 
+                                                               // Lifetime is 1 hour, does it matter much?
                                                                // Requires the user to click the link from their email again if it expires.
                                                        SetCookie($this->previewKey, t3lib_div::_GP($this->previewKey), 0, t3lib_div::getIndpEnv('TYPO3_SITE_PATH'));
                                                }
@@ -232,7 +232,7 @@ class Tx_Version_Preview implements t3lib_Singleton {
 
        /**
         * returns the input code value from the admin command variable
-        * 
+        *
         * @param "input code"
         */
        protected function getPreviewInputCode() {
@@ -257,7 +257,7 @@ class Tx_Version_Preview implements t3lib_Singleton {
         *
         * @param       string          Get variables to preview, eg. 'id=1150&L=0&ADMCMD_view=1&ADMCMD_editIcons=1&ADMCMD_previewWS=8'
         * @param       string          32 byte MD5 hash keyword for the URL: "?ADMCMD_prev=[keyword]"
-        * @param       integer         Time-To-Live for keyword 
+        * @param       integer         Time-To-Live for keyword
         * @param       integer         Which workspace to preview. Workspace UID, -1 or >0. If set, the getVars is ignored in the frontend, so that string can be empty
         * @return      string          Returns keyword to use in URL for ADMCMD_prev=
         * @formallyknownas t3lib_BEfunc::compilePreviewKeyword
index 0dd716a..00e6110 100755 (executable)
@@ -462,7 +462,6 @@ class tx_version_cm1 extends t3lib_SCbase {
 
                $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('title'), $content, 0, 1);
 
-
                        // Create new:
                $content='
 
@@ -571,8 +570,6 @@ class tx_version_cm1 extends t3lib_SCbase {
                                                        t3lib_iconWorks::getSpriteIcon('actions-edit-delete') .
                                                '</a>';
 
-
-
                if ($table == 'pages') {
 
                                // If another page module was specified, replace the default Page module with the new one
@@ -899,7 +896,6 @@ class tx_version_cm1 extends t3lib_SCbase {
                                                        </table>';
                                                }
 
-
                                                        // Create version cell:
                                                $verCell = '
                                                                <td align="center">'.$this->formatVerId($rec_off['t3ver_id']).'</td>
@@ -1475,7 +1471,6 @@ class tx_version_cm1 extends t3lib_SCbase {
                                                // If there is a change of value:
                                        if (strcmp(trim($diff_1_record[$fN]), trim($diff_2_record[$fN]))) {
 
-
                                                        // Get the best visual presentation of the value and present that:
                                                $val1 = t3lib_BEfunc::getProcessedValue($table, $fN, $diff_2_record[$fN], 0, 1);
                                                $val2 = t3lib_BEfunc::getProcessedValue($table, $fN, $diff_1_record[$fN], 0, 1);