| Conditions | 3 |
| Paths | 3 |
| Total Lines | 20 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 37 | public function handle() |
||
| 38 | { |
||
| 39 | $results = []; |
||
| 40 | |||
| 41 | $pings = Ping::active()->get(); |
||
|
|
|||
| 42 | foreach ($pings as $ping) { |
||
| 43 | /** @var Ping $ping */ |
||
| 44 | |||
| 45 | $results[] = [$ping->error, $ping->name, $ping->last_ping, $ping->frequency_value . ' ' . $ping->frequency, $ping->overdueDate, $ping->overdue]; |
||
| 46 | |||
| 47 | if ($ping->overdue) { |
||
| 48 | $ping->setError(); |
||
| 49 | } else { |
||
| 50 | $ping->clearError(); |
||
| 51 | } |
||
| 52 | |||
| 53 | } |
||
| 54 | |||
| 55 | $this->table(['error', 'name', 'last_ping', 'frequency', 'overdue_date', 'overdue'], $results); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.