| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 47 | public function verify($ticket, $randStr, $userIP) |
||
| 48 | { |
||
| 49 | $contents = $this->filesystem |
||
| 50 | ->getAdapter() |
||
| 51 | ->getHttpClient() |
||
| 52 | ->get(self::TICKET_VERIFY, ['query' => [ |
||
| 53 | 'aid' => $this->aid, |
||
| 54 | 'AppSecretKey' => $this->appSecretKey, |
||
| 55 | 'Ticket' => $ticket, |
||
| 56 | 'Randstr' => $randStr, |
||
| 57 | 'UserIP' => $userIP, |
||
| 58 | ]]) |
||
| 59 | ->getBody() |
||
| 60 | ->getContents(); |
||
| 61 | |||
| 62 | return \GuzzleHttp\json_decode($contents); |
||
| 63 | } |
||
| 64 | } |