1 | <?php |
||
5 | class DemoAgent extends Agent |
||
6 | { |
||
7 | //override |
||
8 | //发送短信一级入口 |
||
9 | public function sendSms($tempId, $to, array $tempData, $content) |
||
16 | |||
17 | //override |
||
18 | //发送短信二级入口:发送内容短信 |
||
19 | public function sendContentSms($to, $content) |
||
33 | |||
34 | //override |
||
35 | //发送短信二级入口:发送模板短信 |
||
36 | public function sendTemplateSms($tempId, $to, array $tempData) |
||
40 | |||
41 | //override |
||
42 | //发送语音验证码入口 |
||
43 | public function voiceVerify($to, $code) |
||
47 | } |
||
48 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.