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()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 14
CRAP Score 1

Importance

Changes 4
Bugs 1 Features 0
Metric Value
c 4
b 1
f 0
dl 0
loc 20
ccs 14
cts 14
cp 1
rs 9.4285
cc 1
eloc 15
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * AJGL CSV Bundle
5
 *
6
 * Copyright (C) Antonio J. García Lagar <[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 Ajgl\Bundle\CsvBundle\DependencyInjection;
13
14
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
15
use Symfony\Component\Config\Definition\ConfigurationInterface;
16
17
/**
18
 * @author Antonio J. García Lagar <[email protected]>
19
 */
20
class Configuration implements ConfigurationInterface
21
{
22 2
    public function getConfigTreeBuilder()
23
    {
24 2
        $treeBuilder = new TreeBuilder();
25 2
        $rootNode = $treeBuilder->root('ajgl_csv');
26
27
        $rootNode
28 2
            ->children()
29 2
                ->enumNode('reader_default_type')
30 2
                    ->values(array('php', 'rfc'))
31 2
                    ->defaultValue('php')
32 2
                ->end()
33 2
                ->enumNode('writer_default_type')
34 2
                    ->values(array('php', 'rfc'))
35 2
                    ->defaultValue('php')
36 2
                ->end()
37 2
            ->end()
38
        ;
39
40 2
        return $treeBuilder;
41
    }
42
}
43