Conditions | 1 |
Paths | 1 |
Total Lines | 32 |
Code Lines | 28 |
Lines | 0 |
Ratio | 0 % |
Tests | 26 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function getConfigTreeBuilder(): TreeBuilder |
||
14 | 8 | { |
|
15 | 8 | $treeBuilder = new TreeBuilder('incenteev_translation_checker'); |
|
16 | $rootNode = $treeBuilder->getRootNode(); |
||
17 | |||
18 | $rootNode |
||
19 | ->children() |
||
20 | ->arrayNode('extraction') |
||
21 | 8 | ->addDefaultsIfNotSet() |
|
22 | 8 | ->fixXmlConfig('bundle') |
|
23 | 8 | ->children() |
|
24 | 8 | ->arrayNode('bundles') |
|
25 | 8 | ->prototype('scalar')->end() |
|
26 | 8 | ->end() |
|
27 | 8 | ->arrayNode('js') |
|
28 | 8 | ->addDefaultsIfNotSet() |
|
29 | 8 | ->fixXmlConfig('path') |
|
30 | 8 | ->children() |
|
31 | 8 | ->scalarNode('default_domain') |
|
32 | 8 | ->info('The default domain used for JS translation (should match the JsTranslationBundle config)') |
|
33 | 8 | ->defaultValue('messages') |
|
34 | 8 | ->end() |
|
35 | 8 | ->arrayNode('paths') |
|
36 | 8 | ->prototype('scalar')->end() |
|
37 | 8 | ->end() |
|
38 | 8 | ->end() |
|
39 | 8 | ->end() |
|
40 | 8 | ->end() |
|
41 | 8 | ->end() |
|
42 | 8 | ->end(); |
|
43 | 8 | ||
44 | 8 | return $treeBuilder; |
|
45 | } |
||
47 |