| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 22 | 2 | public function retrieveByCredentials(array $credentials) |
|
| 23 | { |
||
| 24 | 2 | $token = $credentials['cognito_token']; |
|
| 25 | |||
| 26 | try { |
||
| 27 | 2 | return $this->clientAppParser->parse($token); |
|
| 28 | 1 | } catch (Exception $e) { |
|
| 29 | |||
| 30 | } |
||
| 31 | /* |
||
| 32 | try { |
||
| 33 | return $this->accessTokenParser->parse($token); |
||
| 34 | } catch (Exception $e) { |
||
| 35 | |||
| 36 | } |
||
| 37 | */ |
||
| 38 | 1 | return null; |
|
| 39 | } |
||
| 61 |