[TASK] CGL violations FunctionCallArgumentSpacing in /typo3/sysext/l*/
authorRoland Waldner <most.wanted@gmx.at>
Tue, 29 May 2012 17:48:53 +0000 (19:48 +0200)
committerGeorg Ringer <mail@ringerge.org>
Fri, 1 Jun 2012 13:47:06 +0000 (15:47 +0200)
There were violations against the CGL rule
"FunctionCallArgumentSpacingNoSpaceAfterComma" in /typo3/sysext/l*/.
These will be reduced by this commit.

Change-Id: I248e1214cdd3e4cbe5bac97c71867315ad9ee054
Resolves: #37583
Releases: 6.0
Reviewed-on: http://review.typo3.org/11700
Reviewed-by: Oliver Klee
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
17 files changed:
typo3/sysext/lowlevel/class.tx_lowlevel_admin_core.php
typo3/sysext/lowlevel/class.tx_lowlevel_cleaner_core.php
typo3/sysext/lowlevel/clmods/class.cleanflexform.php
typo3/sysext/lowlevel/clmods/class.deleted.php
typo3/sysext/lowlevel/clmods/class.double_files.php
typo3/sysext/lowlevel/clmods/class.lost_files.php
typo3/sysext/lowlevel/clmods/class.missing_files.php
typo3/sysext/lowlevel/clmods/class.missing_relations.php
typo3/sysext/lowlevel/clmods/class.orphan_records.php
typo3/sysext/lowlevel/clmods/class.rte_images.php
typo3/sysext/lowlevel/clmods/class.syslog.php
typo3/sysext/lowlevel/clmods/class.versions.php
typo3/sysext/lowlevel/config/index.php
typo3/sysext/lowlevel/dbint/cli/refindex_cli.php
typo3/sysext/lowlevel/dbint/index.php
typo3/sysext/lowlevel/ext_localconf.php
typo3/sysext/lowlevel/ext_tables.php

index dd29350..7f78e13 100644 (file)
@@ -60,7 +60,7 @@ class tx_lowlevel_admin_core extends t3lib_cli {
                        // Setting help texts:
                $this->cli_help['name'] = 'lowlevel_admin -- Various functions for administration and maintenance of TYPO3 from the command line';
                $this->cli_help['synopsis'] = 'toolkey ###OPTIONS###';
-               $this->cli_help['description'] = "The 'toolkey' keywords are:\n\n  ".implode("\n  ",array_keys($this->adminModules));
+               $this->cli_help['description'] = "The 'toolkey' keywords are:\n\n  ".implode("\n  ", array_keys($this->adminModules));
                $this->cli_help['examples'] = "/.../cli_dispatch.phpsh lowlevel_admin setBElock --redirect=http://url_which_explains_why.com/";
                $this->cli_help['author'] = "Kasper Skaarhoej, (c) 2009";
        }
@@ -111,7 +111,7 @@ class tx_lowlevel_admin_core extends t3lib_cli {
                                if (@is_file(PATH_typo3conf.'LOCK_BACKEND')) {
                                        unlink(PATH_typo3conf.'LOCK_BACKEND');
                                        if (@is_file(PATH_typo3conf.'LOCK_BACKEND')     ) {
-                                               $this->cli_echo("ERROR: Could not remove lock file '".PATH_typo3conf."LOCK_BACKEND'!!\n",1);
+                                               $this->cli_echo("ERROR: Could not remove lock file '".PATH_typo3conf."LOCK_BACKEND'!!\n", 1);
                                        } else {
                                                $this->cli_echo("Removed lock file '".PATH_typo3conf."LOCK_BACKEND'\n");
                                        }
index d304d27..7b49852 100644 (file)
@@ -71,16 +71,16 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                $this->cli_options[] = array('-v level', 'Verbosity level 0-3', "The value of level can be:\n  0 = all output\n  1 = info and greater (default)\n  2 = warnings and greater\n  3 = errors");
                $this->cli_options[] = array('--refindex mode', 'Mode for reference index handling for operations that require a clean reference index ("update"/"ignore")', 'Options are "check" (default), "update" and "ignore". By default, the reference index is checked before running analysis that require a clean index. If the check fails, the analysis is not run. You can choose to bypass this completely (using value "ignore") or ask to have the index updated right away before the analysis (using value "update")');
                $this->cli_options[] = array('--AUTOFIX [testName]', 'Repairs errors that can be automatically fixed.', 'Only add this option after having run the test without it so you know what will happen when you add this option! The optional parameter "[testName]" works for some tool keys to limit the fixing to a particular test.');
-               $this->cli_options[] = array('--dryrun', 'With --AUTOFIX it will only simulate a repair process','You may like to use this to see what the --AUTOFIX option will be doing. It will output the whole process like if a fix really occurred but nothing is in fact happening');
-               $this->cli_options[] = array('--YES', 'Implicit YES to all questions','Use this with EXTREME care. The option "-i" is not affected by this option.');
-               $this->cli_options[] = array('-i', 'Interactive','Will ask you before running the AUTOFIX on each element.');
-               $this->cli_options[] = array('--filterRegex expr', 'Define an expression for preg_match() that must match the element ID in order to auto repair it','The element ID is the string in quotation marks when the text \'Cleaning ... in "ELEMENT ID"\'. "expr" is the expression for preg_match(). To match for example "Nature3.JPG" and "Holiday3.JPG" you can use "/.*3.JPG/". To match for example "Image.jpg" and "Image.JPG" you can use "/.*.jpg/i". Try a --dryrun first to see what the matches are!');
+               $this->cli_options[] = array('--dryrun', 'With --AUTOFIX it will only simulate a repair process', 'You may like to use this to see what the --AUTOFIX option will be doing. It will output the whole process like if a fix really occurred but nothing is in fact happening');
+               $this->cli_options[] = array('--YES', 'Implicit YES to all questions', 'Use this with EXTREME care. The option "-i" is not affected by this option.');
+               $this->cli_options[] = array('-i', 'Interactive', 'Will ask you before running the AUTOFIX on each element.');
+               $this->cli_options[] = array('--filterRegex expr', 'Define an expression for preg_match() that must match the element ID in order to auto repair it', 'The element ID is the string in quotation marks when the text \'Cleaning ... in "ELEMENT ID"\'. "expr" is the expression for preg_match(). To match for example "Nature3.JPG" and "Holiday3.JPG" you can use "/.*3.JPG/". To match for example "Image.jpg" and "Image.JPG" you can use "/.*.jpg/i". Try a --dryrun first to see what the matches are!');
                $this->cli_options[] = array('--showhowto', 'Displays HOWTO file for cleaner script.');
 
                        // Setting help texts:
                $this->cli_help['name'] = 'lowlevel_cleaner -- Analysis and clean-up tools for TYPO3 installations';
                $this->cli_help['synopsis'] = 'toolkey ###OPTIONS###';
-               $this->cli_help['description'] = "Dispatches to various analysis and clean-up tools which can plug into the API of this script. Typically you can run tests that will take longer than the usual max execution time of PHP. Such tasks could be checking for orphan records in the page tree or flushing all published versions in the system. For the complete list of options, please explore each of the 'toolkey' keywords below:\n\n  ".implode("\n  ",array_keys($this->cleanerModules));
+               $this->cli_help['description'] = "Dispatches to various analysis and clean-up tools which can plug into the API of this script. Typically you can run tests that will take longer than the usual max execution time of PHP. Such tasks could be checking for orphan records in the page tree or flushing all published versions in the system. For the complete list of options, please explore each of the 'toolkey' keywords below:\n\n  ".implode("\n  ", array_keys($this->cleanerModules));
                $this->cli_help['examples'] = "/.../cli_dispatch.phpsh lowlevel_cleaner missing_files -s -r\nThis will show you missing files in the TYPO3 system and only report back if errors were found.";
                $this->cli_help['author'] = "Kasper Skaarhoej, (c) 2006";
        }
@@ -112,7 +112,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                        // Print Howto:
                if ($this->cli_isArg('--showhowto')) {
                        $howto = t3lib_div::getUrl(t3lib_extMgm::extPath('lowlevel').'HOWTO_clean_up_TYPO3_installations.txt');
-                       echo wordwrap($howto,120).LF;
+                       echo wordwrap($howto, 120).LF;
                        exit;
                }
 
@@ -141,7 +141,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                                                                if ($this->cli_isArg('--YES') || $this->cli_keyboardInput_yes("\n\nNOW Running --AUTOFIX on result. OK?".($this->cli_isArg('--dryrun')?' (--dryrun simulation)':''))) {
                                                                        $cleanerMode->main_autofix($res);
                                                                } else {
-                                                                       $this->cli_echo("ABORTING AutoFix...\n",1);
+                                                                       $this->cli_echo("ABORTING AutoFix...\n", 1);
                                                                }
                                                        }
                                                }
@@ -150,7 +150,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                                                exit;
                                        }
                                } else {
-                                       $this->cli_echo("ERROR: Analysis Type '".$analysisType."' is unknown.\n",1);
+                                       $this->cli_echo("ERROR: Analysis Type '".$analysisType."' is unknown.\n", 1);
                                        exit;
                                }
                        break;
@@ -167,7 +167,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                        // Reference index option:
                $refIndexMode = isset($this->cli_args['--refindex']) ? $this->cli_args['--refindex'][0] : 'check';
                if (!t3lib_div::inList('update,ignore,check', $refIndexMode)) {
-                       $this->cli_echo("ERROR: Wrong value for --refindex argument.\n",1);
+                       $this->cli_echo("ERROR: Wrong value for --refindex argument.\n", 1);
                        exit;
                }
 
