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 ( 71bc82...cca406 )
by
unknown
02:02
created

Configuration::getConfigTreeBuilder()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 24
Code Lines 20

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 19
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 24
ccs 19
cts 19
cp 1
rs 8.9713
c 0
b 0
f 0
cc 1
eloc 20
nc 1
nop 0
crap 1
1
<?php
2
3
namespace CrossKnowledge\DeviceDetectBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
class Configuration implements ConfigurationInterface
9
{
10 2
    public function getConfigTreeBuilder()
11
    {
12 2
        $treeBuilder = new TreeBuilder();
13 2
        $rootNode = $treeBuilder->root('cross_knowledge_device_detect');
14
15
        $rootNode
16 2
            ->children()
17 2
                ->scalarNode('cache_manager')->info('The service name that will handle caching (must implement Doctrine\Common\Cache\CacheProvider))')
18 2
                ->end()
19 2
                ->arrayNode('device_detector_options')
20 2
                    ->info("Available options are discard_bot_information and skip_bot_detection which are booleans")
21 2
                        ->children()
22 2
                            ->booleanNode('discard_bot_information')
23 2
                                ->defaultTrue()
24 2
                            ->end()
25 2
                            ->booleanNode('skip_bot_detection')
26 2
                                ->defaultTrue()
27 2
                            ->end()
28 2
                        ->end()
29 2
                ->end()
30 2
            ->end();
31
32 2
        return $treeBuilder;
33
    }
34
}
35