[TASK] Reduce CGL violations OpeningFunctionBraceKernighanRitchieSpace
authorRoland Waldner <most.wanted@gmx.at>
Fri, 1 Jun 2012 15:28:07 +0000 (17:28 +0200)
committerGeorg Ringer <mail@ringerge.org>
Fri, 1 Jun 2012 17:02:15 +0000 (19:02 +0200)
There are violations against the CGL rule
"OpeningFunctionBraceKernighanRitchieSpaceBeforeBrace".

These will be reduced.

Change-Id: I69a0f6025e011dd54a106d71523a7a3547ea8b52
Resolves: #37693
Releases: 6.0
Reviewed-on: http://review.typo3.org/11798
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
33 files changed:
t3lib/class.t3lib_div.php
t3lib/class.t3lib_positionmap.php
t3lib/class.t3lib_recordlist.php
t3lib/class.t3lib_tceforms.php
typo3/alt_clickmenu.php
typo3/alt_db_navframe.php
typo3/alt_doc.php
typo3/alt_shortcut.php
typo3/backend.php
typo3/browser.php
typo3/class.browse_links.php
typo3/file_edit.php
typo3/file_newfolder.php
typo3/file_rename.php
typo3/sysext/aboutmodules/class.tx_aboutmodules_functions.php
typo3/sysext/beuser/mod/index.php
typo3/sysext/cms/layout/db_layout.php
typo3/sysext/cms/layout/db_new_content_el.php
typo3/sysext/cms/tslib/class.tslib_content.php
typo3/sysext/cms/tslib/class.tslib_fe.php
typo3/sysext/cms/tslib/class.tslib_pagegen.php
typo3/sysext/em/classes/index.php
typo3/sysext/filelist/mod1/file_list.php
typo3/sysext/func/mod1/index.php
typo3/sysext/impexp/app/index.php
typo3/sysext/indexed_search/class.doublemetaphone.php
typo3/sysext/info/mod1/index.php
typo3/sysext/recordlist/mod1/index.php
typo3/wizard_colorpicker.php
typo3/wizard_forms.php
typo3/wizard_rte.php
typo3/wizard_table.php
typo3/wizard_tsconfig.php

