diff --git a/classes/check/failingtaskcheck.php b/classes/check/failingtaskcheck.php index db2f54c..97683ea 100644 --- a/classes/check/failingtaskcheck.php +++ b/classes/check/failingtaskcheck.php @@ -15,6 +15,7 @@ // along with Moodle. If not, see . namespace tool_heartbeat\check; + use core\check\check; use core\check\result; @@ -39,7 +40,6 @@ class failingtaskcheck extends check { /** @var \stdClass $task Record of task that is failing **/ private $task; - /** * Constructor */ @@ -123,7 +123,7 @@ public function get_ref(): string { * @return array of failing tasks */ public static function get_failing_tasks(): array { - global $DB, + global $DB; $tasks = []; // Instead of using task API here, we read directly from the database.