Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | 6 | protected function getData(Request $request): array |
|
19 | { |
||
20 | 6 | static $queryMethods = [Request::METHOD_GET, Request::METHOD_HEAD]; |
|
21 | |||
22 | 6 | if (!\in_array($request->getMethod(), $queryMethods, true)) { |
|
23 | 1 | return $request->request->all(); |
|
24 | 6 | } |
|
25 | |||
26 | 6 | return parent::getData($request); |
|
27 | } |
||
29 |