Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
CodeCommentLinkerHtml
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 makeExternalLink
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 makeInternalLink
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace MediaWiki\Extension\CodeReview\Backend;
4
5use Linker;
6use MediaWiki\MediaWikiServices;
7use Title;
8
9class CodeCommentLinkerHtml extends CodeCommentLinker {
10
11    /**
12     * @param string $url
13     * @param string $text
14     * @return string
15     */
16    public function makeExternalLink( $url, $text ) {
17        return Linker::makeExternalLink( $url, $text );
18    }
19
20    /**
21     * @param Title $title
22     * @param string $text
23     * @return string
24     */
25    public function makeInternalLink( $title, $text ) {
26        $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
27        return $linkRenderer->makeLink( $title, $text );
28    }
29}