From 3b681d41113ed16b8675fc95067038e80552278a Mon Sep 17 00:00:00 2001 From: Pol Torrent i Soler Date: Mon, 4 Nov 2024 12:44:57 +0100 Subject: [PATCH] chore: cleanup --- step.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/step.php b/step.php index 408946ee..e3355720 100644 --- a/step.php +++ b/step.php @@ -183,12 +183,7 @@ public function get_qt_data() { $DB = $this->get_db(); } } - /** - * - * @param type $name - * @param type $subquesbool whether the variable is from the subquestion or the parent (only cloze). - * @return null - */ + public function get_var(string $name, bool $subquesbool = true) { $name = $this->trim_name($name, $subquesbool); @@ -259,9 +254,7 @@ public function is_attempt_limit_reached() { $isreached = $c >= self::MAX_ATTEMPS_SHORTANSWER_WIRIS; - $islogmodeenabled = get_config('qtype_wq', 'log_server_errors') == '1'; - if ($islogmodeenabled) { $errormessage = 'WIRISQUIZZES ATTEMPT LIMIT REACHED FOR STEP WITH ID ' . ($this->step != null ? $this->step->get_id() : $this->stepid); @@ -282,7 +275,6 @@ public function inc_attempts(moodle_exception $e) { } $islogmodeenabled = get_config('qtype_wq', 'log_server_errors') == '1'; - if ($islogmodeenabled) { $errormessage = 'WIRISQUIZZES ATTEMPT ERROR --- INCREASING ATTEMPT COUNT TO ' . ($c + 1) . ' FOR STEP WITH ID ' . ($this->step != null ? $this->step->get_id() : $this->stepid) . PHP_EOL .