Skip to content

Commit

Permalink
codestyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
irinahpe committed Jun 3, 2024
1 parent 53a34cb commit a8edac3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ public function reports_group($ratingallocateid, $coursemoduleid, $status, $cont
'action', array(
ACTION_SHOW_RATINGS_AND_ALLOCATION_TABLE => get_string('show_table', RATINGALLOCATE_MOD_NAME),
ACTION_SHOW_ALLOCATION_TABLE => get_string('show_allocation_table', RATINGALLOCATE_MOD_NAME),
ACTION_SHOW_STATISTICS => get_string('show_allocation_statistics', RATINGALLOCATE_MOD_NAME)
ACTION_SHOW_STATISTICS => get_string('show_allocation_statistics', RATINGALLOCATE_MOD_NAME),
),
$action
);
Expand Down Expand Up @@ -854,7 +854,8 @@ public function statistics_table_for_ratingallocate(ratingallocate $ratingalloca
'notrated' => $notrated,
'rated' => $activeraters,
'rating' => $titles[max(array_keys($distributiondata))],
'unassigned' => count($ratingallocate->get_undistributed_users()))));
'unassigned' => count($ratingallocate->get_undistributed_users()),
]));
$output .= html_writer::table($allocationtable);
}
$output .= $this->box_end();
Expand Down
4 changes: 2 additions & 2 deletions tests/behat/behat_mod_ratingallocate.php
Original file line number Diff line number Diff line change
Expand Up @@ -681,13 +681,13 @@ protected function resolve_page_instance_url(string $type, string $identifier):

case 'choices':
return new moodle_url('/mod/ratingallocate/view.php', [
'id' => $this->get_cm_by_ratingallocate_name($identifier)->id, 'action' => ACTION_SHOW_CHOICES
'id' => $this->get_cm_by_ratingallocate_name($identifier)->id, 'action' => ACTION_SHOW_CHOICES,
]);

case 'reports':
return new moodle_url('/mod/ratingallocate/view.php', [
'id' => $this->get_cm_by_ratingallocate_name($identifier)->id,
'action' => ACTION_SHOW_RATINGS_AND_ALLOCATION_TABLE
'action' => ACTION_SHOW_RATINGS_AND_ALLOCATION_TABLE,
]);

default:
Expand Down

0 comments on commit a8edac3

Please sign in to comment.