Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol Torrent i Soler committed Nov 4, 2024
1 parent 0cd3246 commit 3b681d4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions step.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand All @@ -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 .
Expand Down

0 comments on commit 3b681d4

Please sign in to comment.