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 44
Code Lines 39

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 44
rs 8.8571
c 0
b 0
f 0
cc 1
eloc 39
nc 1
nop 0
1
<?php
2
/**
3
 * This file is part of the C33s\StaticPageContentBundle.
4
 *
5
 * (c) consistency <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace C33s\StaticPageContentBundle\DependencyInjection;
12
13
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
14
use Symfony\Component\Config\Definition\ConfigurationInterface;
15
16
class Configuration implements ConfigurationInterface
17
{
18
    public function getConfigTreeBuilder()
19
    {
20
        $treeBuilder = new TreeBuilder();
21
        /* @var Symfony\Component\Config\Definition\Builder\NodeDefinition */
22
        $rootNode = $treeBuilder->root('c33s_static_page_content');
23
24
        $rootNode
25
            ->children()
26
                ->scalarNode('base_template')
27
                    ->defaultValue('::base.html.twig')
28
                    ->info('Template that the content wrapper template will extend from')
29
                ->end()
30
                ->scalarNode('template_extension')
31
                    ->defaultValue('.html.twig')
32
                    ->info('Template file name extension')
33
                ->end()
34
                ->scalarNode('content_dir')
35
                    ->defaultValue('Content')
36
                    ->info('Relative path from the views directory to a directory containing' . PHP_EOL .
37
                           'the page templates.')
38
                ->end()
39
                ->scalarNode('content_bundle')
40
                    ->defaultValue('C33sStaticPageContentBundle')
41
                    ->info('Bundle that holds the static pages')
42
                ->end()
43
                ->scalarNode('wrapper_template')
44
                    ->defaultValue('C33sStaticPageContentBundle::layout.html.twig')
45
                    ->info('Template used to wrap your static pages')
46
                ->end()
47
                ->booleanNode('use_template_sandbox')
48
                    ->defaultFalse()
49
                    ->info('Should the pages use the twig sandbox extension?' . PHP_EOL .
50
                           '(http://twig.sensiolabs.org/doc/api.html#sandbox-extension)' . PHP_EOL .
51
                           'NOTE: it only works when using the default content template')
52
                ->end()
53
                ->booleanNode('prefer_locale_templates')
54
                    ->defaultFalse()
55
                    ->info('use templates for the requested locale if they exist. '. PHP_EOL .
56
                    'These templates should be placed in a folder named after the locale in the content directory.')
57
                ->end()
58
            ->end();
59
60
        return $treeBuilder;
61
    }
62
}
63