Prechecker results: error


PHP lint problems

(0 errors, 0 warnings)

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


PHP coding style problems

(231 errors, 12 warnings)

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

mod/sertifier/classes/apiRest/apiRest.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#17) Member variable "apiBaseUrl" must be all lower-case
(#18) Whitespace found at end of line
(#89) File must end with a newline character
mod/sertifier/classes/client/client.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#60) File must end with a newline character
mod/sertifier/classes/privacy/provider.php
(#47) File must end with a newline character
mod/sertifier/db/access.php
(#64) File must end with a newline character
mod/sertifier/db/upgrade.php
(#27) File must end with a newline character
mod/sertifier/index.php
(#55) Line exceeds 132 characters; contains 147 characters
mod/sertifier/lang/en/sertifier.php
(#66) File must end with a newline character
mod/sertifier/lib.php
(#37) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#51) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#141) Line exceeds 132 characters; contains 138 characters
(#163) Expected "} else {\n"; found "}else {\n"
(#230) File must end with a newline character
mod/sertifier/mod_form.php
(#35) Whitespace found at end of line
(#41) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#72) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#80) Line exceeds 132 characters; contains 134 characters
(#87) Line exceeds 132 characters; contains 135 characters
(#92) Line exceeds 132 characters; contains 153 characters
(#95) Line exceeds 132 characters; contains 147 characters
(#102) Line exceeds 132 characters; contains 166 characters
(#114) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#118) Line exceeds maximum limit of 180 characters; contains 213 characters
(#147) File must end with a newline character
mod/sertifier/settings.php
(#28) Spaces must be used to indent lines; tabs are not allowed
(#28) Tab found within whitespace
(#29) Spaces must be used to indent lines; tabs are not allowed
(#29) Tab found within whitespace
(#30) Spaces must be used to indent lines; tabs are not allowed
(#30) Tab found within whitespace
(#31) Spaces must be used to indent lines; tabs are not allowed
(#31) Tab found within whitespace
mod/sertifier/view.php
(#49) Spaces must be used to indent lines; tabs are not allowed
(#49) Tab found within whitespace
(#49) Line indented incorrectly; expected at least 4 spaces, found 1
(#51) Spaces must be used to indent lines; tabs are not allowed
(#51) Tab found within whitespace
(#51) Line indented incorrectly; expected at least 4 spaces, found 1
(#51) Line exceeds maximum limit of 180 characters; contains 231 characters
(#52) Spaces must be used to indent lines; tabs are not allowed
(#52) Tab found within whitespace
(#52) Line indented incorrectly; expected at least 4 spaces, found 1
(#52) Line exceeds 132 characters; contains 150 characters
(#53) Spaces must be used to indent lines; tabs are not allowed
(#53) Tab found within whitespace
(#53) Line indented incorrectly; expected at least 4 spaces, found 1
(#55) Spaces must be used to indent lines; tabs are not allowed
(#55) Tab found within whitespace
(#55) Line indented incorrectly; expected at least 4 spaces, found 1
(#56) Spaces must be used to indent lines; tabs are not allowed
(#56) Tab found within whitespace
(#56) Line indented incorrectly; expected at least 4 spaces, found 1
(#57) Spaces must be used to indent lines; tabs are not allowed
(#57) Tab found within whitespace
(#57) Line indented incorrectly; expected at least 4 spaces, found 2
(#57) Whitespace found at end of line
(#58) Spaces must be used to indent lines; tabs are not allowed
(#58) Tab found within whitespace
(#58) Line indented incorrectly; expected at least 4 spaces, found 2
(#58) Whitespace found at end of line
(#59) Spaces must be used to indent lines; tabs are not allowed
(#59) Tab found within whitespace
(#59) Line indented incorrectly; expected at least 4 spaces, found 2
(#59) Whitespace found at end of line
(#60) Spaces must be used to indent lines; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected at least 4 spaces, found 2
(#61) Spaces must be used to indent lines; tabs are not allowed
(#61) Tab found within whitespace
(#61) Line indented incorrectly; expected at least 4 spaces, found 1
(#63) Spaces must be used to indent lines; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected 4 spaces, found 1
(#64) Spaces must be used to indent lines; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected at least 8 spaces, found 2
(#65) Spaces must be used to indent lines; tabs are not allowed
(#65) Tab found within whitespace
(#65) Line indented incorrectly; expected at least 8 spaces, found 2
(#66) Spaces must be used to indent lines; tabs are not allowed
(#66) Tab found within whitespace
(#66) Line indented incorrectly; expected at least 8 spaces, found 2
(#67) Spaces must be used to indent lines; tabs are not allowed
(#67) Tab found within whitespace
(#67) Line indented incorrectly; expected at least 8 spaces, found 3
(#68) Spaces must be used to indent lines; tabs are not allowed
(#68) Tab found within whitespace
(#68) Line indented incorrectly; expected at least 8 spaces, found 3
(#69) Spaces must be used to indent lines; tabs are not allowed
(#69) Tab found within whitespace
(#69) Line indented incorrectly; expected at least 8 spaces, found 3
(#70) Spaces must be used to indent lines; tabs are not allowed
(#70) Tab found within whitespace
(#70) Line indented incorrectly; expected at least 8 spaces, found 3
(#71) Spaces must be used to indent lines; tabs are not allowed
(#71) Tab found within whitespace
(#71) Line indented incorrectly; expected at least 8 spaces, found 2
(#72) Spaces must be used to indent lines; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected 4 spaces, found 1
(#74) Spaces must be used to indent lines; tabs are not allowed
(#74) Tab found within whitespace
(#74) Line indented incorrectly; expected at least 4 spaces, found 1
(#76) Spaces must be used to indent lines; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected at least 4 spaces, found 1
(#78) Spaces must be used to indent lines; tabs are not allowed
(#78) Tab found within whitespace
(#78) Line indented incorrectly; expected at least 4 spaces, found 1
(#79) Spaces must be used to indent lines; tabs are not allowed
(#79) Tab found within whitespace
(#79) Line indented incorrectly; expected at least 4 spaces, found 1
(#80) Spaces must be used to indent lines; tabs are not allowed
(#80) Tab found within whitespace
(#80) Line indented incorrectly; expected at least 4 spaces, found 2
(#81) Spaces must be used to indent lines; tabs are not allowed
(#81) Tab found within whitespace
(#81) Line indented incorrectly; expected at least 4 spaces, found 2
(#82) Spaces must be used to indent lines; tabs are not allowed
(#82) Tab found within whitespace
(#82) Line indented incorrectly; expected at least 4 spaces, found 2
(#83) Spaces must be used to indent lines; tabs are not allowed
(#83) Tab found within whitespace
(#83) Line indented incorrectly; expected at least 4 spaces, found 2
(#84) Spaces must be used to indent lines; tabs are not allowed
(#84) Tab found within whitespace
(#84) Line indented incorrectly; expected at least 4 spaces, found 2
(#85) Spaces must be used to indent lines; tabs are not allowed
(#85) Tab found within whitespace
(#85) Line indented incorrectly; expected at least 4 spaces, found 1
(#87) Spaces must be used to indent lines; tabs are not allowed
(#87) Tab found within whitespace
(#87) Line indented incorrectly; expected at least 4 spaces, found 1
(#88) Spaces must be used to indent lines; tabs are not allowed
(#88) Tab found within whitespace
(#88) Line indented incorrectly; expected at least 4 spaces, found 1
(#89) Spaces must be used to indent lines; tabs are not allowed
(#89) Tab found within whitespace
(#89) Line indented incorrectly; expected at least 4 spaces, found 1
(#91) Spaces must be used to indent lines; tabs are not allowed
(#91) Tab found within whitespace
(#91) Line indented incorrectly; expected at least 4 spaces, found 1
(#93) Spaces must be used to indent lines; tabs are not allowed
(#93) Tab found within whitespace
(#93) Line indented incorrectly; expected at least 4 spaces, found 1
(#94) Spaces must be used to indent lines; tabs are not allowed
(#94) Tab found within whitespace
(#94) Line indented incorrectly; expected at least 4 spaces, found 1
(#95) Spaces must be used to indent lines; tabs are not allowed
(#95) Tab found within whitespace
(#95) Line indented incorrectly; expected at least 4 spaces, found 1
(#96) Spaces must be used to indent lines; tabs are not allowed
(#96) Tab found within whitespace
(#96) Line indented incorrectly; expected 4 spaces, found 1
(#97) Spaces must be used to indent lines; tabs are not allowed
(#97) Tab found within whitespace
(#97) Line indented incorrectly; expected at least 8 spaces, found 2
(#98) Spaces must be used to indent lines; tabs are not allowed
(#98) Tab found within whitespace
(#98) Line indented incorrectly; expected 4 spaces, found 1
(#100) Spaces must be used to indent lines; tabs are not allowed
(#100) Tab found within whitespace
(#100) Line indented incorrectly; expected at least 4 spaces, found 1
(#100) Line exceeds maximum limit of 180 characters; contains 231 characters
(#101) Spaces must be used to indent lines; tabs are not allowed
(#101) Tab found within whitespace
(#101) Line indented incorrectly; expected at least 4 spaces, found 1
(#101) Line exceeds 132 characters; contains 150 characters
(#102) Spaces must be used to indent lines; tabs are not allowed
(#102) Tab found within whitespace
(#102) Line indented incorrectly; expected at least 4 spaces, found 1
(#104) Spaces must be used to indent lines; tabs are not allowed
(#104) Tab found within whitespace
(#104) Line indented incorrectly; expected at least 4 spaces, found 1
(#106) Spaces must be used to indent lines; tabs are not allowed
(#106) Tab found within whitespace
(#106) Line indented incorrectly; expected 4 spaces, found 1
(#107) Spaces must be used to indent lines; tabs are not allowed
(#107) Tab found within whitespace
(#107) Line indented incorrectly; expected at least 8 spaces, found 2
(#108) Spaces must be used to indent lines; tabs are not allowed
(#108) Tab found within whitespace
(#108) Line indented incorrectly; expected at least 8 spaces, found 2
(#109) Spaces must be used to indent lines; tabs are not allowed
(#109) Tab found within whitespace
(#109) Line indented incorrectly; expected at least 8 spaces, found 3
(#110) Spaces must be used to indent lines; tabs are not allowed
(#110) Tab found within whitespace
(#110) Line indented incorrectly; expected at least 8 spaces, found 3
(#111) Spaces must be used to indent lines; tabs are not allowed
(#111) Tab found within whitespace
(#111) Line indented incorrectly; expected at least 8 spaces, found 3
(#112) Spaces must be used to indent lines; tabs are not allowed
(#112) Tab found within whitespace
(#112) Line indented incorrectly; expected at least 8 spaces, found 3
(#113) Spaces must be used to indent lines; tabs are not allowed
(#113) Tab found within whitespace
(#113) Line indented incorrectly; expected at least 8 spaces, found 3
(#114) Spaces must be used to indent lines; tabs are not allowed
(#114) Tab found within whitespace
(#114) Line indented incorrectly; expected at least 8 spaces, found 2
(#115) Spaces must be used to indent lines; tabs are not allowed
(#115) Tab found within whitespace
(#115) Line indented incorrectly; expected 4 spaces, found 1
(#116) Spaces must be used to indent lines; tabs are not allowed
(#116) Tab found within whitespace
(#116) Line indented incorrectly; expected at least 8 spaces, found 2
(#117) Spaces must be used to indent lines; tabs are not allowed
(#117) Tab found within whitespace
(#117) Line indented incorrectly; expected 4 spaces, found 1
(#119) Spaces must be used to indent lines; tabs are not allowed
(#119) Tab found within whitespace
(#119) Line indented incorrectly; expected at least 4 spaces, found 1
(#120) File must end with a newline character

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(15 errors, 0 warnings)

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

mod/sertifier/classes/apiRest/apiRest.php
(#15) Class apiRest is not documented
(#22) There is no description in phpdocs for function __construct
mod/sertifier/classes/client/client.php
(#14) Class client is not documented
mod/sertifier/classes/privacy/provider.php
(#27) Class provider is not documented
(#30) Function provider::get_metadata is not documented
mod/sertifier/db/upgrade.php
(#25) Function xmldb_sertifier_upgrade is not documented
mod/sertifier/lib.php
(#29) Function sertifier_add_instance is not documented
(#86) Function sertifier_update_instance is not documented
(#127) Function sertifier_delete_instance is not documented
(#137) Function delivery_check is not documented
(#152) Function credential_exist is not documented
(#168) Function sertifier_quiz_submission_handler is not documented
(#205) Function sertifier_course_completed_handler is not documented
mod/sertifier/mod_form.php
(#34) Class mod_sertifier_mod_form is not documented
(#36) Function mod_sertifier_mod_form::definition is not documented

Update savepoints problems

(1 errors, 0 warnings)

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

mod/sertifier/db/upgrade.php
upgrade function not found

Third party library modification problems

(0 errors, 0 warnings)

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


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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


Gherkin .feature problems

(0 errors, 0 warnings)

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