Prechecker results: error


PHP lint problems

(1 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]

mod/learningmap/classes/mapworker.php
(#35) PHP Parse error: syntax error, unexpected 'DOMDocument' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /mod/learningmap/classes/mapworker.php on line 35

PHP coding style problems

(126 errors, 33 warnings)

This section shows the coding style problems detected in the code by phpcs [More info]

mod/learningmap/backup/moodle2/backup_learningmap_activity_task.class.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
mod/learningmap/backup/moodle2/backup_learningmap_stepslib.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/learningmap/backup/moodle2/restore_learningmap_activity_task.class.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
mod/learningmap/backup/moodle2/restore_learningmap_stepslib.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/learningmap/classes/autoupdate.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#19) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/learningmap/classes/completion/custom_completion.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#19) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/learningmap/classes/mapworker.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#21) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/learningmap/classes/privacy/provider.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#19) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/learningmap/db/access.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
mod/learningmap/db/events.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
mod/learningmap/db/upgrade.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/learningmap/index.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
mod/learningmap/lang/en/learningmap.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
mod/learningmap/lib.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/learningmap/mod_form.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
mod/learningmap/settings.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#29) Line exceeds 132 characters; contains 176 characters
mod/learningmap/tests/generator/lib.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/learningmap/tests/mod_learningmap_completion_test.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#27) PHPUnit class "mod_learningmap_completion_test" does not have any namespace. It is recommended to add it to the "mod_learningmap" namespace, using more levels if needed, in order to match the code being tested
mod/learningmap/tests/mod_learningmap_generation_test.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#27) PHPUnit class "mod_learningmap_generation_test" does not have any namespace. It is recommended to add it to the "mod_learningmap" namespace, using more levels if needed, in order to match the code being tested
mod/learningmap/version.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
mod/learningmap/view.php
(#2) Inline comments must start with a capital letter, digit or 3-dots sequence
(#2) Line 1 of the opening comment must start "// This file is part of".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".

Javascript coding style problems

(0 errors, 3 warnings)

This section shows the coding style problems detected in the code by eslint [More info]

mod/learningmap/amd/src/learningmap.js
(#1) Comments should not begin with a lowercase character. (capitalized-comments)
mod/learningmap/amd/src/manual-completion-watch.js
(#1) Comments should not begin with a lowercase character. (capitalized-comments)
mod/learningmap/amd/src/placestore.js
(#1) Comments should not begin with a lowercase character. (capitalized-comments)

CSS problems

(0 errors, 1 warnings)

This section shows CSS problems detected by stylelint [More info]

mod/learningmap/styles.css
(#15) Unexpected unit (length-zero-no-unit)

PHPDocs style problems

(4 errors, 0 warnings)

This section shows the phpdocs problems detected in the code by local_moodlecheck [More info]

mod/learningmap/classes/mapworker.php
(#35) Variable mapworker::$dom is not documented
(#39) Variable mapworker::$svgcode is not documented
(#43) Variable mapworker::$placestore is not documented
(#47) Variable mapworker::$prepend is not documented

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


Missing changes in external functions or backup support for new detected tables or columns

(0 errors, 0 warnings)

This section shows potential problems detected when there are new database structures added in a patch and it is detected that nothing has been changed related with external functions (to be used by WS) or backup and restore. It must be checked that everything is correct and nothing is being missed in those areas. [More info]


grunt changes

(2 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]

mod/learningmap/amd/build/placestore.min.js
Uncommitted change detected.
mod/learningmap/amd/build/placestore.min.js.map
Uncommitted change detected.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 18 warnings)

This section shows problems detected in mustache templates [More info]

mod/learningmap/templates/activityselector.mustache
(#1) Example context missing.
mod/learningmap/templates/advancedsettings.mustache
(#1) Example context missing.
mod/learningmap/templates/cssskeleton.mustache
(#1) Example context missing.
(#1) HTML Validation error, line 2: Element “style” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><style id="learningmap-svgstyle" type="text/css">#lear)
(#1) HTML Validation info, line 2: The “type” attribute for the “style” element is not needed and should be omitted. (ad><body><style id="learningmap-svgstyle" type="text/css">#lear)
(#1) HTML Validation error, line 4: CSS: “fill”: Parse Error. (ace { fill: ; stroke-w)
(#1) HTML Validation error, line 6: CSS: “stroke”: Parse Error. (px; stroke: ; visibili)
(#1) HTML Validation error, line 15: CSS: “stroke”: Parse Error. (h { stroke: ; stroke-w)
(#1) HTML Validation error, line 23: CSS: “stroke”: Parse Error. (nd; stroke: ; fill: no)
mod/learningmap/templates/formitem.mustache
(#1) Example context missing.
(#1) HTML Validation info, line 14: The “color” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill. ( <input type="color" id="learningmap-color-place"/> )
(#1) HTML Validation info, line 20: The “color” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill. ( <input type="color" id="learningmap-color-visited"/> )
(#1) HTML Validation info, line 26: The “color” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill. ( <input type="color" id="learningmap-color-path"/> )
(#1) HTML Validation error, line 23: The value of the “for” attribute of the “label” element must be the ID of a non-hidden form control. ( <label for="learningmap-color-stroke">[[ pat)
mod/learningmap/templates/inlinehelp.mustache
(#1) Example context missing.
mod/learningmap/templates/mapcontainer.mustache
(#1) Example context missing.
mod/learningmap/templates/svgskeleton.mustache
(#1) Example context missing.
(#1) HTML Validation error, line 31: Element “image” is missing required attribute “height”. (oup"> <image x="0" y="0" width="800" class="learningmap-background-image" id="learningmap-background-image" xlink:href=""></imag)

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]