Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | interface SystemInterface |
||
6 | { |
||
7 | /** |
||
8 | * Run command asynchronously, and get pid of its process. |
||
9 | * |
||
10 | * @param string $command |
||
11 | * @return string |
||
12 | */ |
||
13 | public function run($command); |
||
14 | |||
15 | /** |
||
16 | * Kill process with given pid, returns whether operation was successful. |
||
17 | * |
||
18 | * @param string $pid |
||
19 | * @return bool |
||
20 | */ |
||
21 | public function kill($pid); |
||
22 | |||
23 | /** |
||
24 | * Checks if process with given pid exists, returns whether operation was successful. |
||
25 | * |
||
26 | * @param string $pid |
||
27 | * @param bool $isolate |
||
|
|||
28 | * @return bool |
||
29 | */ |
||
30 | public function existsPid($pid); |
||
31 | } |
||
32 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.