tags as $tag) { /** @var $tag phpDocumentor\Reflection\DocBlock\Tag\SeeTag */ if (get_class($tag) == 'phpDocumentor\Reflection\DocBlock\Tag\SeeTag') { $ref = $tag->getReference(); if (strpos($ref, '://') === false) { $see[] = '[[' . $ref . ']]'; } else { $see[] = $ref; } } } if (empty($see)) { return; } ?>