Skip to content

Commit fa1db75

Browse files
committed
CTP-3558 coding std PR comments
1 parent 85758db commit fa1db75

File tree

7 files changed

+5
-9
lines changed

7 files changed

+5
-9
lines changed

classes/file_importer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public function extract_zip_file($filename, $contextid) {
3434

3535
global $USER;
3636

37-
// Raise_memory_limit(MEMORY_EXTRA);
38-
//@set_time_limit(ASSIGNFEEDBACK_FILE_MAXFILEUNZIPTIME);
37+
// raise_memory_limit(MEMORY_EXTRA);
38+
// @set_time_limit(ASSIGNFEEDBACK_FILE_MAXFILEUNZIPTIME);
3939

4040
$packer = get_file_packer('application/zip');
4141

classes/models/sample_set_rule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function __construct($coursework) {
106106

107107
$this->coursework = $coursework;
108108

109-
// Parent::__construct($dbrecord);
109+
// parent::__construct($dbrecord);
110110

111111
// We cannot set this from outside if we are making a new one.
112112
if (!isset($this->ruleorder)) {
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

lang/en/coursework.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@
855855
$string['moderationenabled_help'] = 'Allow a moderator to mark a subset of the submissions. A moderator\'s grade becomes the final grade for any submission they mark.';
856856
$string['grade_help'] = 'Select the grade scale on which this coursework will be marked';
857857
$string['anonymitydescription'] = '<p>Blind marking - You will not see students names';
858-
$string['allocationenabled_help'] = 'Restrict which assessors will mark which submission,';
858+
$string['allocationenabled_help'] = 'Restrict which assessors will mark which submission';
859859

860860
$string['oneweekoption'] = '1 week';
861861
$string['twoweeksoption'] = '2 weeks';

tests/classes/export/csv_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class csv_test extends advanced_testcase {
4040

4141
use mod_coursework\test_helpers\factory_mixin;
4242

43-
public function setUp() {
43+
public function setUp():void {
4444

4545
$this->resetAfterTest();
4646

view.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,6 @@
416416
$PAGE->set_title($coursework->name);
417417
$PAGE->set_heading($course->shortname);
418418

419-
// $PAGE->set_button($OUTPUT->update_module_button($course_module->id, 'coursework')); // deprecated from 3.2 (MDL-53765 core)
420-
421419
// Auto publish after the deadline
422420
if ($coursework->has_individual_autorelease_feedback_enabled() &&
423421
$coursework->individual_feedback_deadline_has_passed() &&

0 commit comments

Comments
 (0)