From f9ea8c9dd94e471ecc876f4138ed9b8a8811bacf Mon Sep 17 00:00:00 2001 From: Gareth Barnard <1058419+gjb2048@users.noreply.github.com> Date: Sat, 30 Mar 2024 20:53:12 +0000 Subject: [PATCH] CC --- classes/admin_setting_highlight.php | 6 +++--- classes/toolbox.php | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/classes/admin_setting_highlight.php b/classes/admin_setting_highlight.php index 40d8c87..560b49e 100644 --- a/classes/admin_setting_highlight.php +++ b/classes/admin_setting_highlight.php @@ -37,9 +37,9 @@ class admin_setting_highlight extends \admin_setting { /** * Not a setting, just text * - * @param string $name - * @param string $visiblename - * @param string $description + * @param string $name Name of the setting. + * @param string $visiblename Visible name of the setting. + * @param string $description Description of the setting. */ public function __construct($name, $visiblename, $description) { $this->nosave = true; diff --git a/classes/toolbox.php b/classes/toolbox.php index fd7a682..8fc20c5 100644 --- a/classes/toolbox.php +++ b/classes/toolbox.php @@ -330,7 +330,8 @@ private function enlighterjs_init($config) { $data = new stdClass(); $data->thejs = new moodle_url(self::ENLIGHTERJSJS); $data->thecss = new moodle_url(self::ENLIGHTERJSCSSPRE . $config->enlighterjsstyle . self::ENLIGHTERJSCSSPOST); - $data->theinit = "EnlighterJS.init('pre code', 'code', {theme: '" . $config->enlighterjsstyle . "', indent : 4, collapse: true});"; + $data->theinit = "EnlighterJS.init('pre code', 'code', {theme: '" . + $config->enlighterjsstyle . "', indent : 4, collapse: true});"; return $data; } @@ -345,7 +346,8 @@ private function enlighterjs_init($config) { private function syntaxhighlighter_init($config) { $data = new stdClass(); $data->thejs = new moodle_url(self::SYNTAXHIGHLIGHTERJS); - $data->thecss = new moodle_url(self::SYNTAXHIGHLIGHTERCSSPRE . $config->syntaxhighlighterstyle . self::SYNTAXHIGHLIGHTERCSSPOST); + $data->thecss = new moodle_url(self::SYNTAXHIGHLIGHTERCSSPRE . + $config->syntaxhighlighterstyle . self::SYNTAXHIGHLIGHTERCSSPOST); return $data; }