| Conditions | 2 |
| Paths | 2 |
| Total Lines | 37 |
| Code Lines | 31 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 29 |
| CRAP Score | 2.0001 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | 6 | public function getConfigTreeBuilder(): TreeBuilder |
|
| 11 | { |
||
| 12 | 6 | $treeBuilder = new TreeBuilder('incenteev_translation_checker'); |
|
| 13 | |||
| 14 | 6 | if (method_exists($treeBuilder, 'getRootNode')) { |
|
| 15 | 6 | $rootNode = $treeBuilder->getRootNode(); |
|
| 16 | } else { |
||
| 17 | $rootNode = $treeBuilder->root('incenteev_translation_checker'); |
||
|
|
|||
| 18 | } |
||
| 19 | |||
| 20 | $rootNode |
||
| 21 | 6 | ->children() |
|
| 22 | 6 | ->arrayNode('extraction') |
|
| 23 | 6 | ->addDefaultsIfNotSet() |
|
| 24 | 6 | ->fixXmlConfig('bundle') |
|
| 25 | 6 | ->children() |
|
| 26 | 6 | ->arrayNode('bundles') |
|
| 27 | 6 | ->prototype('scalar')->end() |
|
| 28 | 6 | ->end() |
|
| 29 | 6 | ->arrayNode('js') |
|
| 30 | 6 | ->addDefaultsIfNotSet() |
|
| 31 | 6 | ->fixXmlConfig('path') |
|
| 32 | 6 | ->children() |
|
| 33 | 6 | ->scalarNode('default_domain') |
|
| 34 | 6 | ->info('The default domain used for JS translation (should match the JsTranslationBundle config)') |
|
| 35 | 6 | ->defaultValue('messages') |
|
| 36 | 6 | ->end() |
|
| 37 | 6 | ->arrayNode('paths') |
|
| 38 | 6 | ->prototype('scalar')->end() |
|
| 39 | 6 | ->end() |
|
| 40 | 6 | ->end() |
|
| 41 | 6 | ->end() |
|
| 42 | 6 | ->end() |
|
| 43 | 6 | ->end() |
|
| 44 | 6 | ->end(); |
|
| 45 | |||
| 46 | 6 | return $treeBuilder; |
|
| 47 | } |
||
| 49 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.