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.
Completed
Pull Request — master (#1)
by Pascal
03:33
created

ApiBundle::getContainerExtension()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 2

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 7
ccs 4
cts 4
cp 1
crap 2
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Saikootau\ApiBundle;
6
7
use Saikootau\ApiBundle\DependencyInjection\ApiBundleExtension;
8
use Symfony\Component\HttpKernel\Bundle\Bundle;
9
10
class ApiBundle extends Bundle
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15 2
    public function getContainerExtension()
16
    {
17 2
        if (!$this->extension instanceof ApiBundleExtension) {
18 2
            $this->extension = new ApiBundleExtension();
19
        }
20
21 2
        return $this->extension;
22
    }
23
}
24