Skip to content

Commit

Permalink
Fix codechecker errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AnupamaSarjoshi committed Jun 26, 2023
1 parent a7cfd53 commit 562929e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 24 deletions.
4 changes: 1 addition & 3 deletions classes/output/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
* @copyright 2023 The Open University
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

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


/**
* Generates the output for oumatrix questions.
*
Expand Down
9 changes: 4 additions & 5 deletions db/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
/**
* Code to be executed after the plugin's database scheme has been installed is defined here.
*
* @package qtype_oumatrix
* @category upgrade
* @copyright 2023 The Open University
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @package qtype_oumatrix
* @copyright 2023 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/


/**
* Custom code to be run on installing the plugin.
*/
Expand Down
3 changes: 1 addition & 2 deletions db/uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
* Code that is executed before the tables and data are dropped during the plugin uninstallation.
*
* @package qtype_oumatrix
* @category upgrade
* @copyright 2023 The Open University
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/


/**
* Custom uninstallation procedure.
*/
Expand Down
11 changes: 5 additions & 6 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
/**
* Plugin upgrade steps are defined here.
*
* @package qtype_oumatrix
* @category upgrade
* @copyright 2023 The Open University
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @package qtype_oumatrix
* @copyright 2023 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/


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


require_once(__DIR__.'/upgradelib.php');

/**
Expand Down
3 changes: 1 addition & 2 deletions db/upgradelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
* Plugin upgrade helper functions are defined here.
*
* @package qtype_oumatrix
* @category upgrade
* @copyright 2023 The Open University
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/


/**
* Helper function used by the upgrade.php file.
*/
Expand Down
2 changes: 1 addition & 1 deletion lang/en/qtype_oumatrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
$string['answersingleno'] = 'Multiple response';
$string['answersingleyes'] = 'Single choice';
$string['grademethod'] = 'Marking mode';
$string['grademethod_help'] = 'Standard (subpoints): each correct response in the body cells is worth one point, so students score a percentage of the total correct responses.
$string['grademethod_help'] = 'Standard (subpoints): each correct response in the body cells is worth one point, so students score a percentage of the total correct responses.
All or nothing: students must get every response correct, otherwise they score zero.';
$string['gradepartialcredit'] = 'Give partial credit';
Expand Down
2 changes: 0 additions & 2 deletions question.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

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

// For a complete list of base question classes please examine the file
// /question/type/questionbase.php.
//
Expand Down
5 changes: 2 additions & 3 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@
* Plugin administration pages are defined here.
*
* @package qtype_oumatrix
* @category admin
* @copyright 2023 The Open University
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/


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


if ($hassiteconfig) {
$settings = new admin_settingpage('qtype_oumatrix_settings', new lang_string('pluginname', 'qtype_oumatrix'));

Expand Down

0 comments on commit 562929e

Please sign in to comment.