[TASK] CGL FunctionCallArgumentSpacingNoSpaceAfterComma in /typo3/
authorRoland Waldner <most.wanted@gmx.at>
Thu, 21 Jun 2012 19:25:26 +0000 (21:25 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 21 Jun 2012 20:40:22 +0000 (22:40 +0200)
Change-Id: Iedad3e5e4529b60330574eadfa494366bab7d025
Resolves: #38265
Releases: 6.0
Reviewed-on: http://review.typo3.org/12265
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/class.browse_links.php
typo3/class.db_list.inc
typo3/class.db_list_extra.inc
typo3/class.file_list.inc

index b4d06d1..a80101f 100644 (file)
@@ -1115,7 +1115,7 @@ class browse_links {
                        'expandPage' => $this->expandPage,
                        'expandFolder' => $this->expandFolder,
                        'PM' => $this->PM,
-               ),'Internal variables of Script Class:');
+               ), 'Internal variables of Script Class:');
        }
 
        /**
@@ -2877,4 +2877,4 @@ class browse_links {
                return $result;
        }
 }
-?>
\ No newline at end of file
+?>
index b009000..deec387 100644 (file)
@@ -161,7 +161,7 @@ class recordList extends t3lib_recordList {
                $this->firstElementNumber = $pointer;
                $this->searchString = trim($search);
                $this->searchLevels = trim($levels);
-               $this->showLimit = t3lib_utility_Math::forceIntegerInRange($showLimit,0,10000);
+               $this->showLimit = t3lib_utility_Math::forceIntegerInRange($showLimit, 0, 10000);
 
                        // Setting GPvars:
                $this->csvOutput = t3lib_div::_GP('csv') ? TRUE : FALSE;
@@ -243,13 +243,14 @@ class recordList extends t3lib_recordList {
        function generateList() {
 
                        // Set page record in header
-               $this->pageRecord = t3lib_BEfunc::getRecordWSOL('pages',$this->id);
+               $this->pageRecord = t3lib_BEfunc::getRecordWSOL('pages', $this->id);
 
                        // Traverse the TCA table array:
                foreach ($GLOBALS['TCA'] as $tableName => $value) {
 
                                // Checking if the table should be rendered:
-                       if ((!$this->table || $tableName==$this->table) && (!$this->tableList || t3lib_div::inList($this->tableList,$tableName)) && $GLOBALS['BE_USER']->check('tables_select',$tableName))     {               // Checks that we see only permitted/requested tables:
+                               // Checks that we see only permitted/requested tables:
+                       if ((!$this->table || $tableName == $this->table) && (!$this->tableList || t3lib_div::inList($this->tableList, $tableName)) && $GLOBALS['BE_USER']->check('tables_select', $tableName)) {
 
                                        // Load full table definitions:
                                t3lib_div::loadTCA($tableName);
@@ -288,7 +289,7 @@ class recordList extends t3lib_recordList {
                                        $fields[]='_PATH_';
                                        $fields[]='_CONTROL_';
                                        if (is_array($this->setFields[$tableName])) {
-                                               $fields = array_intersect($fields,$this->setFields[$tableName]);
+                                               $fields = array_intersect($fields, $this->setFields[$tableName]);
                                        } else {
                                                $fields = array();
                                        }
@@ -307,7 +308,7 @@ class recordList extends t3lib_recordList {
                                }
 
                                        // Finally, render the list:
-                               $this->HTMLcode.=$this->getTable($tableName, $this->id, implode(',',$fields));
+                               $this->HTMLcode .= $this->getTable($tableName, $this->id, implode(',', $fields));
                        }
                }
        }
@@ -328,11 +329,11 @@ class recordList extends t3lib_recordList {
 
                        // Make level selector:
                $opt = array();
-               $parts = explode('|',$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.enterSearchLevels'));
+               $parts = explode('|', $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.enterSearchLevels'));
                foreach ($parts as $kv => $label) {
                        $opt[] = '<option value="'.$kv.'"'.($kv==intval($this->searchLevels)?' selected="selected"':'').'>'.htmlspecialchars($label).'</option>';
                }
-               $lMenu = '<select name="search_levels">'.implode('',$opt).'</select>';
+               $lMenu = '<select name="search_levels">' . implode('', $opt) . '</select>';
 
                        // Table with the search box:
                $content = '<div class="db_list-searchbox-form">
@@ -371,7 +372,7 @@ class recordList extends t3lib_recordList {
                if (!t3lib_extMgm::isLoaded('sys_note')) return '';
 
                        // Create query for selecting the notes:
-               $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*','sys_note','pid IN ('.$this->id.') AND (personal=0 OR cruser='.intval($GLOBALS['BE_USER']->user['uid']).')'.t3lib_BEfunc::deleteClause('sys_note').t3lib_BEfunc::versioningPlaceholderClause('sys_note'));
+               $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'sys_note', 'pid IN (' . $this->id . ') AND (personal=0 OR cruser=' . intval($GLOBALS['BE_USER']->user['uid']) . ')' . t3lib_BEfunc::deleteClause('sys_note') . t3lib_BEfunc::versioningPlaceholderClause('sys_note'));
 
                        // Executing query:
                $dbCount = $GLOBALS['TYPO3_DB']->sql_num_rows($result);
@@ -410,10 +411,10 @@ class recordList extends t3lib_recordList {
                                        Sys-notes for list module:
                                -->
                                        <table border="0" cellpadding="1" cellspacing="1" id="typo3-dblist-sysnotes">
-                                               <tr><td colspan="2" class="bgColor2">'.$iconImg.'<strong>'.$subject.'</strong></td></tr>
-                                               <tr><td class="bgColor4">'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.category',1).'</td><td class="bgColor4">'.$fields['Category:'].'</td></tr>
-                                               <tr><td class="bgColor4">'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.author',1).'</td><td class="bgColor4">'.$fields['Author:'].'</td></tr>
-                                               <tr><td class="bgColor4">'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.note',1).'</td><td class="bgColor4">'.$fields['Note:'].'</td></tr>
+                                               <tr><td colspan="2" class="bgColor2">' . $iconImg . '<strong>' . $subject . '</strong></td></tr>
+                                               <tr><td class="bgColor4">' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.category', 1) . '</td><td class="bgColor4">' . $fields['Category:'] . '</td></tr>
+                                               <tr><td class="bgColor4">' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.author', 1) . '</td><td class="bgColor4">' . $fields['Author:'] . '</td></tr>
+                                               <tr><td class="bgColor4">' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.note', 1) . '</td><td class="bgColor4">' . $fields['Note:'] . '</td></tr>
                                        </table>
                                ';
                        }
@@ -442,8 +443,8 @@ class recordList extends t3lib_recordList {
                if (is_array($this->displayFields)) {
                        reset($this->displayFields);
                        $tKey = key($this->displayFields);
-                       $dispFields[$tKey]=$this->displayFields[$tKey];
-                       $GLOBALS['BE_USER']->pushModuleData('list/displayFields',$dispFields);
+                       $dispFields[$tKey] = $this->displayFields[$tKey];
+                       $GLOBALS['BE_USER']->pushModuleData('list/displayFields', $dispFields);
                }
 
                        // Setting result:
@@ -484,7 +485,7 @@ class recordList extends t3lib_recordList {
                        ? 'ORDER BY ' . $GLOBALS['TCA'][$table]['ctrl']['sortby']
                        : $GLOBALS['TCA'][$table]['ctrl']['default_sortby']);
                if ($this->sortField) {
-                       if (in_array($this->sortField,$this->makeFieldList($table,1))) {
+                       if (in_array($this->sortField, $this->makeFieldList($table, 1))) {
                                $orderBy = 'ORDER BY '.$this->sortField;
                                if ($this->sortRev)     $orderBy.=' DESC';
                        }
@@ -613,8 +614,8 @@ class recordList extends t3lib_recordList {
                                                                }
                                                        }
                                                        if ($fieldConfig['type'] == 'text' ||
-                                                                       $fieldConfig['type'] == 'flex' ||
-                                                                       ($fieldConfig['type'] == 'input' && (!$fieldConfig['eval'] || !preg_match('/date|time|int/',$fieldConfig['eval'])))) {
+                                                               $fieldConfig['type'] == 'flex' ||
+                                                               ($fieldConfig['type'] == 'input' && (!$fieldConfig['eval'] || !preg_match('/date|time|int/', $fieldConfig['eval'])))) {
                                                                $whereParts[] = sprintf($format, $fieldName, $like);
                                                        }
                                                }
@@ -691,8 +692,8 @@ class recordList extends t3lib_recordList {
                $origCode = $code;
 
                        // If the title is blank, make a "no title" label:
-               if (!strcmp($code,'')) {
-                       $code = '<i>['.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.no_title',1).']</i> - '.htmlspecialchars(t3lib_div::fixed_lgd_cs(t3lib_BEfunc::getRecordTitle($table,$row),$GLOBALS['BE_USER']->uc['titleLen']));
+               if (!strcmp($code, '')) {
+                       $code = '<i>[' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.no_title', 1) . ']</i> - ' . htmlspecialchars(t3lib_div::fixed_lgd_cs(t3lib_BEfunc::getRecordTitle($table, $row), $GLOBALS['BE_USER']->uc['titleLen']));
                } else {
                        $code = htmlspecialchars(t3lib_div::fixed_lgd_cs($code, $this->fixedL));
                        if ($code != htmlspecialchars($origCode)) {
@@ -704,7 +705,7 @@ class recordList extends t3lib_recordList {
                        case 'edit':
                                        // If the listed table is 'pages' we have to request the permission settings for each page:
                                if ($table == 'pages') {
-                                       $localCalcPerms = $GLOBALS['BE_USER']->calcPerms(t3lib_BEfunc::getRecord('pages',$row['uid']));
+                                       $localCalcPerms = $GLOBALS['BE_USER']->calcPerms(t3lib_BEfunc::getRecord('pages', $row['uid']));
                                        $permsEdit = $localCalcPerms&2;
                                } else {
                                        $permsEdit = $this->calcPerms&16;
@@ -740,7 +741,7 @@ class recordList extends t3lib_recordList {
                                if ($table == 'pages') {
                                        $code = '<a href="' . htmlspecialchars($this->listURL($uid, '', 'firstElementNumber')) . '" onclick="setHighlight(' . $uid . ')">' . $code . '</a>';
                                } else {
-                                       $code = $this->linkUrlMail($code,$origCode);
+                                       $code = $this->linkUrlMail($code, $origCode);
                                }
                        break;
                }
@@ -759,7 +760,7 @@ class recordList extends t3lib_recordList {
 
                        // Check for URL:
                $schema = parse_url($testString);
-               if ($schema['scheme'] && t3lib_div::inList('http,https,ftp',$schema['scheme'])) {
+               if ($schema['scheme'] && t3lib_div::inList('http,https,ftp', $schema['scheme'])) {
                        return '<a href="'.htmlspecialchars($testString).'" target="_blank">'.$code.'</a>';
                }
 
index 81ef151..57758c7 100644 (file)
@@ -395,12 +395,12 @@ class localRecordList extends recordList {
                        $this->firstElementNumber = $this->firstElementNumber - 2;
                        $this->iLimit = $this->iLimit + 2;
                                // (API function from class.db_list.inc)
-                       $queryParts = $this->makeQueryArray($table, $id,$addWhere,$selFieldList);
+                       $queryParts = $this->makeQueryArray($table, $id, $addWhere, $selFieldList);
                        $this->firstElementNumber = $this->firstElementNumber + 2;
                        $this->iLimit = $this->iLimit - 2;
                } else {
                                // (API function from class.db_list.inc)
-                       $queryParts = $this->makeQueryArray($table, $id,$addWhere,$selFieldList);
+                       $queryParts = $this->makeQueryArray($table, $id, $addWhere, $selFieldList);
                }
                        // Finding the total amount of records on the page (API function from class.db_list.inc)
                $this->setTotalItems($queryParts);
@@ -575,7 +575,7 @@ class localRecordList extends recordList {
                                                $hasMore = ($this->totalItems > $this->itemsLimitSingleTable);
                                                $iOut .= '<tr><td colspan="' . count($this->fieldArray) . '" style="padding:5px;">
                                                                <a href="'.htmlspecialchars($this->listURL() . '&table=' . rawurlencode($table)) . '">' .
-                                                               '<img' . t3lib_iconWorks::skinImg($this->backPath,'gfx/pildown.gif', 'width="14" height="14"') .' alt="" />'.
+                                                               '<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/pildown.gif', 'width="14" height="14"') .' alt="" />'.
                                                                ' <i>[1 - ' . $countOnFirstPage . ($hasMore ? '+' : '') . ']</i></a>
                                                                </td></tr>';
                                                }
@@ -708,11 +708,11 @@ class localRecordList extends recordList {
                                } elseif ($fCol == '_REF_') {
                                        $theData[$fCol] = $this->createReferenceHtml($table, $row['uid']);
                                } elseif ($fCol == '_CONTROL_') {
-                                       $theData[$fCol]=$this->makeControl($table,$row);
+                                       $theData[$fCol] = $this->makeControl($table, $row);
                                } elseif ($fCol == '_AFTERCONTROL_' || $fCol == '_AFTERREF_') {
                                        $theData[$fCol] = '&nbsp;';
                                } elseif ($fCol == '_CLIPBOARD_') {
-                                       $theData[$fCol]=$this->makeClip($table,$row);
+                                       $theData[$fCol] = $this->makeClip($table, $row);
                                } elseif ($fCol == '_LOCALIZATION_') {
                                        list($lC1, $lC2) = $this->makeLocalizationPanel($table, $row);
                                        $theData[$fCol] = $lC1;
@@ -735,7 +735,7 @@ class localRecordList extends recordList {
 
                                // Add row to CSV list:
                        if ($this->csvOutput) {
-                               $this->addToCSV($row,$table);
+                               $this->addToCSV($row, $table);
                        }
 
                        // Add classes to table cells
@@ -897,7 +897,7 @@ class localRecordList extends recordList {
                                                if ($this->calcPerms & ($table == 'pages'?8:16) && $this->showNewRecLink($table)) {
                                                        if ($table == 'tt_content' && $this->newWizards) {
                                                                        //  If mod.web_list.newContentWiz.overrideWithExtension is set, use that extension's create new content wizard instead:
-                                                               $tmpTSc = t3lib_BEfunc::getModTSconfig($this->pageinfo['uid'],'mod.web_list');
+                                                               $tmpTSc = t3lib_BEfunc::getModTSconfig($this->pageinfo['uid'], 'mod.web_list');
                                                                $tmpTSc = $tmpTSc['properties']['newContentWiz.']['overrideWithExtension'];
                                                                $newContentWizScriptPath = $this->backPath.t3lib_extMgm::isLoaded($tmpTSc) ? (t3lib_extMgm::extRelPath($tmpTSc).'mod1/db_new_content_el.php') : 'sysext/cms/layout/db_new_content_el.php';
 
@@ -1142,7 +1142,7 @@ class localRecordList extends recordList {
 
                        // If the listed table is 'pages' we have to request the permission settings for each page:
                if ($table == 'pages') {
-                       $localCalcPerms = $GLOBALS['BE_USER']->calcPerms(t3lib_BEfunc::getRecord('pages',$row['uid']));
+                       $localCalcPerms = $GLOBALS['BE_USER']->calcPerms(t3lib_BEfunc::getRecord('pages', $row['uid']));
                }
 
                        // This expresses the edit permissions for this particular element:
@@ -1222,7 +1222,7 @@ class localRecordList extends recordList {
                                }
 
                                        // "Edit Perms" link:
-                               if ($table == 'pages' && $GLOBALS['BE_USER']->check('modules','web_perm') && t3lib_extMgm::isLoaded('perm')) {
+                               if ($table == 'pages' && $GLOBALS['BE_USER']->check('modules', 'web_perm') && t3lib_extMgm::isLoaded('perm')) {
                                        $cells['perms'] =
                                                '<a href="' .
                                                        htmlspecialchars(
@@ -1233,7 +1233,7 @@ class localRecordList extends recordList {
                                                '">'.
                                                        t3lib_iconWorks::getSpriteIcon('status-status-locked') .
                                                '</a>';
-                               } elseif (!$this->table && $GLOBALS['BE_USER']->check('modules','web_perm')) {
+                               } elseif (!$this->table && $GLOBALS['BE_USER']->check('modules', 'web_perm')) {
                                        $cells['perms'] = $this->spaceIcon;
                                }
 
@@ -1270,9 +1270,9 @@ class localRecordList extends recordList {
                                        }
                                        if ($this->currentTable['next'][$row['uid']])   {       // Down
                                                $params='&cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['next'][$row['uid']];
-                                               $cells['moveDown']='<a href="#" onclick="'.htmlspecialchars('return jumpToUrl(\''.$GLOBALS['SOBE']->doc->issueCommand($params,-1).'\');').'" title="'.$GLOBALS['LANG']->getLL('moveDown', TRUE) . '">' .
-                                                                       t3lib_iconWorks::getSpriteIcon('actions-move-down') .
-                                                               '</a>';
+                                               $cells['moveDown'] = '<a href="#" onclick="' . htmlspecialchars('return jumpToUrl(\'' . $GLOBALS['SOBE']->doc->issueCommand($params, -1) . '\');') . '" title="' . $GLOBALS['LANG']->getLL('moveDown', TRUE) . '">' .
+                                                       t3lib_iconWorks::getSpriteIcon('actions-move-down') .
+                                                       '</a>';
                                        } else {
                                                $cells['moveDown'] = $this->spaceIcon;
                                        }
@@ -1301,7 +1301,7 @@ class localRecordList extends recordList {
 
                                        // "Delete" link:
                                if (($table == 'pages' && ($localCalcPerms&4)) || ($table != 'pages' && ($this->calcPerms&16))) {
-                                       $titleOrig = t3lib_BEfunc::getRecordTitle($table,$row,FALSE,TRUE);
+                                       $titleOrig = t3lib_BEfunc::getRecordTitle($table, $row, FALSE, TRUE);
                                        $title = t3lib_div::slashJS(t3lib_div::fixed_lgd_cs($titleOrig, $this->fixedL), 1);
                                        $params = '&cmd['.$table.']['.$row['uid'].'][delete]=1';
 
@@ -1333,7 +1333,7 @@ class localRecordList extends recordList {
                                        }
                                                // Down (Paste as subpage to the page right above)
                                        if ($this->currentTable['prevUid'][$row['uid']]) {
-                                               $localCalcPerms = $GLOBALS['BE_USER']->calcPerms(t3lib_BEfunc::getRecord('pages',$this->currentTable['prevUid'][$row['uid']]));
+                                               $localCalcPerms = $GLOBALS['BE_USER']->calcPerms(t3lib_BEfunc::getRecord('pages', $this->currentTable['prevUid'][$row['uid']]));
                                                if ($localCalcPerms&8) {
                                                        $params='&cmd['.$table.']['.$row['uid'].'][move]='.$this->currentTable['prevUid'][$row['uid']];
                                                        $cells['moveRight'] = '<a href="#" onclick="' . htmlspecialchars('return jumpToUrl(\'' . $GLOBALS['SOBE']->doc->issueCommand($params, -1) . '\');') . '" title="' . $GLOBALS['LANG']->getLL('nextLevel', TRUE) . '">' .
@@ -1360,9 +1360,9 @@ class localRecordList extends recordList {
                 */
                if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks'])) {
                        $stat = '';
