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 40
Code Lines 36

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 40
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 36
nc 1
nop 0
1
<?php
2
3
namespace M6Web\Bundle\ApiExceptionBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * This is the class that validates and merges configuration from your app/config files
10
 */
11
class Configuration implements ConfigurationInterface
12
{
13
    /**
14
     * {@inheritDoc}
15
     */
16
    public function getConfigTreeBuilder()
17
    {
18
        $treeBuilder = new TreeBuilder();
19
        $rootNode = $treeBuilder->root('m6web_api_exception');
20
21
        $rootNode
22
            ->children()
23
                ->booleanNode('stack_trace')->defaultValue(false)->end()
24
                ->booleanNode('match_all')->defaultValue(true)->end()
25
                ->arrayNode('default')
26
                    ->addDefaultsIfNotSet()
27
                    ->children()
28
                        ->integerNode('code')->defaultValue(0)->end()
29
                        ->integerNode('status')->defaultValue(500)->end()
30
                        ->scalarNode('message')->defaultValue('Internal server error')->end()
31
                        ->arrayNode('headers')
32
                            ->useAttributeAsKey('name')
33
                            ->prototype('scalar')->end()
34
                            ->defaultValue([])
35
                        ->end()
36
                    ->end()
37
                ->end()
38
                ->arrayNode('exceptions')
39
                    ->useAttributeAsKey('name')
40
                    ->prototype('array')
41
                        ->children()
42
                            ->integerNode('code')->end()
43
                            ->integerNode('status')->end()
44
                            ->scalarNode('message')->end()
45
                            ->arrayNode('headers')
46
                                ->useAttributeAsKey('name')
47
                                ->prototype('scalar')->end()
48
                            ->end()
49
                        ->end()
50
                    ->end()
51
                ->end()
52
            ->end();
53
54
        return $treeBuilder;
55
    }
56
}
57