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.

DpnXmlSitemapExtension::load()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 5
Bugs 0 Features 3
Metric Value
c 5
b 0
f 3
dl 0
loc 12
ccs 9
cts 9
cp 1
rs 9.4286
cc 1
eloc 8
nc 1
nop 2
crap 1
1
<?php
2
3
/**
4
 * This file is part of the DpnXmlSitemapBundle package.
5
 *
6
 * (c) Björn Fromme <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the Resources/meta/LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Dpn\XmlSitemapBundle\DependencyInjection;
13
14
use Symfony\Component\Config\FileLocator;
15
use Symfony\Component\DependencyInjection\ContainerBuilder;
16
use Symfony\Component\DependencyInjection\Loader;
17
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
18
19
class DpnXmlSitemapExtension extends Extension
20
{
21
    /**
22
     * {@inheritDoc}
23
     */
24 4
    public function load(array $configs, ContainerBuilder $container)
25
    {
26 4
        $configuration = new Configuration();
27 4
        $config = $this->processConfiguration($configuration, $configs);
28
29 4
        $container->setParameter('dpn_xml_sitemap.defaults', $config['defaults']);
30 4
        $container->setParameter('dpn_xml_sitemap.http_cache', $config['http_cache']);
31 4
        $container->setParameter('dpn_xml_sitemap.max_per_sitemap', $config['max_per_sitemap']);
32
33 4
        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
34 4
        $loader->load('services.xml');
35 4
    }
36
}
37