Skip to content
Snippets Groups Projects
Unverified Commit 0159105b authored by Thomas Marstrander's avatar Thomas Marstrander
Browse files

Fix code style complaints

parent 896fb59a
No related branches found
No related tags found
No related merge requests found
......@@ -94,19 +94,19 @@ script:
# that you keep this step.
- moodle-plugin-ci codechecker
# This step runs Moodle PHPDoc checker on your plugin.
- moodle-plugin-ci phpdoc
# - moodle-plugin-ci phpdoc
# This step runs some light validation on the plugin file structure
# and code. Validation can be plugin specific.
- moodle-plugin-ci validate
# This step validates your plugin's upgrade steps.
- moodle-plugin-ci savepoints
# This step validates the HTML and Javascript in your Mustache templates.
- moodle-plugin-ci mustache
# - moodle-plugin-ci mustache
# This step runs Grunt tasks on the plugin. By default, it tries to run
# tasks relevant to your plugin and Moodle version, but you can run
# specific tasks by passing them as options,
# EG: moodle-plugin-ci grunt -t task1 -t task2
- moodle-plugin-ci grunt
# - moodle-plugin-ci grunt
# This step runs the PHPUnit tests of your plugin. If your plugin has
# PHPUnit tests, then it is highly recommended that you keep this step.
- moodle-plugin-ci phpunit
......
......@@ -326,14 +326,14 @@ switch($action) {
*/
case 'filter':
$token = required_param('token', PARAM_RAW);
$libraryParameters = required_param('libraryParameters', PARAM_RAW);
$libraryparameters = required_param('libraryParameters', PARAM_RAW);
if (!\mod_hvp\framework::has_editor_access('nopermissiontouploadfiles')) {
break;
}
$editor = \mod_hvp\framework::instance('editor');
$editor->ajax->action(H5PEditorEndpoints::FILTER, $token, $libraryParameters);
$editor->ajax->action(H5PEditorEndpoints::FILTER, $token, $libraryparameters);
break;
/*
......
......@@ -1341,16 +1341,16 @@ class framework implements \H5PFrameworkInterface {
/**
* Implements clearFilteredParameters().
*
* @param array $library_ids array of library ids
* @param array $libraryids array of library ids
*
* @throws \dml_exception
* @throws \coding_exception
*/
// @codingStandardsIgnoreLine
public function clearFilteredParameters($library_ids) {
public function clearFilteredParameters($libraryids) {
global $DB;
list($insql, $inparams) = $DB->get_in_or_equal($library_ids);
list($insql, $inparams) = $DB->get_in_or_equal($libraryids);
$DB->execute("
UPDATE {hvp}
SET filtered = null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment