public function barSetup($bar)
    {
        // the finished part of the bar
        $bar->setBarCharacter('<comment>=</comment>');

        // the unfinished part of the bar
        $bar->setEmptyBarCharacter('-');

        // the progress character
        $bar->setProgressCharacter('>');

        // the 'layout' of the bar
        $bar->setFormat(' [%bar%] ');

        $bar->setBarWidth(20);

        return $bar;
    }
public function barSetup($bar)
    {
        // the finished part of the bar
        $bar->setBarCharacter('<comment>=</comment>');

        // the unfinished part of the bar
        $bar->setEmptyBarCharacter('-');

        // the progress character
        $bar->setProgressCharacter('>');

        // the 'layout' of the bar
        $bar->setFormat(' [%bar%] ');

        $bar->setBarWidth(20);

        return $bar;
    }
public function barSetup ( $ bar ) { // the finished part of the bar
 $ bar -> setBarCharacter ( '<comment>=</comment>' ) ; // the unfinished part of the bar
 $ bar -> setEmptyBarCharacter ( '-' ) ; // the progress character
 $ bar -> setProgressCharacter ( '>' ) ; // the 'layout' of the bar
 $ bar -> setFormat ( ' [%bar%] ' ) ; $ bar -> setBarWidth ( 20 ) ; return $ bar ; }
Setting custom formatting for the progress bar.

@param  object $bar Symfony ProgressBar instance

@return object $bar Symfony ProgressBar instance
Setting custom formatting for the progress bar .