Code Duplication    Length = 15-16 lines in 2 locations

src/PH/Bundle/WebhookBundle/DependencyInjection/Configuration.php 1 location

@@ 22-36 (lines=15) @@
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getConfigTreeBuilder()
23
    {
24
        $treeBuilder = new TreeBuilder();
25
        $rootNode = $treeBuilder->root('ph_webhook');
26
        $rootNode
27
            ->addDefaultsIfNotSet()
28
            ->children()
29
                ->scalarNode('driver')->defaultValue(SyliusResourceBundle::DRIVER_DOCTRINE_ORM)->end()
30
            ->end()
31
        ;
32
33
        $this->addResources($rootNode);
34
35
        return $treeBuilder;
36
    }
37
38
    /**
39
     * @param ArrayNodeDefinition $node

src/PH/Bundle/SubscriptionBundle/DependencyInjection/Configuration.php 1 location

@@ 32-47 (lines=16) @@
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getConfigTreeBuilder()
33
    {
34
        $treeBuilder = new TreeBuilder();
35
        $rootNode = $treeBuilder->root('ph_subscription');
36
37
        $rootNode
38
            ->addDefaultsIfNotSet()
39
                ->children()
40
                    ->scalarNode('driver')->defaultValue(SyliusResourceBundle::DRIVER_DOCTRINE_ORM)->end()
41
                ->end()
42
        ;
43
44
        $this->addResources($rootNode);
45
46
        return $treeBuilder;
47
    }
48
49
    /**
50
     * @param ArrayNodeDefinition $node