[TASK] CGL FunctionCallArgumentSpacingNoSpaceAfterComma in sysext lowlevel
authorRoland Waldner <most.wanted@gmx.at>
Tue, 12 Jun 2012 19:24:06 +0000 (21:24 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 14 Jun 2012 21:03:15 +0000 (23:03 +0200)
Change-Id: I01c2bec418bb507a81550277e143e1d4115c8eda
Resolves: #37978
Releases: 6.0
Reviewed-on: http://review.typo3.org/12008
Reviewed-by: Oliver Klee
Reviewed-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/lowlevel/class.tx_lowlevel_cleaner_core.php
typo3/sysext/lowlevel/clmods/class.orphan_records.php
typo3/sysext/lowlevel/dbint/index.php

index 7b49852..5390a69 100644 (file)
@@ -222,7 +222,7 @@ class tx_lowlevel_cleaner_core extends t3lib_cli {
         */
        function cli_printInfo($header, $res) {
 
-               $detailLevel = t3lib_utility_Math::forceIntegerInRange($this->cli_isArg('-v') ? $this->cli_argValue('-v') : 1,0,3);
+               $detailLevel = t3lib_utility_Math::forceIntegerInRange($this->cli_isArg('-v') ? $this->cli_argValue('-v') : 1, 0, 3);
                $silent = !$this->cli_echo();
 
                $severity = array(
index 1d137d6..5806a93 100644 (file)
@@ -112,12 +112,15 @@ Will report orphan uids from TCA tables.';
                        $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(
-                                                                       'uid',
-                                                                       $tableName,
-                                                                       'uid NOT IN ('.$idList.')',
-                                                                       '','uid','','uid'
-                                                               );
+                       $orphanRecords = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
+                               'uid',
+                               $tableName,
+                               'uid NOT IN (' . $idList . ')',
+                               '',
+                               'uid',
+                               '',
+                               'uid'
+                       );
 
                        if (count($orphanRecords)) {
                                $resultArray['orphans'][$tableName] = array();
index 51985c6..4b147e2 100755 (executable)
@@ -599,7 +599,7 @@ class SC_mod_tools_dbint_index {
                                $matching_files=array();
                                $info='';
                                if (!t3lib_div::inList('typo3,typo3conf,tslib,media,t3lib', $value)) {
-                                       $info = $this->findFile(PATH_site.$value.'/', $pattern,$matching_files, $depth);
+                                       $info = $this->findFile(PATH_site . $value . '/', $pattern, $matching_files, $depth);
                                }
                                if (is_array($info)) {
                                        $lines[]='<hr><strong>' . $value . '/</strong> ' . $GLOBALS['LANG']->getLL('beingChecked');