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   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 11
Bugs 5 Features 2
Metric Value
wmc 1
c 11
b 5
f 2
lcom 0
cbo 3
dl 0
loc 20
ccs 8
cts 8
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 14 1
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