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.

BlogExtension::getDisqusShortname()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusBlogPlugin\Twig;
6
7
use Twig\Extension\AbstractExtension;
8
use Twig\TwigFunction;
9
10
final class     BlogExtension extends AbstractExtension
11
{
12
    /** @var string|null */
13
    private $disqusShortname;
14
15
    public function __construct(
16
        ?string $disqusShortname
17
    ) {
18
        $this->disqusShortname = $disqusShortname;
19
    }
20
21
    /**
22
     * @return TwigFunction[]
23
     */
24
    public function getFunctions(): array
25
    {
26
        return [
27
            new TwigFunction('disqus_shortname', [$this, 'getDisqusShortname'])
28
        ];
29
    }
30
31
    /**
32
     * @return string|null
33
     */
34
    public function getDisqusShortname(): ?string
35
    {
36
        return $this->disqusShortname;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getName(): string
43
    {
44
        return 'blog';
45
    }
46
}
47