| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 6 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 37 | public function parseToken($body)  | 
            ||
| 38 |     { | 
            ||
| 39 | $result = json_decode($body, true);  | 
            ||
| 40 |         if ($result) { | 
            ||
| 41 | $token = new AccessToken($result);  | 
            ||
| 42 | $token->setJwt(new JWT($result['id_token'], $this->getKeys()));  | 
            ||
| 43 | |||
| 44 | return $token;  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 47 |         throw new InvalidAccessToken('Provider response with not valid JSON'); | 
            ||
| 48 | }  | 
            ||
| 49 | }  | 
            ||
| 50 |