Code Duplication    Length = 7-7 lines in 2 locations

src/Request/DeleteRequest.php 1 location

@@ 48-54 (lines=7) @@
45
     * @return mixed
46
     * @throws RequestParameterException
47
     */
48
    public function getParameter($name)
49
    {
50
        if (!$this->hasParameter($name)) {
51
            throw new RequestParameterException(sprintf('Parameter %s not found'));
52
        }
53
        return $this->parameters[$name];
54
    }
55
56
    /**
57
     * @return Body

src/Request/GetRequest.php 1 location

@@ 40-46 (lines=7) @@
37
     * @return mixed
38
     * @throws RequestParameterException
39
     */
40
    public function getParameter($name)
41
    {
42
        if (!$this->hasParameter($name)) {
43
            throw new RequestParameterException(sprintf('Parameter %s not found'));
44
        }
45
        return $this->parameters[$name];
46
    }
47
48
    /**
49
     * @return RequestMethod