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.

ReportBundle   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 34
ccs 8
cts 8
cp 1
rs 10
wmc 4

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getContainerExtensionClass() 0 3 1
A getPath() 0 3 1
A getContainerExtension() 0 7 2
1
<?php
2
3
namespace Awin\ReportTask\Bundle\ReportBundle;
4
5
use Awin\ReportTask\Bundle\ReportBundle\DependencyInjection\ApiExtension;
6
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
9
/**
10
 * The base class for the BaseReportBundle, it belongs to customized symfony framework
11
 */
12
class ReportBundle extends Bundle
13
{
14
15
    /**
16
     * @var string
17
     */
18
    protected $name = 'ReportBundle';
19
20
    /**
21
     * @return string
22
     */
23 1
    public function getPath()
24
    {
25 1
        return __DIR__;
26
    }
27
28
    /**
29
     * @return ExtensionInterface
30
     */
31 2
    public function getContainerExtension()
32
    {
33 2
        if ($this->extension === null) {
34 2
            $this->extension = new ApiExtension();
35
        }
36
37 2
        return $this->extension;
38
    }
39
40
    /**
41
     * @return string
42
     */
43 1
    public function getContainerExtensionClass()
44
    {
45 1
        return ApiExtension::class;
46
    }
47
48
}
49