lib/MwbExporter/Helper/Comment.php
protected static function getLine($line, $count, $format, $content, &$result)
    {
        // make sure format is an array
        $format = explode('|', $format);
        // is first line
        if (count($format) >= 3 && 1 === $line) {
            $result[] = $format[0];
        }
        // format line
        $result[] = rtrim(sprintf(count($format) >= 3 ? $format[1] : $format[0], $content));
        // is last line
        if (count($format) >= 3 && $count === $line) {
            $result[] = $format[2];
        }
    }
protected static function getLine($line, $count, $format, $content, &$result)
    {
        // make sure format is an array
        $format = explode('|', $format);
        // is first line
        if (count($format) >= 3 && 1 === $line) {
            $result[] = $format[0];
        }
        // format line
        $result[] = rtrim(sprintf(count($format) >= 3 ? $format[1] : $format[0], $content));
        // is last line
        if (count($format) >= 3 && $count === $line) {
            $result[] = $format[2];
        }
    }
protected static function getLine ( $ line , $ count , $ format , $ content , & $ result ) { // make sure format is an array $ format = explode ( '|' , $ format ) ; // is first line if ( count ( $ format ) >= 3 && 1 === $ line ) { $ result [ ] = $ format [ 0 ] ; } // format line $ result [ ] = rtrim ( sprintf ( count ( $ format ) >= 3 ? $ format [ 1 ] : $ format [ 0 ] , $ content ) ) ; // is last line if ( count ( $ format ) >= 3 && $ count === $ line ) { $ result [ ] = $ format [ 2 ] ; } }
Get comment line.

@param int $line  Current line number, start from 1
@param int $count  Total line number
@param array $format  Comment format
@param string $content  Line content
@param array $result Result array
Get comment line .