From 93dfd51516314b3702454620782f5e497e8fe769 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Thu, 23 Feb 2023 10:47:55 +0000 Subject: [PATCH] MDL-77384 check: clarify statistics check name. --- lib/classes/check/performance/stats.php | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/lib/classes/check/performance/stats.php b/lib/classes/check/performance/stats.php index 052b51cc5d4..37c20f626d6 100644 --- a/lib/classes/check/performance/stats.php +++ b/lib/classes/check/performance/stats.php @@ -14,27 +14,18 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . -/** - * Stats check - * - * @package core - * @category check - * @copyright 2020 Brendan Heywood - * @copyright 2008 petr Skoda - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later - */ - namespace core\check\performance; -defined('MOODLE_INTERNAL') || die(); - use core\check\check; use core\check\result; /** * Stats check * + * @package core + * @category check * @copyright 2020 Brendan Heywood + * @copyright 2008 petr Skoda * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class stats extends check { @@ -45,13 +36,13 @@ class stats extends check { * @return string */ public function get_name(): string { - return get_string('check_riskadmin_name', 'report_security'); + return get_string('stats'); } /** * A link to a place to action this * - * @return action_link|null + * @return \action_link|null */ public function get_action_link(): ?\action_link { return new \action_link(