Change function visibility to allow usage as library

This commit is contained in:
Gabor Gyorvari
2020-06-23 19:37:29 +02:00
parent 8b1994956e
commit 2973e55871

View File

@@ -104,7 +104,7 @@ class MalwareScanner
} }
//Handles pattern loading and saving to the class object //Handles pattern loading and saving to the class object
private function initializePatterns() public function initializePatterns()
{ {
$dir = dirname(__FILE__); $dir = dirname(__FILE__);
//Loads either the primary scanning patterns or the base64 patterns depending on -b/--base64 flag //Loads either the primary scanning patterns or the base64 patterns depending on -b/--base64 flag
@@ -176,7 +176,7 @@ class MalwareScanner
} }
//Loads the whitelist file //Loads the whitelist file
private function loadWhitelist() public function loadWhitelist()
{ {
if (!is_file(__DIR__ . '/whitelist.txt')) { if (!is_file(__DIR__ . '/whitelist.txt')) {
return; return;