public static function antivir_scan_file($thefile, $filename, $deleteinfected) {
        debugging('Please upgrade your code to use \core\antivirus\manager::scan_file instead', DEBUG_DEVELOPER);
        \core\antivirus\manager::scan_file($thefile, $filename, $deleteinfected);
    }
public static function antivir_scan_file($thefile, $filename, $deleteinfected) {
        debugging('Please upgrade your code to use \core\antivirus\manager::scan_file instead', DEBUG_DEVELOPER);
        \core\antivirus\manager::scan_file($thefile, $filename, $deleteinfected);
    }
public static function antivir_scan_file ( $ thefile , $ filename , $ deleteinfected ) { debugging ( 'Please upgrade your code to use \core\antivirus\manager::scan_file instead' , DEBUG_DEVELOPER ) ; \ core \ antivirus \ manager :: scan_file ( $ thefile , $ filename , $ deleteinfected ) ; }
Scan file, throws exception in case of infected file.

Please note that the scanning engine must be able to access the file,
permissions of the file are not modified here!

@static
@deprecated since Moodle 3.0
@param string $thefile
@param string $filename name of the file
@param bool $deleteinfected
Scan file throws exception in case of infected file .