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.
Test Failed
Push — master ( 659f53...df9043 )
by Peng
03:26
created

ApiExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 12 1
1
<?php
2
3
namespace Awin\ReportTask\Bundle\ReportBundle\DependencyInjection;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\DependencyInjection\Extension\Extension;
7
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
8
9
/**
10
 * Description of ApiExtension
11
 */
12
class ApiExtension extends Extension
13
{
14
15
    public function load(array $configs, ContainerBuilder $container)
16
    {
17
        $configuration = $this->processConfiguration(new Configuration(), $configs);
0 ignored issues
show
Unused Code introduced by
The assignment to $configuration is dead and can be removed.
Loading history...
18
19
        $loader = new YamlFileLoader(
20
            $container,
21
            new \Symfony\Component\Config\FileLocator([
22
                __DIR__ . '/../Resources/config/services'
23
            ])
24
        );
25
26
        $loader->load('controllers.yml');
27
    }
28
29
}