Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | protected function getContentToPrint(): string |
||
45 | { |
||
46 | $markdownContentParser = MarkdownContentParserFacade::getInstance(); |
||
47 | try { |
||
48 | return $markdownContentParser->getContent('about.md', '', [ContentParserOptions::TAB_CONTENT => true]); |
||
49 | } catch (InvalidArgumentException $e) { |
||
50 | return sprintf( |
||
51 | '<p>%s</p>', |
||
52 | \__('Oops, there was a problem loading the page', 'graphql-api') |
||
53 | ); |
||
67 |