diff --git a/renderer.php b/renderer.php index e5ef47af..953a3858 100644 --- a/renderer.php +++ b/renderer.php @@ -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 ); @@ -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(); diff --git a/tests/behat/behat_mod_ratingallocate.php b/tests/behat/behat_mod_ratingallocate.php index b953f466..ad0af1fb 100644 --- a/tests/behat/behat_mod_ratingallocate.php +++ b/tests/behat/behat_mod_ratingallocate.php @@ -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: