MDL-67818 check: Improved Check API to reduce boilerplate
This commit is contained in:
@@ -41,13 +41,12 @@ use core\check\result;
|
||||
class preventexecpath extends check {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Get the short check name
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __construct() {
|
||||
|
||||
global $CFG;
|
||||
$this->id = 'preventexecpath';
|
||||
$this->name = get_string('check_preventexecpath_name', 'report_security');
|
||||
public function get_name(): string {
|
||||
return get_string('check_preventexecpath_name', 'report_security');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user