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