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   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 6
Bugs 0 Features 3
Metric Value
wmc 1
c 6
b 0
f 3
lcom 0
cbo 5
dl 0
loc 18
ccs 9
cts 9
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A load() 0 12 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