Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | protected function startNextCheck() |
||
37 | { |
||
38 | if ($this->pendingChecks->isEmpty()) { |
||
39 | return; |
||
40 | } |
||
41 | |||
42 | $check = $this->pendingChecks->shift(); |
||
43 | |||
44 | ConsoleOutput::comment($check->host->name.": performing check `{$check->type}`..."); |
||
45 | |||
46 | $check->getProcess()->start(); |
||
47 | |||
48 | $this->runningChecks->push($check); |
||
49 | } |
||
50 | |||
68 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.