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 ( 2b69d4...0b7fa2 )
by Leonardo
14:54
created

MarkdownContentParser   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 23
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A convertMarkdownToHTML() 0 3 1
A getHTMLContent() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GraphQLAPI\GraphQLAPI\ContentProcessors;
6
7
use GraphQLAPI\MarkdownConvertor\MarkdownConvertorInterface;
8
9
class MarkdownContentParser extends AbstractContentParser implements MarkdownContentParserInterface
10
{
11
    protected MarkdownConvertorInterface $markdownConvertorInterface;
12
13
    function __construct(MarkdownConvertorInterface $markdownConvertorInterface)
14
    {
15
        $this->markdownConvertorInterface = $markdownConvertorInterface;
16
    }
17
18
    /**
19
     * Parse the file's Markdown into HTML Content
20
     */
21
    protected function getHTMLContent(string $fileContent): string
22
    {
23
        return $this->convertMarkdownToHTML($fileContent);
24
    }
25
26
    /**
27
     * Parse the file's Markdown into HTML Content
28
     */
29
    public function convertMarkdownToHTML(string $markdownContent): string
30
    {
31
        return $this->markdownConvertorInterface->convertMarkdownToHTML($markdownContent);
0 ignored issues
show
Bug introduced by
The method convertMarkdownToHTML() does not exist on GraphQLAPI\MarkdownConve...kdownConvertorInterface. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

31
        return $this->markdownConvertorInterface->/** @scrutinizer ignore-call */ convertMarkdownToHTML($markdownContent);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
32
    }
33
}
34