Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
19 | public function sendContentSms($to, $content) |
||
20 | { |
||
21 | //获取配置文件中的参数 |
||
22 | //$x = $this->x; |
||
|
|||
23 | |||
24 | //内置方法: |
||
25 | // Agent::sockPost(); |
||
26 | // Agent::curl(); |
||
27 | |||
28 | //切记更新发送结果 |
||
29 | $this->result(Agent::SUCCESS, true); //是否发送成功 |
||
30 | $this->result(Agent::INFO, 'info'); //发送结果信息说明 |
||
31 | $this->result(Agent::CODE, 'code'); //发送结果代码 |
||
32 | } |
||
33 | |||
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.