ApiGen\Templating\Filters\UrlFilters::longDescription PHP Method

longDescription() public method

public longDescription ( ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface $element ) : string
$element ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface
return string
    public function longDescription(ElementReflectionInterface $element)
    {
        $long = $element->getLongDescription();
        // Merge lines
        $long = preg_replace_callback('~(?:<(code|pre)>.+?</\\1>)|([^<]*)~s', function ($matches) {
            return !empty($matches[2]) ? preg_replace('~\\n(?:(\\s+\\n){2,})+~', ' ', $matches[2]) : $matches[0];
        }, $long);
        return $this->doc($long, $element, true);
    }