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

(243 errors, 44 warnings)

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

enrol/notificationeabc/classes/observer.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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".
(#4) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#4) 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,".
(#5) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#5) 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.".
(#6) Line 12 of the opening comment must start "//".
(#6) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#6) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#21) Opening brace should be on the same line as the declaration
(#24) Inline comments must start with a capital letter, digit or 3-dots sequence
(#24) Inline comments must end in full-stops, exclamation marks, or question marks
(#24) No space found before comment text; expected "// e-ABC validate status plugin" but found "//e-ABC validate status plugin"
(#25) Variable "enable_plugins" must not contain underscores.
(#26) Variable "enable_plugins" must not contain underscores.
(#26) Variable "enable_plugins" must not contain underscores.
(#28) Variable "enable_plugins" must not contain underscores.
(#28) Variable "enable_plugin" must not contain underscores.
(#29) Variable "enable_plugin" must not contain underscores.
(#48) Variable "instance_enabled" must not contain underscores.
(#51) Variable "instance_enabled" must not contain underscores.
(#54) Variable "instance_enabled" must not contain underscores.
(#60) Variable "instance_enabled" must not contain underscores.
(#67) Opening brace should be on the same line as the declaration
(#70) Inline comments must start with a capital letter, digit or 3-dots sequence
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) No space found before comment text; expected "// e-ABC validate plugin status in system context" but found "//e-ABC validate plugin status in system context"
(#71) Variable "enable_plugins" must not contain underscores.
(#72) Variable "enable_plugins" must not contain underscores.
(#72) Variable "enable_plugins" must not contain underscores.
(#74) Variable "enable_plugins" must not contain underscores.
(#74) Variable "enable_plugin" must not contain underscores.
(#75) Variable "enable_plugin" must not contain underscores.
(#88) Inline comments must start with a capital letter, digit or 3-dots sequence
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) No space found before comment text; expected "// plugin instance in course" but found "//plugin instance in course"
(#95) Variable "instance_enabled" must not contain underscores.
(#98) Variable "instance_enabled" must not contain underscores.
(#101) Variable "instance_enabled" must not contain underscores.
(#107) Variable "instance_enabled" must not contain underscores.
(#114) Opening brace should be on the same line as the declaration
(#117) Inline comments must start with a capital letter, digit or 3-dots sequence
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#117) No space found before comment text; expected "// e-ABC validate plugin status in system context" but found "//e-ABC validate plugin status in system context"
(#118) Variable "enable_plugins" must not contain underscores.
(#119) Variable "enable_plugins" must not contain underscores.
(#119) Variable "enable_plugins" must not contain underscores.
(#121) Variable "enable_plugins" must not contain underscores.
(#121) Variable "enable_plugin" must not contain underscores.
(#122) Variable "enable_plugin" must not contain underscores.
(#141) Variable "instance_enabled" must not contain underscores.
(#144) Variable "instance_enabled" must not contain underscores.
(#148) Variable "instance_enabled" must not contain underscores.
(#154) Variable "instance_enabled" must not contain underscores.
enrol/notificationeabc/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
enrol/notificationeabc/db/events.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) 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".
(#4) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#4) 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,".
(#5) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#5) 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.".
(#6) Line 12 of the opening comment must start "//".
(#6) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#6) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#13) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
enrol/notificationeabc/db/messages.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#13) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
enrol/notificationeabc/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#19) Functions must not contain multiple empty lines in a row; found 2 empty lines
enrol/notificationeabc/edit.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#20) Expected 1 space before "=>"; 0 found
(#20) Expected 1 space after "=>"; 0 found
(#26) Expected 1 space before "=>"; 0 found
(#26) Expected 1 space after "=>"; 0 found
(#26) Expected 1 space before "=>"; 0 found
(#26) Expected 1 space after "=>"; 0 found
(#29) Expected 1 space before "=>"; 0 found
(#29) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Line exceeds 132 characters; contains 138 characters
(#43) Expected 1 space before "=>"; 0 found
(#43) Expected 1 space after "=>"; 0 found
(#63) Whitespace found at end of line
(#65) Expected "if (...) {\n"; found "if(...){ \n"
(#65) Whitespace found at end of line
(#67) Expected "} else {\n"; found "}else{\n"
(#71) Expected "if (...) {\n"; found "if(...){ \n"
(#71) Whitespace found at end of line
(#73) Expected "} else {\n"; found "}else{\n"
(#77) Expected "if (...) {\n"; found "if(...){ \n"
(#77) Whitespace found at end of line
(#79) Expected "} else {\n"; found "}else{\n"
(#83) Expected "if (...) {\n"; found "if(...){ \n"
(#83) Whitespace found at end of line
(#85) Expected "} else {\n"; found "}else{\n"
(#93) Whitespace found at end of line
enrol/notificationeabc/edit_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#19) Visibility must be declared on method "definition"
(#32) Whitespace found at end of line
(#33) Inline comments must start with a capital letter, digit or 3-dots sequence
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) No space found before comment text; expected "// enrol notifications" but found "//enrol notifications"
(#37) Commas (,) must be followed by white space.
(#37) Commas (,) must be followed by white space.
(#41) Inline comments must start with a capital letter, digit or 3-dots sequence
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) No space found before comment text; expected "// unenrol notifications" but found "//unenrol notifications"
(#45) Commas (,) must be followed by white space.
(#45) Commas (,) must be followed by white space.
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) No space found before comment text; expected "// update enrolment notifications" but found "//update enrolment notifications"
(#53) Commas (,) must be followed by white space.
(#53) Commas (,) must be followed by white space.
(#56) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#57) Whitespace found at end of line
(#59) Inline comments must start with a capital letter, digit or 3-dots sequence
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) No space found before comment text; expected "// email y nombre del remitente" but found "//email y nombre del remitente"
(#65) Whitespace found at end of line
(#72) Whitespace found at end of line
(#77) Whitespace found at end of line
(#79) Line indented incorrectly; expected at least 12 spaces, found 11
(#79) Expected 1 space before "=>"; 0 found
(#79) Expected 1 space after "=>"; 0 found
(#80) Line indented incorrectly; expected at least 12 spaces, found 11
(#80) Expected 1 space before "=>"; 0 found
(#80) Expected 1 space after "=>"; 0 found
(#81) Line indented incorrectly; expected at least 12 spaces, found 11
(#81) Expected 1 space before "=>"; 0 found
(#81) Expected 1 space after "=>"; 0 found
(#82) Line indented incorrectly; expected at least 12 spaces, found 11
(#83) Line indented incorrectly; expected at least 12 spaces, found 11
(#84) Line indented incorrectly; expected at least 12 spaces, found 11
(#85) Line indented incorrectly; expected at least 12 spaces, found 11
(#86) Line indented incorrectly; expected at least 12 spaces, found 11
(#87) Expected "if (...) {\n"; found "if(...){\n"
(#89) Expected "} else {\n"; found "}else{\n"
enrol/notificationeabc/lang/en/enrol_notificationeabc.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#25) Whitespace found at end of line within string
(#43) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) No space found before comment text; expected "// unenrol notifications" but found "//unenrol notifications"
(#55) Whitespace found at end of line within string
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) No space found before comment text; expected "// Update enrol notifications" but found "//Update enrol notifications"
(#72) Whitespace found at end of line within string
enrol/notificationeabc/lang/es/enrol_notificationeabc.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#24) Whitespace found at end of line within string
(#43) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) No space found before comment text; expected "// aviso de desmatriculacion" but found "//aviso de desmatriculacion"
(#54) Whitespace found at end of line within string
(#61) Inline comments must start with a capital letter, digit or 3-dots sequence
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) No space found before comment text; expected "// aviso de actualizacion de matriculacion" but found "//aviso de actualizacion de matriculacion"
(#72) Whitespace found at end of line within string
enrol/notificationeabc/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#21) Whitespace found at end of line
(#25) Inline comments must start with a capital letter, digit or 3-dots sequence
(#25) Inline comments must end in full-stops, exclamation marks, or question marks
(#25) No space found before comment text; expected "// funcion que envia las notificaciones a los usuarios" but found "//funcion que envia las notificaciones a los usuarios"
(#33) Opening brace should be on the same line as the declaration
(#34) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#35) Whitespace found at end of line
(#39) Whitespace found at end of line
(#40) Expected 1 space before "=>"; 0 found
(#40) Expected 1 space after "=>"; 0 found
(#40) Expected 1 space before "=>"; 0 found
(#40) Expected 1 space after "=>"; 0 found
(#40) Expected 1 space before "=>"; 0 found
(#40) Expected 1 space after "=>"; 0 found
(#56) Whitespace found at end of line
(#58) Whitespace found at end of line
(#59) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#60) Whitespace found at end of line
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) No space found before comment text; expected "// si no se configuro un mensaje personalizado se envia uno por defecto basico" but found "//si no se configuro un mensaje personalizado se envia uno por defecto basico"
(#71) Whitespace found at end of line
(#72) Expected "} else if (...) {\n"; found "}else if (...) {\n"
(#73) Spaces must be used to indent lines; tabs are not allowed
(#73) Tab found within whitespace
(#73) Line indented incorrectly; expected at least 20 spaces, found 17
(#74) Expected "} else {\n"; found "}else{\n"
(#87) Whitespace found at end of line
(#88) Expected "} else if (...) {\n"; found "}else if (...) {\n"
(#89) Spaces must be used to indent lines; tabs are not allowed
(#89) Tab found within whitespace
(#89) Line indented incorrectly; expected at least 20 spaces, found 17
(#90) Expected "} else {\n"; found "}else{\n"
(#103) Whitespace found at end of line
(#104) Expected "} else if (...) {\n"; found "}else if (...) {\n"
(#105) Spaces must be used to indent lines; tabs are not allowed
(#105) Tab found within whitespace
(#105) Line indented incorrectly; expected at least 20 spaces, found 17
(#106) Expected "} else {\n"; found "}else{\n"
(#110) Whitespace found at end of line
(#121) Expected "} else {\n"; found "}else{\n"
(#127) Expected "} else {\n"; found "}else{\n"
(#132) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#133) Whitespace found at end of line
(#146) Expected 1 space before ".="; 0 found
(#148) Expected "} else {\n"; found "}else{\n"
(#149) Expected 1 space before ".="; 0 found
(#149) Line exceeds 132 characters; contains 142 characters
(#152) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#153) Whitespace found at end of line
(#157) Inline comments must start with a capital letter, digit or 3-dots sequence
(#157) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) No space found before comment text; expected "// procesa el mensaje para aceptar marcadores" but found "//procesa el mensaje para aceptar marcadores"
(#164) Expected 1 space after closing parenthesis; found 0
(#167) Expected 1 space before "=>"; 0 found
(#167) Expected 1 space after "=>"; 0 found
(#184) Expected 1 space before "=>"; 0 found
(#184) Expected 1 space after "=>"; 0 found
(#184) Expected 1 space before "=>"; 0 found
(#184) Expected 1 space after "=>"; 0 found
(#188) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#190) Expected 1 space before "=>"; 0 found
(#190) Expected 1 space after "=>"; 0 found
(#227) Expected 1 space before "=>"; 0 found
(#227) Expected 1 space after "=>"; 0 found
(#227) Expected 1 space before "=>"; 0 found
(#227) Expected 1 space after "=>"; 0 found
(#227) Line exceeds 132 characters; contains 136 characters
(#228) Expected 1 space before "=>"; 0 found
(#228) Expected 1 space after "=>"; 0 found
enrol/notificationeabc/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Inline comments must start with a capital letter, digit or 3-dots sequence
(#18) Inline comments must end in full-stops, exclamation marks, or question marks
(#18) No space found before comment text; expected "// --- general settings -----------------------------------------------------------------------------------" but found "//--- general settings -----------------------------------------------------------------------------------"
(#20) Inline comments must start with a capital letter, digit or 3-dots sequence
(#20) Inline comments must end in full-stops, exclamation marks, or question marks
(#20) No space found before comment text; expected "// notificacion de matriculacion" but found "//notificacion de matriculacion"
(#22) Line exceeds maximum limit of 180 characters; contains 226 characters
(#24) Line exceeds maximum limit of 180 characters; contains 212 characters
(#26) Line exceeds 132 characters; contains 146 characters
(#28) Commas (,) must be followed by white space.
(#28) Line exceeds maximum limit of 180 characters; contains 198 characters
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) Line indented incorrectly; expected at least 4 spaces, found 3
(#31) No space found before comment text; expected "// notificacion de desmatriculacion" but found "//notificacion de desmatriculacion"
(#32) Whitespace found at end of line
(#33) Line exceeds maximum limit of 180 characters; contains 232 characters
(#35) Line exceeds maximum limit of 180 characters; contains 248 characters
(#37) Commas (,) must be followed by white space.
(#37) Line exceeds maximum limit of 180 characters; contains 216 characters
(#40) Spaces must be used to indent lines; tabs are not allowed
(#40) Tab found within whitespace
(#40) Inline comments must start with a capital letter, digit or 3-dots sequence
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) No space found before comment text; expected "// notificacion de actualizacion de matriculacion" but found "//notificacion de actualizacion de matriculacion"
(#40) Whitespace found at end of line
(#41) Whitespace found at end of line
(#42) Line exceeds maximum limit of 180 characters; contains 247 characters
(#44) Line exceeds maximum limit of 180 characters; contains 248 characters
(#46) Commas (,) must be followed by white space.
(#46) Line exceeds maximum limit of 180 characters; contains 235 characters
(#46) Whitespace found at end of line
(#54) Line indented incorrectly; expected at least 4 spaces, found 3
(#54) Line exceeds maximum limit of 180 characters; contains 201 characters
(#56) Line indented incorrectly; expected at least 4 spaces, found 3
(#56) Line exceeds maximum limit of 180 characters; contains 198 characters
(#57) Inline comments must start with a capital letter, digit or 3-dots sequence
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) No space found before comment text; expected "// --- mapping -------------------------------------------------------------------------------------------" but found "//--- mapping -------------------------------------------------------------------------------------------"
enrol/notificationeabc/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#16) Inline comments must end in full-stops, exclamation marks, or question marks

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 csslint [More info]


PHPDocs style problems

(15 errors, 12 warnings)

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

enrol/notificationeabc/classes/observer.php
(#2) Empty line found after PHP open tag
(#17) Class enrol_notificationeabc_observer is not documented
(#20) Function enrol_notificationeabc_observer::user_unenroled is not documented
(#66) Function enrol_notificationeabc_observer::user_updated is not documented
(#113) Function enrol_notificationeabc_observer::user_enroled is not documented
(#8) Package enrol is not valid
enrol/notificationeabc/db/access.php
(#2) Empty line found after PHP open tag
enrol/notificationeabc/db/events.php
(#2) Empty line found after PHP open tag
enrol/notificationeabc/db/messages.php
(#2) Empty line found after PHP open tag
enrol/notificationeabc/db/upgrade.php
(#2) Empty line found after PHP open tag
(#15) Function xmldb_enrol_notificationeabc_upgrade is not documented
enrol/notificationeabc/edit.php
(#2) Empty line found after PHP open tag
enrol/notificationeabc/edit_form.php
(#2) Empty line found after PHP open tag
(#17) Class enrol_notificationeabc_edit_form is not documented
(#19) Function enrol_notificationeabc_edit_form::definition is not documented
enrol/notificationeabc/lang/en/enrol_notificationeabc.php
(#2) Empty line found after PHP open tag
enrol/notificationeabc/lang/es/enrol_notificationeabc.php
(#2) Empty line found after PHP open tag
enrol/notificationeabc/lib.php
(#2) Empty line found after PHP open tag
(#18) Class enrol_notificationeabc_plugin is not documented
(#216) Function enrol_notificationeabc_plugin::get_action_icons is not documented
(#235) Function enrol_notificationeabc_plugin::get_info_icons is not documented
(#21) Variable enrol_notificationeabc_plugin::$log is not documented
(#27) There is no description in phpdocs for function enviarmail
(#158) There is no description in phpdocs for function process_mensaje
(#8) Package enrol is not valid
enrol/notificationeabc/settings.php
(#2) Empty line found after PHP open tag
enrol/notificationeabc/version.php
(#2) Empty line found after PHP open tag

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]


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]