| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function getConfigTreeBuilder() |
||
| 31 | { |
||
| 32 | $treeBuilder = new TreeBuilder(); |
||
| 33 | $rootNode = $treeBuilder->root('mindbaz'); |
||
| 34 | $rootNode |
||
| 35 | ->children() |
||
| 36 | ->arrayNode('credentials') |
||
| 37 | ->children() |
||
| 38 | ->integerNode('idSite')->treatNullLike(0)->end() |
||
| 39 | ->scalarNode('login')->end() |
||
| 40 | ->scalarNode('password')->end() |
||
| 41 | ->end() |
||
| 42 | ->end() |
||
| 43 | ->arrayNode('campaigns') |
||
| 44 | ->useAttributeAsKey('name') |
||
| 45 | ->normalizeKeys(false) |
||
| 46 | ->prototype('scalar')->end() |
||
| 47 | ->end() |
||
| 48 | ->booleanNode('insertMissingSubscribers')->defaultFalse()->end() |
||
| 49 | ->end(); |
||
| 50 | |||
| 51 | return $treeBuilder; |
||
| 52 | } |
||
| 53 | } |
||
| 54 |