Code Duplication    Length = 10-10 lines in 4 locations

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerBuilder.php 1 location

@@ 863-872 (lines=10) @@
860
     *
861
     * @api
862
     */
863
    public function getDefinition($id)
864
    {
865
        $id = strtolower($id);
866
867
        if (!array_key_exists($id, $this->definitions)) {
868
            throw new InvalidArgumentException(sprintf('The service definition "%s" does not exist.', $id));
869
        }
870
871
        return $this->definitions[$id];
872
    }
873
874
    /**
875
     * Gets a service definition by id or alias.

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services10.php 1 location

@@ 65-74 (lines=10) @@
62
    /**
63
     * {@inheritdoc}
64
     */
65
    public function getParameter($name)
66
    {
67
        $name = strtolower($name);
68
69
        if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
70
            throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
71
        }
72
73
        return $this->parameters[$name];
74
    }
75
76
    /**
77
     * {@inheritdoc}

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services12.php 1 location

@@ 69-78 (lines=10) @@
66
    /**
67
     * {@inheritdoc}
68
     */
69
    public function getParameter($name)
70
    {
71
        $name = strtolower($name);
72
73
        if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
74
            throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
75
        }
76
77
        return $this->parameters[$name];
78
    }
79
80
    /**
81
     * {@inheritdoc}

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php 1 location

@@ 303-312 (lines=10) @@
300
    /**
301
     * {@inheritdoc}
302
     */
303
    public function getParameter($name)
304
    {
305
        $name = strtolower($name);
306
307
        if (!(isset($this->parameters[$name]) || array_key_exists($name, $this->parameters))) {
308
            throw new InvalidArgumentException(sprintf('The parameter "%s" must be defined.', $name));
309
        }
310
311
        return $this->parameters[$name];
312
    }
313
314
    /**
315
     * {@inheritdoc}