Code Duplication    Length = 33-34 lines in 2 locations

src/RunOpenCode/Bundle/DoctrineNamingStrategy/DependencyInjection/Configuration.php 2 locations

@@ 39-71 (lines=33) @@
36
        return $treeBuilder;
37
    }
38
39
    protected function getUnderscoredBundlePrefixDefinition()
40
    {
41
        $node = new ArrayNodeDefinition('underscored_bundle_prefix');
42
43
        $node
44
            ->children()
45
                ->enumNode('case')
46
                    ->info('Which case to use, lowercase or uppercase. Default is lowercase.')
47
                    ->values(array('lowercase', 'uppercase'))
48
                    ->defaultValue('lowercase')
49
                ->end()
50
                ->booleanNode('joinTableFieldSuffix')
51
                    ->defaultTrue()
52
                    ->info('Join table will get field name suffix enabling you to have multiple many-to-many relations without stating explicitly table names.')
53
                ->end()
54
                ->arrayNode('map')
55
                    ->info('Map of short bundle names and prefixes, if you do not want to use full bundle name in prefix. Useful when bundle name is too long, considering that, per example, MySQL has 60 chars table name limit.')
56
                    ->useAttributeAsKey('name')
57
                    ->prototype('scalar')->end()
58
                ->end()
59
                ->arrayNode('whitelist')
60
                    ->info('Define for which bundles to apply prefixes.')
61
                    ->prototype('scalar')->end()
62
                ->end()
63
                ->arrayNode('blacklist')
64
                    ->info('Define for which bundles not to apply prefixes.')
65
                    ->prototype('scalar')->end()
66
                ->end()
67
            ->end()
68
        ->end();
69
70
        return $node;
71
    }
72
73
    protected function getUnderscoredClassNamespacePrefixDefinition()
74
    {
@@ 73-106 (lines=34) @@
70
        return $node;
71
    }
72
73
    protected function getUnderscoredClassNamespacePrefixDefinition()
74
    {
75
        $node = new ArrayNodeDefinition('underscored_class_namespace_prefix');
76
77
        $node
78
            ->children()
79
                ->enumNode('case')
80
                    ->info('Which case to use, lowercase or uppercase. Default is lowercase.')
81
                    ->values(array('lowercase', 'uppercase'))
82
                    ->defaultValue('lowercase')
83
                ->end()
84
                ->booleanNode('joinTableFieldSuffix')
85
                    ->defaultTrue()
86
                    ->info('Join table will get field name suffix enabling you to have multiple many-to-many relations without stating explicitly table names.')
87
                ->end()
88
                ->arrayNode('map')
89
                    ->requiresAtLeastOneElement()
90
                    ->info('Map of FQCNs prefixes and table prefixes to use for naming.')
91
                    ->useAttributeAsKey('name')
92
                    ->prototype('scalar')->end()
93
                ->end()
94
                ->arrayNode('whitelist')
95
                    ->info('Define for which FQCNs prefixes table prefixes should be applied.')
96
                    ->prototype('scalar')->end()
97
                ->end()
98
                ->arrayNode('blacklist')
99
                    ->info('Define for which FQCNs prefixes not to apply table prefixes.')
100
                    ->prototype('scalar')->end()
101
                ->end()
102
            ->end()
103
        ->end();
104
105
        return $node;
106
    }
107
108
    protected function getNamerCollectionDefinition()
109
    {