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.

OnurbExcelExtension::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Onurb\Bundle\ExcelBundle\DependencyInjection;
4
5
use Symfony\Component\Config\FileLocator;
6
use Symfony\Component\DependencyInjection\ContainerBuilder;
7
use Symfony\Component\DependencyInjection\Loader;
8
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
9
10
/**
11
 * Class OnurbExcelExtension
12
 *
13
 * @link http://symfony.com/doc/current/cookbook/bundles/extension.html
14
 * @package Onurb\Bundle\ExcelBundle
15
 */
16
class OnurbExcelExtension extends Extension
17
{
18
    /**
19
     * {@inheritdoc}
20
     */
21 2
    public function load(array $configs, ContainerBuilder $container)
22
    {
23 2
        $configuration = new Configuration();
24 2
        $this->processConfiguration($configuration, $configs);
25
26 2
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
27 2
        $loader->load('services.yml');
28 2
    }
29
}
30