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