Changeset 7655 for trunk/library/PEAR/PEAR/Frontend/CLI.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/library/PEAR/PEAR/Frontend/CLI.php
r5146 r7655 271 271 echo $this->bold("* Enter an answer for #" . $i . ": ({$prompts[$var]})\n"); 272 272 } 273 $i++;273 ++$i; 274 274 } 275 275 } … … 579 579 { 580 580 $highest = 1; 581 for ($i = 0; $i < count($columns); $i++) {581 for ($i = 0; $i < count($columns); ++$i) { 582 582 $col = &$columns[$i]; 583 583 if (isset($colparams[$i]) && !empty($colparams[$i]['wrap'])) { … … 642 642 $width = $widest; 643 643 } else { 644 for ($i = 0; $i < $ncols; $i++) {644 for ($i = 0; $i < $ncols; ++$i) { 645 645 if (!isset($width[$i])) { 646 646 $width[$i] = $widest[$i]; … … 672 672 } 673 673 674 for ($i = 0; $i < count($table_data); $i++) {674 for ($i = 0; $i < count($table_data); ++$i) { 675 675 extract($table_data[$i]); 676 676 if (!is_array($rowparams)) { … … 691 691 } 692 692 } else { 693 for ($c = 0; $c < count($data); $c++) {693 for ($c = 0; $c < count($data); ++$c) { 694 694 $rowlines[$c] = array($data[$c]); 695 695 } 696 696 } 697 697 698 for ($r = 0; $r < $height; $r++) {698 for ($r = 0; $r < $height; ++$r) { 699 699 $rowtext = ''; 700 for ($c = 0; $c < count($data); $c++) {700 for ($c = 0; $c < count($data); ++$c) { 701 701 if (isset($colparams[$c])) { 702 702 $attribs = array_merge($rowparams, $colparams);
Note: See TracChangeset
for help on using the changeset viewer.