| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function getConfigTreeBuilder() |
||
| 17 | { |
||
| 18 | $treeBuilder = new TreeBuilder(); |
||
| 19 | $root = $treeBuilder->root('translation_adapter_phrase_app'); |
||
| 20 | |||
| 21 | $root->children() |
||
| 22 | ->scalarNode('httplug_client')->defaultValue('httplug.client')->cannotBeEmpty()->end() |
||
| 23 | ->scalarNode('httplug_message_factory')->defaultValue('httplug.message_factory')->cannotBeEmpty()->end() |
||
| 24 | ->scalarNode('httplug_uri_factory')->defaultValue('httplug.uri_factory')->cannotBeEmpty()->end() |
||
| 25 | ->scalarNode('project_id')->cannotBeEmpty()->end() |
||
| 26 | ->scalarNode('token')->cannotBeEmpty()->end() |
||
| 27 | ->arrayNode('locale_to_id_mapping')->prototype('scalar')->end()->end() |
||
| 28 | ->arrayNode('domains')->prototype('scalar')->end()->end() |
||
| 29 | ->end(); |
||
| 30 | |||
| 31 | return $treeBuilder; |
||
| 32 | } |
||
| 33 | } |
||
| 34 |