public static function firstLine(string $comment): string
    {
        $docLines = \preg_split('~\R~u', $comment);

        if (isset($docLines[1])) {
            return \trim($docLines[1], "/\t *");
        }

        return '';
    }
public static function firstLine(string $comment): string
    {
        $docLines = \preg_split('~\R~u', $comment);

        if (isset($docLines[1])) {
            return \trim($docLines[1], "/\t *");
        }

        return '';
    }
public static function firstLine ( string $ comment ) : string { $ docLines = \ preg_split ( '~\R~u' , $ comment ) ; if ( isset ( $ docLines [ 1 ] ) ) { return \ trim ( $ docLines [ 1 ] , "/\t *" ) ; } return '' ; }
Returns the first line of docBlock.
@param string $comment
@return string
Returns the first line of docBlock .