Skip to content

Commit 1e50a3c

Browse files
committed
CTP-3690 spacing
1 parent dca59d9 commit 1e50a3c

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

classes/auto_grader/percentage_distance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function create_auto_grade_if_rules_match() {
7575
return;
7676
}
7777

78-
if ($this->grades_are_close_enough() ) {
78+
if ($this->grades_are_close_enough()) {
7979
if (!$this->get_allocatable()->has_agreed_feedback($this->get_coursework())) {
8080
$this->create_final_feedback();
8181
} else {

classes/controllers/personal_deadlines_controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function new_personal_deadline() {
7070

7171
$data = $this->form->get_data();
7272

73-
if (empty($data->multipleuserdeadlines) ) {
73+
if (empty($data->multipleuserdeadlines)) {
7474
if (!$this->get_personal_deadline()) { // personal deadline doesnt exist
7575
// add new
7676
$data->createdbyid = $USER->id;

classes/export/csv/cells/agreedfeedback_cell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function validate_cell($value, $submissionid, $stageidentifier='', $uploa
6666
$submission = \mod_coursework\models\submission::find($subdbrecord);
6767

6868
// Is the submission in question ready to grade?
69-
if (!$submission->all_inital_graded() && !empty($value)) {
69+
if (!$submission->all_inital_graded() && !empty($value)) {
7070
return get_string('submissionnotreadyforagreedgrade', 'coursework');
7171
}
7272

classes/export/csv/cells/otherassessors_cell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function get_cell($submission, $student, $stageidentifier) {
7070
continue;
7171
}
7272
$ability = new ability(user::find($USER), $this->coursework);
73-
if ((($ability->can('show', $feedback) || has_capability('mod/coursework:addallocatedagreedgrade', $submission->get_coursework()->get_context())) &&
73+
if ((($ability->can('show', $feedback) || has_capability('mod/coursework:addallocatedagreedgrade', $submission->get_coursework()->get_context())) &&
7474
(!$submission->any_editable_feedback_exists() && count($submission->get_assessor_feedbacks()) <= $submission->max_number_of_feedbacks())) || is_siteadmin($USER->id)) {
7575

7676
if ($this->coursework->is_using_rubric()) {

classes/export/import.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function rubric_count_correct($csvheader, $linefromimportedcsv) {
202202
$offset = 0;
203203

204204
foreach ($typepositions as $position) {
205-
//if ($position = array_search($type, $csvheader)) {
205+
// if ($position = array_search($type, $csvheader)) {
206206
$class = "mod_coursework\\export\\csv\\cells\\{$type}_cell";
207207
$cell = new $class($this->coursework);
208208

@@ -611,7 +611,7 @@ public function add_grade($submissionid, $grade, $feedback, $stageidentifier, $u
611611

612612
$feedbackid = $DB->insert_record('coursework_feedbacks', $addgrade, true);
613613

614-
if ($usesrubric) {
614+
if ($usesrubric) {
615615
$controller = $this->coursework->get_advanced_grading_active_controller();
616616
// Find out how many criteria there are
617617
$gradinginstance = $controller->get_or_create_instance(0, $USER->id, $feedbackid);

classes/sample_set_rule/range_sample_type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function range_elements($assessornumber, $sequence, $dbrecord=false) {
9494

9595
$scale = [];
9696

97-
if ($this->coursework->grade > 0) {
97+
if ($this->coursework->grade > 0) {
9898
for ($i = 0; $i <= $this->coursework->grade; $i++) {
9999
$scale[] = $i;
100100
}

mod_form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public function validation($data, $files) {
227227
$errors['agreedgrademarkingdeadline'] = get_string('must_be_after_initial_grade_dealdine', 'mod_coursework');
228228
}
229229

230-
if (isset($data['relativeagreedmarkingdeadline']) && $data['relativeagreedmarkingdeadline'] != 0 && $data['relativeagreedmarkingdeadline'] < $data['relativeinitialmarkingdeadline'] ) {
230+
if (isset($data['relativeagreedmarkingdeadline']) && $data['relativeagreedmarkingdeadline'] != 0 && $data['relativeagreedmarkingdeadline'] < $data['relativeinitialmarkingdeadline'] ) {
231231
$errors['relativeagreedmarkingdeadline'] = get_string('must_be_after_or_equal_to_relative_initial_grade_dealdine', 'mod_coursework');
232232

233233
}

renderers/object_renderer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ public function render_mod_coursework_sampling_set_widget(mod_coursework_samplin
787787

788788
$scale = "";
789789

790-
if ($samplingwidget->get_coursework()->grade > 0) {
790+
if ($samplingwidget->get_coursework()->grade > 0) {
791791

792792
$comma = "";
793793

@@ -1629,7 +1629,7 @@ public function get_allocatables_count_per_assessor($coursework) {
16291629
$submission = $allocatable->get_submission($coursework);
16301630

16311631
if ($coursework->assessor_has_any_allocation_for_student($allocatable) || has_capability('mod/coursework:addagreedgrade', $coursework->get_context())
1632-
&& !empty($submission) && (($submission->all_inital_graded() && !$coursework->sampling_enabled())
1632+
&& !empty($submission) && (($submission->all_inital_graded() && !$coursework->sampling_enabled())
16331633
|| ($coursework->sampling_enabled() && $submission->all_inital_graded() && $submission->max_number_of_feedbacks() > 1 ))) {
16341634
$participant ++;
16351635
}
@@ -1805,7 +1805,7 @@ public function get_submissions_for_assessor($coursework, $submissions) {
18051805
foreach ($submissions as $sub) {
18061806
$submission = submission::find($sub);
18071807
if ($coursework->assessor_has_any_allocation_for_student($submission->reload()->get_allocatable()) || (has_capability('mod/coursework:addagreedgrade', $coursework->get_context()))
1808-
&& !empty($submission) && (($submission->all_inital_graded() && !$submission->get_coursework()->sampling_enabled())
1808+
&& !empty($submission) && (($submission->all_inital_graded() && !$submission->get_coursework()->sampling_enabled())
18091809
|| ($submission->get_coursework()->sampling_enabled() && $submission->all_inital_graded() && $submission->max_number_of_feedbacks() > 1))) {
18101810

18111811
$gradeblesub[$submission->id] = $submission;

0 commit comments

Comments
 (0)