Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
26 | 19 | public function titleAndText( array &$elementJson ) { |
|
27 | 19 | $elementJson['title'] = $this->parser->wikitextToHtml( $elementJson['title'] ); |
|
28 | 19 | $elementJson['text'] = $this->parser->wikitextToHtml( $elementJson['text'] ); |
|
29 | |||
30 | 19 | $hasTitleAndText = $elementJson['title'] !== '' && $elementJson['text'] !== ''; |
|
31 | 19 | $elementJson['text'] = ( $hasTitleAndText ? '<b>' . $elementJson['title'] . '</b><hr />' : $elementJson['title'] ) . $elementJson['text']; |
|
32 | 19 | $elementJson['title'] = strip_tags( $elementJson['title'] ); |
|
33 | 19 | } |
|
34 | |||
35 | } |