Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle_mod-hvp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle_mod-hvp
Commits
0159105b
Unverified
Commit
0159105b
authored
5 years ago
by
Thomas Marstrander
Browse files
Options
Downloads
Patches
Plain Diff
Fix code style complaints
parent
896fb59a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+3
-3
3 additions, 3 deletions
.travis.yml
ajax.php
+2
-2
2 additions, 2 deletions
ajax.php
classes/framework.php
+3
-3
3 additions, 3 deletions
classes/framework.php
with
8 additions
and
8 deletions
.travis.yml
+
3
−
3
View file @
0159105b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
ajax.php
+
2
−
2
View file @
0159105b
...
...
@@ -326,14 +326,14 @@ switch($action) {
*/
case
'filter'
:
$token
=
required_param
(
'token'
,
PARAM_RAW
);
$library
P
arameters
=
required_param
(
'libraryParameters'
,
PARAM_RAW
);
$library
p
arameters
=
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
,
$library
P
arameters
);
$editor
->
ajax
->
action
(
H5PEditorEndpoints
::
FILTER
,
$token
,
$library
p
arameters
);
break
;
/*
...
...
This diff is collapsed.
Click to expand it.
classes/framework.php
+
3
−
3
View file @
0159105b
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment