Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 1 | public function getConfigTreeBuilder() |
|
25 | { |
||
26 | 1 | $treeBuilder = new TreeBuilder(); |
|
27 | 1 | $rootNode = $treeBuilder->root('gauges'); |
|
28 | $rootNode |
||
29 | 1 | ->useAttributeAsKey('path') |
|
30 | 1 | ->prototype('array') |
|
31 | 1 | ->children() |
|
32 | 1 | ->scalarNode('class') |
|
33 | 1 | ->isRequired() |
|
34 | 1 | ->cannotBeEmpty() |
|
35 | 1 | ->end() |
|
36 | 1 | ->variableNode('arguments')->end() |
|
37 | 1 | ->end(); |
|
38 | |||
39 | 1 | return $treeBuilder; |
|
40 | 1 | } |
|
41 | } |
||
42 |