| Total Complexity | 3 |
| Total Lines | 13 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class RootNodeFactory |
||
| 9 | { |
||
| 10 | public static function create(TreeBuilder $treeBuilder, string $nodeName): NodeDefinition |
||
| 11 | { |
||
| 12 | return self::isSymfonyConfigGt41($treeBuilder) ? |
||
| 13 | $treeBuilder->getRootNode() : |
||
| 14 | /* @scrutinizer ignore-deprecated */ |
||
| 15 | $treeBuilder->root($nodeName); |
||
| 16 | } |
||
| 17 | |||
| 18 | public static function isSymfonyConfigGt41(TreeBuilder $treeBuilder) |
||
| 21 | } |
||
| 22 | } |
||
| 23 |