Code Duplication    Length = 26-27 lines in 2 locations

src/eXpansion/Bundle/MxKarma/DependencyInjection/Configuration.php 1 location

@@ 15-40 (lines=26) @@
12
 * @package eXpansion\Framework\AdminGroups\DependencyInjection;
13
 * @author reaby
14
 */
15
class Configuration implements ConfigurationInterface
16
{
17
18
    /**
19
     * Generates the configuration tree builder.
20
     *
21
     * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
22
     */
23
    public function getConfigTreeBuilder()
24
    {
25
        $treeBuilder = new TreeBuilder();
26
        $treeBuilder->root('e_xpansion_plugins')
27
            ->children()
28
                ->arrayNode('mxkarma')
29
                    ->prototype('array')
30
                        ->children()
31
                            ->arrayNode('serverlogin')->prototype('scalar')->end()->end()
32
                            ->arrayNode('apikey')->prototype('scalar')->end()->end()
33
                        ->end()
34
                    ->end()
35
                ->end()
36
            ->end();
37
38
        return $treeBuilder;
39
    }
40
}
41

src/eXpansion/Framework/AdminGroups/DependencyInjection/Configuration.php 1 location

@@ 15-41 (lines=27) @@
12
 * @package eXpansion\Framework\AdminGroups\DependencyInjection;
13
 * @author oliver de Cramer <[email protected]>
14
 */
15
class Configuration implements ConfigurationInterface
16
{
17
18
    /**
19
     * Generates the configuration tree builder.
20
     *
21
     * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder
22
     */
23
    public function getConfigTreeBuilder()
24
    {
25
        $treeBuilder = new TreeBuilder();
26
        $treeBuilder->root('e_xpansion_admin_groups')
27
            ->children()
28
                ->arrayNode('groups')
29
                    ->prototype('array')
30
                        ->children()
31
                            ->variableNode('label')->end()
32
                            ->arrayNode('logins')->prototype('scalar')->end()->end()
33
                            ->arrayNode('permissions')->prototype('scalar')->end()->end()
34
                        ->end()
35
                    ->end()
36
                ->end()
37
            ->end();
38
39
        return $treeBuilder;
40
    }
41
}