Exakat\Reports\Ambassador::Bugfixes_cve PHP Метод

Bugfixes_cve() приватный Метод

private Bugfixes_cve ( $cve )
    private function Bugfixes_cve($cve)
    {
        if (!empty($cve)) {
            if (strpos($cve, ', ') !== false) {
                $cves = explode(', ', $cve);
                $cveHtml = array();
                foreach ($cves as $cve) {
                    $cveHtml[] = '<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=' . $cve . '">' . $cve . '</a>';
                }
                $cveHtml = implode(',<br />', $cveHtml);
            } else {
                $cveHtml = '<a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=' . $cve . '">' . $cve . '</a>';
            }
        } else {
            $cveHtml = '-';
        }
        return $cveHtml;
    }