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

Configuration::getConfigTreeBuilder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
crap 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