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 ( c87318...99f3de )
by Bruno
30:58
created

OnurbYumlExtension::load()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 43
Code Lines 26

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 27
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 43
ccs 27
cts 27
cp 1
rs 8.8571
cc 1
eloc 26
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Onurb\Bundle\YumlBundle\DependencyInjection;
4
5
use Symfony\Component\DependencyInjection\ContainerBuilder;
6
use Symfony\Component\Config\FileLocator;
7
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
8
use Symfony\Component\DependencyInjection\Loader;
9
10
/**
11
 * This is the class that loads and manages your bundle configuration
12
 *
13
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
14
 */
15
class OnurbYumlExtension extends Extension
16
{
17
    /**
18
     * {@inheritdoc}
19
     */
20 22
    public function load(array $configs, ContainerBuilder $container)
21
    {
22 22
        $configuration = new Configuration();
23 22
        $configs = $this->processConfiguration($configuration, $configs);
24
25 22
        $container->setParameter(
26 22
            'onurb_yuml.show_fields_description',
27 22
            $configs['yuml_show_fields_description']
28
        );
29
30 22
        $container->setParameter(
31 22
            'onurb_yuml.colors',
32 22
            $configs['yuml_colors']
33
        );
34
35 22
        $container->setParameter(
36 22
            'onurb_yuml.notes',
37 22
            $configs['yuml_notes']
38
        );
39
40 22
        $container->setParameter(
41 22
            'onurb_yuml.extension',
42 22
            $configs['yuml_extension']
43
        );
44
45 22
        $container->setParameter(
46 22
            'onurb_yuml.style',
47 22
            $configs['yuml_style']
48
        );
49
50 22
        $container->setParameter(
51 22
            'onurb_yuml.direction',
52 22
            $configs['yuml_direction']
53
        );
54
55 22
        $container->setParameter(
56 22
            'onurb_yuml.scale',
57 22
            $configs['yuml_scale']
58
        );
59
60 22
        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
61 22
        $loader->load('services.yml');
62 22
    }
63
}
64