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

(196 errors, 21 warnings)

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

enrol/zilink_guardian/addinstance.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".
(#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,".
(#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.".
(#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/>.".
(#5) Inline comments must start with a capital letter, digit or 3-dots sequence
(#5) Inline comments must end in full-stops, exclamation marks, or question marks
(#7) Expected 1 space before "=>"; 0 found
(#7) Expected 1 space after "=>"; 0 found
(#20) Expected 1 space before "=>"; 0 found
(#20) Expected 1 space after "=>"; 0 found
enrol/zilink_guardian/db/access.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".
(#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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
enrol/zilink_guardian/lang/en/enrol_zilink_guardian.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".
(#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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
enrol/zilink_guardian/lib.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".
(#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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#8) Opening brace should be on the same line as the declaration
(#11) Whitespace found at end of line
(#17) Whitespace found at end of line
(#18) Line exceeds 132 characters; contains 146 characters
(#19) Inline comments must start with a capital letter, digit or 3-dots sequence
(#24) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Variable "guardian_role" must not contain underscores.
(#31) Commas (,) must be followed by white space.
(#31) Commas (,) must be followed by white space.
(#31) Commas (,) must be followed by white space.
(#32) Variable "guardian_resticted_role" must not contain underscores.
(#32) Commas (,) must be followed by white space.
(#32) Commas (,) must be followed by white space.
(#32) Commas (,) must be followed by white space.
(#33) Whitespace found at end of line
(#34) Whitespace found at end of line within string
(#35) Whitespace found at end of line within string
(#36) Whitespace found at end of line within string
(#37) Whitespace found at end of line within string
(#38) Whitespace found at end of line within string
(#39) Whitespace found at end of line within string
(#39) Variable "guardian_role" must not contain underscores.
(#40) Whitespace found at end of line within string
(#41) Whitespace found at end of line within string
(#44) Commas (,) must be followed by white space.
(#45) Whitespace found at end of line
(#46) Inline control structures are not allowed
(#48) Whitespace found at end of line
(#49) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#50) Whitespace found at end of line
(#50) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#51) Whitespace found at end of line
(#54) Expected "if (...) {\n"; found "if(...) {\n"
(#55) Whitespace found at end of line
(#56) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#57) Whitespace found at end of line
(#59) Whitespace found at end of line
(#61) Whitespace found at end of line
(#62) Expected "if (...) {\n"; found "if(...) {\n"
(#63) Variable "guardian_role" must not contain underscores.
(#65) Variable "guardian_role" must not contain underscores.
(#69) Whitespace found at end of line
(#71) Whitespace found at end of line
(#72) Whitespace found at end of line
(#87) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#90) Expected 1 space before "=>"; 0 found
(#90) Expected 1 space after "=>"; 0 found
(#90) Expected 1 space before "=>"; 0 found
(#90) Expected 1 space after "=>"; 0 found
(#91) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#94) Expected 1 space before "=>"; 0 found
(#94) Expected 1 space after "=>"; 0 found
(#94) Expected 1 space before "=>"; 0 found
(#94) Expected 1 space after "=>"; 0 found
(#112) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#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
(#119) Expected 1 space before "*"; 0 found
(#119) Expected 1 space after "*"; 0 found
(#119) Expected 1 space before "*"; 0 found
(#119) Expected 1 space after "*"; 0 found
(#119) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) Whitespace found at end of line
(#123) Expected "if (...) {\n"; found "if(...) {\n"
(#124) Variable "guardian_role" must not contain underscores.
(#126) Variable "guardian_role" must not contain underscores.
(#129) Inline comments must start with a capital letter, digit or 3-dots sequence
(#129) Inline comments must end in full-stops, exclamation marks, or question marks
(#166) Whitespace found at end of line
(#170) Whitespace found at end of line
(#171) Inline comments must start with a capital letter, digit or 3-dots sequence
(#171) Inline comments must end in full-stops, exclamation marks, or question marks
(#173) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#173) Expected 1 space before "=>"; 0 found
(#173) Expected 1 space after "=>"; 0 found
(#173) Expected 1 space before "=>"; 0 found
(#173) Expected 1 space after "=>"; 0 found
(#191) Inline comments must start with a capital letter, digit or 3-dots sequence
(#191) Inline comments must end in full-stops, exclamation marks, or question marks
(#213) Expected 1 space before "=>"; 0 found
(#213) Expected 1 space after "=>"; 0 found
(#217) Expected 1 space before "=>"; 0 found
(#217) Expected 1 space after "=>"; 0 found
(#217) Expected 1 space before "=>"; 0 found
(#217) Expected 1 space after "=>"; 0 found
(#235) Empty ELSE statement detected
(#236) Inline comments must start with a capital letter, digit or 3-dots sequence
(#236) Inline comments must end in full-stops, exclamation marks, or question marks
(#247) Expected 1 space before "=>"; 0 found
(#247) Expected 1 space after "=>"; 0 found
(#253) Expected 6 space(s) before asterisk; 5 found
(#254) Expected 6 space(s) before asterisk; 5 found
(#255) Expected 6 space(s) before asterisk; 5 found
(#256) Expected 6 space(s) before asterisk; 5 found
(#257) Expected 6 space(s) before asterisk; 5 found
(#262) Whitespace found at end of line
(#267) Whitespace found at end of line
(#278) Closing brace must be on a line by itself
(#280) Closing brace must be on a line by itself
enrol/zilink_guardian/locallib.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".
(#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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
enrol/zilink_guardian/settings.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".
(#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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#7) Inline comments must start with a capital letter, digit or 3-dots sequence
(#7) Inline comments must end in full-stops, exclamation marks, or question marks
(#7) No space found before comment text; expected "// --- general settings -----------------------------------------------------------------------------------" but found "//--- general settings -----------------------------------------------------------------------------------"
(#8) Line exceeds 132 characters; contains 140 characters
(#11) Inline comments must start with a capital letter, digit or 3-dots sequence
(#11) Inline comments must end in full-stops, exclamation marks, or question marks
(#11) No space found before comment text; expected "// --- enrol instance defaults ----------------------------------------------------------------------------" but found "//--- enrol instance defaults ----------------------------------------------------------------------------"
enrol/zilink_guardian/version.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".
(#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 "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(21 errors, 7 warnings)

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

enrol/zilink_guardian/addinstance.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/zilink_guardian/db/access.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/zilink_guardian/lang/en/enrol_zilink_guardian.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/zilink_guardian/lib.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) Class enrol_zilink_guardian_plugin is not documented
(#7) Function enrol_zilink_guardian_plugin::get_name is not documented
(#12) Function enrol_zilink_guardian_plugin::get_info_icons is not documented
(#18) Function enrol_zilink_guardian_plugin::enrol_user is not documented
(#23) Function enrol_zilink_guardian_plugin::unenrol_user is not documented
(#28) Function enrol_zilink_guardian_plugin::try_guestaccess is not documented
(#263) Function enrol_zilink_guardian_plugin::can_delete_instance is not documented
(#5) Package is not specified for class enrol_zilink_guardian_plugin. It is also not specified in file-level phpdocs
(#270) Package is not specified for function enrol_zilink_guardian_supports. It is also not specified in file-level phpdocs
enrol/zilink_guardian/locallib.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#7) Class enrol_zilink_guardian_enrol_form is not documented
(#10) Function enrol_zilink_guardian_enrol_form::definition is not documented
(#30) Function enrol_zilink_guardian_enrol_form::validation is not documented
(#8) Variable enrol_zilink_guardian_enrol_form::$instance is not documented
(#7) Package is not specified for class enrol_zilink_guardian_enrol_form. It is also not specified in file-level phpdocs
enrol/zilink_guardian/settings.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
enrol/zilink_guardian/version.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found

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]