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

Complexity

Total Complexity 1

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 3
dl 0
loc 60
ccs 49
cts 49
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 54 1
1
<?php
2
3
namespace Ma27\ApiKeyAuthenticationBundle\DependencyInjection;
4
5
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
6
use Symfony\Component\Config\Definition\ConfigurationInterface;
7
8
/**
9
 * This is the class that validates and merges configuration from your app/config files.
10
 *
11
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
12
 */
13
class Configuration implements ConfigurationInterface
14
{
15
    /**
16
     * {@inheritdoc}
17
     */
18 11
    public function getConfigTreeBuilder()
19
    {
20 11
        $treeBuilder = new TreeBuilder();
21 11
        $rootNode = $treeBuilder->root('ma27_api_key_authentication');
22
23
        $rootNode
24 11
            ->children()
25 11
                ->arrayNode('user')
26 11
                    ->children()
27 11
                        ->integerNode('api_key_length')
28 11
                            ->min(50)
29 11
                            ->defaultValue(200)
30 11
                        ->end()
31 11
                        ->scalarNode('object_manager')->isRequired()->end()
32 11
                        ->scalarNode('model_name')->defaultValue('AppBundle\\Entity\\User')->end()
33 11
                        ->arrayNode('password')
34 11
                            ->addDefaultsIfNotSet()
35 11
                            ->children()
36 11
                                ->scalarNode('strategy')
37 11
                                    ->defaultValue('php55')
38 11
                                ->end()
39 11
                            ->end()
40 11
                        ->end()
41 11
                        ->scalarNode('metadata_cache')->defaultFalse()->end()
42 11
                    ->end()
43 11
                ->end()
44 11
                ->arrayNode('api_key_purge')
45 11
                    ->canBeEnabled()
46 11
                    ->children()
47 11
                        ->arrayNode('last_action_listener')
48 11
                            ->canBeDisabled()
49 11
                        ->end()
50 11
                        ->scalarNode('outdated_rule')->defaultValue('-5 days')->end()
51 11
                    ->end()
52 11
                ->end()
53 11
                ->arrayNode('services')
54 11
                    ->addDefaultsIfNotSet()
55 11
                    ->children()
56 11
                        ->scalarNode('auth_handler')->defaultNull()->end()
57 11
                        ->scalarNode('key_factory')->defaultNull()->end()
58 11
                    ->end()
59 11
                ->end()
60 11
                ->scalarNode('key_header')->defaultValue('X-API-KEY')->end()
61 11
                ->arrayNode('response')
62 11
                    ->addDefaultsIfNotSet()
63 11
                    ->children()
64 11
                        ->scalarNode('api_key_property')->defaultValue('apiKey')->end()
65 11
                        ->scalarNode('error_property')->defaultValue('message')->end()
66 11
                    ->end()
67 11
                ->end()
68 11
            ->end();
69
70 11
        return $treeBuilder;
71
    }
72
}
73