Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | protected function getContentToPrint(): string |
||
27 | { |
||
28 | $markdownContentParser = MarkdownContentParserFacade::getInstance(); |
||
29 | try { |
||
30 | return $markdownContentParser->getContent('about.md', '', [ContentParserOptions::TAB_CONTENT => true]); |
||
31 | } catch (InvalidArgumentException $e) { |
||
32 | return sprintf( |
||
33 | '<p>%s</p>', |
||
34 | \__('Oops, there was a problem loading the page', 'graphql-api') |
||
35 | ); |
||
39 |