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 27
Code Lines 23

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 27
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 23
nc 1
nop 0
1
<?php
2
3
namespace EmanueleMinotto\TwigCacheBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * This class validates and merges configuration from your app files.
10
 *
11
 * @see http://symfony.com/doc/current/cookbook/bundles/extension.html
12
 */
13
class Configuration implements ConfigurationInterface
14
{
15
    /**
16
     * Generates the configuration tree builder.
17
     *
18
     * @return TreeBuilder the tree builder
19
     */
20
    public function getConfigTreeBuilder()
21
    {
22
        $treeBuilder = new TreeBuilder();
23
        $rootNode = $treeBuilder->root('twig_cache');
24
25
        $rootNode
26
            ->children()
27
                ->booleanNode('profiler')
28
                    ->defaultValue('%kernel.debug%')
29
                ->end()
30
                ->scalarNode('service')
31
                    ->cannotBeEmpty()
32
                    ->isRequired()
33
                ->end()
34
                ->scalarNode('strategy')
35
                    ->cannotBeEmpty()
36
                    ->defaultValue('twig_cache.strategy')
37
                ->end()
38
                ->scalarNode('key_generator')
39
                    ->cannotBeEmpty()
40
                    ->defaultValue('twig_cache.strategy.spl_object_hash_key_generator')
41
                    ->info('service id that implements KeyGeneratorInterface to generate a key for template cache')
42
                ->end()
43
            ->end();
44
45
        return $treeBuilder;
46
    }
47
}
48