Code Duplication    Length = 8-10 lines in 2 locations

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Definition.php 2 locations

@@ 332-341 (lines=10) @@
329
     *
330
     * @api
331
     */
332
    public function replaceArgument($index, $argument)
333
    {
334
        if ($index < 0 || $index > count($this->arguments) - 1) {
335
            throw new OutOfBoundsException(sprintf('The index "%d" is not in the range [0, %d].', $index, count($this->arguments) - 1));
336
        }
337
338
        $this->arguments[$index] = $argument;
339
340
        return $this;
341
    }
342
343
    /**
344
     * Gets the arguments to pass to the service constructor/factory method.
@@ 366-373 (lines=8) @@
363
     *
364
     * @api
365
     */
366
    public function getArgument($index)
367
    {
368
        if ($index < 0 || $index > count($this->arguments) - 1) {
369
            throw new OutOfBoundsException(sprintf('The index "%d" is not in the range [0, %d].', $index, count($this->arguments) - 1));
370
        }
371
372
        return $this->arguments[$index];
373
    }
374
375
    /**
376
     * Sets the methods to call after service initialization.