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