Conditions | 3 |
Paths | 2 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
18 | protected function fillParserOutput( Title $title, $revId, ParserOptions $options, |
||
19 | $generateHtml, ParserOutput &$output ) { |
||
20 | |||
21 | if ( $generateHtml && $this->isValid() ) { |
||
22 | $output->setText( |
||
23 | $this->getMapHtml() |
||
24 | . |
||
25 | Html::element( |
||
26 | 'script', |
||
27 | [], |
||
28 | 'var GeoJson =' . $this->beautifyJSON() . ';' |
||
29 | ) |
||
30 | ); |
||
31 | $output->addModules( 'ext.maps.leaflet.editor' ); |
||
32 | } else { |
||
33 | $output->setText( '' ); |
||
34 | } |
||
35 | } |
||
36 | |||
68 |