Skip to content

Commit 8ecc291

Browse files
committed
CTP-3558 coding std phpdocs
1 parent 363b1f0 commit 8ecc291

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

classes/controllers/feedback_controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ protected function create_feedback() {
321321
*/
322322
protected function update_feedback() {
323323

324-
global $USER, $CFG;
324+
global $USER, $PAGE;
325325

326326
$teacherfeedback = new feedback($this->params['feedbackid']);
327327
$teacherfeedback->lasteditedbyuser = $USER->id;

classes/export/csv/cells/agreedgrade_cell.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ function value_in_rubric($criteria, $value) {
229229
* Takes the given cells and returns the cells with the singlegrade cell replaced by the rubric headers if the coursework instance
230230
* makes use of rubrics
231231
*
232+
* @param $coursework
232233
* @param $csv_cells
233-
*
234+
* @return array
234235
*/
235236
function get_rubrics($coursework, $csv_cells) {
236237

classes/render_helpers/grading_report/cells/moderation_agreement_cell.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function get_table_header_help_icon() {
154154
/**
155155
* @param grading_table_row_base $rowobject
156156
* @param user $assessor
157-
* @return array
157+
* @return string
158158
* @throws \coding_exception
159159
*/
160160
private function new_moderation_button($rowobject, $assessor) {
@@ -183,7 +183,7 @@ private function new_moderation_button($rowobject, $assessor) {
183183

184184
/**
185185
* @param $rowobject
186-
* @return array
186+
* @return string
187187
* @throws \coding_exception
188188
*/
189189
private function edit_moderation_button($rowobject) {

classes/render_helpers/grading_report/cells/plagiarism_flag_cell.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ public function header_group() {
101101
}
102102

103103
/**
104-
* @param grading_table_row_base $rowobject
105-
* @param $row_object
106-
* @return array
104+
* @param grading_table_row_base $row_object
105+
* @return string
107106
* @throws \coding_exception
108107
*/
109108
private function new_flag_plagiarism_button($row_object) {
@@ -125,9 +124,8 @@ private function new_flag_plagiarism_button($row_object) {
125124
}
126125

127126
/**
128-
* @param grading_table_row_base $rowobject
129-
* @param $row_object
130-
* @return array
127+
* @param grading_table_row_base $row_object
128+
* @return string
131129
* @throws \coding_exception
132130
*/
133131
private function edit_flag_plagiarism_button($row_object) {

classes/render_helpers/grading_report/cells/single_assessor_feedback_cell.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function header_group() {
160160

161161
/**
162162
* @param $rowobject
163-
* @return array
163+
* @return string
164164
* @throws \coding_exception
165165
*/
166166
private function edit_feedback_button($rowobject) {
@@ -208,7 +208,7 @@ private function show_feedback_button($rowobject) {
208208
/**
209209
* @param grading_table_row_base $rowobject
210210
* @param user $assessor
211-
* @return array
211+
* @return string
212212
* @throws \coding_exception
213213
*/
214214
private function new_feedback_button($rowobject, $assessor) {

classes/render_helpers/grading_report/sub_rows/multi_marker_feedback_sub_rows.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private function get_router() {
206206

207207
/**
208208
* @param assessor_feedback_row $feedback_row
209-
* @return array
209+
* @return string
210210
* @throws \coding_exception
211211
*/
212212
protected function edit_existing_feedback_link($feedback_row) {

renderers/object_renderer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,8 @@ protected function coursework_deadlines_table(mod_coursework_coursework $coursew
12671267
$deadline_extension_message = '';
12681268
if ($dealine_extension) {
12691269
$deadline_extension_message .= html_writer::start_tag('div');
1270-
$deadline_extension_message .= '<span class="text-success">You have an extension!</span><br> Your deadine is: '.userdate($dealine_extension->extended_deadline).'';
1270+
$deadline_extension_message .= '<span class="text-success">You have an extension!</span><br> Your deadine is: '
1271+
. userdate($dealine_extension->extended_deadline);
12711272
$deadline_extension_message .= html_writer::end_tag('div');
12721273
}
12731274

0 commit comments

Comments
 (0)