[TASK] Fix CGL violations against InlineCommentWrongStyle
authorRoland Waldner <most.wanted@gmx.at>
Fri, 1 Jun 2012 14:10:30 +0000 (16:10 +0200)
committerGeorg Ringer <mail@ringerge.org>
Fri, 1 Jun 2012 18:00:27 +0000 (20:00 +0200)
There are violations against the CGL rule "InlineCommentWrongStyle".

These will be fixed.

Change-Id: I346022ff6aecf15a8a55b7dda09711a116f4e2b1
Resolves: #37687
Releases: 6.0
Reviewed-on: http://review.typo3.org/11796
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
t3lib/class.t3lib_befunc.php
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/indexed_search/class.crawler.php
typo3/sysext/indexed_search/ext_localconf.php
typo3/sysext/install/Classes/Updates/File/TceformsUpdateWizard.php
typo3/sysext/rtehtmlarea/mod5/class.tx_rtehtmlarea_user.php
typo3/sysext/sv/class.tx_sv_auth.php
typo3/sysext/tstemplate_ceditor/class.tx_tstemplateceditor.php

index e328acd..f7e8bb1 100644 (file)
@@ -962,7 +962,7 @@ final class t3lib_BEfunc {
                                        $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
                                                'uid,' . $ds_pointerField . ',' . $ds_searchParentField . ($subFieldPointer ? ',' . $subFieldPointer : ''),
                                                $table,
-                                                       'uid=' . intval($newRecordPidValue ? $newRecordPidValue : $rr[$ds_searchParentField]) . self::deleteClause($table) ###NOTE_A###
+                                                       'uid=' . intval($newRecordPidValue ? $newRecordPidValue : $rr[$ds_searchParentField]) . self::deleteClause($table)
                                        );
                                        $newRecordPidValue = 0;
                                        $rr = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
