| Conditions | 1 |
| Paths | 1 |
| Total Lines | 42 |
| Code Lines | 38 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 38 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 2 | public function getConfigTreeBuilder() |
|
| 19 | { |
||
| 20 | 2 | $treeBuilder = new TreeBuilder(); |
|
| 21 | 2 | $treeBuilder->root('majora_framework_extra') |
|
| 22 | 2 | ->addDefaultsIfNotSet() |
|
| 23 | 2 | ->children() |
|
| 24 | 2 | ->arrayNode('clock') |
|
| 25 | 2 | ->canBeEnabled() |
|
| 26 | 2 | ->children() |
|
| 27 | 2 | ->scalarNode('mock_param') |
|
| 28 | 2 | ->defaultValue('_date_mock') |
|
| 29 | 2 | ->cannotBeEmpty() |
|
| 30 | 2 | ->end() |
|
| 31 | 2 | ->end() |
|
| 32 | 2 | ->end() |
|
| 33 | 2 | ->arrayNode('translations') |
|
| 34 | 2 | ->canBeEnabled() |
|
| 35 | 2 | ->children() |
|
| 36 | 2 | ->arrayNode('locales') |
|
| 37 | 2 | ->isRequired() |
|
| 38 | 2 | ->cannotBeEmpty() |
|
| 39 | 2 | ->prototype('scalar')->end() |
|
| 40 | 2 | ->end() |
|
| 41 | 2 | ->end() |
|
| 42 | 2 | ->end() |
|
| 43 | 2 | ->arrayNode('agnostic_url_generator') |
|
| 44 | 2 | ->canBeEnabled() |
|
| 45 | 2 | ->end() |
|
| 46 | 2 | ->arrayNode('exception_listener') |
|
| 47 | 2 | ->canBeEnabled() |
|
| 48 | 2 | ->end() |
|
| 49 | 2 | ->arrayNode('doctrine_events_proxy') |
|
| 50 | 2 | ->canBeEnabled() |
|
| 51 | 2 | ->end() |
|
| 52 | 2 | ->arrayNode('json_form_extension') |
|
| 53 | 2 | ->canBeEnabled() |
|
| 54 | 2 | ->end() |
|
| 55 | 2 | ->end() |
|
| 56 | ; |
||
| 57 | |||
| 58 | 2 | return $treeBuilder; |
|
| 59 | } |
||
| 60 | } |
||
| 61 |