| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | 5 | public static function parseQueryTokenFromResponse(Response $response, string $queryKey = 'token'): ?string |
|
| 9 | { |
||
| 10 | 5 | $uri = $response->effectiveUri(); |
|
| 11 | |||
| 12 | 5 | if (! $uri) { |
|
|
|
|||
| 13 | return null; |
||
| 14 | } |
||
| 15 | |||
| 16 | 5 | return self::parseTokenFromQueryString($response->effectiveUri()?->getQuery(), $queryKey); |
|
| 17 | } |
||
| 41 |