Skip to content

Commit

Permalink
CTP-3558 coding std PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
watson8 committed Aug 19, 2024
1 parent 85758db commit fa1db75
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions classes/file_importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public function extract_zip_file($filename, $contextid) {

global $USER;

// Raise_memory_limit(MEMORY_EXTRA);
//@set_time_limit(ASSIGNFEEDBACK_FILE_MAXFILEUNZIPTIME);
// raise_memory_limit(MEMORY_EXTRA);
// @set_time_limit(ASSIGNFEEDBACK_FILE_MAXFILEUNZIPTIME);

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

Expand Down
2 changes: 1 addition & 1 deletion classes/models/sample_set_rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function __construct($coursework) {

$this->coursework = $coursework;

// Parent::__construct($dbrecord);
// parent::__construct($dbrecord);

// We cannot set this from outside if we are making a new one.
if (!isset($this->ruleorder)) {
Expand Down
1 change: 0 additions & 1 deletion classes/renderers/coursework_renderer.php
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion classes/renderers/submission_renderer.php
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

2 changes: 1 addition & 1 deletion lang/en/coursework.php
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@
$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.';
$string['grade_help'] = 'Select the grade scale on which this coursework will be marked';
$string['anonymitydescription'] = '<p>Blind marking - You will not see students names';
$string['allocationenabled_help'] = 'Restrict which assessors will mark which submission,';
$string['allocationenabled_help'] = 'Restrict which assessors will mark which submission';

$string['oneweekoption'] = '1 week';
$string['twoweeksoption'] = '2 weeks';
Expand Down
2 changes: 1 addition & 1 deletion tests/classes/export/csv_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class csv_test extends advanced_testcase {

use mod_coursework\test_helpers\factory_mixin;

public function setUp() {
public function setUp():void {

$this->resetAfterTest();

Expand Down
2 changes: 0 additions & 2 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,6 @@
$PAGE->set_title($coursework->name);
$PAGE->set_heading($course->shortname);

// $PAGE->set_button($OUTPUT->update_module_button($course_module->id, 'coursework')); // deprecated from 3.2 (MDL-53765 core)

// Auto publish after the deadline
if ($coursework->has_individual_autorelease_feedback_enabled() &&
$coursework->individual_feedback_deadline_has_passed() &&
Expand Down

0 comments on commit fa1db75

Please sign in to comment.