library/Garp/Cli/Ui/ProgressBar.php
public function display($message = null, $itemsLeftMessage = null) {
        $this->_verifyTotalValue();
        $this->_clearLine();
        $this->_renderProgress();

        if ($message) {
            echo self::SPACING;
            $itemsLeft = $this->_totalValue - $this->_currentValue;
            $itemsLeft = number_format($itemsLeft, 0, ',', '.');

            $output = $message . ', ' . sprintf($itemsLeftMessage, $itemsLeft);
            echo substr($output, 0, $this->_getMaximumMessageLength());
        }
    }
public function display($message = null, $itemsLeftMessage = null) {
        $this->_verifyTotalValue();
        $this->_clearLine();
        $this->_renderProgress();

        if ($message) {
            echo self::SPACING;
            $itemsLeft = $this->_totalValue - $this->_currentValue;
            $itemsLeft = number_format($itemsLeft, 0, ',', '.');

            $output = $message . ', ' . sprintf($itemsLeftMessage, $itemsLeft);
            echo substr($output, 0, $this->_getMaximumMessageLength());
        }
    }
public function display ( $ message = null , $ itemsLeftMessage = null ) { $ this -> _verifyTotalValue ( ) ; $ this -> _clearLine ( ) ; $ this -> _renderProgress ( ) ; if ( $ message ) { echo self :: SPACING ; $ itemsLeft = $ this -> _totalValue - $ this -> _currentValue ; $ itemsLeft = number_format ( $ itemsLeft , 0 , ',' , '.' ) ; $ output = $ message . ', ' . sprintf ( $ itemsLeftMessage , $ itemsLeft ) ; echo substr ( $ output , 0 , $ this -> _getMaximumMessageLength ( ) ) ; } }
Output the progressbar to the screen.

@param string $message           Optional message displayed next to the progress bar.
@param string $itemsLeftMessage  Indicate optional remaining value position with '%s'.
If you want to use this param, provide $message as well.
@return void
Output the progressbar to the screen .