-                       $_params = array($table,$row['uid']);
+                       $_params = array($table, $row['uid']);
                        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks'] as $_funcRef) {
-                               $stat .= t3lib_div::callUserFunction($_funcRef,$_params,$this);
+                               $stat .= t3lib_div::callUserFunction($_funcRef, $_params, $this);
                        }
                        $cells['stat'] = $stat;
                }
@@ -1384,8 +1384,8 @@ class localRecordList extends recordList {
 
                        // Compile items into a DIV-element:
                return '
-                                                                                       <!-- CONTROL PANEL: '.$table.':'.$row['uid'].' -->
-                                                                                       <div class="typo3-DBctrl">'.implode('',$cells).'</div>';
+                                                                                       <!-- CONTROL PANEL: ' . $table . ':' . $row['uid'] . ' -->
+                                                                                       <div class="typo3-DBctrl">' . implode('', $cells) . '</div>';
        }
 
        /**
@@ -1409,7 +1409,7 @@ class localRecordList extends recordList {
                if ($this->clipObj->current=='normal') {
 
                                // Show copy/cut icons:
-                       $isSel = (string)$this->clipObj->isSelected($table,$row['uid']);
+                       $isSel = (string)$this->clipObj->isSelected($table, $row['uid']);
                        $cells['copy'] = $isL10nOverlay ? $this->spaceIcon : '<a href="#" onclick="' . htmlspecialchars('return jumpSelf(\'' . $this->clipObj->selUrlDB($table, $row['uid'], 1, ($isSel=='copy'), array('returnUrl'=>'')) . '\');') . '" title="'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:cm.copy', TRUE) . '">' .
                                                ((!$isSel=='copy') ? t3lib_iconWorks::getSpriteIcon('actions-edit-copy') : t3lib_iconWorks::getSpriteIcon('actions-edit-copy-release')) .
                                        '</a>';
@@ -1424,7 +1424,7 @@ class localRecordList extends recordList {
                        $this->CBnames[] = $n;
 
                                // Check if the current element is selected and if so, prepare to set the checkbox as selected:
-                       $checked = ($this->clipObj->isSelected($table,$row['uid'])?' checked="checked"':'');
+                       $checked = ($this->clipObj->isSelected($table, $row['uid']) ? ' checked="checked"' : '');
 
                                // If the "duplicateField" value is set then select all elements which are duplicates...
                        if ($this->duplicateField && isset($row[$this->duplicateField])) {
@@ -1473,8 +1473,8 @@ class localRecordList extends recordList {
                }
 
                        // Compile items into a DIV-element:
-               return '                                                        <!-- CLIPBOARD PANEL: '.$table.':'.$row['uid'].' -->
-                                                                                       <div class="typo3-clipCtrl">'.implode('',$cells).'</div>';
+               return '                                                        <!-- CLIPBOARD PANEL: ' . $table . ':' . $row['uid'] . ' -->
+                                                                                       <div class="typo3-clipCtrl">' . implode('', $cells) . '</div>';
        }
 
        /**
@@ -1617,12 +1617,12 @@ class localRecordList extends recordList {
                                ? rtrim($GLOBALS['LANG']->sL($GLOBALS['TCA'][$table]['columns'][$fN]['label']), ':')
                                : '[' . $fN . ']');
                        $opt[] = '
-                                                                                       <option value="'.$fN.'"'.(in_array($fN,$setFields)?' selected="selected"':'').'>'.htmlspecialchars($fL).'</option>';
+                                                                                       <option value="' . $fN . '"' . (in_array($fN, $setFields) ? ' selected="selected"' : '') . '>' . htmlspecialchars($fL) . '</option>';
                }
 
                        // Compile the options into a multiple selector box:
                $lMenu = '
-                                                                               <select size="'.t3lib_utility_Math::forceIntegerInRange(count($fields)+1,3,20).'" multiple="multiple" name="displayFields['.$table.'][]">'.implode('',$opt).'
+                                                                               <select size="' . t3lib_utility_Math::forceIntegerInRange(count($fields) + 1, 3, 20) . '" multiple="multiple" name="displayFields[' . $table . '][]">' . implode('', $opt) . '
                                                                                </select>
                                ';
 
@@ -1671,7 +1671,7 @@ class localRecordList extends recordList {
         * @return boolean
         */
        function clipNumPane() {
-               return in_Array('_CLIPBOARD_',$this->fieldArray) && $this->clipObj->current!='normal';
+               return in_Array('_CLIPBOARD_', $this->fieldArray) && $this->clipObj->current != 'normal';
        }
 
        /**
@@ -1694,7 +1694,7 @@ class localRecordList extends recordList {
 
                        //       Create the sort link:
                $sortUrl = $this->listURL('', -1, 'sortField,sortRev,table,firstElementNumber') . '&table=' . $table . '&sortField=' . $field . '&sortRev=' . ($this->sortRev || ($this->sortField != $field) ? 0 : 1);
-               $sortArrow = ($this->sortField==$field?'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/red'.($this->sortRev?'up':'down').'.gif','width="7" height="4"').' alt="" />':'');
+               $sortArrow = ($this->sortField == $field ? '<img' . t3lib_iconWorks::skinImg($this->backPath, 'gfx/red' . ($this->sortRev ? 'up' : 'down') . '.gif', 'width="7" height="4"') . ' alt="" />' : '');
 
                        // Return linked field:
                return '<a href="'.htmlspecialchars($sortUrl).'">'.$code.
@@ -1711,7 +1711,7 @@ class localRecordList extends recordList {
         */
        function recPath($pid) {
                if (!isset($this->recPath_cache[$pid])) {
-                       $this->recPath_cache[$pid] = t3lib_BEfunc::getRecordPath($pid,$this->perms_clause,20);
+                       $this->recPath_cache[$pid] = t3lib_BEfunc::getRecordPath($pid, $this->perms_clause, 20);
                }
                return $this->recPath_cache[$pid];
        }
