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.
Completed
Push — master ( f3e785...6efe3c )
by Cas
04:09
created

Configuration::getConfigTreeBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 11
Bugs 5 Features 2
Metric Value
cc 1
eloc 9
c 11
b 5
f 2
nc 1
nop 0
dl 0
loc 14
ccs 8
cts 8
cp 1
crap 1
rs 9.4285
1
<?php
2
3
/*
4
 * This file is part of the CLSlackBundle.
5
 *
6
 * (c) Cas Leentfaar <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CL\Bundle\SlackBundle\DependencyInjection;
13
14
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
15
use Symfony\Component\Config\Definition\ConfigurationInterface;
16
17
/**
18
 * @author Cas Leentfaar <[email protected]>
19
 */
20
class Configuration implements ConfigurationInterface
21
{
22
    /**
23
     * {@inheritDoc}
24
     */
25 3
    public function getConfigTreeBuilder()
26
    {
27 3
        $treeBuilder = new TreeBuilder();
28 3
        $rootNode = $treeBuilder->root('cl_slack');
29
30
        $rootNode
31 3
            ->children()
32 3
                ->scalarNode('api_token')->defaultNull()->end()
33 3
                ->booleanNode('test')->defaultFalse()->end()
34 3
            ->end()
35
        ;
36
37 3
        return $treeBuilder;
38
    }
39
}
40