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::getConfigTreeBuilder()   B
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 38
Code Lines 34

Duplication

Lines 0
Ratio 0 %

Importance

Changes 13
Bugs 0 Features 0
Metric Value
c 13
b 0
f 0
dl 0
loc 38
rs 8.8571
cc 1
eloc 34
nc 1
nop 0
1
<?php
2
3
namespace Strontium\PjaxBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * {@inheritdoc}
10
 */
11
class Configuration implements ConfigurationInterface
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function getConfigTreeBuilder()
17
    {
18
        $treeBuilder = new TreeBuilder();
19
        $rootNode = $treeBuilder->root('strontium_pjax');
20
21
        $rootNode
22
            ->addDefaultsIfNotSet()
23
            ->children()
24
                ->booleanNode('add_content_version')->defaultValue(false)->end()
25
                ->booleanNode('menu')->defaultValue(false)->end()
26
                ->scalarNode('version_generator')->defaultValue('pjax.version_generator.auth_token')->end()
27
                ->arrayNode('sections')
28
                    ->requiresAtLeastOneElement()
29
                    ->prototype('array')
30
                        ->children()
31
                            ->arrayNode('layouts')
32
                                ->requiresAtLeastOneElement()
33
                                ->prototype('scalar')->end()
34
                            ->end()
35
                            ->scalarNode('default_layout')
36
                                ->isRequired()
37
                                ->cannotBeEmpty()
38
                            ->end()
39
                            ->scalarNode('base_template')
40
                                ->isRequired()
41
                                ->cannotBeEmpty()
42
                            ->end()
43
                            ->scalarNode('pjax_template')
44
                                ->isRequired()
45
                                ->defaultValue('StrontiumPjaxBundle::pjax.html.twig')
46
                            ->end()
47
                        ->end()
48
                    ->end()
49
                ->end()
50
            ->end();
51
52
        return $treeBuilder;
53
    }
54
}
55