Skip to content

Commit

Permalink
MDL-68665 assignfeedback_editpdf: Coding style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Oct 8, 2020
1 parent 814ec28 commit 36419cf
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions mod/assign/feedback/editpdf/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ public function get_widget($userid, $grade, $readonly) {
$grade = $this->assignment->get_user_grade($userid, true);
}

$feedbackfile = document_services::get_feedback_document($this->assignment->get_instance()->id,
$userid,
$attempt);
$feedbackfile = document_services::get_feedback_document(
$this->assignment->get_instance()->id,
$userid,
$attempt
);

$stampfiles = array();
$systemfiles = array();
$fs = get_file_storage();
$syscontext = context_system::instance();
$asscontext = $this->assignment->get_context();
Expand Down Expand Up @@ -153,24 +154,27 @@ public function get_widget($userid, $grade, $readonly) {
$url = false;
$filename = '';
if ($feedbackfile) {
$url = moodle_url::make_pluginfile_url($this->assignment->get_context()->id,
'assignfeedback_editpdf',
document_services::FINAL_PDF_FILEAREA,
$grade->id,
'/',
$feedbackfile->get_filename(),
false);
$url = moodle_url::make_pluginfile_url(
$this->assignment->get_context()->id,
'assignfeedback_editpdf',
document_services::FINAL_PDF_FILEAREA,
$grade->id,
'/',
$feedbackfile->get_filename(),
false
);
$filename = $feedbackfile->get_filename();
}

$widget = new assignfeedback_editpdf_widget($this->assignment->get_instance()->id,
$userid,
$attempt,
$url,
$filename,
$stampfiles,
$readonly
);
$widget = new assignfeedback_editpdf_widget(
$this->assignment->get_instance()->id,
$userid,
$attempt,
$url,
$filename,
$stampfiles,
$readonly
);
return $widget;
}

Expand Down

0 comments on commit 36419cf

Please sign in to comment.