public static function get_severity_code(IssueInstance $instance) : string
{
$issue = $instance->getIssue();
$categoryId = $issue->getTypeId();
switch ($issue->getSeverity()) {
case Issue::SEVERITY_LOW:
return 'C' . $categoryId;
case Issue::SEVERITY_NORMAL:
return 'W' . $categoryId;
case Issue::SEVERITY_CRITICAL:
return 'E' . $categoryId;
}
}