index a1e698d..8c01fe2 100644 (file)
@@ -2230,8 +2230,9 @@ class tslib_fe {
 
                        // Setting locale
                if ($this->config['config']['locale_all']) {
-                       # there's a problem that PHP parses float values in scripts wrong if the locale LC_NUMERIC is set to something with a comma as decimal point
-                       # so we set all except LC_NUMERIC
+                               // There's a problem that PHP parses float values in scripts wrong if the
+                               // locale LC_NUMERIC is set to something with a comma as decimal point
+                               // Do we set all except LC_NUMERIC
                        $locale = setlocale(LC_COLLATE, $this->config['config']['locale_all']);
                        if ($locale) {
 
index ee0e12b..92a1620 100755 (executable)
@@ -32,8 +32,7 @@
 
 
 
-
-# To make sure the backend charset is available:
+       // To make sure the backend charset is available:
 if (!is_object($GLOBALS['LANG'])) {
        $GLOBALS['LANG'] = t3lib_div::makeInstance('language');
        $GLOBALS['LANG']->init($GLOBALS['BE_USER']->uc['lang']);
@@ -146,7 +145,7 @@ class tx_indexedsearch_crawler {
                                        $pObj->addQueueEntry_callBack($setId,$params,$this->callBack,$cfgRec['pid']);
                                break;
                                case 5: // Meta configuration, nothing to do:
-                                       # NOOP
+                                       // NOOP
                                break;
                                default:
                                        if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['crawler'][$cfgRec['type']]) {
@@ -958,4 +957,4 @@ class tx_indexedsearch_files {
                require_once(t3lib_extMgm::extPath('indexed_search').'class.indexer.php');
        }
 }
-?>
\ No newline at end of file
+?>
index d9ce5c8..19861db 100755 (executable)
@@ -75,11 +75,13 @@ $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['pi1_hooks'] = array (
 */
 
        // EXAMPLE of adding fields to root line:
-#$TYPO3_CONF_VARS['EXTCONF']['indexed_search']['addRootLineFields']['level3'] = 3;
+/*
+$TYPO3_CONF_VARS['EXTCONF']['indexed_search']['addRootLineFields']['level3'] = 3;
+*/
 
 
        // Example of crawlerhook (see also ext_tables.php!)
 /*
-       $TYPO3_CONF_VARS['EXTCONF']['indexed_search']['crawler']['tx_myext_example1'] = 'EXT:indexed_search/example/class.crawlerhook.php:&tx_indexedsearch_crawlerhook';
+$TYPO3_CONF_VARS['EXTCONF']['indexed_search']['crawler']['tx_myext_example1'] = 'EXT:indexed_search/example/class.crawlerhook.php:&tx_indexedsearch_crawlerhook';
 */
 ?>
index 61e959d..45a3278 100644 (file)
@@ -58,7 +58,7 @@ class Tx_Install_Updates_File_TceformsUpdateWizard extends Tx_Install_Updates_Ba
         * @return      boolean         TRUE if an update is needed, FALSE otherwise
         */
        public function checkForUpdate(&$description) {
-               // @todo Function below copied from sysext/install/updates/class.tx_coreupdates_imagelink.php, needs to be adopted
+                       // @todo Function below copied from sysext/install/updates/class.tx_coreupdates_imagelink.php, needs to be adopted
 
                $description = 'TODO add description of FAL migration';
 
@@ -76,13 +76,14 @@ class Tx_Install_Updates_File_TceformsUpdateWizard extends Tx_Install_Updates_Ba
        public function performUpdate(&$dbQueries, &$customMessages) {
                $this->init();
 
-               ### Function below copied from sysext/install/updates/class.tx_coreupdates_imagelink.php
+                       // Function below copied from sysext/install/updates/class.tx_coreupdates_imagelink.php
 
                $tables = array(
                        'tt_content' => array(
                                'image' => array(
                                        'sourcePath' => 'uploads/pics/',
-                                       'targetPath' => '_migrated/pics/', # relative to fileadmin
+                                               // Relative to fileadmin
+                                       'targetPath' => '_migrated/pics/',
                                        'titleTexts' => 'titleText',
                                        'captions' => 'imagecaption',
                                        'links' => 'image_link',
@@ -92,17 +93,19 @@ class Tx_Install_Updates_File_TceformsUpdateWizard extends Tx_Install_Updates_Ba
                        'pages' => array(
                                'media' => array(
                                        'sourcePath' => 'uploads/media/',
-                                       'targetPath' => '_migrated/media/', # relative to fileadmin
+                                               // Relative to fileadmin
+                                       'targetPath' => '_migrated/media/',
                                ),
                        ),
                        'pages_language_overlay' => array(
                                'media' => array(
                                        'sourcePath' => 'uploads/media/',
-                                       'targetPath' => '_migrated/media/', # relative to fileadmin
+                                               // Relative to fileadmin
+                                       'targetPath' => '_migrated/media/',
                                ),
                        ),
                );
-                       // we write down the fields that were migrated. Like this: tt_content:media
+                       // We write down the fields that were migrated. Like this: tt_content:media
                        // so you can check whether a field was already migrated
                if (isset($GLOBALS['TYPO3_CONF_VARS']['INSTALL']['wizardDone']['Tx_Install_Updates_File_TceformsUpdateWizard'])) {
                        $finishedFields = explode(',', $GLOBALS['TYPO3_CONF_VARS']['INSTALL']['wizardDone']['Tx_Install_Updates_File_TceformsUpdateWizard']);
index 9d09757..db7f24d 100644 (file)
@@ -261,7 +261,7 @@ class tx_rtehtmlarea_user {
                        }
                        ksort($categories);
 
-                       # Render menu of the items:
+                               // Render menu of the items:
                        $lines=array();
                        foreach ($categories as $k => $v) {
                                $title = trim($thisConfig['userElements.'][$k]);
index 6768149..e76959d 100644 (file)
@@ -253,8 +253,8 @@ class tx_sv_auth extends tx_sv_authbase     {
                        }
                } elseif ($this->mode=='getGroupsBE') {
 
-                       # Get the BE groups here
-                       # still needs to be implemented in t3lib_userauthgroup
+                       // Get the BE groups here
+                       // still needs to be implemented in t3lib_userauthgroup
                }
 
                return $groupDataArr;
@@ -301,4 +301,4 @@ class tx_sv_auth extends tx_sv_authbase     {
                }
        }
 }
-?>
\ No newline at end of file
+?>
index ab0c0b9..5c3d76e 100644 (file)
@@ -165,7 +165,7 @@ class tx_tstemplateceditor extends t3lib_extobjbase {
                        $category = $this->pObj->MOD_SETTINGS["constant_editor_cat"];
                        $tmpl->ext_getTSCE_config($category);
 
-# NOT WORKING:
+                               // NOT WORKING:
                        if ($BE_USER_modOptions["properties"]["constantEditor."]["example"]=="top") {
                                $theOutput=$this->displayExample($theOutput);
                        }
@@ -184,4 +184,4 @@ class tx_tstemplateceditor extends t3lib_extobjbase {
                return $theOutput;
        }
 }
-?>
\ No newline at end of file
+?>