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

(176 errors, 6 warnings)

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

auth/enrolmentor/auth.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".
(#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/>.".
(#22) PHP4 style constructors are not allowed; use "__construct()" instead
(#22) Visibility must be declared on method "auth_plugin_enrolmentor"
(#35) Visibility must be declared on method "user_login"
(#37) Expected 1 space before "=>"; 0 found
(#37) Expected 1 space after "=>"; 0 found
(#37) Expected 1 space before "=>"; 0 found
(#37) Expected 1 space after "=>"; 0 found
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Visibility must be declared on method "user_update_password"
(#66) Visibility must be declared on method "prevent_local_passwords"
(#75) Visibility must be declared on method "is_internal"
(#85) Visibility must be declared on method "can_change_password"
(#95) Visibility must be declared on method "change_password_url"
(#104) Visibility must be declared on method "can_reset_password"
(#108) Line indented incorrectly; expected at least 4 spaces, found 3
(#116) Visibility must be declared on method "user_confirm"
(#125) Expected 1 space before "=>"; 0 found
(#125) Expected 1 space after "=>"; 0 found
(#126) Expected 1 space before "=>"; 0 found
(#126) Expected 1 space after "=>"; 0 found
(#129) Expected "} else {\n"; found "} else {\n"
(#139) Visibility must be declared on method "process_config"
(#153) Visibility must be declared on method "user_update"
(#156) Whitespace found at end of line
(#165) Visibility must be declared on method "user_authenticated_hook"
(#168) No space found before comment text; expected "// Get the roleid we're going to assign." but found "//Get the roleid we're going to assign."
(#170) Expected "if (...) {\n"; found "if(...) {\n"
(#177) Inline comments must end in full-stops, exclamation marks, or question marks
(#178) Variable "toEnrol" must be all lower-case
(#179) Variable "toUnenrol" must be all lower-case
(#181) Expected "if (...) {\n"; found "if(...) {\n"
(#181) Variable "toEnrol" must be all lower-case
(#182) Variable "toEnrol" must be all lower-case
(#184) Expected "if (...) {\n"; found "if(...) {\n"
(#184) Variable "toUnenrol" must be all lower-case
(#185) Variable "toUnenrol" must be all lower-case
auth/enrolmentor/class/helper.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) Expected MOODLE_INTERNAL check or config.php inclusion
(#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,".
(#4) Whitespace found at end of line
(#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/>.".
(#9) Opening brace should be on the same line as the declaration
(#10) Inline comments must start with a capital letter, digit or 3-dots sequence
(#12) Whitespace found at end of line
(#14) Whitespace found at end of line
(#21) Whitespace found at end of line
(#22) Whitespace found at end of line within string
(#23) Whitespace found at end of line within string
(#24) Whitespace found at end of line within string
(#25) Whitespace found at end of line within string
(#27) Whitespace found at end of line
(#29) Whitespace found at end of line
(#30) Whitespace found at end of line
(#40) Whitespace found at end of line
(#43) Whitespace found at end of line within string
(#44) Whitespace found at end of line within string
(#48) Whitespace found at end of line within string
(#49) Whitespace found at end of line within string
(#53) Whitespace found at end of line within string
(#54) Whitespace found at end of line within string
(#58) Whitespace found at end of line
(#60) Whitespace found at end of line
(#63) Whitespace found at end of line
(#68) Whitespace found at end of line
(#71) Whitespace found at end of line
(#76) Whitespace found at end of line
(#82) Public method name "enrolmentor_helper::doEnrol" must be in lower-case letters only
(#82) Variable "toEnrol" must be all lower-case
(#82) Expected 1 space after closing parenthesis; found 0
(#83) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#83) Variable "toEnrol" must be all lower-case
(#87) Whitespace found at end of line
(#93) Public method name "enrolmentor_helper::doUnenrol" must be in lower-case letters only
(#93) Variable "toUnenrol" must be all lower-case
(#93) Expected 1 space after closing parenthesis; found 0
(#94) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#94) Variable "toUnenrol" must be all lower-case
(#97) Whitespace found at end of line
auth/enrolmentor/db/upgrade.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) Expected MOODLE_INTERNAL check or config.php inclusion
(#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".
(#4) 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/>.".
auth/enrolmentor/lang/en/auth_enrolmentor.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".
(#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/>.".
auth/enrolmentor/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".
(#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/>.".
(#23) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#30) Whitespace found at end of line
(#31) Line exceeds maximum limit of 180 characters; contains 214 characters
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#32) Commas (,) must be followed by white space.
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#32) Commas (,) must be followed by white space.
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#32) Line exceeds maximum limit of 180 characters; contains 278 characters
(#33) Expected "if (...) {\n"; found "if(...) {\n"
(#34) Line exceeds maximum limit of 180 characters; contains 249 characters
(#36) Whitespace found at end of line
auth/enrolmentor/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".
(#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/>.".

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

(17 errors, 2 warnings)

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

auth/enrolmentor/auth.php
(#17) Class auth_plugin_enrolmentor is not documented
(#66) Function auth_plugin_enrolmentor::prevent_local_passwords is not documented
(#135) Phpdocs for function auth_plugin_enrolmentor::process_config has incomplete parameters list
(#5) Package auth is not valid
auth/enrolmentor/class/helper.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Class enrolmentor_helper is not documented
(#13) Phpdocs for function enrolmentor_helper::get_enrolled_employees has incomplete parameters list
(#33) Phpdocs for function enrolmentor_helper::get_list_employees has incomplete parameters list
(#77) Phpdocs for function enrolmentor_helper::doEnrol has incomplete parameters list
(#88) Phpdocs for function enrolmentor_helper::doUnenrol has incomplete parameters list
(#3) Package is not specified for class enrolmentor_helper. It is also not specified in file-level phpdocs
auth/enrolmentor/db/upgrade.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Function xmldb_auth_enrolmentor_upgrade is not documented
(#3) Package is not specified for function xmldb_auth_enrolmentor_upgrade. It is also not specified in file-level phpdocs
auth/enrolmentor/lang/en/auth_enrolmentor.php
(#5) Package auth is not valid
auth/enrolmentor/settings.php
(#5) Package auth is not valid
auth/enrolmentor/version.php
(#5) Package auth is not valid

Update savepoints problems

(2 errors, 0 warnings)

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

auth/enrolmentor/db/upgrade.php
Detected more 'if' blocks (1) than 'savepoint' calls (0)
version 2012032914 is missing corresponding savepoint call

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]