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
Push — master ( 6b0fd8...482be0 )
by Christian
08:16
created

Core23LastFmBundle::getContainerExtension()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * (c) Christian Gripp <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Core23\LastFmBundle;
13
14
use Core23\LastFmBundle\DependencyInjection\Core23LastFmExtension;
15
use Symfony\Component\HttpKernel\Bundle\Bundle;
16
17
final class Core23LastFmBundle extends Bundle
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getContainerExtension()
23
    {
24
        if (null === $this->extension) {
25
            $this->extension = new Core23LastFmExtension();
26
        }
27
28
        return $this->extension;
0 ignored issues
show
Comprehensibility Best Practice introduced by
The expression $this->extension; of type Symfony\Component\Depend...xtensionInterface|false adds false to the return on line 28 which is incompatible with the return type declared by the interface Symfony\Component\HttpKe...::getContainerExtension of type Symfony\Component\Depend...ExtensionInterface|null. It seems like you forgot to handle an error condition.
Loading history...
29
    }
30
}
31