mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing formatting.
This commit is contained in:
parent
a38846b611
commit
a1124e36aa
1 changed files with 3 additions and 3 deletions
|
@ -625,14 +625,14 @@ class ShellDispatcher {
|
|||
$columns = max(1, floor($width / 30));
|
||||
$rows = ceil(count($shellList) / $columns);
|
||||
|
||||
foreach($shellList as $shell => $types) {
|
||||
foreach ($shellList as $shell => $types) {
|
||||
sort($types);
|
||||
$shellList[$shell] = str_pad($shell . ' [' . implode ($types, ', ') . ']', $width / $columns);
|
||||
}
|
||||
$out = array_chunk($shellList, $rows);
|
||||
for($i = 0; $i < $rows; $i++) {
|
||||
for ($i = 0; $i < $rows; $i++) {
|
||||
$row = '';
|
||||
for($j = 0; $j < $columns; $j++) {
|
||||
for ($j = 0; $j < $columns; $j++) {
|
||||
if (!isset($out[$j][$i])) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue