Completed
Pull Request — develop (#497)
by
unknown
17:50 queued 11:43
created

Configuration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfigTreeBuilder() 0 11 1
1
<?php
2
/**
3
 * Configuration for Sf Injection
4
 */
5
namespace Graviton\AuditTrackingBundle\DependencyInjection;
6
7
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
8
use Symfony\Component\Config\Definition\ConfigurationInterface;
9
10
/**
11
 * This is the class that validates and merges configuration from your app/config files.
12
 *
13
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/configuration.html}
14
 *
15
 * @author   List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
16
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
17
 * @link     http://swisscom.ch
18
 */
19
class Configuration implements ConfigurationInterface
20
{
21
    /**
22
     * {@inheritdoc}
23
     * @return void
0 ignored issues
show
Documentation introduced by
Should the return type not be TreeBuilder?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
24
     */
25 2
    public function getConfigTreeBuilder()
26
    {
27 2
        $treeBuilder = new TreeBuilder();
28 2
        $rootNode = $treeBuilder->root('graviton_audit_tracking');
29
30
        // Here you should define the parameters that are allowed to
31
        // configure your bundle. See the documentation linked above for
32
        // more information on that topic.
33
34 2
        return $treeBuilder;
35
    }
36
}
37