1 | <?php |
||
4 | class ServerItemFactory |
||
5 | { |
||
6 | public static function createFromObj(\stdClass $server) |
||
24 | |||
25 | /** |
||
26 | * The PID is no longer required to be greater than zero. (when PID = zero, this usually means it's stopped). |
||
27 | * |
||
28 | * @param string $name |
||
29 | * @param int $pid |
||
30 | * @param int $port |
||
31 | * @param string $configFilePath |
||
32 | * |
||
33 | * @return ServerItem |
||
34 | * @throws \Exception |
||
35 | */ |
||
36 | public static function createFromProperties($name, $pid, $port, $configFilePath) |
||
54 | } |
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.