Skip to content

Commit

Permalink
Fix coding style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriim committed Apr 2, 2024
1 parent af203ab commit 116f9ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -679,14 +679,14 @@ public function display_range_score($mode, $levels, $sortlevels, $isranged = fal
}
} else {
if ($sortlevels) {
$previousScore = $levelsonly[$levelkey - 1]['score'] + 1;
$a->rangestart = $previousScore;
$previousscore = $levelsonly[$levelkey - 1]['score'] + 1;
$a->rangestart = $previousscore;
$a->rangeend = $level['score'];
$levels[$level['id']]['score'] = get_string('levelrange', 'gradingform_rubric_ranges', $a);
} else {
$nextScore = $levelsonly[$levelkey + 1]['score'] + 1;
$nextscore = $levelsonly[$levelkey + 1]['score'] + 1;
$a->rangestart = $level['score'];
$a->rangeend = $nextScore;
$a->rangeend = $nextscore;
$levels[$level['id']]['score'] = get_string('levelrange', 'gradingform_rubric_ranges', $a);
}
}
Expand Down

0 comments on commit 116f9ec

Please sign in to comment.