Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
32 | 12 | public static function getStorageKey(RequestInterface $request) : string |
|
33 | { |
||
34 | 12 | $uri = $request->getUri(); |
|
35 | 12 | $method = $request->getMethod(); |
|
36 | |||
37 | 12 | if ($method !== 'GET') |
|
38 | { |
||
39 | 2 | return self::_getMethodAndParams($method, $request->getBody()->getContents()); |
|
40 | } |
||
41 | |||
42 | 10 | return self::_getMethodAndParams($method, $uri->getQuery()); |
|
43 | } |
||
54 | } |