Fixing formatting.

This commit is contained in:
Mark Story 2010-02-28 11:35:56 -05:00
parent a38846b611
commit a1124e36aa

View file

@ -625,14 +625,14 @@ class ShellDispatcher {
$columns = max(1, floor($width / 30)); $columns = max(1, floor($width / 30));
$rows = ceil(count($shellList) / $columns); $rows = ceil(count($shellList) / $columns);
foreach($shellList as $shell => $types) { foreach ($shellList as $shell => $types) {
sort($types); sort($types);
$shellList[$shell] = str_pad($shell . ' [' . implode ($types, ', ') . ']', $width / $columns); $shellList[$shell] = str_pad($shell . ' [' . implode ($types, ', ') . ']', $width / $columns);
} }
$out = array_chunk($shellList, $rows); $out = array_chunk($shellList, $rows);
for($i = 0; $i < $rows; $i++) { for ($i = 0; $i < $rows; $i++) {
$row = ''; $row = '';
for($j = 0; $j < $columns; $j++) { for ($j = 0; $j < $columns; $j++) {
if (!isset($out[$j][$i])) { if (!isset($out[$j][$i])) {
continue; continue;
} }