Code Duplication    Length = 7-7 lines in 2 locations

src/Middleware/MethodOverride.php 2 locations

@@ 115-121 (lines=7) @@
112
     */
113
    private function getOverrideMethod(ServerRequestInterface $request)
114
    {
115
        if ($request->getMethod() === 'POST' && $this->postParam !== null) {
116
            $params = $request->getParsedBody();
117
118
            if (isset($params[$this->postParam])) {
119
                return strtoupper($params[$this->postParam]);
120
            }
121
        }
122
123
        if ($request->getMethod() === 'GET' && $this->getParam !== null) {
124
            $params = $request->getQueryParams();
@@ 123-129 (lines=7) @@
120
            }
121
        }
122
123
        if ($request->getMethod() === 'GET' && $this->getParam !== null) {
124
            $params = $request->getQueryParams();
125
126
            if (isset($params[$this->getParam])) {
127
                return strtoupper($params[$this->getParam]);
128
            }
129
        }
130
131
        $method = $request->getHeaderLine(self::HEADER);
132