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

(168 errors, 17 warnings)

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

user/profile/field/multiselect/define.class.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".
(#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 "//".
(#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) Visibility must be declared on method "define_form_specific"
(#6) Inline comments must end in full-stops, exclamation marks, or question marks
(#6) 3 slashes comments are not allowed; use "// Comment." instead
(#10) Inline comments must end in full-stops, exclamation marks, or question marks
(#10) 3 slashes comments are not allowed; use "// Comment." instead
(#15) Visibility must be declared on method "define_validate_specific"
(#20) Inline comments must end in full-stops, exclamation marks, or question marks
(#20) 3 slashes comments are not allowed; use "// Comment." instead
(#23) Usage of ELSEIF not allowed; use ELSE IF instead
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#26) Line indented incorrectly; expected at least 12 spaces, found 8
(#26) 3 slashes comments are not allowed; use "// Comment." instead
(#27) Usage of ELSEIF not allowed; use ELSE IF instead
(#33) Visibility must be declared on method "define_save_preprocess"
user/profile/field/multiselect/field.class.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".
(#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/>.".
(#4) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#4) Scope modifier not specified for member variable "$options"
(#5) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#5) Scope modifier not specified for member variable "$datakey"
(#12) PHP4 style constructors are not allowed; use "__construct()" instead
(#12) Visibility must be declared on method "profile_field_multiselect"
(#13) Inline comments must start with a capital letter, digit or 3-dots sequence
(#13) Inline comments must end in full-stops, exclamation marks, or question marks
(#13) No space found before comment text; expected "// first call parent constructor" but found "//first call parent constructor"
(#16) Inline comments must end in full-stops, exclamation marks, or question marks
(#16) 3 slashes comments are not allowed; use "// Comment." instead
(#17) Spaces must be used to indent lines; tabs are not allowed
(#17) Tab found within whitespace
(#17) Whitespace found at end of line
(#18) Spaces must be used for alignment; tabs are not allowed
(#18) Tab found within whitespace
(#18) Whitespace found at end of line
(#19) Spaces must be used for alignment; tabs are not allowed
(#19) Tab found within whitespace
(#19) Whitespace found at end of line
(#21) Expected "if (...) {\n"; found "if (...){\n"
(#24) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#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 "// multilang formatting" but found "//multilang formatting"
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) 3 slashes comments are not allowed; use "// Comment." instead
(#29) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#30) Spaces must be used for alignment; tabs are not allowed
(#30) Tab found within whitespace
(#30) Line indented incorrectly; expected at least 12 spaces, found 3
(#31) Spaces must be used for alignment; tabs are not allowed
(#31) Tab found within whitespace
(#31) Line indented incorrectly; expected at least 12 spaces, found 3
(#31) Spaces must be used for alignment; tabs are not allowed
(#31) Tab found within whitespace
(#31) Whitespace found at end of line
(#32) Spaces must be used for alignment; tabs are not allowed
(#32) Tab found within whitespace
(#32) Line indented incorrectly; expected 12 spaces, found 3
(#32) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#33) Spaces must be used for alignment; tabs are not allowed
(#33) Tab found within whitespace
(#33) Line indented incorrectly; expected at least 16 spaces, found 4
(#34) Spaces must be used for alignment; tabs are not allowed
(#34) Tab found within whitespace
(#34) Line indented incorrectly; expected 12 spaces, found 3
(#36) Spaces must be used for alignment; tabs are not allowed
(#36) Tab found within whitespace
(#36) Whitespace found at end of line
(#36) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#37) Spaces must be used for alignment; tabs are not allowed
(#37) Tab found within whitespace
(#37) Whitespace found at end of line
(#45) Visibility must be declared on method "edit_field_add"
(#47) Spaces must be used for alignment; tabs are not allowed
(#47) Tab found within whitespace
(#47) Line indented incorrectly; expected at least 8 spaces, found 2
(#54) Visibility must be declared on method "edit_field_set_default"
(#55) Expected "if (...) {\n"; found "if (...){\n"
(#55) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#55) Expected 1 space after "!=="; 0 found
(#59) Spaces must be used for alignment; tabs are not allowed
(#59) Tab found within whitespace
(#59) Whitespace found at end of line
(#70) Visibility must be declared on method "edit_save_data_preprocess"
(#71) Spaces must be used for alignment; tabs are not allowed
(#71) Tab found within whitespace
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) This comment is 82% valid code; is this commented out code?
(#71) Line indented incorrectly; expected at least 8 spaces, found 1
(#71) No space found before comment text; expected "// print "<pre>";print_r($data);die;" but found "//print "<pre>";print_r($data);die;"
(#72) Spaces must be used for alignment; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected at least 8 spaces, found 1
(#72) Expected 1 space before "="; 0 found
(#72) Expected 1 space after "="; 0 found
(#73) Spaces must be used for alignment; tabs are not allowed
(#73) Tab found within whitespace
(#73) Line indented incorrectly; expected 8 spaces, found 2
(#73) Expected "if (...) {\n"; found "if(...){\t\t\n"
(#73) Spaces must be used for alignment; tabs are not allowed
(#73) Tab found within whitespace
(#73) Whitespace found at end of line
(#74) Spaces must be used for alignment; tabs are not allowed
(#74) Tab found within whitespace
(#74) Line indented incorrectly; expected 12 spaces, found 3
(#74) Expected "foreach (...) {\n"; found "foreach(...) {\t\t \n"
(#74) Spaces must be used for alignment; tabs are not allowed
(#74) Tab found within whitespace
(#74) Whitespace found at end of line
(#75) Line indented incorrectly; expected 16 spaces, found 12
(#75) Expected "if (...) {\n"; found "if(...)\n\t\t\t{\n"
(#76) Spaces must be used for alignment; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected at least 16 spaces, found 3
(#77) Spaces must be used for alignment; tabs are not allowed
(#77) Tab found within whitespace
(#77) Line indented incorrectly; expected at least 20 spaces, found 4
(#78) Spaces must be used for alignment; tabs are not allowed
(#78) Tab found within whitespace
(#78) Line indented incorrectly; expected 16 spaces, found 3
(#78) Closing brace indented incorrectly; expected 12 spaces, found 3
(#79) Line indented incorrectly; expected 12 spaces, found 8
(#79) Closing brace indented incorrectly; expected 3 spaces, found 8
(#79) Spaces must be used for alignment; tabs are not allowed
(#79) Tab found within whitespace
(#79) Whitespace found at end of line
(#80) Spaces must be used for alignment; tabs are not allowed
(#80) Tab found within whitespace
(#80) Line indented incorrectly; expected at least 12 spaces, found 2
(#80) Commas (,) must be followed by white space.
(#80) Commas (,) must be followed by white space.
(#81) Spaces must be used for alignment; tabs are not allowed
(#81) Tab found within whitespace
(#81) Line indented incorrectly; expected 8 spaces, found 2
(#81) Spaces must be used for alignment; tabs are not allowed
(#81) Tab found within whitespace
(#81) Whitespace found at end of line
(#82) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#91) Visibility must be declared on method "edit_load_user_data"
(#99) Visibility must be declared on method "edit_field_set_locked"
(#115) Visibility must be declared on method "convert_external_data"
(#119) Inline comments must end in full-stops, exclamation marks, or question marks
user/profile/field/multiselect/lang/en/profilefield_multiselect.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".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#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.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#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".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
user/profile/field/multiselect/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) 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 stylelint [More info]


PHPDocs style problems

(25 errors, 3 warnings)

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

user/profile/field/multiselect/define.class.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Class profile_define_multiselect is not documented
(#5) Function profile_define_multiselect::define_form_specific is not documented
(#15) Function profile_define_multiselect::define_validate_specific is not documented
(#33) Function profile_define_multiselect::define_save_preprocess is not documented
(#6) Found comment starting with three or more slashes
(#10) Found comment starting with three or more slashes
(#20) Found comment starting with three or more slashes
(#26) Found comment starting with three or more slashes
(#3) Package is not specified for class profile_define_multiselect. It is also not specified in file-level phpdocs
user/profile/field/multiselect/field.class.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Class profile_field_multiselect is not documented
(#4) Variable profile_field_multiselect::$options is not documented
(#5) Variable profile_field_multiselect::$datakey is not documented
(#16) Found comment starting with three or more slashes
(#28) Found comment starting with three or more slashes
(#7) Phpdocs for function profile_field_multiselect::profile_field_multiselect has incomplete parameters list
(#43) Phpdocs for function profile_field_multiselect::edit_field_add has incomplete parameters list
(#50) Phpdocs for function profile_field_multiselect::edit_field_set_default has incomplete parameters list
(#89) Phpdocs for function profile_field_multiselect::edit_load_user_data has incomplete parameters list
(#97) Phpdocs for function profile_field_multiselect::edit_field_set_locked has incomplete parameters list
(#3) Package is not specified for class profile_field_multiselect. It is also not specified in file-level phpdocs
user/profile/field/multiselect/lang/en/profilefield_multiselect.php
(#2) Empty line found after PHP open tag
(#21) Package profilefield_menu is not valid
user/profile/field/multiselect/version.php
(#17) No one-line description found in phpdocs for file
(#18) Package profilefield is not valid

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]