Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 1 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | function getAccessToken($type,$appId,$appSecret,$agentid = 0) |
||
|
|||
10 | { |
||
11 | switch ($type){ |
||
12 | case 'wechatoffical': |
||
13 | $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$appId}&secret={$appSecret}"; |
||
14 | break; |
||
15 | case 'miniprogram': |
||
16 | $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$appId}&secret={$appSecret}"; |
||
17 | break; |
||
18 | default: |
||
19 | return '类型错误'; |
||
32 | } |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.