@@ -175,11 +175,11 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                        case 'check':
                        case 'update':
                                $refIndexObj = t3lib_div::makeInstance('t3lib_refindex');
-                               list($headerContent,$bodyContent,$errorCount) = $refIndexObj->updateIndex($refIndexMode=='check',$this->cli_echo());
+                               list($headerContent, $bodyContent, $errorCount) = $refIndexObj->updateIndex($refIndexMode=='check', $this->cli_echo());
 
                                if ($errorCount && $refIndexMode=='check') {
                                        $ok = FALSE;
-                                       $this->cli_echo("ERROR: Reference Index Check failed! (run with '--refindex update' to fix)\n",1);
+                                       $this->cli_echo("ERROR: Reference Index Check failed! (run with '--refindex update' to fix)\n", 1);
                                } else {
                                        $ok = TRUE;
                                }
@@ -200,8 +200,8 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
        function cli_noExecutionCheck($matchString) {
 
                        // Check for filter:
-               if ($this->cli_isArg('--filterRegex') && $regex = $this->cli_argValue('--filterRegex',0)) {
-                       if (!preg_match($regex,$matchString))   return 'BYPASS: Filter Regex "'.$regex.'" did not match string "'.$matchString.'"';
+               if ($this->cli_isArg('--filterRegex') && $regex = $this->cli_argValue('--filterRegex', 0)) {
+                       if (!preg_match($regex, $matchString))  return 'BYPASS: Filter Regex "'.$regex.'" did not match string "'.$matchString.'"';
                }
                        // Check for interactive mode
                if ($this->cli_isArg('-i')) {
@@ -220,7 +220,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
         * @param       array           Result array from an analyze function
         * @return      void            Outputs with echo - capture content with output buffer if needed.
         */
-       function cli_printInfo($header,$res) {
+       function cli_printInfo($header, $res) {
 
                $detailLevel = t3lib_utility_Math::forceIntegerInRange($this->cli_isArg('-v') ? $this->cli_argValue('-v') : 1,0,3);
                $silent = !$this->cli_echo();
@@ -249,19 +249,19 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                                        if (is_array($res[$key]) && (count($res[$key]) || !$silent)) {
 
                                                        // Header and explanaion:
-                                               $this->cli_echo('---------------------------------------------'.LF,1);
-                                               $this->cli_echo('['.$header.']'.LF,1);
-                                               $this->cli_echo($value[0].' ['.$severity[$value[2]].']'.LF,1);
-                                               $this->cli_echo('---------------------------------------------'.LF,1);
+                                               $this->cli_echo('---------------------------------------------'.LF, 1);
+                                               $this->cli_echo('['.$header.']'.LF, 1);
+                                               $this->cli_echo($value[0].' ['.$severity[$value[2]].']'.LF, 1);
+                                               $this->cli_echo('---------------------------------------------'.LF, 1);
                                                if (trim($value[1])) {
-                                                       $this->cli_echo('Explanation: '.wordwrap(trim($value[1])).LF.LF,1);
+                                                       $this->cli_echo('Explanation: '.wordwrap(trim($value[1])).LF.LF, 1);
                                                }
                                        }
 
                                                // Content:
                                        if (is_array($res[$key])) {
                                                if (count($res[$key])) {
-                                                       if ($this->cli_echo('',1)) { print_r($res[$key]); }
+                                                       if ($this->cli_echo('', 1)) { print_r($res[$key]); }
                                                } else {
                                                        $this->cli_echo('(None)'.LF.LF);
                                                }
@@ -300,14 +300,14 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
         * @param       string          Call back function (from this class or subclass)
         * @return      void
         */
-       function genTree($rootID,$depth=1000,$echoLevel=0,$callBack='') {
+       function genTree($rootID, $depth=1000, $echoLevel=0, $callBack='') {
 
                $pt = t3lib_div::milliseconds();
                $this->performanceStatistics['genTree()'] = '';
 
                        // Initialize:
                if (t3lib_extMgm::isLoaded('workspaces')) {
-                       $this->workspaceIndex = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,title','sys_workspace','1=1'.t3lib_BEfunc::deleteClause('sys_workspace'),'','','','uid');
+                       $this->workspaceIndex = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,title', 'sys_workspace', '1=1'.t3lib_BEfunc::deleteClause('sys_workspace'), '', '', '', 'uid');
                }
                $this->workspaceIndex[-1] = TRUE;
                $this->workspaceIndex[0] = TRUE;
@@ -329,7 +329,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                $pt2 = t3lib_div::milliseconds();
                $this->performanceStatistics['genTree_traverse()'] = '';
                $this->performanceStatistics['genTree_traverse():TraverseTables'] = '';
-               $this->genTree_traverse($rootID,$depth,$echoLevel,$callBack);
+               $this->genTree_traverse($rootID, $depth, $echoLevel, $callBack);
                $this->performanceStatistics['genTree_traverse()'] = t3lib_div::milliseconds()-$pt2;
 
                        // Sort recStats (for diff'able displays)
@@ -381,11 +381,11 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
         * @return      void
         * @access private
         */
-       function genTree_traverse($rootID,$depth,$echoLevel=0,$callBack='',$versionSwapmode='',$rootIsVersion=0,$accumulatedPath='') {
+       function genTree_traverse($rootID, $depth, $echoLevel=0, $callBack='', $versionSwapmode='', $rootIsVersion=0, $accumulatedPath='') {
 
                        // Register page:
                $this->recStats['all']['pages'][$rootID] = $rootID;
-               $pageRecord = t3lib_BEfunc::getRecordRaw('pages','uid='.intval($rootID),'deleted,title,t3ver_count,t3ver_wsid');
+               $pageRecord = t3lib_BEfunc::getRecordRaw('pages', 'uid='.intval($rootID), 'deleted,title,t3ver_count,t3ver_wsid');
                $accumulatedPath.='/'.$pageRecord['title'];
 
                        // Register if page is deleted:
@@ -420,7 +420,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
 
                        // Call back:
                if ($callBack) {
-                       $this->$callBack('pages',$rootID,$echoLevel,$versionSwapmode,$rootIsVersion);
+                       $this->$callBack('pages', $rootID, $echoLevel, $versionSwapmode, $rootIsVersion);
                }
 
                $pt3 = t3lib_div::milliseconds();
@@ -475,7 +475,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
 
                                                        // Traverse plugins:
                                                if ($callBack) {
-                                                       $this->$callBack($tableName,$rowSub['uid'],$echoLevel,$versionSwapmode,$rootIsVersion);
+                                                       $this->$callBack($tableName, $rowSub['uid'], $echoLevel, $versionSwapmode, $rootIsVersion);
                                                }
 
                                                        // Add any versions of those records:
@@ -513,7 +513,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
 
                                                                                        // Traverse plugins:
                                                                                if ($callBack) {
-                                                                                       $this->$callBack($tableName,$verRec['uid'],$echoLevel,$versionSwapmode,$rootIsVersion);
+                                                                                       $this->$callBack($tableName, $verRec['uid'], $echoLevel, $versionSwapmode, $rootIsVersion);
                                                                                }
                                                                        }
                                                                }
@@ -545,7 +545,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                                        'sorting'
                                );
                                while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
-                                       $this->genTree_traverse($row['uid'],$depth,$echoLevel,$callBack,$versionSwapmode,0,$accumulatedPath);
+                                       $this->genTree_traverse($row['uid'], $depth, $echoLevel, $callBack, $versionSwapmode, 0, $accumulatedPath);
                                }
                        }
 
@@ -555,7 +555,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
                                if (is_array($versions)) {
                                        foreach($versions as $verRec) {
                                                if (!$verRec['_CURRENT_VERSION']) {
-                                                       $this->genTree_traverse($verRec['uid'],$depth,$echoLevel,$callBack,'SWAPMODE:'.t3lib_utility_Math::forceIntegerInRange($verRec['t3ver_swapmode'],-1,1),$versionSwapmode?2:1,$accumulatedPath.' [#OFFLINE VERSION: WS#'.$verRec['t3ver_wsid'].'/Cnt:'.$verRec['t3ver_count'].']');
+                                                       $this->genTree_traverse($verRec['uid'], $depth, $echoLevel, $callBack, 'SWAPMODE:'.t3lib_utility_Math::forceIntegerInRange($verRec['t3ver_swapmode'], -1, 1), $versionSwapmode?2:1, $accumulatedPath.' [#OFFLINE VERSION: WS#'.$verRec['t3ver_wsid'].'/Cnt:'.$verRec['t3ver_count'].']');
                                                }
                                        }
                                }
index 63897dc..8edd265 100644 (file)
@@ -78,18 +78,18 @@ Cleaning XML for FlexForm fields.
                $resultArray = array(
                        'message' => $this->cli_help['name'].LF.LF.$this->cli_help['description'],
                        'headers' => array(
-                               'dirty' => array('','',2),
+                               'dirty' => array('', '', 2),
                        ),
                        'dirty' => array()
                );
 
-               $startingPoint = $this->cli_isArg('--pid') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--pid'),0) : 0;
-               $depth = $this->cli_isArg('--depth') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--depth'),0) : 1000;
+               $startingPoint = $this->cli_isArg('--pid') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--pid'), 0) : 0;
+               $depth = $this->cli_isArg('--depth') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--depth'), 0) : 1000;
 
                $this->cleanFlexForm_dirtyFields = &$resultArray['dirty'];
                $this->genTree_traverseDeleted = FALSE; // Do not repair flexform data in deleted records.
 
-               $this->genTree($startingPoint,$depth,(int)$this->cli_argValue('--echotree'),'main_parseTreeCallBack');
+               $this->genTree($startingPoint, $depth, (int)$this->cli_argValue('--echotree'), 'main_parseTreeCallBack');
 
                asort($resultArray);
                return $resultArray;
@@ -105,19 +105,19 @@ Cleaning XML for FlexForm fields.
         * @param       integer         Is root version (see calling function
         * @return      void
         */
-       function main_parseTreeCallBack($tableName,$uid,$echoLevel,$versionSwapmode,$rootIsVersion) {
+       function main_parseTreeCallBack($tableName, $uid, $echoLevel, $versionSwapmode, $rootIsVersion) {
 
                t3lib_div::loadTCA($tableName);
                foreach($GLOBALS['TCA'][$tableName]['columns'] as $colName => $config) {
                        if ($config['config']['type']=='flex') {
                                if ($echoLevel>2)       echo LF.'                       [cleanflexform:] Field "'.$colName.'" in '.$tableName.':'.$uid.' was a flexform and...';
 
-                               $recRow = t3lib_BEfunc::getRecordRaw($tableName,'uid='.intval($uid));
+                               $recRow = t3lib_BEfunc::getRecordRaw($tableName, 'uid='.intval($uid));
                                $flexObj = t3lib_div::makeInstance('t3lib_flexformtools');
                                if ($recRow[$colName]) {
 
                                                // Clean XML:
-                                       $newXML = $flexObj->cleanFlexFormXML($tableName,$colName,$recRow);
+                                       $newXML = $flexObj->cleanFlexFormXML($tableName, $colName, $recRow);
 
                                        if (md5($recRow[$colName])!=md5($newXML)) {
                                                if ($echoLevel>2)       echo ' was DIRTY, needs cleanup!';
@@ -139,7 +139,7 @@ Cleaning XML for FlexForm fields.
         */
        function main_autoFix($resultArray) {
                foreach($resultArray['dirty'] as $fieldID) {
-                       list($table, $uid, $field) = explode(':',$fieldID);
+                       list($table, $uid, $field) = explode(':', $fieldID);
                        echo 'Cleaning XML in "'.$fieldID.'": ';
                        if ($bypass = $this->cli_noExecutionCheck($fieldID)) {
                                echo $bypass;
@@ -147,10 +147,10 @@ Cleaning XML for FlexForm fields.
 
                                        // Clean XML:
                                $data = array();
-                               $recRow = t3lib_BEfunc::getRecordRaw($table,'uid='.intval($uid));
+                               $recRow = t3lib_BEfunc::getRecordRaw($table, 'uid='.intval($uid));
                                $flexObj = t3lib_div::makeInstance('t3lib_flexformtools');
                                if ($recRow[$field]) {
-                                       $data[$table][$uid][$field] = $flexObj->cleanFlexFormXML($table,$field,$recRow);
+                                       $data[$table][$uid][$field] = $flexObj->cleanFlexFormXML($table, $field, $recRow);
                                }
 
                                        // Execute Data array:
@@ -160,12 +160,12 @@ Cleaning XML for FlexForm fields.
                                $tce->bypassWorkspaceRestrictions = TRUE;
                                $tce->bypassFileHandling = TRUE;
 
-                               $tce->start($data,array());     // check has been done previously that there is a backend user which is Admin and also in live workspace
+                               $tce->start($data, array());    // check has been done previously that there is a backend user which is Admin and also in live workspace
                                $tce->process_datamap();
 
                                        // Return errors if any:
                                if (count($tce->errorLog)) {
-                                       echo '  ERROR from "TCEmain":'.LF.'TCEmain:'.implode(LF.'TCEmain:',$tce->errorLog);
+                                       echo '  ERROR from "TCEmain":'.LF.'TCEmain:'.implode(LF.'TCEmain:', $tce->errorLog);
                                } else echo 'DONE';
                        }
                        echo LF;
index 0a78116..0d244ef 100644 (file)
@@ -78,14 +78,14 @@ Although deleted records are not errors to be repaired, this tool allows you to
                $resultArray = array(
                        'message' => $this->cli_help['name'].LF.LF.$this->cli_help['description'],
                        'headers' => array(
-                               'deleted' => array('Index of deleted records','These are records from the page tree having the deleted-flag set. The --AUTOFIX option will flush them completely!',1),
+                               'deleted' => array('Index of deleted records', 'These are records from the page tree having the deleted-flag set. The --AUTOFIX option will flush them completely!', 1),
                        ),
                        'deleted' => array(),
                );
 
-               $startingPoint = $this->cli_isArg('--pid') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--pid'),0) : 0;
-               $depth = $this->cli_isArg('--depth') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--depth'),0) : 1000;
-               $this->genTree($startingPoint,$depth,(int)$this->cli_argValue('--echotree'));
+               $startingPoint = $this->cli_isArg('--pid') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--pid'), 0) : 0;
+               $depth = $this->cli_isArg('--depth') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--depth'), 0) : 1000;
+               $this->genTree($startingPoint, $depth, (int)$this->cli_argValue('--echotree'));
 
                $resultArray['deleted'] = $this->recStats['deleted'];
 
@@ -127,12 +127,12 @@ Although deleted records are not errors to be repaired, this tool allows you to
                                                // Execute CMD array:
                                        $tce = t3lib_div::makeInstance('t3lib_TCEmain');
                                        $tce->stripslashes_values = FALSE;
-                                       $tce->start(array(),array());
-                                       $tce->deleteRecord($table,$uid, TRUE, TRUE);    // Notice, we are deleting pages with no regard to subpages/subrecords - we do this since they should also be included in the set of deleted pages of course (no un-deleted record can exist under a deleted page...)
+                                       $tce->start(array(), array());
+                                       $tce->deleteRecord($table, $uid, TRUE, TRUE);   // Notice, we are deleting pages with no regard to subpages/subrecords - we do this since they should also be included in the set of deleted pages of course (no un-deleted record can exist under a deleted page...)
 
                                                // Return errors if any:
                                        if (count($tce->errorLog)) {
-                                               echo '  ERROR from "TCEmain":'.LF.'TCEmain:'.implode(LF.'TCEmain:',$tce->errorLog);
+                                               echo '  ERROR from "TCEmain":'.LF.'TCEmain:'.implode(LF.'TCEmain:', $tce->errorLog);
                                        } else echo "DONE";
                                }
                                echo LF;
index 425878a..7a73da2 100644 (file)
@@ -85,12 +85,12 @@ This will check the system for double files relations.';
                $resultArray = array(
                        'message' => $this->cli_help['name'].LF.LF.$this->cli_help['description'],
                        'headers' => array(
-                               'multipleReferencesList_count' => array('Number of multi-reference files','(See below)',0),
-                               'singleReferencesList_count' => array('Number of files correctly referenced','The amount of correct 1-1 references',0),
-                               'multipleReferencesList' => array('Entries with files having multiple references','These are serious problems that should be resolved ASAP to prevent data loss! '.$this->label_infoString,3),
-                               'dirname_registry' => array('Registry of directories in which files are found.','Registry includes which table/field pairs store files in them plus how many files their store.',0),
-                               'missingFiles' => array('Tracking missing files','(Extra feature, not related to tracking of double references. Further, the list may include more files than found in the missing_files()-test because this list includes missing files from deleted records.)',0),
-                               'warnings' => array('Warnings picked up','',2)
+                               'multipleReferencesList_count' => array('Number of multi-reference files', '(See below)', 0),
+                               'singleReferencesList_count' => array('Number of files correctly referenced', 'The amount of correct 1-1 references', 0),
+                               'multipleReferencesList' => array('Entries with files having multiple references', 'These are serious problems that should be resolved ASAP to prevent data loss! '.$this->label_infoString, 3),
+                               'dirname_registry' => array('Registry of directories in which files are found.', 'Registry includes which table/field pairs store files in them plus how many files their store.', 0),
+                               'missingFiles' => array('Tracking missing files', '(Extra feature, not related to tracking of double references. Further, the list may include more files than found in the missing_files()-test because this list includes missing files from deleted records.)', 0),
+                               'warnings' => array('Warnings picked up', '', 2)
                        ),
                        'multipleReferencesList_count' => array('count' => 0),
                        'singleReferencesList_count' => array('count' => 0),
@@ -136,7 +136,7 @@ This will check the system for double files relations.';
                                        $resultArray['multipleReferencesList'][$rec['ref_string']][$rec['hash']] = $infoString;
                                        ksort($resultArray['multipleReferencesList'][$rec['ref_string']]);
                                } else {
-                                       $tempCount[$rec['ref_string']] = array($infoString,$rec['hash']);
+                                       $tempCount[$rec['ref_string']] = array($infoString, $rec['hash']);
                                }
                        }
                }
@@ -152,8 +152,8 @@ This will check the system for double files relations.';
                ksort($resultArray['dirname_registry']);
                foreach($resultArray['dirname_registry'] as $dir => $temp) {
                        ksort($resultArray['dirname_registry'][$dir]);
-                       if (!t3lib_div::isFirstPartOfStr($dir,'uploads/')) {
-                               $resultArray['warnings'][t3lib_div::shortmd5($dir)] = 'Directory "'.$dir.'" was outside uploads/ which is unusual practice in TYPO3 although not forbidden. Directory used by the following table:field pairs: '.implode(',',array_keys($temp));
+                       if (!t3lib_div::isFirstPartOfStr($dir, 'uploads/')) {
+                               $resultArray['warnings'][t3lib_div::shortmd5($dir)] = 'Directory "'.$dir.'" was outside uploads/ which is unusual practice in TYPO3 although not forbidden. Directory used by the following table:field pairs: '.implode(',', array_keys($temp));
                        }
                }
 
@@ -180,17 +180,17 @@ This will check the system for double files relations.';
                                                        // Create unique name for file:
                                                $fileFunc = t3lib_div::makeInstance('t3lib_basicFileFunctions');
                                                $newName = $fileFunc->getUniqueName(basename($key), dirname($absFileName));
-                                               echo '  Copying '.$key.' to '.substr($newName,strlen(PATH_site)).' for record "'.$recReference.'": ';
+                                               echo '  Copying '.$key.' to '.substr($newName, strlen(PATH_site)).' for record "'.$recReference.'": ';
 
                                                if ($bypass = $this->cli_noExecutionCheck($recReference)) {
                                                        echo $bypass;
                                                } else {
-                                                       t3lib_div::upload_copy_move($absFileName,$newName);
+                                                       t3lib_div::upload_copy_move($absFileName, $newName);
                                                        clearstatcache();
 
                                                        if (@is_file($newName)) {
                                                                $sysRefObj = t3lib_div::makeInstance('t3lib_refindex');
-                                                               $error = $sysRefObj->setReferenceValue($hash,basename($newName));
+                                                               $error = $sysRefObj->setReferenceValue($hash, basename($newName));
                                                                if ($error) {
                                                                        echo '  ERROR:  t3lib_refindex::setReferenceValue(): '.$error.LF;
                                                                        exit;
index 96814b4..4e8a88e 100644 (file)
@@ -94,11 +94,11 @@ Will report lost files.';
                $resultArray = array(
                        'message' => $this->cli_help['name'].LF.LF.$this->cli_help['description'],
                        'headers' => array(
-                               'managedFiles' => array('Files related to TYPO3 records and managed by TCEmain','These files you definitely want to keep.',0),
-                               'ignoredFiles' => array('Ignored files (index.html, .htaccess etc.)','These files are allowed in uploads/ folder',0),
-                               'RTEmagicFiles' => array('RTE magic images - those found (and ignored)','These files are also allowed in some uploads/ folders as RTEmagic images.',0),
-                               'lostFiles' => array('Lost files - those you can delete','You can delete these files!',3),
-                               'warnings' => array('Warnings picked up','',2)
+                               'managedFiles' => array('Files related to TYPO3 records and managed by TCEmain', 'These files you definitely want to keep.', 0),
+                               'ignoredFiles' => array('Ignored files (index.html, .htaccess etc.)', 'These files are allowed in uploads/ folder', 0),
+                               'RTEmagicFiles' => array('RTE magic images - those found (and ignored)', 'These files are also allowed in some uploads/ folders as RTEmagic images.', 0),
+                               'lostFiles' => array('Lost files - those you can delete', 'You can delete these files!', 3),
+                               'warnings' => array('Warnings picked up', '', 2)
                        ),
                        'managedFiles' => array(),
                        'ignoredFiles' => array(),
@@ -109,17 +109,17 @@ Will report lost files.';
 
                        // Get all files:
                $fileArr = array();
-               $fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,PATH_site.'uploads/');
-               $fileArr = t3lib_div::removePrefixPathFromList($fileArr,PATH_site);
+               $fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr, PATH_site.'uploads/');
+               $fileArr = t3lib_div::removePrefixPathFromList($fileArr, PATH_site);
 
-               $excludePaths = t3lib_div::trimExplode(',',$this->cli_argValue('--excludePath',0),1);
+               $excludePaths = t3lib_div::trimExplode(',', $this->cli_argValue('--excludePath', 0), 1);
 
                        // Traverse files and for each, look up if its found in the reference index.
                foreach($fileArr as $key => $value) {
 
                        $include = TRUE;
                        foreach($excludePaths as $exclPath) {
-                               if (t3lib_div::isFirstPartOfStr($value,$exclPath)) {
+                               if (t3lib_div::isFirstPartOfStr($value, $exclPath)) {
                                        $include = FALSE;
                                }
                        }
@@ -128,7 +128,7 @@ Will report lost files.';
 
                        if ($include) {
                                        // First, allow "index.html", ".htaccess" files since they are often used for good reasons
-                               if (substr($value,-11) == '/index.html' || substr($value,-10) == '/.htaccess') {
+                               if (substr($value, -11) == '/index.html' || substr($value, -10) == '/.htaccess') {
                                        unset($fileArr[$key]);
                                        $resultArray['ignoredFiles'][$shortKey] = $value;
                                } else {
@@ -152,7 +152,7 @@ Will report lost files.';
                                                }
                                        } else {
                                                        // When here it means the file was not found. So we test if it has a RTEmagic-image name and if so, we allow it:
-                                               if (preg_match('/^RTEmagic[P|C]_/',basename($value))) {
+                                               if (preg_match('/^RTEmagic[P|C]_/', basename($value))) {
                                                        unset($fileArr[$key]);
                                                        $resultArray['RTEmagicFiles'][$shortKey] = $value;
                                                } else {
index 9494777..c01264d 100644 (file)
@@ -151,7 +151,7 @@ This will show you missing files in the TYPO3 system and only report back if err
                                        echo $bypass;
                                } else {
                                        $sysRefObj = t3lib_div::makeInstance('t3lib_refindex');
-                                       $error = $sysRefObj->setReferenceValue($hash,NULL);
+                                       $error = $sysRefObj->setReferenceValue($hash, NULL);
                                        if ($error) {
                                                echo '          t3lib_refindex::setReferenceValue(): '.$error.LF;
                                                echo 'missing_files: exit on error'.LF;
index a5a1b75..dafd70c 100644 (file)
@@ -91,12 +91,12 @@ Reports missing relations';
                $resultArray = array(
                        'message' => $this->cli_help['name'].LF.LF.$this->cli_help['description'],
                        'headers' => array(
-                               'offlineVersionRecords_m' => array('Offline version records (managed)','These records are offline versions having a pid=-1 and references should never occur directly to their uids.'.$listExplain,3),
-                               'deletedRecords_m' => array('Deleted-flagged records (managed)','These records are deleted with a flag but references are still pointing at them. Keeping the references is useful if you undelete the referenced records later, otherwise the references are lost completely when the deleted records are flushed at some point. Notice that if those records listed are themselves deleted (marked with "DELETED") it is not a problem.'.$listExplain,2),
-                               'nonExistingRecords_m' => array('Non-existing records to which there are references (managed)','These references can safely be removed since there is no record found in the database at all.'.$listExplain,3), // 3 = error
-                               'offlineVersionRecords_s' => array('Offline version records (softref)','See above.'.$listExplain,2),
-                               'deletedRecords_s' => array('Deleted-flagged records (softref)','See above.'.$listExplain,2),
-                               'nonExistingRecords_s' => array('Non-existing records to which there are references (softref)','See above.'.$listExplain,2),
+                               'offlineVersionRecords_m' => array('Offline version records (managed)', 'These records are offline versions having a pid=-1 and references should never occur directly to their uids.'.$listExplain, 3),
+                               'deletedRecords_m' => array('Deleted-flagged records (managed)', 'These records are deleted with a flag but references are still pointing at them. Keeping the references is useful if you undelete the referenced records later, otherwise the references are lost completely when the deleted records are flushed at some point. Notice that if those records listed are themselves deleted (marked with "DELETED") it is not a problem.'.$listExplain, 2),
+                               'nonExistingRecords_m' => array('Non-existing records to which there are references (managed)', 'These references can safely be removed since there is no record found in the database at all.'.$listExplain, 3),       // 3 = error
+                               'offlineVersionRecords_s' => array('Offline version records (softref)', 'See above.'.$listExplain, 2),
+                               'deletedRecords_s' => array('Deleted-flagged records (softref)', 'See above.'.$listExplain, 2),
+                               'nonExistingRecords_s' => array('Non-existing records to which there are references (softref)', 'See above.'.$listExplain, 2),
                        ),
                        'offlineVersionRecords_m' => array(),
                        'deletedRecords_m' => array(),
@@ -126,7 +126,7 @@ Reports missing relations';
 
                                        // Get referenced record:
                                if (!isset($tempExists[$idx])) {
-                                       $tempExists[$idx] = t3lib_BEfunc::getRecordRaw($rec['ref_table'],'uid='.intval($rec['ref_uid']),'uid,pid'.($GLOBALS['TCA'][$rec['ref_table']]['ctrl']['delete'] ? ','.$GLOBALS['TCA'][$rec['ref_table']]['ctrl']['delete'] : ''));
+                                       $tempExists[$idx] = t3lib_BEfunc::getRecordRaw($rec['ref_table'], 'uid='.intval($rec['ref_uid']), 'uid,pid'.($GLOBALS['TCA'][$rec['ref_table']]['ctrl']['delete'] ? ','.$GLOBALS['TCA'][$rec['ref_table']]['ctrl']['delete'] : ''));
                                }
 
                                        // Compile info string for location of reference:
@@ -177,7 +177,7 @@ Reports missing relations';
                                                echo $bypass;
                                        } else {
                                                $sysRefObj = t3lib_div::makeInstance('t3lib_refindex');
-                                               $error = $sysRefObj->setReferenceValue($hash,NULL);
+                                               $error = $sysRefObj->setReferenceValue($hash, NULL);
                                                if ($error) {
                                                        echo '          t3lib_refindex::setReferenceValue(): '.$error.LF;
                                                } else echo 'DONE';
index ec02a3e..1d137d6 100644 (file)
@@ -86,10 +86,10 @@ Will report orphan uids from TCA tables.';
                $resultArray = array(
                        'message' => $this->cli_help['name'].LF.LF.$this->cli_help['description'],
                        'headers' => array(
-                               'orphans' => array('Index of orphaned records','',3),
-                               'misplaced_at_rootlevel' => array('Records that should not be at root level but are.','Fix manually by moving record into page tree',2),
-                               'misplaced_inside_tree' => array('Records that should be at root level but are not.','Fix manually by moving record to tree root',2),
-                               'illegal_record_under_versioned_page' => array('Records that cannot be attached to a versioned page','(Listed under orphaned records so is fixed along with orphans.)',2),
+                               'orphans' => array('Index of orphaned records', '', 3),
+                               'misplaced_at_rootlevel' => array('Records that should not be at root level but are.', 'Fix manually by moving record into page tree', 2),
+                               'misplaced_inside_tree' => array('Records that should be at root level but are not.', 'Fix manually by moving record to tree root', 2),
+                               'illegal_record_under_versioned_page' => array('Records that cannot be attached to a versioned page', '(Listed under orphaned records so is fixed along with orphans.)', 2),
                        ),
                        'orphans' => array(),
                        'misplaced_at_rootlevel' => array(),                            // Subset of "all": Those that should not be at root level but are. [Warning: Fix by moving record into page tree]
@@ -100,7 +100,7 @@ Will report orphan uids from TCA tables.';
                $startingPoint = 0;     // zero = tree root, must use tree root if you wish to reverse selection to find orphans!
                $pt = t3lib_div::milliseconds();
 
-               $this->genTree($startingPoint,1000,(int)$this->cli_argValue('--echotree'));
+               $this->genTree($startingPoint, 1000, (int)$this->cli_argValue('--echotree'));
 
                $resultArray['misplaced_at_rootlevel'] = $this->recStats['misplaced_at_rootlevel'];
                $resultArray['misplaced_inside_tree'] = $this->recStats['misplaced_inside_tree'];
@@ -109,7 +109,7 @@ Will report orphan uids from TCA tables.';
                        // Find orphans:
                foreach($GLOBALS['TCA'] as $tableName => $cfg) {
 
-                       $idList = is_array($this->recStats['all'][$tableName]) && count($this->recStats['all'][$tableName]) ? implode(',',$this->recStats['all'][$tableName]) : 0;
+                       $idList = is_array($this->recStats['all'][$tableName]) && count($this->recStats['all'][$tableName]) ? implode(',', $this->recStats['all'][$tableName]) : 0;
 
                                // Select all records belonging to page:
                        $orphanRecords =        $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
@@ -158,12 +158,12 @@ Will report orphan uids from TCA tables.';
                                                // Execute CMD array:
                                        $tce = t3lib_div::makeInstance('t3lib_TCEmain');
                                        $tce->stripslashes_values = FALSE;
-                                       $tce->start(array(),array());
-                                       $tce->deleteRecord($table,$uid, TRUE, TRUE);    // Notice, we are deleting pages with no regard to subpages/subrecords - we do this since they should also be included in the set of orphans of course!
+                                       $tce->start(array(), array());
+                                       $tce->deleteRecord($table, $uid, TRUE, TRUE);   // Notice, we are deleting pages with no regard to subpages/subrecords - we do this since they should also be included in the set of orphans of course!
 
                                                // Return errors if any:
                                        if (count($tce->errorLog)) {
-                                               echo '  ERROR from "TCEmain":'.LF.'TCEmain:'.implode(LF.'TCEmain:',$tce->errorLog);
+                                               echo '  ERROR from "TCEmain":'.LF.'TCEmain:'.implode(LF.'TCEmain:', $tce->errorLog);
                                        } else echo 'DONE';
                                }
                                echo LF;
index 6423c4a..33312c1 100644 (file)
@@ -86,11 +86,11 @@ Reports problems with RTE images';
                $resultArray = array(
                        'message' => $this->cli_help['name'].LF.LF.$this->cli_help['description'],
                        'headers' => array(
-                               'completeFileList' => array('Complete list of used RTEmagic files','Both parent and copy are listed here including usage count (which should in theory all be "1"). This list does not exclude files that might be missing.',1),
-                               'RTEmagicFilePairs' => array('Statistical info about RTEmagic files','(copy used as index)',0),
-                               'doubleFiles' => array('Duplicate RTEmagic image files','These files are RTEmagic images found used in multiple records! RTEmagic images should be used by only one record at a time. A large amount of such images probably stems from previous versions of TYPO3 (before 4.2) which did not support making copies automatically of RTEmagic images in case of new copies / versions.',3),
-                               'missingFiles' => array('Missing RTEmagic image files','These files are not found in the file system! Should be corrected!',3),
-                               'lostFiles' => array('Lost RTEmagic files from uploads/','These files you might be able to delete but only if _all_ RTEmagic images are found by the soft reference parser. If you are using the RTE in third-party extensions it is likely that the soft reference parser is not applied correctly to their RTE and thus these "lost" files actually represent valid RTEmagic images, just not registered. Lost files can be auto-fixed but only if you specifically set "lostFiles" as parameter to the --AUTOFIX option.',2),
+                               'completeFileList' => array('Complete list of used RTEmagic files', 'Both parent and copy are listed here including usage count (which should in theory all be "1"). This list does not exclude files that might be missing.', 1),
+                               'RTEmagicFilePairs' => array('Statistical info about RTEmagic files', '(copy used as index)', 0),
+                               'doubleFiles' => array('Duplicate RTEmagic image files', 'These files are RTEmagic images found used in multiple records! RTEmagic images should be used by only one record at a time. A large amount of such images probably stems from previous versions of TYPO3 (before 4.2) which did not support making copies automatically of RTEmagic images in case of new copies / versions.', 3),
+                               'missingFiles' => array('Missing RTEmagic image files', 'These files are not found in the file system! Should be corrected!', 3),
+                               'lostFiles' => array('Lost RTEmagic files from uploads/', 'These files you might be able to delete but only if _all_ RTEmagic images are found by the soft reference parser. If you are using the RTE in third-party extensions it is likely that the soft reference parser is not applied correctly to their RTE and thus these "lost" files actually represent valid RTEmagic images, just not registered. Lost files can be auto-fixed but only if you specifically set "lostFiles" as parameter to the --AUTOFIX option.', 2),
                        ),
                        'RTEmagicFilePairs' => array(),
                        'doubleFiles' => array(),
@@ -114,13 +114,13 @@ Reports problems with RTE images';
                if (is_array($recs)) {
                        foreach($recs as $rec) {
                                $filename = basename($rec['ref_string']);
-                               if (t3lib_div::isFirstPartOfStr($filename,'RTEmagicC_')) {
-                                       $original = 'RTEmagicP_'.preg_replace('/\.[[:alnum:]]+$/','',substr($filename,10));
+                               if (t3lib_div::isFirstPartOfStr($filename, 'RTEmagicC_')) {
+                                       $original = 'RTEmagicP_'.preg_replace('/\.[[:alnum:]]+$/', '', substr($filename, 10));
                                        $infoString = $this->infoStr($rec);
 
                                                // Build index:
                                        $resultArray['RTEmagicFilePairs'][$rec['ref_string']]['exists'] = @is_file(PATH_site.$rec['ref_string']);
-                                       $resultArray['RTEmagicFilePairs'][$rec['ref_string']]['original'] = substr($rec['ref_string'],0,-strlen($filename)).$original;
+                                       $resultArray['RTEmagicFilePairs'][$rec['ref_string']]['original'] = substr($rec['ref_string'], 0, -strlen($filename)).$original;
                                        $resultArray['RTEmagicFilePairs'][$rec['ref_string']]['original_exists'] = @is_file(PATH_site.$resultArray['RTEmagicFilePairs'][$rec['ref_string']]['original']);
                                        $resultArray['RTEmagicFilePairs'][$rec['ref_string']]['count']++;
                                        $resultArray['RTEmagicFilePairs'][$rec['ref_string']]['usedIn'][$rec['hash']] = $infoString;
@@ -149,7 +149,7 @@ Reports problems with RTE images';
                        // Now, ask for RTEmagic files inside uploads/ folder:
                $cleanerModules = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules'];
                $cleanerMode = t3lib_div::getUserObj($cleanerModules['lost_files'][0]);
-               $resLostFiles = $cleanerMode->main(array(),FALSE,TRUE);
+               $resLostFiles = $cleanerMode->main(array(), FALSE, TRUE);
                if (is_array($resLostFiles['RTEmagicFiles'])) {
                        foreach($resLostFiles['RTEmagicFiles'] as $fileName) {
                                if (!isset($resultArray['completeFileList'][$fileName]))        {
@@ -202,7 +202,7 @@ Reports problems with RTE images';
                                                                $rteOrigName = basename($fileInfo['original']);
 
                                                                        // If filename looks like an RTE file, and the directory is in "uploads/", then process as a RTE file!
-                                                               if ($rteOrigName && t3lib_div::isFirstPartOfStr($dirPrefix,'uploads/') && @is_dir(PATH_site.$dirPrefix))        {       // RTE:
+                                                               if ($rteOrigName && t3lib_div::isFirstPartOfStr($dirPrefix, 'uploads/') && @is_dir(PATH_site.$dirPrefix))       {       // RTE:
 
                                                                                // From the "original" RTE filename, produce a new "original" destination filename which is unused.
                                                                        $fileProcObj = $this->getFileProcObj();
@@ -210,7 +210,7 @@ Reports problems with RTE images';
 
                                                                                // Create copy file name:
                                                                        $pI = pathinfo($fileName);
-                                                                       $copyDestName = dirname($origDestName).'/RTEmagicC_'.substr(basename($origDestName),10).'.'.$pI['extension'];
+                                                                       $copyDestName = dirname($origDestName).'/RTEmagicC_'.substr(basename($origDestName), 10).'.'.$pI['extension'];
                                                                        if (!@is_file($copyDestName) && !@is_file($origDestName)
                                                                                && $origDestName===t3lib_div::getFileAbsFileName($origDestName) && $copyDestName===t3lib_div::getFileAbsFileName($copyDestName)) {
 
@@ -220,13 +220,13 @@ Reports problems with RTE images';
                                                                                        echo $bypass;
                                                                                } else {
                                                                                                // Making copies:
-                                                                                       t3lib_div::upload_copy_move(PATH_site.$fileInfo['original'],$origDestName);
-                                                                                       t3lib_div::upload_copy_move(PATH_site.$fileName,$copyDestName);
+                                                                                       t3lib_div::upload_copy_move(PATH_site.$fileInfo['original'], $origDestName);
+                                                                                       t3lib_div::upload_copy_move(PATH_site.$fileName, $copyDestName);
                                                                                        clearstatcache();
 
                                                                                        if (@is_file($copyDestName)) {
                                                                                                $sysRefObj = t3lib_div::makeInstance('t3lib_refindex');
-                                                                                               $error = $sysRefObj->setReferenceValue($hash,substr($copyDestName,strlen(PATH_site)));
+                                                                                               $error = $sysRefObj->setReferenceValue($hash, substr($copyDestName, strlen(PATH_site)));
                                                                                                if ($error) {
                                                                                                        echo '  - ERROR:        t3lib_refindex::setReferenceValue(): '.$error.LF;
                                                                                                        exit;
index f1af6bd..33bacca 100644 (file)
@@ -69,8 +69,8 @@ Showing last 25 hour entries from the syslog. More features pending. This is the
                $resultArray = array(
                        'message' => $this->cli_help['name'].LF.LF.$this->cli_help['description'],
                        'headers' => array(
-                               'listing' => array('','',1),
-                               'allDetails' => array('','',0),
+                               'listing' => array('', '', 1),
+                               'allDetails' => array('', '', 0),
                        ),
                        'listing' => array(),
                        'allDetails' => array()
@@ -83,9 +83,9 @@ Showing last 25 hour entries from the syslog. More features pending. This is the
                        );
                foreach($rows as $r) {
                        $l = unserialize($r['log_data']);
-                       $explained = '#'.$r['uid'].' '.t3lib_BEfunc::datetime($r['tstamp']).' USER['.$r['userid'].']: '.sprintf($r['details'],$l[0],$l[1],$l[2],$l[3],$l[4],$l[5]);
+                       $explained = '#'.$r['uid'].' '.t3lib_BEfunc::datetime($r['tstamp']).' USER['.$r['userid'].']: '.sprintf($r['details'], $l[0], $l[1], $l[2], $l[3], $l[4], $l[5]);
                        $resultArray['listing'][$r['uid']] = $explained;
-                       $resultArray['allDetails'][$r['uid']] = array($explained,t3lib_div::arrayToLogString($r,'uid,userid,action,recuid,tablename,recpid,error,tstamp,type,details_nr,IP,event_pid,NEWid,workspace'));
+                       $resultArray['allDetails'][$r['uid']] = array($explained, t3lib_div::arrayToLogString($r, 'uid,userid,action,recuid,tablename,recpid,error,tstamp,type,details_nr,IP,event_pid,NEWid,workspace'));
                }
 
                return $resultArray;
index 975e0a0..5b8c827 100644 (file)
@@ -83,22 +83,22 @@ Automatic Repair:
                $resultArray = array(
                        'message' => $this->cli_help['name'].LF.LF.$this->cli_help['description'],
                        'headers' => array(
-                               'versions' => array('All versions','Showing all versions of records found',0),
-                               'versions_published' => array('All published versions','This is all records that has been published and can therefore be removed permanently',1),
-                               'versions_liveWS' => array('All versions in Live workspace','This is all records that are offline versions in the Live workspace. You may wish to flush these if you only use workspaces for versioning since then you might find lots of versions piling up in the live workspace which have simply been disconnected from the workspace before they were published.',1),
-                               'versions_lost_workspace' => array('Versions outside a workspace','Versions that has lost their connection to a workspace in TYPO3.',3),
-                               'versions_inside_versioned_page' => array('Versions in versions','Versions inside an already versioned page. Something that is confusing to users and therefore should not happen but is technically possible.',2),
-                               'versions_unused_placeholders' => array('Unused placeholder records','Placeholder records which are not used anymore by offline versions.',2),
-                               'versions_move_placeholders_ok' => array('Move placeholders','Move-to placeholder records which has good integrity',0),
-                               'versions_move_placeholders_bad' => array('Move placeholders with bad integrity','Move-to placeholder records which has bad integrity',2),
-                               'versions_move_id_check' => array('Checking if t3ver_move_id is correct','t3ver_move_id must only be set with online records having t3ver_state=3.',2),
+                               'versions' => array('All versions', 'Showing all versions of records found', 0),
+                               'versions_published' => array('All published versions', 'This is all records that has been published and can therefore be removed permanently', 1),
+                               'versions_liveWS' => array('All versions in Live workspace', 'This is all records that are offline versions in the Live workspace. You may wish to flush these if you only use workspaces for versioning since then you might find lots of versions piling up in the live workspace which have simply been disconnected from the workspace before they were published.', 1),
+                               'versions_lost_workspace' => array('Versions outside a workspace', 'Versions that has lost their connection to a workspace in TYPO3.', 3),
+                               'versions_inside_versioned_page' => array('Versions in versions', 'Versions inside an already versioned page. Something that is confusing to users and therefore should not happen but is technically possible.', 2),
+                               'versions_unused_placeholders' => array('Unused placeholder records', 'Placeholder records which are not used anymore by offline versions.', 2),
+                               'versions_move_placeholders_ok' => array('Move placeholders', 'Move-to placeholder records which has good integrity', 0),
+                               'versions_move_placeholders_bad' => array('Move placeholders with bad integrity', 'Move-to placeholder records which has bad integrity', 2),
+                               'versions_move_id_check' => array('Checking if t3ver_move_id is correct', 't3ver_move_id must only be set with online records having t3ver_state=3.', 2),
                        ),
                        'versions' => array(),
                );
 
-               $startingPoint = $this->cli_isArg('--pid') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--pid'),0) : 0;
-               $depth = $this->cli_isArg('--depth') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--depth'),0) : 1000;
-               $this->genTree($startingPoint,$depth,(int)$this->cli_argValue('--echotree'));
+               $startingPoint = $this->cli_isArg('--pid') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--pid'), 0) : 0;
+               $depth = $this->cli_isArg('--depth') ? t3lib_utility_Math::forceIntegerInRange($this->cli_argValue('--depth'), 0) : 1000;
+               $this->genTree($startingPoint, $depth, (int)$this->cli_argValue('--echotree'));
 
                $resultArray['versions'] = $this->recStats['versions'];
                $resultArray['versions_published'] = $this->recStats['versions_published'];
@@ -110,7 +110,7 @@ Automatic Repair:
                $resultArray['versions_unused_placeholders'] = array();
                foreach($GLOBALS['TCA'] as $table => $cfg) {
                        if ($cfg['ctrl']['versioningWS']) {
-                               $placeHolders = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,pid',$table,'t3ver_state=1 AND pid>=0'.t3lib_BEfunc::deleteClause($table));
+                               $placeHolders = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,pid', $table, 't3ver_state=1 AND pid>=0'.t3lib_BEfunc::deleteClause($table));
                                foreach($placeHolders as $phrec) {
                                        if (count(t3lib_BEfunc::selectVersionsOfRecord($table, $phrec['uid'], 'uid'))<=1) {
                                                $resultArray['versions_unused_placeholders'][t3lib_div::shortmd5($table.':'.$phrec['uid'])] = $table.':'.$phrec['uid'];
@@ -125,15 +125,15 @@ Automatic Repair:
                $resultArray['versions_move_placeholders_bad'] = array();
                foreach($GLOBALS['TCA'] as $table => $cfg) {
                        if ((int)$cfg['ctrl']['versioningWS']>=2) {
-                               $placeHolders = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,pid,t3ver_move_id,t3ver_wsid,t3ver_state',$table,'t3ver_state=3 AND pid>=0'.t3lib_BEfunc::deleteClause($table));
+                               $placeHolders = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,pid,t3ver_move_id,t3ver_wsid,t3ver_state', $table, 't3ver_state=3 AND pid>=0'.t3lib_BEfunc::deleteClause($table));
                                foreach($placeHolders as $phrec) {
                                        $shortID = t3lib_div::shortmd5($table.':'.$phrec['uid']);
                                        if ((int)$phrec['t3ver_wsid']!=0) {
                                                $phrecCopy = $phrec;
-                                               if (t3lib_BEfunc::movePlhOL($table,$phrec)) {
+                                               if (t3lib_BEfunc::movePlhOL($table, $phrec)) {
                                                        if ($wsAlt = t3lib_BEfunc::getWorkspaceVersionOfRecord($phrecCopy['t3ver_wsid'], $table, $phrec['uid'], 'uid,pid,t3ver_state')) {
                                                                if ($wsAlt['t3ver_state']!=4) {
-                                                                       $resultArray['versions_move_placeholders_bad'][$shortID] = array($table.':'.$phrec['uid'],'State for version was not "4" as it should be!',$phrecCopy);
+                                                                       $resultArray['versions_move_placeholders_bad'][$shortID] = array($table.':'.$phrec['uid'], 'State for version was not "4" as it should be!', $phrecCopy);
                                                                } else {
                                                                        $resultArray['versions_move_placeholders_ok'][$shortID] = array(
                                                                                $table.':'.$phrec['uid'],
@@ -143,13 +143,13 @@ Automatic Repair:
                                                                        );
                                                                }
                                                        } else {
-                                                               $resultArray['versions_move_placeholders_bad'][$shortID] = array($table.':'.$phrec['uid'],'No version was found for online record to be moved. A version must exist.',$phrecCopy);
+                                                               $resultArray['versions_move_placeholders_bad'][$shortID] = array($table.':'.$phrec['uid'], 'No version was found for online record to be moved. A version must exist.', $phrecCopy);
                                                        }
                                                } else {
-                                                       $resultArray['versions_move_placeholders_bad'][$shortID] = array($table.':'.$phrec['uid'],'Did not find online record for "t3ver_move_id" value '.$phrec['t3ver_move_id'],$phrec);
+                                                       $resultArray['versions_move_placeholders_bad'][$shortID] = array($table.':'.$phrec['uid'], 'Did not find online record for "t3ver_move_id" value '.$phrec['t3ver_move_id'], $phrec);
                                                }
                                        } else {
-                                               $resultArray['versions_move_placeholders_bad'][$shortID] = array($table.':'.$phrec['uid'],'Placeholder was not assigned a workspace value in t3ver_wsid.',$phrec);
+                                               $resultArray['versions_move_placeholders_bad'][$shortID] = array($table.':'.$phrec['uid'], 'Placeholder was not assigned a workspace value in t3ver_wsid.', $phrec);
                                        }
                                }
                        }
@@ -162,16 +162,16 @@ Automatic Repair:
                $resultArray['versions_move_id_check'] = array();
                foreach($GLOBALS['TCA'] as $table => $cfg) {
                        if ((int)$cfg['ctrl']['versioningWS']>=2) {
-                               $placeHolders = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,pid,t3ver_move_id,t3ver_wsid,t3ver_state',$table,'t3ver_move_id<>0'.t3lib_BEfunc::deleteClause($table));
+                               $placeHolders = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,pid,t3ver_move_id,t3ver_wsid,t3ver_state', $table, 't3ver_move_id<>0'.t3lib_BEfunc::deleteClause($table));
                                foreach($placeHolders as $phrec) {
                                        if ((int)$phrec['t3ver_state']==3) {
                                                if ($phrec['pid']!=-1) {
                                                                // OK
                                                } else {
-                                                       $resultArray['versions_move_id_check'][] = array($table.':'.$phrec['uid'],'Record was offline, must not be!',$phrec);
+                                                       $resultArray['versions_move_id_check'][] = array($table.':'.$phrec['uid'], 'Record was offline, must not be!', $phrec);
                                                }
                                        } else {
-                                               $resultArray['versions_move_id_check'][] = array($table.':'.$phrec['uid'],'Record had t3ver_move_id set to "'.$phrec['t3ver_move_id'].'" while having t3ver_state='.$phrec['t3ver_state'],$phrec);
+                                               $resultArray['versions_move_id_check'][] = array($table.':'.$phrec['uid'], 'Record had t3ver_move_id set to "'.$phrec['t3ver_move_id'].'" while having t3ver_state='.$phrec['t3ver_state'], $phrec);
                                        }
                                }
                        }
@@ -211,12 +211,12 @@ Automatic Repair:
                                                // Execute CMD array:
                                        $tce = t3lib_div::makeInstance('t3lib_TCEmain');
                                        $tce->stripslashes_values = FALSE;
-                                       $tce->start(array(),array());
-                                       $tce->deleteEl($table,$uid, TRUE, TRUE);
+                                       $tce->start(array(), array());
+                                       $tce->deleteEl($table, $uid, TRUE, TRUE);
 
                                                // Return errors if any:
                                        if (count($tce->errorLog)) {
-                                               echo '  ERROR from "TCEmain":'.LF.'TCEmain:'.implode(LF.'TCEmain:',$tce->errorLog);
+                                               echo '  ERROR from "TCEmain":'.LF.'TCEmain:'.implode(LF.'TCEmain:', $tce->errorLog);
                                        } else echo 'DONE';
                                }
                                echo LF;
@@ -234,7 +234,7 @@ Automatic Repair:
                                        $fields_values = array(
                                                't3ver_wsid' => 0
                                        );
-                                       $GLOBALS['TYPO3_DB']->exec_UPDATEquery($table,'uid='.intval($uid),$fields_values);
+                                       $GLOBALS['TYPO3_DB']->exec_UPDATEquery($table, 'uid='.intval($uid), $fields_values);
                                        echo 'DONE';
                                }
                                echo LF;
@@ -243,7 +243,7 @@ Automatic Repair:
 
                        // Delete unused placeholders
                foreach($resultArray['versions_unused_placeholders'] as $recID) {
-                       list($table,$uid)       = explode(':',$recID);
+                       list($table,$uid)       = explode(':', $recID);
                        echo 'Deleting unused placeholder (soft) "'.$table.':'.$uid.'": ';
                        if ($bypass = $this->cli_noExecutionCheck($table.':'.$uid)) {
                                echo $bypass;
@@ -252,12 +252,12 @@ Automatic Repair:
                                        // Execute CMD array:
                                $tce = t3lib_div::makeInstance('t3lib_TCEmain');
                                $tce->stripslashes_values = FALSE;
-                               $tce->start(array(),array());
+                               $tce->start(array(), array());
                                $tce->deleteAction($table, $uid);
 
                                        // Return errors if any:
                                if (count($tce->errorLog)) {
-                                       echo '  ERROR from "TCEmain":'.LF.'TCEmain:'.implode(LF.'TCEmain:',$tce->errorLog);
+                                       echo '  ERROR from "TCEmain":'.LF.'TCEmain:'.implode(LF.'TCEmain:', $tce->errorLog);
                                } else echo 'DONE';
                        }
                        echo LF;
index 2c56ac6..be7887b 100755 (executable)
@@ -38,7 +38,7 @@ require ($BACK_PATH.'init.php');
 require ($BACK_PATH.'template.php');
 $GLOBALS['LANG']->includeLLFile('EXT:lowlevel/config/locallang.xml');
 
-$BE_USER->modAccess($MCONF,1);
+$BE_USER->modAccess($MCONF, 1);
 
 
 
@@ -148,7 +148,7 @@ class SC_mod_tools_config_index {
                                                <label for="search_field">' . $GLOBALS['LANG']->getLL('enterSearchPhrase', TRUE) . '</label>
                                                <input type="text" id="search_field" name="search_field" value="' . htmlspecialchars($search_field) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(20) . ' />
                                                <input type="submit" name="search" id="search" value="' . $GLOBALS['LANG']->getLL('search', TRUE) . '" />';
-               $this->content .= t3lib_BEfunc::getFuncCheck(0,'SET[regexsearch]',$this->MOD_SETTINGS['regexsearch'],'','','id="checkRegexsearch"') .
+               $this->content .= t3lib_BEfunc::getFuncCheck(0, 'SET[regexsearch]', $this->MOD_SETTINGS['regexsearch'], '', '', 'id="checkRegexsearch"') .
                                                '<label for="checkRegexsearch">' . $GLOBALS['LANG']->getLL('useRegExp', TRUE) . '</label>';
 
                $this->content.= t3lib_BEfunc::getFuncCheck(0, 'SET[fixedLgd]', $this->MOD_SETTINGS['fixedLgd'], '', '', 'id="checkFixedLgd"') .
@@ -225,7 +225,7 @@ class SC_mod_tools_config_index {
                        $update = 1;
                }
                if ($update) {
-                       $GLOBALS['BE_USER']->pushModuleData($this->MCONF['name'],$this->MOD_SETTINGS);
+                       $GLOBALS['BE_USER']->pushModuleData($this->MCONF['name'], $this->MOD_SETTINGS);
                }
 
                $arrayBrowser->depthKeys = $this->MOD_SETTINGS['node_'.$this->MOD_SETTINGS['function']];
@@ -355,7 +355,7 @@ class SC_mod_tools_config_index {
 
                        // Shortcut
                if ($GLOBALS['BE_USER']->mayMakeShortcut()) {
-                       $buttons['shortcut'] = $this->doc->makeShortcutIcon('','function',$this->MCONF['name']);
+                       $buttons['shortcut'] = $this->doc->makeShortcutIcon('', 'function', $this->MCONF['name']);
                }
                return $buttons;
        }
@@ -376,4 +376,4 @@ $SOBE = t3lib_div::makeInstance('SC_mod_tools_config_index');
 $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
-?>
\ No newline at end of file
+?>
index 3b0d476..152717c 100755 (executable)
@@ -3,10 +3,10 @@
 if (!defined('TYPO3_cliMode')) die('You cannot run this script directly!');
 
        // Call the functionality
-if (in_array('-e',$_SERVER["argv"]) || in_array('-c',$_SERVER["argv"])) {
-       $testOnly = in_array('-c',$_SERVER["argv"]);
+if (in_array('-e', $_SERVER["argv"]) || in_array('-c', $_SERVER["argv"])) {
+       $testOnly = in_array('-c', $_SERVER["argv"]);
        $refIndexObj = t3lib_div::makeInstance('t3lib_refindex');
-       list($headerContent,$bodyContent) = $refIndexObj->updateIndex($testOnly,!in_array('-s',$_SERVER["argv"]));
+       list($headerContent, $bodyContent) = $refIndexObj->updateIndex($testOnly, !in_array('-s', $_SERVER["argv"]));
 } else {
        echo "
 Options:
index 10a5d82..51985c6 100755 (executable)
@@ -106,8 +106,8 @@ class SC_mod_tools_dbint_index {
                                'defCol' => array('<td class="t3-row-header"><img src="' . $this->doc->backPath . 'clear.gif" width="10" height="1" alt="" /></td><td valign="top" class="t3-row-header"><strong>', '</strong></td>')
                        ),
                        'defRow' => array (
-                               '0' => array('<td valign="top">','</td>'),
-                               '1' => array('<td valign="top">','</td>'),
+                               '0' => array('<td valign="top">', '</td>'),
+                               '1' => array('<td valign="top">', '</td>'),
                                'defCol' => array('<td><img src="' . $this->doc->backPath . 'clear.gif" width="15" height="1" alt="" /></td><td valign="top">', '</td>')
                        )
                );
@@ -169,7 +169,7 @@ class SC_mod_tools_dbint_index {
                        'sword' => ''
                );
                        // CLEAN SETTINGS
-               $OLD_MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU,'', $this->MCONF['name'], 'ses');
+               $OLD_MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU, '', $this->MCONF['name'], 'ses');
                $this->MOD_SETTINGS = t3lib_BEfunc::getModuleData($this->MOD_MENU, t3lib_div::_GP('SET'), $this->MCONF['name'], 'ses');
 
                if (t3lib_div::_GP('queryConfig')) {
@@ -189,7 +189,7 @@ class SC_mod_tools_dbint_index {
                        }
                }
                if ($setLimitToStart) {
-                       $currentLimit = explode(',',$this->MOD_SETTINGS['queryLimit']);
+                       $currentLimit = explode(',', $this->MOD_SETTINGS['queryLimit']);
                        if ($currentLimit[1]) {
                                $this->MOD_SETTINGS['queryLimit']='0,'.$currentLimit[1];
                        } else {
@@ -208,7 +208,7 @@ class SC_mod_tools_dbint_index {
 
                        // Content creation
                if (!$GLOBALS['BE_USER']->userTS['mod.']['dbint.']['disableTopMenu']) {
-                       $this->menu = t3lib_BEfunc::getFuncMenu(0,'SET[function]',$this->MOD_SETTINGS['function'],$this->MOD_MENU['function']);
+                       $this->menu = t3lib_BEfunc::getFuncMenu(0, 'SET[function]', $this->MOD_SETTINGS['function'], $this->MOD_MENU['function']);
                }
 
                switch($this->MOD_SETTINGS['function']) {
@@ -272,7 +272,7 @@ class SC_mod_tools_dbint_index {
 
                        // Shortcut
                if ($GLOBALS['BE_USER']->mayMakeShortcut()) {
-                       $buttons['shortcut'] = $this->doc->makeShortcutIcon('','function,search,search_query_makeQuery',$this->MCONF['name']);
+                       $buttons['shortcut'] = $this->doc->makeShortcutIcon('', 'function,search,search_query_makeQuery', $this->MCONF['name']);
                }
                return $buttons;
        }
@@ -398,7 +398,7 @@ class SC_mod_tools_dbint_index {
                        $menu2 .= t3lib_BEfunc::getFuncCheck($GLOBALS['SOBE']->id, 'SET[show_deleted]', $this->MOD_SETTINGS['show_deleted'], '', '', 'id="checkShow_deleted"') . '&nbsp;<label for="checkShow_deleted">' . $GLOBALS['LANG']->getLL('showDeleted') . '</label>';
                }
 
-               $this->content.= $this->doc->section('',$menu2).$this->doc->spacer(10);
+               $this->content.= $this->doc->section('', $menu2).$this->doc->spacer(10);
 
                switch($this->MOD_SETTINGS['search'])           {
                        case 'query':
@@ -423,7 +423,7 @@ class SC_mod_tools_dbint_index {
                $admin = t3lib_div::makeInstance('t3lib_admin');
                $admin->genTree_makeHTML = 0;
                $admin->backPath = $GLOBALS['BACK_PATH'];
-               $admin->genTree(0,'');
+               $admin->genTree(0, '');
 
                $this->content .= $this->doc->header($GLOBALS['LANG']->getLL('records'));
 
@@ -470,7 +470,7 @@ class SC_mod_tools_dbint_index {
                if ($admin->fixLostRecord(t3lib_div::_GET('fixLostRecords_table'), t3lib_div::_GET('fixLostRecords_uid'))) {
                        $admin = t3lib_div::makeInstance('t3lib_admin');
                        $admin->backPath = $BACK_PATH;
-                       $admin->genTree(0,'');
+                       $admin->genTree(0, '');
                        $id_list = '-1,0,' . implode(',', array_keys($admin->page_idArray));
                        $id_list = rtrim($id_list, ',');
                        $admin->lostRecords($id_list);
@@ -513,7 +513,7 @@ class SC_mod_tools_dbint_index {
                                $lr='';
                                if (is_array($admin->lRecords[$t])) {
                                        foreach ($admin->lRecords[$t] as $data) {
-                                               if (!t3lib_div::inList($admin->lostPagesList,$data[pid])) {
+                                               if (!t3lib_div::inList($admin->lostPagesList, $data[pid])) {
                                                        $lr.= '<nobr><strong><a href="index.php?SET[function]=records&fixLostRecords_table=' . $t . '&fixLostRecords_uid=' . $data[uid] . '"><img src="' . $BACK_PATH . 'gfx/required_h.gif" width="10" hspace="3" height="10" border="0" align="top" title="' . $GLOBALS['LANG']->getLL('fixLostRecord') . '"></a>uid:' . $data[uid] . ', pid:' . $data[pid] . ', ' . t3lib_div::fixed_lgd_cs(strip_tags($data[title]), 20) . '</strong></nobr><br>';
                                                } else {
                                                        $lr.= '<nobr><img src="' . $BACK_PATH . 'clear.gif" width="16" height="1" border="0"><font color="Gray">uid:' . $data[uid] . ', pid:' . $data[pid] . ', ' . t3lib_div::fixed_lgd_cs(strip_tags($data[title]), 20) . '</font></nobr><br>';
@@ -563,7 +563,7 @@ class SC_mod_tools_dbint_index {
                } else {
                        $code = $GLOBALS['LANG']->getLL('no_files_found');
                }
-               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('files_many_ref'),$code, FALSE, TRUE);
+               $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('files_many_ref'), $code, FALSE, TRUE);
 
                $code='';
                if (is_array($fileTest['noFile'])) {
@@ -590,7 +590,7 @@ class SC_mod_tools_dbint_index {
                $this->content .= $this->doc->header($GLOBALS['LANG']->getLL('findFilename'));
                $this->content.= $this->doc->section($GLOBALS['LANG']->getLL('pattern'), $pcontent, FALSE, TRUE);
 
-               if (strcmp($pattern,'')) {
+               if (strcmp($pattern, '')) {
                        $dirs = t3lib_div::get_dirs(PATH_site);
                        $lines=array();
                        $depth=10;
@@ -598,8 +598,8 @@ class SC_mod_tools_dbint_index {
                        foreach ($dirs as $key => $value) {
                                $matching_files=array();
                                $info='';
-                               if (!t3lib_div::inList('typo3,typo3conf,tslib,media,t3lib',$value)) {
-                                       $info = $this->findFile(PATH_site.$value.'/',$pattern,$matching_files,$depth);
+                               if (!t3lib_div::inList('typo3,typo3conf,tslib,media,t3lib', $value)) {
+                                       $info = $this->findFile(PATH_site.$value.'/', $pattern,$matching_files, $depth);
                                }
                                if (is_array($info)) {
                                        $lines[]='<hr><strong>' . $value . '/</strong> ' . $GLOBALS['LANG']->getLL('beingChecked');
index ac81c87..0a1e272 100644 (file)
@@ -3,9 +3,9 @@ if (!defined ('TYPO3_MODE'))    die ('Access denied.');
 
 if (TYPO3_MODE=='BE') {
                // Setting up scripts that can be run from the cli_dispatch.phpsh script.
-       $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_refindex'] = array('EXT:lowlevel/dbint/cli/refindex_cli.php','_CLI_lowlevel');
-       $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_cleaner'] = array('EXT:lowlevel/dbint/cli/cleaner_cli.php','_CLI_lowlevel');
-       $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_admin'] = array('EXT:lowlevel/admin_cli.php','_CLI_lowlevel');
+       $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_refindex'] = array('EXT:lowlevel/dbint/cli/refindex_cli.php', '_CLI_lowlevel');
+       $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_cleaner'] = array('EXT:lowlevel/dbint/cli/cleaner_cli.php', '_CLI_lowlevel');
+       $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['lowlevel_admin'] = array('EXT:lowlevel/admin_cli.php', '_CLI_lowlevel');
 
        $TYPO3_CONF_VARS['EXTCONF']['lowlevel']['cleanerModules']['missing_files'] = array('EXT:lowlevel/clmods/class.missing_files.php:tx_lowlevel_missing_files');
        $TYPO3_CONF_VARS['EXTCONF']['lowlevel']['cleanerModules']['missing_relations'] = array('EXT:lowlevel/clmods/class.missing_relations.php:tx_lowlevel_missing_relations');
index 3920027..11ac6e6 100755 (executable)
@@ -2,7 +2,7 @@
 if (!defined ('TYPO3_MODE'))   die ('Access denied.');
 
 if (TYPO3_MODE=='BE') {
-       t3lib_extMgm::addModule('tools','dbint','',t3lib_extMgm::extPath($_EXTKEY).'dbint/');
-       t3lib_extMgm::addModule('tools','config','',t3lib_extMgm::extPath($_EXTKEY).'config/');
+       t3lib_extMgm::addModule('tools', 'dbint', '', t3lib_extMgm::extPath($_EXTKEY).'dbint/');
+       t3lib_extMgm::addModule('tools', 'config', '', t3lib_extMgm::extPath($_EXTKEY).'config/');
 }
 ?>
\ No newline at end of file