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.

Configuration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 7
Bugs 0 Features 4
Metric Value
wmc 1
c 7
b 0
f 4
lcom 0
cbo 3
dl 0
loc 40
ccs 28
cts 28
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
B getConfigTreeBuilder() 0 34 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\Definition\Builder\TreeBuilder;
15
use Symfony\Component\Config\Definition\ConfigurationInterface;
16
17
class Configuration implements ConfigurationInterface
18
{
19
    /**
20
     * {@inheritDoc}
21
     */
22 4
    public function getConfigTreeBuilder()
23
    {
24 4
        $treeBuilder = new TreeBuilder();
25 4
        $rootNode = $treeBuilder->root('dpn_xml_sitemap');
26
27
        $rootNode
28 4
            ->children()
29 4
                ->scalarNode('http_cache')
30 4
                    ->defaultNull()
31 4
                    ->info('The length of time (in seconds) to cache the sitemap/sitemap_index xml\'s (a reverse proxy is required)')
32 4
                ->end()
33 4
                ->scalarNode('max_per_sitemap')
34 4
                    ->defaultValue(50000)
35 4
                    ->info('The number of url entries in a single sitemap')
36 4
                ->end()
37 4
                ->arrayNode('defaults')
38 4
                    ->info('The default options for sitemap URL entries to be used if not overridden')
39 4
                    ->addDefaultsIfNotSet()
40 4
                    ->children()
41 4
                        ->scalarNode('priority')
42 4
                            ->defaultNull()
43 4
                            ->info('Value between 0.0 and 1.0 or null for sitemap protocol default')
44 4
                        ->end()
45 4
                        ->scalarNode('changefreq')
46 4
                            ->defaultNull()
47 4
                            ->info('One of [always, hourly, daily, weekly, monthly, yearly, never] or null for sitemap protocol default')
48 4
                        ->end()
49 4
                    ->end()
50 4
                ->end()
51 4
            ->end()
52
        ;
53
54 4
        return $treeBuilder;
55
    }
56
}
57