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