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

processUsesAndUsedbyAnnotations() private method

private processUsesAndUsedbyAnnotations ( string $value, ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface $reflectionElement ) : string
$value string
$reflectionElement ApiGen\Contracts\Parser\Reflection\ElementReflectionInterface
return string
    private function processUsesAndUsedbyAnnotations($value, ElementReflectionInterface $reflectionElement)
    {
        list($link, $description) = Strings::split($value);
        $separator = $reflectionElement instanceof ClassReflectionInterface || !$description ? ' ' : '<br>';
        if ($this->elementResolver->resolveElement($link, $reflectionElement) !== null) {
            $value = $this->typeLinks($link, $reflectionElement) . $separator . $description;
            return trim($value);
        }
        return null;
    }