SystemInterface::kill()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace Dazzle\Util\System;
4
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
0 ignored issues
show
Bug introduced by
There is no parameter named $isolate. Was it maybe removed?

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 method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
28
     * @return bool
29
     */
30
    public function existsPid($pid);
31
}
32