GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( cf39f6...a305e6 )
by Leonardo
03:52
created

MarkdownContentParser::getHTMLContent()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\ContentProcessors;
6
7
use Parsedown;
8
9
class MarkdownContentParser extends AbstractContentParser implements MarkdownContentParserInterface
10
{
11
    /**
12
     * Parse the file's Markdown into HTML Content
13
     */
14
    protected function getHTMLContent(string $fileContent): string
15
    {
16
        return $this->convertMarkdownToHTML($fileContent);
17
    }
18
19
    /**
20
     * Parse the file's Markdown into HTML Content
21
     */
22
    public function convertMarkdownToHTML(string $markdownContent): string
23
    {
24
        return (new Parsedown())->text($markdownContent);
25
    }
26
}
27