Conditions | 4 |
Paths | 4 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
34 | 32 | public function renderPage( Page $page ) { |
|
35 | 32 | $title = $page->getTitle(); |
|
36 | |||
37 | 32 | if ( $this->pathStyle === self::PATH_NONE ) { |
|
38 | 4 | return $this->getBaseText( $title ); |
|
39 | } |
||
40 | |||
41 | 28 | if ( $this->pathStyle === self::PATH_NO_NS ) { |
|
42 | 3 | return $this->stripNs( $title->getFullText() ); |
|
43 | } |
||
44 | |||
45 | 25 | if ( $this->pathStyle === self::PATH_SUB_PAGE ) { |
|
46 | 18 | return $title->getSubpageText(); |
|
47 | } |
||
48 | |||
49 | 7 | return $title->getFullText(); |
|
50 | } |
||
51 | |||
67 |