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