private static function formatLineWithDescription(
        string $line,
        string $description,
        int $desciptionCharStart,
        int $descriptionLength,
        array &$lines
    ) {
        $description = preg_replace('/\n|\r/', '', $description);

        $spaceRepeat = $desciptionCharStart - strlen($line);

        $line .= str_repeat(' ', $spaceRepeat);

        $i = 0;

        foreach (
            self::descriptionTrimmer(
                $description,
                $desciptionCharStart,
                $descriptionLength
            )

            as $i => $piece
        ) {
            $lines[] = ($i === 0 ? $line : '').$piece;
        }

        if ($i > 0)
        {
            $lines[] = '';
        }
    }
private static function formatLineWithDescription(
        string $line,
        string $description,
        int $desciptionCharStart,
        int $descriptionLength,
        array &$lines
    ) {
        $description = preg_replace('/\n|\r/', '', $description);

        $spaceRepeat = $desciptionCharStart - strlen($line);

        $line .= str_repeat(' ', $spaceRepeat);

        $i = 0;

        foreach (
            self::descriptionTrimmer(
                $description,
                $desciptionCharStart,
                $descriptionLength
            )

            as $i => $piece
        ) {
            $lines[] = ($i === 0 ? $line : '').$piece;
        }

        if ($i > 0)
        {
            $lines[] = '';
        }
    }
private static function formatLineWithDescription ( string $ line , string $ description , int $ desciptionCharStart , int $ descriptionLength , array & $ lines ) { $ description = preg_replace ( '/\n|\r/' , '' , $ description ) ; $ spaceRepeat = $ desciptionCharStart - strlen ( $ line ) ; $ line .= str_repeat ( ' ' , $ spaceRepeat ) ; $ i = 0 ; foreach ( self :: descriptionTrimmer ( $ description , $ desciptionCharStart , $ descriptionLength ) as $ i => $ piece ) { $ lines [ ] = ( $ i === 0 ? $ line : '' ) . $ piece ; } if ( $ i > 0 ) { $ lines [ ] = '' ; } }
Format lines that have a description

@param string $line
the line to format
@param string $description
the description text
@param int $desciptionCharStart
the number of chars past a newline that the description column starts
@param int $descriptionLength
the hard-wrap length of the description
@param array &$lines
a reference to the collection of all lines
Format lines that have a description