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