public function format($useHTML = false) {
        $msgs = array();

        foreach ($this->messages as $msg) {
            $msgs[] = $msg->format($useHTML);
        }

        return implode(PHP_EOL . PHP_EOL, $msgs);
    }
public function format($useHTML = false) {
        $msgs = array();

        foreach ($this->messages as $msg) {
            $msgs[] = $msg->format($useHTML);
        }

        return implode(PHP_EOL . PHP_EOL, $msgs);
    }
public function format ( $ useHTML = false ) { $ msgs = array ( ) ; foreach ( $ this -> messages as $ msg ) { $ msgs [ ] = $ msg -> format ( $ useHTML ) ; } return implode ( PHP_EOL . PHP_EOL , $ msgs ) ; }
Returns a string-representation of all messages encountered

@param  boolean $useHTML Whether to use HTML for formatting
@return string
Returns a string - representation of all messages encountered