phpDocumentor\Reflection\DocBlock::cleanInput PHP Method

cleanInput() protected method

Strips the asterisks from the DocBlock comment.
protected cleanInput ( string $comment ) : string
$comment string String containing the comment text.
return string
    protected function cleanInput($comment)
    {
        $comment = trim(preg_replace('#[ \\t]*(?:\\/\\*\\*|\\*\\/|\\*)?[ \\t]{0,1}(.*)?#u', '$1', $comment));
        // reg ex above is not able to remove */ from a single line docblock
        if (substr($comment, -2) == '*/') {
            $comment = trim(substr($comment, 0, -2));
        }
        // normalize strings
        $comment = str_replace(array("\r\n", "\r"), "\n", $comment);
        return $comment;
    }