| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 49 | protected function removeIncident(IncidentContext $context, bool $incidentResolved): void |
||
| 50 | { |
||
| 51 | $incidents = Context::getCommandContext() |
||
| 52 | ->getIncidentManager() |
||
| 53 | ->findIncidentByConfiguration($context->getConfiguration()); |
||
| 54 | |||
| 55 | foreach ($incidents as $currentIncident) { |
||
| 56 | $incident = $currentIncident; |
||
| 57 | if ($incidentResolved) { |
||
| 58 | $incident->resolve(); |
||
| 59 | } else { |
||
| 60 | $incident->delete(); |
||
| 61 | } |
||
| 65 |