Code Duplication    Length = 13-14 lines in 2 locations

src/DependencyInjection/Configuration.php 2 locations

@@ 179-191 (lines=13) @@
176
    /**
177
     * Returns the array node used for "_id".
178
     */
179
    protected function getIdNode()
180
    {
181
        $builder = new TreeBuilder();
182
        $node = $builder->root('_id');
183
184
        $node
185
            ->children()
186
            ->scalarNode('path')->end()
187
            ->end()
188
        ;
189
190
        return $node;
191
    }
192
193
    /**
194
     * Returns the array node used for "_source".
@@ 223-236 (lines=14) @@
220
    /**
221
     * Returns the array node used for "_routing".
222
     */
223
    protected function getRoutingNode()
224
    {
225
        $builder = new TreeBuilder();
226
        $node = $builder->root('_routing');
227
228
        $node
229
            ->children()
230
                ->scalarNode('required')->end()
231
                ->scalarNode('path')->end()
232
            ->end()
233
        ;
234
235
        return $node;
236
    }
237
238
    /**
239
     * Returns the array node used for "_parent".