| Conditions | 1 |
| Paths | 1 |
| Total Lines | 29 |
| Code Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 22 | public function getConfigTreeBuilder() |
||
| 23 | { |
||
| 24 | $treeBuilder = new TreeBuilder(); |
||
| 25 | $rootNode = $treeBuilder->root('music_info'); |
||
| 26 | |||
| 27 | $rootNode |
||
| 28 | ->children() |
||
| 29 | ->booleanNode('init_services')->defaultTrue()->end() |
||
| 30 | ->arrayNode('services')->end() |
||
| 31 | ->arrayNode('preferred_order')->end() |
||
| 32 | ->arrayNode('service_weight') |
||
| 33 | ->prototype('array') |
||
| 34 | ->children() |
||
| 35 | ->scalarNode('service')->end() |
||
| 36 | ->floatNode('weight')->end() |
||
| 37 | ->end() |
||
| 38 | ->end() |
||
| 39 | ->end() |
||
| 40 | ->arrayNode('guzzle') |
||
| 41 | ->addDefaultsIfNotSet() |
||
| 42 | ->children() |
||
| 43 | ->scalarNode('proxy')->defaultNull()->end() |
||
| 44 | ->end() |
||
| 45 | ->end() |
||
| 46 | ->end() |
||
| 47 | ; |
||
| 48 | |||
| 49 | return $treeBuilder; |
||
| 50 | } |
||
| 51 | } |