Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
17 | 8 | public function getConfigTreeBuilder(): TreeBuilder |
|
18 | { |
||
19 | 8 | $treeBuilder = new TreeBuilder('ecocode_sylius_base_price'); |
|
20 | 8 | $rootNode = $treeBuilder->getRootNode(); |
|
21 | |||
22 | 8 | if ($rootNode instanceof ArrayNodeDefinition) { |
|
23 | 8 | $this->addMainConfig($rootNode); |
|
24 | 8 | $this->addUnitMappingConfig($rootNode); |
|
25 | } |
||
26 | |||
27 | 8 | return $treeBuilder; |
|
28 | } |
||
29 | |||
60 |