| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function perform() { |
||
| 34 | echo "[-] PingJob starting" . PHP_EOL; |
||
| 35 | $log = new DeploynautLogFile($this->args['logfile']); |
||
| 36 | |||
| 37 | $ping = DNPing::get()->byID($this->args['pingID']); |
||
| 38 | $environment = $ping->Environment(); |
||
| 39 | $project = $environment->Project(); |
||
| 40 | $environment->Backend()->ping($environment, $log, $project); |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
Instead of relying on
globalstate, we recommend one of these alternatives:1. Pass all data via parameters
2. Create a class that maintains your state