Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 10 | public function getConfigTreeBuilder() |
|
19 | { |
||
20 | 10 | $treeBuilder = new TreeBuilder(); |
|
21 | 10 | $rootNode = $treeBuilder->root('elasticsearch_extra_bundle'); |
|
22 | |||
23 | $rootNode |
||
24 | 10 | ->children() |
|
25 | 10 | ->scalarNode('default_client') |
|
26 | 10 | ->defaultValue(null) |
|
27 | 10 | ->end() |
|
28 | 10 | ->arrayNode('indices') |
|
29 | 10 | ->defaultValue([]) |
|
30 | 10 | ->prototype('array') |
|
31 | 10 | ->prototype('variable')->end() |
|
32 | 10 | ->end() |
|
33 | 10 | ->end() |
|
34 | 10 | ->end() |
|
35 | ; |
||
36 | |||
37 | 10 | return $treeBuilder; |
|
38 | } |
||
39 | } |
||
41 |