| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 1 | public function session(string $code) |
|
| 33 | { |
||
| 34 | $params = [ |
||
| 35 | 1 | 'appid' => $this->app['config']['app_id'], |
|
| 36 | 1 | 'secret' => $this->app['config']['secret'], |
|
| 37 | 1 | 'js_code' => $code, |
|
| 38 | 1 | 'grant_type' => 'authorization_code', |
|
| 39 | ]; |
||
| 40 | |||
| 41 | 1 | return $this->httpGet('sns/jscode2session', $params); |
|
| 42 | } |
||
| 44 |