Code Duplication    Length = 13-14 lines in 2 locations

src/DependencyInjection/Configuration.php 2 locations

@@ 186-198 (lines=13) @@
183
    /**
184
     * Returns the array node used for "_id".
185
     */
186
    protected function getIdNode()
187
    {
188
        $builder = new TreeBuilder();
189
        $node = $builder->root('_id');
190
191
        $node
192
            ->children()
193
            ->scalarNode('path')->end()
194
            ->end()
195
        ;
196
197
        return $node;
198
    }
199
200
    /**
201
     * Returns the array node used for "_source".
@@ 230-243 (lines=14) @@
227
    /**
228
     * Returns the array node used for "_routing".
229
     */
230
    protected function getRoutingNode()
231
    {
232
        $builder = new TreeBuilder();
233
        $node = $builder->root('_routing');
234
235
        $node
236
            ->children()
237
                ->scalarNode('required')->end()
238
                ->scalarNode('path')->end()
239
            ->end()
240
        ;
241
242
        return $node;
243
    }
244
245
    /**
246
     * Returns the array node used for "_parent".