Code Duplication    Length = 8-8 lines in 2 locations

Routing/MethodRouter.php 2 locations

@@ 57-64 (lines=8) @@
54
        }
55
    }
56
57
    public function setOption($key, $value)
58
    {
59
        if (!array_key_exists($key, $this->options)) {
60
            throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
61
        }
62
63
        $this->options[$key] = $value;
64
    }
65
66
    public function getOption($key)
67
    {
@@ 66-73 (lines=8) @@
63
        $this->options[$key] = $value;
64
    }
65
66
    public function getOption($key)
67
    {
68
        if (!array_key_exists($key, $this->options)) {
69
            throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
70
        }
71
72
        return $this->options[$key];
73
    }
74
75
    /**
76
     * {@inheritdoc}