index 13ac802..f6e1ccb 100644 (file)
@@ -4246,7 +4246,7 @@ final class t3lib_div {
 
        /**
         * Calls a user-defined function/method in class
-        * Such a function/method should look like this: "function proc(&$params, &$ref)        {...}"
+        * Such a function/method should look like this: "function proc(&$params, &$ref) {...}"
         *
         * @param string $funcName Function/Method reference, '[file-reference":"]["&"]class/function["->"method-name]'. You can prefix this reference with "[file-reference]:" and t3lib_div::getFileAbsFileName() will then be used to resolve the filename and subsequently include it by "require_once()" which means you don't have to worry about including the class file either! Example: "EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL". Finally; you can prefix the class name with "&" if you want to reuse a former instance of the same object call ("singleton").
         * @param mixed $params Parameters to be pass along (typically an array) (REFERENCE!)
index 5514319..7897659 100644 (file)
@@ -221,7 +221,7 @@ class t3lib_positionMap {
                        var img_newrecord_marker_d=new Image();
                        img_newrecord_marker_d.src = "' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/newrecord' . $prefix . '_marker_d.gif', '', 1) . '";
 
-                       function changeImg(name,d)      {       //
+                       function changeImg(name,d) {    //
                                if (document[name]) {
                                        if (d) {
                                                document[name].src = img_newrecord_marker_d.src;
index 0fc9e71..086fcbb 100644 (file)
@@ -296,7 +296,7 @@ class t3lib_recordList {
        function CBfunctions() {
                return '
                // checkOffCB()
-       function checkOffCB(listOfCBnames, link)        {       //
+       function checkOffCB(listOfCBnames, link) {      //
                var checkBoxes, flag, i;
                var checkBoxes = listOfCBnames.split(",");
                if (link.rel === "") {
@@ -311,12 +311,12 @@ class t3lib_recordList {
                }
        }
                // cbValue()
-       function cbValue(CBname)        {       //
+       function cbValue(CBname) {      //
                var CBfullName = "CBC["+CBname+"]";
                return (document.dblistForm[CBfullName] && document.dblistForm[CBfullName].checked ? 1 : 0);
        }
                // setcbValue()
-       function setcbValue(CBname,flag)        {       //
+       function setcbValue(CBname,flag) {      //
                CBfullName = "CBC["+CBname+"]";
                if(document.dblistForm[CBfullName]) {
                        document.dblistForm[CBfullName].checked = flag ? "on" : 0;
index d5f0ab3..ae7c83f 100644 (file)
@@ -5598,11 +5598,11 @@ class t3lib_TCEforms {
                        $toggleIcon_close = t3lib_iconWorks::getSpriteIcon('actions-move-right', array('title' => 'Close'));
 
                        $out .= '
-                       function getOuterHTML(idTagPrefix)      {       // Function getting the outerHTML of an element with id
+                       function getOuterHTML(idTagPrefix) {    // Function getting the outerHTML of an element with id
                                var str=($(idTagPrefix).inspect()+$(idTagPrefix).innerHTML+"</"+$(idTagPrefix).tagName.toLowerCase()+">");
                                return str;
                        }
-                       function flexFormToggle(id)     {       // Toggling flexform elements on/off:
+                       function flexFormToggle(id) {   // Toggling flexform elements on/off:
                                Element.toggle(""+id+"-content");
 
                                if (Element.visible(id+"-content")) {
@@ -5623,7 +5623,7 @@ class t3lib_TCEforms {
                                }
                                $(id+"-preview").update(previewContent);
                        }
-                       function flexFormToggleSubs(id) {       // Toggling sub flexform elements on/off:
+                       function flexFormToggleSubs(id) {       // Toggling sub flexform elements on/off:
                                var descendants = $(id).immediateDescendants();
                                var isOpen=0;
                                var isClosed=0;
@@ -5645,13 +5645,13 @@ class t3lib_TCEforms {
                                        }
                                }
                        }
-                       function flexFormSortable(id)   {       // Create sortables for flexform sections
+                       function flexFormSortable(id) { // Create sortables for flexform sections
                                Position.includeScrollOffsets = true;
                                Sortable.create(id, {tag:\'div\',constraint: false, onChange:function(){
                                        setActionStatus(id);
                                } });
                        }
-                       function setActionStatus(id)    {       // Updates the "action"-status for a section. This is used to move and delete elements.
+                       function setActionStatus(id) {  // Updates the "action"-status for a section. This is used to move and delete elements.
                                var descendants = $(id).immediateDescendants();
 
                                        // Traverse and find how many are open or closed:
@@ -5837,7 +5837,7 @@ class t3lib_TCEforms {
                                        }
                                }
                        }
-                       function setHiddenFromList(fObjSel,fObjHid)     {       //
+                       function setHiddenFromList(fObjSel,fObjHid) {   //
                                l=fObjSel.length;
                                fObjHid.value="";
                                for (a=0;a<l;a++) {
@@ -6005,7 +6005,7 @@ class t3lib_TCEforms {
                                        ' . $this->TBE_EDITOR_fieldChanged_func . '
                                }
                        }
-                       function setFormValue_getFObj(fName)    {       //
+                       function setFormValue_getFObj(fName) {  //
                                var formObj = ' . $formObj . ';
                                if (formObj) {
                                                // Take the form object if it is either of type select-one or of type-multiple and it has a "_list" element
index ea4b139..e7b2f28 100644 (file)
@@ -1637,21 +1637,21 @@ class SC_alt_clickmenu {
 
        routImg = "t3-icon-empty";
 
-       function mo(c)  {       //
+       function mo(c)        //
                var name="roimg_"+c;
                document.getElementById(name).className = roImg;
                updateTime();
        }
-       function mout(c)        {       //
+       function mout(c) {      //
                var name="roimg_"+c;
                document[name].src = routImg;
                updateTime();
        }
-       function updateTime()   {       //
+       function updateTime() { //
                date = new Date();
                mo_timeout = Math.floor(date.getTime()/1000);
        }
-       function timeout_func() {       //
+       function timeout_func() {       //
                date = new Date();
                if (Math.floor(date.getTime()/1000)-mo_timeout > '.$secs.') {
                        hideCM();
@@ -1660,7 +1660,7 @@ class SC_alt_clickmenu {
                        window.setTimeout("timeout_func();",1*1000);
                }
        }
-       function hideCM()       {       //
+       function hideCM() {     //
                window.location.href="alt_topmenu_dummy.php";
                return false;
        }
index a463f9f..ae56970 100644 (file)
@@ -151,7 +151,7 @@ class SC_alt_db_navframe {
                '.($this->doHighlight ? 'Tree.highlightClass = "'.$hlClass.'";' : '').'
 
                // Function, loading the list frame from navigation tree:
-               function jumpTo(id, linkObj, highlightID, bank) { //
+               function jumpTo(id, linkObj, highlightID, bank) { //
                        var theUrl = top.TS.PATH_typo3 + top.currentSubScript ;
                        if (theUrl.indexOf("?") != -1) {
                                theUrl += "&id=" + id
index ecfbf10..b646bce 100644 (file)
@@ -407,7 +407,7 @@ class SC_alt_doc {
 
                $this->doc->getPageRenderer()->loadPrototype();
                $this->doc->JScode = $this->doc->wrapScriptTags('
-                       function jumpToUrl(URL,formEl)  {       //
+                       function jumpToUrl(URL,formEl)        //
                                if (!TBE_EDITOR.isFormChanged()) {
                                        window.location.href = URL;
                                } else if (formEl && formEl.type=="checkbox") {
@@ -417,7 +417,7 @@ class SC_alt_doc {
                                // Object: TS:
                                // passwordDummy and decimalSign are used by tbe_editor.js and have to be declared here as
                                // TS object overwrites the object declared in tbe_editor.js
-                       function typoSetup      ()      {       //
+                       function typoSetup() {  //
                                this.uniqueID = "";
                                this.passwordDummy = "********";
                                this.PATH_typo3 = " ";
@@ -426,7 +426,7 @@ class SC_alt_doc {
                        var TS = new typoSetup();
 
                                // Info view:
-                       function launchView(table,uid,bP)       {       //
+                       function launchView(table,uid,bP) {     //
                                var backPath= bP ? bP : "";
                                var thePreviewWindow="";
                                thePreviewWindow = window.open(backPath+"show_item.php?table="+encodeURIComponent(table)+"&uid="+encodeURIComponent(uid),"ShowItem"+TS.uniqueID,"height=300,width=410,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");
@@ -434,7 +434,7 @@ class SC_alt_doc {
                                        thePreviewWindow.focus();
                                }
                        }
-                       function deleteRecord(table,id,url)     {       //
+                       function deleteRecord(table,id,url) {   //
                                if (
                                        ' . ($GLOBALS['BE_USER']->jsConfirmation(4) ? 'confirm(' . $GLOBALS['LANG']->JScharCode($GLOBALS['LANG']->getLL('deleteWarning')) . ')' : '1==1') . '
                                )       {
index 590cc2b..722b2f8 100644 (file)
@@ -219,7 +219,7 @@ class SC_alt_shortcut {
                $this->doc->form='<form action="alt_shortcut.php" name="shForm" method="post">';
                $this->doc->divClass='typo3-shortcut';
                $this->doc->JScode.=$this->doc->wrapScriptTags('
-                       function jump(url,modName,mainModName)  {       //
+                       function jump(url,modName,mainModName)        //
                                        // Clear information about which entry in nav. tree that might have been highlighted.
                                top.fsMod.navFrameHighlightedID = new Array();
                                if (top.content && top.content.nav_frame && top.content.nav_frame.refresh_nav) {
@@ -229,16 +229,16 @@ class SC_alt_shortcut {
                                top.nextLoadModuleUrl = url;
                                top.goToModule(modName);
                        }
-                       function editSh(uid)    {       //
+                       function editSh(uid) {  //
                                window.location.href="alt_shortcut.php?editShortcut="+uid;
                        }
-                       function submitEditPage(id)     {       //
+                       function submitEditPage(id) {   //
                                window.location.href="alt_shortcut.php?editPage="+top.rawurlencodeAndRemoveSiteUrl(id);
                        }
-                       function changeWorkspace(workspaceId)   {       //
+                       function changeWorkspace(workspaceId) { //
                                window.location.href="alt_shortcut.php?changeWorkspace="+top.rawurlencodeAndRemoveSiteUrl(workspaceId);
                        }
-                       function changeWorkspacePreview(newstate)       {       //
+                       function changeWorkspacePreview(newstate) {     //
                                window.location.href="alt_shortcut.php?changeWorkspacePreview="+newstate;
                        }
                        function refreshShortcuts() {
index c92c919..66c6e5a 100644 (file)
@@ -580,7 +580,7 @@ class TYPO3backend {
        /**
         * TypoSetup object.
         */
-       function typoSetup()    {       //
+       function typoSetup() {  //
                this.PATH_typo3 = TYPO3.configuration.PATH_typo3;
                this.PATH_typo3_enc = TYPO3.configuration.PATH_typo3_enc;
                this.username = TYPO3.configuration.username;
@@ -600,7 +600,7 @@ class TYPO3backend {
         *              if (top.fsMod) top.fsMod.recentIds["web"] = "\'.intval($this->id).\'";
         *              if (top.fsMod) top.fsMod.recentIds["file"] = "...(file reference/string)...";
         */
-       function fsModules()    {       //
+       function fsModules() {  //
                this.recentIds=new Array();                                     // used by frameset modules to track the most recent used id for list frame.
                this.navFrameHighlightedID=new Array();         // used by navigation frames to track which row id was highlighted last time
                this.currentMainLoaded="";
index f2bdc84..ff9a678 100644 (file)
@@ -70,10 +70,10 @@ class SC_browser {
                        // Set doktype:
                $GLOBALS['TBE_TEMPLATE']->docType='xhtml_frames';
                $GLOBALS['TBE_TEMPLATE']->JScode=$GLOBALS['TBE_TEMPLATE']->wrapScriptTags('
-                               function closing()      {       //
+                               function closing() {    //
                                        close();
                                }
-                               function setParams(mode,params) {       //
+                               function setParams(mode,params) {       //
                                        parent.content.location.href = "browse_links.php?mode="+mode+"&bparams="+params;
                                }
                                if (!window.opener) {
index 19d88a2..af02f1f 100644 (file)
@@ -862,7 +862,7 @@ class browse_links {
                        var cur_title="'.($this->setTitle?$this->setTitle:'').'";
                        var cur_params="' . ($this->setParams ? $this->setParams : '') . '";
 
-                       function browse_links_setTarget(target) {       //
+                       function browse_links_setTarget(target) {       //
                                cur_target=target;
                                add_target="&curUrl[target]="+escape(target);
                        }
@@ -870,7 +870,7 @@ class browse_links {
                                cur_class = cssClass;
                                add_class = "&curUrl[class]=" + escape(cssClass);
                        }
-                       function browse_links_setTitle(title)   {       //
+                       function browse_links_setTitle(title) { //
                                cur_title=title;
                                add_title="&curUrl[title]="+escape(title);
                        }
@@ -878,7 +878,7 @@ class browse_links {
                                cur_href=value;
                                add_href="&curUrl[href]="+value;
                        }
-                       function browse_links_setParams(params) {       //
+                       function browse_links_setParams(params) {       //
                                cur_params=params;
                                add_params="&curUrl[params]="+escape(params);
                        }
@@ -906,17 +906,17 @@ class browse_links {
                        $addPassOnParams.=t3lib_div::implodeArrayForUrl('P', $P2);
 
                        $JScode.='
-                               function link_typo3Page(id,anchor)      {       //
+                               function link_typo3Page(id,anchor) {    //
                                        updateValueInMainForm(id + (anchor ? anchor : ""));
                                        close();
                                        return false;
                                }
-                               function link_folder(folder)    {       //
+                               function link_folder(folder) {  //
                                        updateValueInMainForm(folder);
                                        close();
                                        return false;
                                }
-                               function link_current() {       //
+                               function link_current() {       //
                                        if (cur_href!="http://" && cur_href!="mailto:") {
                                                returnBeforeCleaned = cur_href;
                                                if (returnBeforeCleaned.substr(0, 7) == "http://") {
@@ -935,14 +935,14 @@ class browse_links {
                                        }
                                        return false;
                                }
-                               function checkReference()       {       //
+                               function checkReference() {     //
                                        if (window.opener && window.opener.document && window.opener.document.'.$this->P['formName'].' && window.opener.document.'.$this->P['formName'].'["'.$this->P['itemName'].'"] ) {
                                                return window.opener.document.'.$this->P['formName'].'["'.$this->P['itemName'].'"];
                                        } else {
                                                close();
                                        }
                                }
-                               function updateValueInMainForm(input)   {       //
+                               function updateValueInMainForm(input) { //
                                        var field = checkReference();
                                        if (field) {
                                                if (cur_target == "" && (cur_class != "" || cur_title != "" || cur_params != "")) {
@@ -977,21 +977,21 @@ class browse_links {
                        ';
                } else {        // Functions used, if the link selector is in RTE mode:
                        $JScode.='
-                               function link_typo3Page(id,anchor)      {       //
+                               function link_typo3Page(id,anchor) {    //
                                        var theLink = \''.$this->siteURL.'?id=\'+id+(anchor?anchor:"");
                                        self.parent.parent.renderPopup_addLink(theLink, cur_target, cur_class, cur_title);
                                        return false;
                                }
-                               function link_folder(folder)    {       //
+                               function link_folder(folder) {  //
                                        var theLink = \''.$this->siteURL.'\'+folder;
                                        self.parent.parent.renderPopup_addLink(theLink, cur_target, cur_class, cur_title);
                                        return false;
                                }
-                               function link_spec(theLink)     {       //
+                               function link_spec(theLink) {   //
                                        self.parent.parent.renderPopup_addLink(theLink, cur_target, cur_class, cur_title);
                                        return false;
                                }
-                               function link_current() {       //
+                               function link_current() {       //
                                        if (cur_href!="http://" && cur_href!="mailto:") {
                                                self.parent.parent.renderPopup_addLink(cur_href, cur_target, cur_class, cur_title);
                                        }
@@ -1002,7 +1002,7 @@ class browse_links {
 
                        // General "jumpToUrl" function:
                $JScode.='
-                       function jumpToUrl(URL,anchor)  {       //
+                       function jumpToUrl(URL,anchor)        //
                                var add_act = URL.indexOf("act=")==-1 ? "&act='.$this->act.'" : "";
                                var add_mode = URL.indexOf("mode=")==-1 ? "&mode='.$this->mode.'" : "";
                                var theLocation = URL + add_act + add_mode + add_href + add_target + add_class + add_title + add_params'.($addPassOnParams?'+"'.$addPassOnParams.'"':'').'+(anchor?anchor:"");
@@ -1089,14 +1089,14 @@ class browse_links {
                        var elRef="";
                        var targetDoc="";
 
-                       function launchView(url)        {       //
+                       function launchView(url) {      //
                                var thePreviewWindow="";
                                thePreviewWindow = window.open("'.$GLOBALS['BACK_PATH'].'show_item.php?table="+url,"ShowItem","height=300,width=410,status=0,menubar=0,resizable=0,location=0,directories=0,scrollbars=1,toolbar=0");
                                if (thePreviewWindow && thePreviewWindow.focus) {
                                        thePreviewWindow.focus();
                                }
                        }
-                       function setReferences()        {       //
+                       function setReferences() {      //
                                if (parent.window.opener && parent.window.opener.content && parent.window.opener.content.document.editform && parent.window.opener.content.document.editform["'.$formFieldName.'"]) {
                                        targetDoc = parent.window.opener.content.document;
                                        elRef = targetDoc.editform["'.$formFieldName.'"];
@@ -1105,7 +1105,7 @@ class browse_links {
                                        return false;
                                }
                        }
-                       function insertElement(table, uid, type, filename, fp, filetype, imagefile, action, close)      {       //
+                       function insertElement(table, uid, type, filename, fp, filetype, imagefile, action, close) {    //
                                var performAction = true;
                                '.$JScodeCheck.'
                                        // Call performing function and finish this action:
@@ -1119,7 +1119,7 @@ class browse_links {
                                                ' . $JScodeActionMultiple . '
                                return false;
                        }
-                       function addElement(elName, elValue, altElValue, close) {       //
+                       function addElement(elName, elValue, altElValue, close) {       //
                                if (parent.window.opener && parent.window.opener.setFormValueFromBrowseWin) {
                                        parent.window.opener.setFormValueFromBrowseWin("'.$pArr[0].'",altElValue?altElValue:elValue,elName);
                                        focusOpenerAndClose(close);
@@ -1128,7 +1128,7 @@ class browse_links {
                                        parent.close();
                                }
                        }
-                       function focusOpenerAndClose(close)     {       //
+                       function focusOpenerAndClose(close) {   //
                                BrowseLinks.focusOpenerAndClose(close);
                        }
                ';
index 2857213..843de01 100644 (file)
@@ -102,7 +102,7 @@ class SC_file_edit {
                $this->doc->setModuleTemplate('templates/file_edit.html');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode=$this->doc->wrapScriptTags('
-                       function backToList()   {       //
+                       function backToList() { //
                                top.goToModule("file_list");
                        }
                ');
index ffebb42..f6f0b17 100644 (file)
@@ -112,13 +112,13 @@ class SC_file_newfolder {
                $this->doc->JScode=$this->doc->wrapScriptTags('
                        var path = "' . $this->target . '";
 
-                       function reload(a)      {       //
+                       function reload(a) {    //
                                if (!changed || (changed && confirm(' . $GLOBALS['LANG']->JScharCode($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:mess.redraw')) . '))) {
                                        var params = "&target="+encodeURIComponent(path)+"&number="+a+"&returnUrl=' . rawurlencode($this->returnUrl) . '";
                                        window.location.href = "file_newfolder.php?"+params;
                                }
                        }
-                       function backToList()   {       //
+                       function backToList() { //
                                top.goToModule("file_list");
                        }
 
index 219fd3f..8a10733 100644 (file)
@@ -118,7 +118,7 @@ class SC_file_rename {
                $this->doc->setModuleTemplate('templates/file_rename.html');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode=$this->doc->wrapScriptTags('
-                       function backToList()   {       //
+                       function backToList() { //
                                top.goToModule("file_list");
                        }
                ');
index 7cce6b5..57c71b0 100644 (file)
@@ -628,7 +628,7 @@ class tx_aboutmodules_Functions {
         * Function used to switch switch module.
         */
        var currentModuleLoaded = "";
-       function goToModule(modName,cMR_flag,addGetVars)        {       //
+       function goToModule(modName,cMR_flag,addGetVars) {      //
                var additionalGetVariables = "";
                if (addGetVars) additionalGetVariables = addGetVars;
 
index d36bd42..957cb84 100755 (executable)
@@ -1062,7 +1062,7 @@ class SC_mod_tools_be_user_index {
                                // JavaScript
                $this->doc->JScode = $this->doc->wrapScriptTags('
                        script_ended = 0;
-                       function jumpToUrl(URL) {       //
+                       function jumpToUrl(URL) {       //
                                window.location.href = URL;
                        }
                ' . $this->doc->redirectUrls());
index 97abc60..ff2809a 100755 (executable)
@@ -379,7 +379,7 @@ class SC_db_layout {
                        $this->doc->JScode.= $this->doc->wrapScriptTags('
                                if (top.fsMod) top.fsMod.recentIds["web"] = '.intval($this->id).';
                                if (top.fsMod) top.fsMod.navFrameHighlightedID["web"] = "pages'.intval($this->id).'_"+top.fsMod.currentBank; '.intval($this->id).';
-                               function jumpToUrl(URL,formEl)  {       //
+                               function jumpToUrl(URL,formEl)        //
                                        if (document.editform && TBE_EDITOR.isFormChanged)      {       // Check if the function exists... (works in all browsers?)
                                                if (!TBE_EDITOR.isFormChanged())        {       //
                                                        window.location.href = URL;
@@ -390,7 +390,7 @@ class SC_db_layout {
                                }
                        ' . ($this->popView ? t3lib_BEfunc::viewOnClick($this->id, $GLOBALS['BACK_PATH'], t3lib_BEfunc::BEgetRootLine($this->id)) : '') . '
 
-                               function deleteRecord(table,id,url)     {       //
+                               function deleteRecord(table,id,url) {   //
                                        if (confirm(' . $GLOBALS['LANG']->JScharCode($GLOBALS['LANG']->getLL('deleteWarning')) . ')) {
                                                window.location.href = "' . $GLOBALS['BACK_PATH'] .
                                                'tce_db.php?cmd["+table+"]["+id+"][delete]=1&redirect="+escape(url)+"&vC=' . $GLOBALS['BE_USER']->veriCode() .
@@ -408,7 +408,7 @@ class SC_db_layout {
                                        top.DTM_currentTabs = new Array();
                                }
 
-                               function DTM_activate(idBase,index,doToogle)    {       //
+                               function DTM_activate(idBase,index,doToogle) {  //
                                                // Hiding all:
                                        if (DTM_array[idBase]) {
                                                for(cnt = 0; cnt < DTM_array[idBase].length ; cnt++) {
@@ -440,7 +440,7 @@ class SC_db_layout {
                                                }
                                        }
                                }
-                               function DTM_toggle(idBase,index,isInit)        {       //
+                               function DTM_toggle(idBase,index,isInit) {      //
                                                // Showing one:
                                        if (document.getElementById(idBase+"-"+index+"-DIV")) {
                                                if (document.getElementById(idBase+"-"+index+"-DIV").style.display == "block") {
index fc9a120..8850571 100644 (file)
@@ -251,7 +251,7 @@ class SC_db_new_content_el {
 
                                // add document inline javascript
                        $this->doc->JScode = $this->doc->wrapScriptTags('
-                               function goToalt_doc()  {       //
+                               function goToalt_doc()        //
                                        ' . $this->onClickEvent . '
                                }
 
index 1f14727..a9688f8 100644 (file)
@@ -2467,7 +2467,7 @@ class tslib_cObj {
         * @param       array           stdWrap properties for round.
         * @return      string          The processed input value
         */
-       public function stdWrap_round($content = '', $conf = array()){
+       public function stdWrap_round($content = '', $conf = array()) {
                $content = $this->round($content, $conf['round.']);
                return $content;
        }
index eb9a005..a1e698d 100644 (file)
@@ -4311,13 +4311,13 @@ if (version == "n3") {
                                case 'mouseOver':
                                        $this->additionalJavaScript[$key]=
 '              // JS function for mouse-over
-       function over(name, imgObj)     {       //
+       function over(name, imgObj) {   //
                if (version == "n3" && document[name]) {document[name].src = eval(name+"_h.src");}
                else if (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_h.src");}
                else if (imgObj)        {imgObj.src = eval(name+"_h.src");}
        }
                // JS function for mouse-out
-       function out(name, imgObj)      {       //
+       function out(name, imgObj) {    //
                if (version == "n3" && document[name]) {document[name].src = eval(name+"_n.src");}
                else if (document.getElementById && document.getElementById(name)) {document.getElementById(name).src = eval(name+"_n.src");}
                else if (imgObj)        {imgObj.src = eval(name+"_n.src");}
@@ -4325,7 +4325,7 @@ if (version == "n3") {
                                break;
                                case 'openPic':
                                        $this->additionalJavaScript[$key]=
-'      function openPic(url, winName, winParams)       {       //
+'      function openPic(url, winName, winParams) {     //
                var theWindow = window.open(url, winName, winParams);
                if (theWindow)  {theWindow.focus();}
        }';
index 7b7aa80..e4e099b 100644 (file)
@@ -236,7 +236,7 @@ class TSpagegen {
 
                foreach ($GLOBALS['TSFE']->JSeventFuncCalls as $event => $handlers) {
                        if (count($handlers)) {
-                               $functions[] = '        function T3_'.$event.'Wrapper(e)        {       '.implode('   ', $handlers).'   }';
+                               $functions[] = '        function T3_'.$event.'Wrapper(e) {      '.implode('   ', $handlers).'   }';
                                $setEvents[] = '        document.'.$event.'=T3_'.$event.'Wrapper;';
                                if ($event == 'onload') {
                                        $setBody[]='onload="T3_onloadWrapper();"';      // dubiuos double setting breaks on some browser - do we need it?
@@ -819,7 +819,7 @@ class TSpagegen {
                var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
                if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
                        // Blurring links:
-               function blurLink(theObject)    {       //
+               function blurLink(theObject) {  //
                        if (msie4)      {theObject.blur();}
                }
                ' . $JSef[0];
index 4d08c9c..bcf0ad1 100644 (file)
@@ -314,7 +314,7 @@ class SC_mod_tools_em_index extends t3lib_SCbase {
                // JavaScript
                $this->doc->JScode = $this->doc->wrapScriptTags('
                        script_ended = 0;
-                       function jumpToUrl(URL) {       //
+                       function jumpToUrl(URL) {       //
                                window.location.href = URL;
                        }
                ');
index 3614ecf..15a1fb4 100644 (file)
@@ -322,7 +322,7 @@ class SC_file_list {
                        $this->doc->JScode=$this->doc->wrapScriptTags('
 
                        if (top.fsMod) top.fsMod.recentIds["file"] = unescape("'.rawurlencode($this->id).'");
-                       function jumpToUrl(URL) {       //
+                       function jumpToUrl(URL) {       //
                                window.location.href = URL;
                        }
 
index 64f787c..304b466 100755 (executable)
@@ -99,7 +99,7 @@ class SC_mod_web_func_index extends t3lib_SCbase {
                                // JavaScript
                        $this->doc->JScode = $this->doc->wrapScriptTags('
                                script_ended = 0;
-                               function jumpToUrl(URL) {       //
+                               function jumpToUrl(URL) {       //
                                        window.location.href = URL;
                                }
                        ');
index acca839..cbf7271 100755 (executable)
@@ -246,7 +246,7 @@ class SC_mod_tools_log_index extends t3lib_SCbase {
                                // JavaScript
                $this->doc->JScode = $this->doc->wrapScriptTags('
                        script_ended = 0;
-                       function jumpToUrl(URL) {       //
+                       function jumpToUrl(URL) {       //
                                window.location.href = URL;
                        }
                ');
index 4ad2ed0..805896c 100755 (executable)
@@ -54,7 +54,7 @@ class user_DoubleMetaPhone
 //  methods
 
                // TYPO3 specific API to this class. BEGIN
-       function metaphone($string,$sys_language_uid=0) {
+       function metaphone($string,$sys_language_uid=0) {
                $res = $this->DoubleMetaPhone($string);
                #debug(array($string,$res['primary']));
                return $res['primary'];
index 12ae223..12e032f 100755 (executable)
@@ -100,7 +100,7 @@ class SC_mod_web_info_index extends t3lib_SCbase {
                                // JavaScript
                        $this->doc->JScode = $this->doc->wrapScriptTags('
                                script_ended = 0;
-                               function jumpToUrl(URL) {       //
+                               function jumpToUrl(URL) {       //
                                        window.location.href = URL;
                                }
                        ');
index f9b4b4f..0491ea6 100644 (file)
@@ -297,21 +297,21 @@ class SC_db_list {
                        $listUrl = substr($dblist->listURL(), strlen($GLOBALS['BACK_PATH']));
                                // Add JavaScript functions to the page:
                        $this->doc->JScode=$this->doc->wrapScriptTags('
-                               function jumpToUrl(URL) {       //
+                               function jumpToUrl(URL) {       //
                                        window.location.href = URL;
                                        return false;
                                }
-                               function jumpExt(URL,anchor)    {       //
+                               function jumpExt(URL,anchor) {  //
                                        var anc = anchor?anchor:"";
                                        window.location.href = URL+(T3_THIS_LOCATION?"&returnUrl="+T3_THIS_LOCATION:"")+anc;
                                        return false;
                                }
-                               function jumpSelf(URL)  {       //
+                               function jumpSelf(URL)        //
                                        window.location.href = URL+(T3_RETURN_URL?"&returnUrl="+T3_RETURN_URL:"");
                                        return false;
                                }
 
-                               function setHighlight(id)       {       //
+                               function setHighlight(id) {     //
                                        top.fsMod.recentIds["web"]=id;
                                        top.fsMod.navFrameHighlightedID["web"]="pages"+id+"_"+top.fsMod.currentBank;    // For highlighting
 
@@ -321,11 +321,11 @@ class SC_db_list {
                                }
                                ' . $this->doc->redirectUrls($listUrl) . '
                                '.$dblist->CBfunctions().'
-                               function editRecords(table,idList,addParams,CBflag)     {       //
+                               function editRecords(table,idList,addParams,CBflag) {   //
                                        window.location.href="' . $GLOBALS['BACK_PATH'] . 'alt_doc.php?returnUrl=' . rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')) .
                                                '&edit["+table+"]["+idList+"]=edit"+addParams;
                                }
-                               function editList(table,idList) {       //
+                               function editList(table,idList) {       //
                                        var list="";
 
                                                // Checking how many is checked, how many is not
index 8520ffe..d129994 100644 (file)
@@ -122,7 +122,7 @@ class SC_wizard_colorpicker {
                $this->doc = t3lib_div::makeInstance('smallDoc');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->JScode = $this->doc->wrapScriptTags('
-                       function checkReference()       {       //
+                       function checkReference() {     //
                                if (parent.opener && parent.opener.document && parent.opener.document.'.$this->formName.' && parent.opener.document.'.$this->formName.'["'.$this->fieldName.'"]) {
                                        return parent.opener.document.'.$this->formName.'["'.$this->fieldName.'"];
                                } else {
@@ -138,7 +138,7 @@ class SC_wizard_colorpicker {
                                        parent.opener.document.getElementById("'.$this->md5ID.'").bgColor = color;
                                }
                        }
-                       function setValue(input)        {       //
+                       function setValue(input) {      //
                                var field = checkReference();
                                if (field) {
                                        field.value = input;
@@ -146,7 +146,7 @@ class SC_wizard_colorpicker {
                                        changeBGcolor(input);
                                }
                        }
-                       function getValue()     {       //
+                       function getValue() {   //
                                var field = checkReference();
                                return field.value;
                        }
index 694651e..d1cdf90 100644 (file)
@@ -194,7 +194,7 @@ class SC_wizard_forms {
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('templates/wizard_forms.html');
                $this->doc->JScode=$this->doc->wrapScriptTags('
-                       function jumpToUrl(URL,formEl)  {       //
+                       function jumpToUrl(URL,formEl)        //
                                window.location.href = URL;
                        }
                ');
index b9c393c..31d87b6 100644 (file)
@@ -120,7 +120,7 @@ class SC_wizard_rte {
 
                                // Setting JavaScript, including the pid value for viewing:
                        $this->doc->JScode = $this->doc->wrapScriptTags('
-                                       function jumpToUrl(URL,formEl)  {       //
+                                       function jumpToUrl(URL,formEl)        //
                                                if (document.editform) {
                                                        if (!TBE_EDITOR.isFormChanged()) {
                                                                window.location.href = URL;
index efb820b..d5a123c 100644 (file)
@@ -112,7 +112,7 @@ class SC_wizard_table {
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
                $this->doc->setModuleTemplate('templates/wizard_table.html');
                $this->doc->JScode=$this->doc->wrapScriptTags('
-                       function jumpToUrl(URL,formEl)  {       //
+                       function jumpToUrl(URL,formEl)        //
                                window.location.href = URL;
                        }
                ');
index 75a9876..abce934 100644 (file)
@@ -144,12 +144,12 @@ class SC_wizard_tsconfig {
                ';
 
                $this->doc->JScode.=$this->doc->wrapScriptTags('
-                       function checkReference_name()  {       // Checks if the input field containing the name exists in the document
+                       function checkReference_name()        // Checks if the input field containing the name exists in the document
                                if (window.opener && window.opener.document && window.opener.document.'.$this->P['formName'].' && window.opener.document.'.$this->P['formName'].'["'.$this->P['itemName'].'"] ) {
                                        return window.opener.document.'.$this->P['formName'].'["'.$this->P['itemName'].'"];
                                }
                        }
-                       function checkReference_value() {       // Checks if the input field containing the value exists in the document
+                       function checkReference_value() {       // Checks if the input field containing the value exists in the document
                                if (window.opener && window.opener.document && window.opener.document.'.$this->P['formName'].' && window.opener.document.'.$this->P['formName'].'["'.$this->P['itemValue'].'"] ) {
                                        return window.opener.document.'.$this->P['formName'].'["'.$this->P['itemValue'].'"];
                                }
@@ -180,7 +180,7 @@ class SC_wizard_tsconfig {
                                }
                                close();
                        }
-                       function getValue()     {       // This is never used. Remove it?
+                       function getValue() {   // This is never used. Remove it?
                                var field = checkReference_name();
                                if (field) {
                                        return field.value;