protected function getDocblockTagsSection($docblock)
    {
        $docblock = $this->sanitizeDocblock($docblock);
        preg_match('/^\s*\\'.self::TOKEN_ANNOTATION_IDENTIFIER.'/m', $docblock, $matches, PREG_OFFSET_CAPTURE);

        // return found docblock tag section or empty string
        return isset($matches[0]) ? substr($docblock, $matches[0][1]) : '';
    }
protected function getDocblockTagsSection($docblock)
    {
        $docblock = $this->sanitizeDocblock($docblock);
        preg_match('/^\s*\\'.self::TOKEN_ANNOTATION_IDENTIFIER.'/m', $docblock, $matches, PREG_OFFSET_CAPTURE);

        // return found docblock tag section or empty string
        return isset($matches[0]) ? substr($docblock, $matches[0][1]) : '';
    }
protected function getDocblockTagsSection ( $ docblock ) { $ docblock = $ this -> sanitizeDocblock ( $ docblock ) ; preg_match ( '/^\s*\\' . self :: TOKEN_ANNOTATION_IDENTIFIER . '/m' , $ docblock , $ matches , PREG_OFFSET_CAPTURE ) ; // return found docblock tag section or empty string return isset ( $ matches [ 0 ] ) ? substr ( $ docblock , $ matches [ 0 ] [ 1 ] ) : '' ; }
Filters docblock tags section, removing unwanted long and short descriptions

@param  string $docblock A docblok string without delimiters
@return string Tag section from given docblock
Filters docblock tags section removing unwanted long and short descriptions