| Conditions | 1 |
| Paths | 1 |
| Total Lines | 32 |
| Code Lines | 28 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 27 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 2 | public function getConfigTreeBuilder() |
|
| 14 | { |
||
| 15 | 2 | $treeBuilder = new TreeBuilder(); |
|
| 16 | 2 | $rootNode = $treeBuilder->root('no_more_leaks'); |
|
| 17 | |||
| 18 | $rootNode |
||
| 19 | 2 | ->children() |
|
| 20 | 2 | ->arrayNode('doctrine') |
|
| 21 | 2 | ->addDefaultsIfNotSet() |
|
| 22 | 2 | ->children() |
|
| 23 | 2 | ->booleanNode('enabled') |
|
| 24 | 2 | ->defaultTrue() |
|
| 25 | 2 | ->end() |
|
| 26 | 2 | ->arrayNode('managers') |
|
| 27 | 2 | ->prototype('scalar')->end() |
|
| 28 | 2 | ->end() |
|
| 29 | 2 | ->end() |
|
| 30 | 2 | ->end() |
|
| 31 | 2 | ->arrayNode('monolog') |
|
| 32 | 2 | ->addDefaultsIfNotSet() |
|
| 33 | 2 | ->children() |
|
| 34 | 2 | ->booleanNode('enabled') |
|
| 35 | 2 | ->defaultTrue() |
|
| 36 | 2 | ->end() |
|
| 37 | 2 | ->arrayNode('channels') |
|
| 38 | 2 | ->prototype('scalar')->end() |
|
| 39 | 2 | ->end() |
|
| 40 | 2 | ->end() |
|
| 41 | 2 | ->end(); |
|
| 42 | |||
| 43 | 2 | return $treeBuilder; |
|
| 44 | } |
||
| 45 | } |
||
| 46 |