| 1 | <?php |
||
| 11 | class ExecutionProcessFactory |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $consolePath; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $environment; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var float|null |
||
| 25 | */ |
||
| 26 | private $processTimeout; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $consolePath |
||
| 30 | * @param float|null $processTimeout |
||
| 31 | * @param string $environment |
||
| 32 | */ |
||
| 33 | public function __construct($consolePath, $processTimeout, $environment) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Create process for given execution-uuid. |
||
| 42 | * |
||
| 43 | * @param string $uuid |
||
| 44 | * |
||
| 45 | * @return Process |
||
| 46 | */ |
||
| 47 | public function create($uuid) |
||
| 55 | } |
||
| 56 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.