From 8b027b99520ce110f425b7296cee18bc07e1d9e4 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Fri, 14 Mar 2025 21:30:10 +0300 Subject: [PATCH] [OpenCVEBridge] Fix lint --- bridges/OpenCVEBridge.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridges/OpenCVEBridge.php b/bridges/OpenCVEBridge.php index 4b7c65eb..1e528322 100644 --- a/bridges/OpenCVEBridge.php +++ b/bridges/OpenCVEBridge.php @@ -338,7 +338,7 @@ class OpenCVEBridge extends BridgeAbstract $parts = explode('/', $cvssVector); if (!preg_match('/^CVSS:3\.[01]/', $parts[0])) { - return "Error: Not a valid CVSS v3.0 or v3.1 vector"; + return 'Error: Not a valid CVSS v3.0 or v3.1 vector'; } for ($i = 1; $i < count($parts); $i++) { @@ -476,13 +476,13 @@ class OpenCVEBridge extends BridgeAbstract return $html; } - function cvssV4VectorToTable($cvssVector) + private function cvssV4VectorToTable($cvssVector) { $vectorComponents = []; $parts = explode('/', $cvssVector); if (!preg_match('/^CVSS:4\.0/', $parts[0])) { - return "Error: Not a valid CVSS v4.0 vector"; + return 'Error: Not a valid CVSS v4.0 vector'; } for ($i = 1; $i < count($parts); $i++) {