MDL-67818 check: Improved Check API to reduce boilerplate

This commit is contained in:
Brendan Heywood
2020-04-06 22:08:15 +10:00
parent 71576a58e6
commit 26bb3c24d2
21 changed files with 233 additions and 125 deletions
@@ -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');
}
/**