Skip to content

Commit

Permalink
Improvements to satisfy code checker.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaboesch committed Jan 19, 2024
1 parent 93d709b commit 1b49466
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions classes/feedback/section.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

namespace mod_questionnaire\feedback;

defined('MOODLE_INTERNAL') || die();

use invalid_parameter_exception;
use coding_exception;

Expand Down
2 changes: 1 addition & 1 deletion classes/responsetype/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public function get_results_tags($weights, $participants, $respondents, $showtot
$file = $fs->get_file_by_id($row->fileid);

if ($file) {
// There is a file.
// There is a file.
$imageurl = moodle_url::make_pluginfile_url(
$file->get_contextid(),
$file->get_component(),
Expand Down
2 changes: 1 addition & 1 deletion db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ function xmldb_questionnaire_upgrade($oldversion=0) {
}

if ($oldversion < 2023101501) {
// Upgrade files.itemid with questionnaire_response_file.id
// Upgrade files.itemid with questionnaire_response_file.id.
$filesresponses = $DB->get_records('questionnaire_response_file', [], '', 'id,fileid');
$idmap = [];
foreach ($filesresponses as $fileresponse) {
Expand Down

0 comments on commit 1b49466

Please sign in to comment.