Code Duplication    Length = 7-7 lines in 3 locations

src/Section.php 3 locations

@@ 37-43 (lines=7) @@
34
     * @param string $name
35
     * @param $value
36
     */
37
    public function add(string $name, $value): void
38
    {
39
        if (isset($this->params[$name])) {
40
            throw new InvalidArgumentException('Overwrite parameter denied');
41
        }
42
        $this->params[$name] = new Param($name, $value);
43
    }
44
45
    /**
46
     * @param string $name
@@ 48-54 (lines=7) @@
45
    /**
46
     * @param string $name
47
     */
48
    public function remove(string $name): void
49
    {
50
        if (! isset($this->params[$name])) {
51
            throw new InvalidArgumentException('Parameter not found for remove');
52
        }
53
        unset($this->params[$name]);
54
    }
55
56
    public function update(string $name, $value): void
57
    {
@@ 56-62 (lines=7) @@
53
        unset($this->params[$name]);
54
    }
55
56
    public function update(string $name, $value): void
57
    {
58
        if (! isset($this->params[$name])) {
59
            throw new InvalidArgumentException('Parameter not found for update');
60
        }
61
        $this->params[$name] = new Param($name, $value);
62
    }
63
64
    /**
65
     * @param string $name