@@ -1832,7 +1832,7 @@ class localRecordList extends recordList {
                header('Content-Disposition: attachment; filename='.$filename);
 
                        // Printing the content of the CSV lines:
-               echo implode(chr(13).chr(10),$this->csvLines);
+               echo implode(chr(13) . chr(10), $this->csvLines);
 
                        // Exits:
                exit;
index 7e2b6ae..7ab575d 100644 (file)
@@ -294,19 +294,19 @@ class fileList extends t3lib_recordList {
                                $table = '_FILE';
                                $elFromTable = $this->clipObj->elFromTable($table);
                                if (count($elFromTable)) {
-                                       $cells[] = '<a href="' . htmlspecialchars($this->clipObj->pasteUrl('_FILE',$this->folderObject->getCombinedIdentifier())) . '" onclick="return ' . htmlspecialchars($this->clipObj->confirmMsg('_FILE', $this->path, 'into', $elFromTable)) . '" title="' . $GLOBALS['LANG']->getLL('clip_paste', 1) . '">' .
+                                       $cells[] = '<a href="' . htmlspecialchars($this->clipObj->pasteUrl('_FILE', $this->folderObject->getCombinedIdentifier())) . '" onclick="return ' . htmlspecialchars($this->clipObj->confirmMsg('_FILE', $this->path, 'into', $elFromTable)) . '" title="' . $GLOBALS['LANG']->getLL('clip_paste', 1) . '">' .
                                                t3lib_iconWorks::getSpriteIcon('actions-document-paste-after') .
                                        '</a>';
                                }
                                if ($this->clipObj->current!='normal' && $iOut) {
-                                       $cells[]=$this->linkClipboardHeaderIcon(t3lib_iconWorks::getSpriteIcon('actions-edit-copy', array('title' => $GLOBALS['LANG']->getLL('clip_selectMarked', 1))), $table,'setCB');
-                                       $cells[]=$this->linkClipboardHeaderIcon(t3lib_iconWorks::getSpriteIcon('actions-edit-delete', array('title' => $GLOBALS['LANG']->getLL('clip_deleteMarked'))), $table,'delete',$GLOBALS['LANG']->getLL('clip_deleteMarkedWarning'));
+                                       $cells[]=$this->linkClipboardHeaderIcon(t3lib_iconWorks::getSpriteIcon('actions-edit-copy', array('title' => $GLOBALS['LANG']->getLL('clip_selectMarked', 1))), $table, 'setCB');
+                                       $cells[]=$this->linkClipboardHeaderIcon(t3lib_iconWorks::getSpriteIcon('actions-edit-delete', array('title' => $GLOBALS['LANG']->getLL('clip_deleteMarked'))), $table, 'delete', $GLOBALS['LANG']->getLL('clip_deleteMarkedWarning'));
                                        $onClick = 'checkOffCB(\'' . implode(',', $this->CBnames) . '\', this); return false;';
                                        $cells[] = '<a class="cbcCheckAll" rel="" href="#" onclick="' . htmlspecialchars($onClick) . '" title="' . $GLOBALS['LANG']->getLL('clip_markRecords', TRUE) . '">' .
                                                        t3lib_iconWorks::getSpriteIcon('actions-document-select').
                                                '</a>';
                                }
-                               $theData[$v] = implode('',$cells);
+                               $theData[$v] = implode('', $cells);
                        } else {        // Normal row:
                                $theT = $this->linkWrapSort($GLOBALS['LANG']->getLL('c_' . $v, 1), $this->folderObject->getCombinedIdentifier(), $v);
                                $theData[$v] = $theT;
@@ -456,7 +456,7 @@ class fileList extends t3lib_recordList {
                $fileUrl = $fileObject->getPublicUrl(TRUE);
                if ($fileUrl) {
                        $aOnClick = "return top.openUrlInWindow('" . $fileUrl . "', 'WebFile');";
-                       $code = '<a href="#" title="'.htmlspecialchars($code).'" onclick="'.htmlspecialchars($aOnClick).'">'.t3lib_div::fixed_lgd_cs($code,$this->fixedL).'</a>';
+                       $code = '<a href="#" title="' . htmlspecialchars($code) . '" onclick="' . htmlspecialchars($aOnClick) . '">' . t3lib_div::fixed_lgd_cs($code, $this->fixedL) . '</a>';
                }
                return $code;
        }
@@ -629,16 +629,16 @@ class fileList extends t3lib_recordList {
                if ($this->clipObj->current == 'normal') {
                        $isSel = $this->clipObj->isSelected('_FILE', $md5);
                        $cells[]='<a href="' . htmlspecialchars($this->clipObj->selUrlFile($fullIdentifier, 1, ($isSel == 'copy'))) . '">' .
-                                               t3lib_iconWorks::getSpriteIcon('actions-edit-copy'.($isSel=='copy'?'-release':''),array('title'=>$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.copy',1))).
-                                               '</a>';
+                               t3lib_iconWorks::getSpriteIcon('actions-edit-copy' . ($isSel == 'copy' ? '-release' : ''), array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.copy', 1))) .
+                               '</a>';
                        $cells[]='<a href="' . htmlspecialchars($this->clipObj->selUrlFile($fullIdentifier, 0, ($isSel == 'cut'))) . '">' .
-                                               t3lib_iconWorks::getSpriteIcon('actions-edit-cut'.($isSel=='cut'?'-release':''),array('title'=>$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.cut',1))).
-                                               '</a>';
+                               t3lib_iconWorks::getSpriteIcon('actions-edit-cut' . ($isSel == 'cut' ? '-release' : ''), array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:cm.cut', 1))) .
+                               '</a>';
                } else {        // For numeric pads, add select checkboxes:
                        $n = '_FILE|'.$md5;
                        $this->CBnames[] = $n;
 
-                       $checked = ($this->clipObj->isSelected('_FILE',$md5)?' checked="checked"':'');
+                       $checked = ($this->clipObj->isSelected('_FILE', $md5) ? ' checked="checked"' : '');
                        $cells[] = '<input type="hidden" name="CBH['.$n.']" value="0" />'.
                                        '<input type="checkbox" name="CBC[' . $n . ']" value="' . htmlspecialchars($fullIdentifier) . '" class="smallCheckboxes"' . $checked . ' />';
                }
@@ -654,8 +654,8 @@ class fileList extends t3lib_recordList {
                        // Compile items into a DIV-element:
                return '                                                        <!-- CLIPBOARD PANEL: -->
                                                                                        <div class="typo3-clipCtrl">
-                                                                                               '.implode('
-                                                                                               ',$cells).'
+                                                                                               ' . implode('
+                                                                                               ', $cells) . '
                                                                                        </div>';
        }
 
@@ -760,7 +760,7 @@ class fileList extends t3lib_recordList {
                        }
                }
 
-               return count($infoData) ? '<a href="#" onclick="'.htmlspecialchars('top.launchView( \'_FILE\', \'' . $fileOrFolderObject->getCombinedIdentifier() . '\'); return false;').'" title="'.htmlspecialchars(t3lib_div::fixed_lgd_cs(implode(' / ',$infoData),100)).'">' . count($infoData) . '</a>' : '-';
+               return count($infoData) ? '<a href="#" onclick="' . htmlspecialchars('top.launchView( \'_FILE\', \'' . $fileOrFolderObject->getCombinedIdentifier() . '\'); return false;') . '" title="' . htmlspecialchars(t3lib_div::fixed_lgd_cs(implode(' / ', $infoData), 100)) . '">' . count($infoData) . '</a>' : '-';
        }
 }