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

(441 errors, 154 warnings)

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

mod/edusharing/backup/moodle2/backup_edusharing_activity_task.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
(#4) Inline comments must end in full-stops, exclamation marks, or question marks
(#16) Inline comments must end in full-stops, exclamation marks, or question marks
(#23) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) The static declaration must come after the visibility declaration
(#34) Commas (,) must be followed by white space.
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Expected 1 space before "="; 0 found
(#37) Expected 1 space after "="; 0 found
(#38) Expected 1 space before "="; 0 found
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Expected 1 space before "="; 0 found
(#41) Expected 1 space after "="; 0 found
(#42) Expected 1 space before "="; 0 found
mod/edusharing/backup/moodle2/backup_edusharing_settingslib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/backup/moodle2/backup_edusharing_stepslib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#13) Inline comments must end in full-stops, exclamation marks, or question marks
(#16) Inline comments must end in full-stops, exclamation marks, or question marks
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/backup/moodle2/restore_edusharing_activity_task.class.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".
(#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 "//".
(#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/>.".
(#7) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#7) Inline comments must end in full-stops, exclamation marks, or question marks
(#15) Inline comments must end in full-stops, exclamation marks, or question marks
(#22) Inline comments must start with a capital letter, digit or 3-dots sequence
(#22) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) The static declaration must come after the visibility declaration
(#42) The static declaration must come after the visibility declaration
(#58) The static declaration must come after the visibility declaration
(#81) The static declaration must come after the visibility declaration
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/backup/moodle2/restore_edusharing_stepslib.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.".
(#6) Line 12 of the opening comment must start "//".
(#7) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#7) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#7) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#21) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Inline comments must start with a capital letter, digit or 3-dots sequence
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/classes/observer.php
(#2) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) 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/>.".
(#14) Inline comments must start with a capital letter, digit or 3-dots sequence
(#14) Inline comments must end in full-stops, exclamation marks, or question marks
(#14) No space found before comment text; expected "// delete es-activities in course-modules" but found "//delete es-activities in course-modules"
(#15) Variable "eduObjects" must be all lower-case
(#15) Space found before object operator
(#15) Space found after object operator
(#16) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#16) Variable "eduObjects" must be all lower-case
(#19) Inline comments must start with a capital letter, digit or 3-dots sequence
(#19) Inline comments must end in full-stops, exclamation marks, or question marks
(#19) No space found before comment text; expected "// delete es-activities in course-sections" but found "//delete es-activities in course-sections"
(#20) Variable "eduObjects" must be all lower-case
(#20) Space found before object operator
(#20) Space found after object operator
(#21) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#21) Variable "eduObjects" must be all lower-case
(#29) Commas (,) must be followed by white space.
(#29) Expected 1 space after "=>"; 0 found
(#31) Variable "id_type" must not contain underscores.
(#33) Expected "if (...) {\n"; found "if(...){\n"
(#33) Variable "id_type" must not contain underscores.
(#34) The use of function error_log() is forbidden; use debugging() instead
(#36) Inline comments must start with a capital letter, digit or 3-dots sequence
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) This comment is 67% valid code; is this commented out code?
(#36) No space found before comment text; expected "// error_log('course_module_created: '.$module->intro);" but found "//error_log('course_module_created: '.$module->intro);"
(#42) Commas (,) must be followed by white space.
(#42) Expected 1 space after "=>"; 0 found
(#44) Variable "id_type" must not contain underscores.
(#46) Expected "if (...) {\n"; found "if(...){\n"
(#46) Variable "id_type" must not contain underscores.
(#47) The use of function error_log() is forbidden; use debugging() instead
(#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) This comment is 67% valid code; is this commented out code?
(#49) No space found before comment text; expected "// error_log('course_module_updated: '.$module->intro);" but found "//error_log('course_module_updated: '.$module->intro);"
(#55) Commas (,) must be followed by white space.
(#55) Expected 1 space after "=>"; 0 found
(#57) Variable "id_type" must not contain underscores.
(#59) Expected "if (...) {\n"; found "if(...){\n"
(#59) Variable "id_type" must not contain underscores.
(#60) The use of function error_log() is forbidden; use debugging() instead
(#62) Inline comments must start with a capital letter, digit or 3-dots sequence
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) This comment is 67% valid code; is this commented out code?
(#62) No space found before comment text; expected "// error_log('course_section_created: '.$module->summary);" but found "//error_log('course_section_created: '.$module->summary);"
(#68) Commas (,) must be followed by white space.
(#68) Expected 1 space after "=>"; 0 found
(#70) Variable "id_type" must not contain underscores.
(#72) Expected "if (...) {\n"; found "if(...){\n"
(#72) Variable "id_type" must not contain underscores.
(#73) The use of function error_log() is forbidden; use debugging() instead
(#75) Inline comments must start with a capital letter, digit or 3-dots sequence
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) This comment is 67% valid code; is this commented out code?
(#75) No space found before comment text; expected "// error_log('course_section_updated: '.$module->summary);" but found "//error_log('course_section_updated: '.$module->summary);"
(#89) Variable "eduObjects" must be all lower-case
(#89) Space found before object operator
(#89) Space found after object operator
(#90) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#90) Variable "eduObjects" must be all lower-case
(#97) Variable "eventData" must be all lower-case
(#98) Variable "courseId" must be all lower-case
(#98) Variable "eventData" must be all lower-case
(#99) Variable "courseId" must be all lower-case
(#103) Variable "id_type" must not contain underscores.
(#104) Opening brace should be on the same line as the declaration
(#106) Variable "matchesimg_atto" must not contain underscores.
(#108) Variable "matchesa_atto" must not contain underscores.
(#110) Variable "matches_atto" must not contain underscores.
(#110) Variable "matchesimg_atto" must not contain underscores.
(#110) Variable "matchesa_atto" must not contain underscores.
(#112) Variable "matches_atto" must not contain underscores.
(#113) Variable "matches_atto" must not contain underscores.
(#114) Variable "resourceId" must be all lower-case
(#115) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#116) Variable "resourceId" must be all lower-case
(#117) Variable "resourceId" must be all lower-case
(#117) Variable "resourceId" must be all lower-case
(#117) Variable "resourceId" must be all lower-case
(#119) Variable "id_type" must not contain underscores.
(#119) Variable "resourceId" must be all lower-case
mod/edusharing/classes/restorehelper.php
(#2) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) 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/>.".
(#6) Variable "courseId" must be all lower-case
(#9) Space found before object operator
(#9) Space found after object operator
(#9) Variable "courseId" must be all lower-case
(#11) Variable "matches_atto" must not contain underscores.
(#12) Variable "matches_atto" must not contain underscores.
(#13) Variable "matches_atto" must not contain underscores.
(#14) Space found before object operator
(#14) Space found after object operator
(#14) Variable "courseId" must be all lower-case
(#14) Space found before object operator
(#14) Space found after object operator
(#14) Line exceeds 132 characters; contains 135 characters
(#15) Space found before object operator
(#15) Space found after object operator
(#19) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#21) Variable "courseId" must be all lower-case
(#22) Variable "courseId" must be all lower-case
(#23) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#25) Space found before object operator
(#25) Space found after object operator
(#25) Space found before object operator
(#25) Space found after object operator
(#26) Expected "if (...) {\n"; found "if(...) {\n"
(#26) Space found before object operator
(#26) Space found after object operator
(#27) Variable "matches_atto" must not contain underscores.
(#28) Variable "matches_atto" must not contain underscores.
(#29) Variable "matches_atto" must not contain underscores.
(#30) Space found before object operator
(#30) Space found after object operator
(#30) Variable "courseId" must be all lower-case
(#34) Commas (,) must be followed by white space.
(#35) Expected "if (...) {\n"; found "if(...) {\n"
(#35) Space found before object operator
(#35) Space found after object operator
(#36) Variable "matches_atto" must not contain underscores.
(#36) Space found before object operator
(#36) Space found after object operator
(#37) Variable "matches_atto" must not contain underscores.
(#38) Variable "matches_atto" must not contain underscores.
(#39) Space found before object operator
(#39) Space found after object operator
(#39) Variable "courseId" must be all lower-case
(#39) Space found before object operator
(#39) Space found after object operator
(#39) Line exceeds 132 characters; contains 133 characters
(#43) Space found before object operator
(#43) Space found after object operator
(#43) Space found before object operator
(#43) Space found after object operator
(#46) Variable "courseId" must be all lower-case
(#63) Variable "matchesimg_atto" must not contain underscores.
(#65) Variable "matchesa_atto" must not contain underscores.
(#67) Variable "matches_atto" must not contain underscores.
(#67) Variable "matchesimg_atto" must not contain underscores.
(#67) Variable "matchesa_atto" must not contain underscores.
(#69) Variable "matches_atto" must not contain underscores.
(#76) Variable "courseId" must be all lower-case
(#99) Space found before object operator
(#99) Space found after object operator
(#99) Variable "courseId" must be all lower-case
(#100) Space found before object operator
(#100) Space found after object operator
(#101) Space found before object operator
(#101) Space found after object operator
(#102) Space found before object operator
(#102) Space found after object operator
(#103) Space found before object operator
(#103) Space found after object operator
(#104) Space found before object operator
(#104) Space found after object operator
(#105) Space found before object operator
(#105) Space found after object operator
(#107) Space found before object operator
(#107) Space found after object operator
(#109) Expected "if (...) {\n"; found "if(...) {\n"
(#113) Expected "if (...) {\n"; found "if(...) {\n"
(#116) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#119) Inline control structures are not allowed
(#120) Space found before object operator
(#120) Space found after object operator
(#121) Inline control structures are not allowed
(#122) Space found before object operator
(#122) Space found after object operator
(#125) Space found before object operator
(#125) Space found after object operator
(#128) Space found before object operator
(#128) Space found after object operator
mod/edusharing/db/events.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#2) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#2) 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/>.".
mod/edusharing/db/install.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) "require_once" must be immediately followed by an open parenthesis
(#20) Variable "repo_admin" must not contain underscores.
(#21) Variable "repo_pw" must not contain underscores.
(#22) Variable "appID" must be all lower-case
(#23) Variable "wlo_guestuser" must not contain underscores.
(#25) Expected "if (...) {\n"; found "if (...){\n"
(#26) Variable "appID" must be all lower-case
(#29) Expected "if (...) {\n"; found "if (...){\n"
(#30) Variable "wlo_guestuser" must not contain underscores.
(#33) Expected "if (...) {\n"; found "if (...){\n"
(#33) Variable "appID" must be all lower-case
(#33) Variable "wlo_guestuser" must not contain underscores.
(#34) The use of function error_log() is forbidden; use debugging() instead
(#35) Variable "repo_url" must not contain underscores.
(#37) Variable "repo_url" must not contain underscores.
(#37) Variable "repo_admin" must not contain underscores.
(#37) Variable "repo_pw" must not contain underscores.
(#38) Expected "if (...) {\n"; found "if (...){\n"
(#39) The use of function error_log() is forbidden; use debugging() instead
(#39) Variable "repo_url" must not contain underscores.
(#40) Expected "} else {\n"; found "}else{\n"
(#41) The use of function error_log() is forbidden; use debugging() instead
(#41) Variable "repo_url" must not contain underscores.
(#41) Line exceeds 132 characters; contains 139 characters
(#43) Expected "} else {\n"; found "}else{\n"
(#44) The use of function error_log() is forbidden; use debugging() instead
mod/edusharing/db/log.php
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/db/upgrade.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#45) Inline comments must start with a capital letter, digit or 3-dots sequence
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Inline comments must start with a capital letter, digit or 3-dots sequence
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Line exceeds 132 characters; contains 146 characters
(#94) Line exceeds 132 characters; contains 156 characters
(#98) Line exceeds 132 characters; contains 136 characters
(#181) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#184) "require_once" must be immediately followed by an open parenthesis
(#186) Variable "repo_admin" must not contain underscores.
(#187) Variable "repo_pw" must not contain underscores.
(#188) Variable "appID" must be all lower-case
(#190) Expected "if (...) {\n"; found "if (...){\n"
(#191) Variable "appID" must be all lower-case
(#194) Expected "if (...) {\n"; found "if (...){\n"
(#194) Variable "appID" must be all lower-case
(#195) The use of function error_log() is forbidden; use debugging() instead
(#196) Variable "repo_url" must not contain underscores.
(#198) Variable "repo_url" must not contain underscores.
(#198) Variable "repo_admin" must not contain underscores.
(#198) Variable "repo_pw" must not contain underscores.
(#199) Expected "if (...) {\n"; found "if (...){\n"
(#200) The use of function error_log() is forbidden; use debugging() instead
(#200) Variable "repo_url" must not contain underscores.
(#201) Expected "} else {\n"; found "}else{\n"
(#202) The use of function error_log() is forbidden; use debugging() instead
(#202) Variable "repo_url" must not contain underscores.
(#202) Line exceeds 132 characters; contains 139 characters
(#204) Expected "} else {\n"; found "}else{\n"
(#205) The use of function error_log() is forbidden; use debugging() instead
mod/edusharing/defaults.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/edusharing/import_metadata.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#49) Expected "if (...) {\n"; found "if(...){\n"
(#50) Expected "if (...) {\n"; found "if (...){\n"
(#52) The use of function error_log() is forbidden; use debugging() instead
(#54) Expected "if (...) {\n"; found "if (...){\n"
(#77) function name "callRepo" must be lower-case letters only
(#77) Variable "repoUrl" must be all lower-case
(#77) Expected 1 space before opening brace; found 0
(#81) Variable "repoUrl" must be all lower-case
(#82) Expected "if (...) {\n"; found "if (...){\n"
(#83) Variable "repoUrl" must be all lower-case
(#84) Expected "} else {\n"; found "}else{\n"
(#85) Variable "repoUrl" must be all lower-case
(#86) Expected "if (...) {\n"; found "if (...){\n"
(#91) Whitespace found at end of line within string
(#92) Variable "repoUrl" must be all lower-case
(#92) Line exceeds 132 characters; contains 133 characters
(#92) Line exceeds 132 characters; contains 133 characters
(#94) Whitespace found at end of line within string
(#96) Whitespace found at end of line within string
(#98) Whitespace found at end of line within string
(#105) function name "getRepoForm" must be lower-case letters only
(#105) Expected 1 space before opening brace; found 0
(#106) Variable "repo_url" must not contain underscores.
(#107) Variable "appId" must be all lower-case
(#108) Variable "host_aliases" must not contain underscores.
(#109) Expected "if (...) {\n"; found "if (...){\n"
(#109) Variable "repo_url" must not contain underscores.
(#116) Variable "repo_url" must not contain underscores.
(#120) Line exceeds 132 characters; contains 133 characters
(#120) Line exceeds 132 characters; contains 133 characters
(#123) Variable "appId" must be all lower-case
(#127) Variable "host_aliases" must not contain underscores.
(#127) Line exceeds 132 characters; contains 137 characters
(#127) Line exceeds 132 characters; contains 137 characters
(#131) Whitespace found at end of line within string
(#134) Expected "} else {\n"; found "}else{\n"
(#151) Whitespace found at end of line within string
(#159) Line exceeds 132 characters; contains 152 characters
(#159) Line exceeds 132 characters; contains 152 characters
(#165) Line exceeds 132 characters; contains 163 characters
(#165) Line exceeds 132 characters; contains 163 characters
mod/edusharing/lang/de/edusharing.php
(#34) Inline comments must start with a capital letter, digit or 3-dots sequence
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) Inline comments must start with a capital letter, digit or 3-dots sequence
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Inline comments must start with a capital letter, digit or 3-dots sequence
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) Inline comments must start with a capital letter, digit or 3-dots sequence
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) Inline comments must start with a capital letter, digit or 3-dots sequence
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/lang/en/edusharing.php
(#34) Inline comments must start with a capital letter, digit or 3-dots sequence
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) Inline comments must start with a capital letter, digit or 3-dots sequence
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Inline comments must start with a capital letter, digit or 3-dots sequence
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) Inline comments must start with a capital letter, digit or 3-dots sequence
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) Inline comments must start with a capital letter, digit or 3-dots sequence
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/lang/zh/edusharing.php
(#34) Inline comments must start with a capital letter, digit or 3-dots sequence
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
(#91) Inline comments must start with a capital letter, digit or 3-dots sequence
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Inline comments must start with a capital letter, digit or 3-dots sequence
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) Inline comments must start with a capital letter, digit or 3-dots sequence
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) Inline comments must start with a capital letter, digit or 3-dots sequence
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/lib.php
(#113) Inline comments must start with a capital letter, digit or 3-dots sequence
(#113) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) No space found before comment text; expected "// use simple version handling for atto plugin or legacy code" but found "//use simple version handling for atto plugin or legacy code"
(#114) Expected "if (...) {\n"; found "if(...) {\n"
(#114) Space found before object operator
(#114) Space found after object operator
(#115) Inline comments must start with a capital letter, digit or 3-dots sequence
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#115) No space found before comment text; expected "// avoid database error" but found "//avoid database error"
(#182) Inline comments must end in full-stops, exclamation marks, or question marks
(#335) Inline comments must end in full-stops, exclamation marks, or question marks
(#427) Expected 1 space before "=>"; 0 found
(#427) Expected 1 space after "=>"; 0 found
(#488) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#567) Inline comments must start with a capital letter, digit or 3-dots sequence
(#567) This comment is 67% valid code; is this commented out code?
(#567) No space found before comment text; expected "// $descr = $cm->get_description();" but found "//$descr = $cm->get_description();"
(#568) No space found before comment text; expected "// error_log('edusharing_pre_course_module_delete: '.print_r($cm, true));" but found "//error_log('edusharing_pre_course_module_delete: '.print_r($cm, true));"
(#576) Inline comments must start with a capital letter, digit or 3-dots sequence
(#576) This comment is 70% valid code; is this commented out code?
(#576) No space found before comment text; expected "// echo 'edusharing_pre_block_delete';" but found "//echo 'edusharing_pre_block_delete';"
(#577) Inline comments must end in full-stops, exclamation marks, or question marks
(#577) No space found before comment text; expected "// error_log('edusharing_pre_block_delete');" but found "//error_log('edusharing_pre_block_delete');"
(#624) Expected "} else {\n"; found "}else{\n"
(#640) Expected 1 space before opening brace; found 0
(#641) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/lib/cclib.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/edusharing/locallib.php
(#42) Space found before object operator
(#42) Space found after object operator
(#42) Space found before object operator
(#42) Space found after object operator
(#44) Space found before object operator
(#44) Space found after object operator
(#58) Inline control structures are not allowed
(#60) Inline control structures are not allowed
(#62) Inline control structures are not allowed
(#64) Inline control structures are not allowed
(#80) Space found before object operator
(#80) Space found after object operator
(#80) Space found before object operator
(#80) Space found after object operator
(#82) Space found before object operator
(#82) Space found after object operator
(#157) Inline control structures are not allowed
(#200) Space found before object operator
(#200) Space found after object operator
(#204) Whitespace found at end of line
(#206) Inline comments must start with a capital letter, digit or 3-dots sequence
(#206) Inline comments must end in full-stops, exclamation marks, or question marks
(#206) No space found before comment text; expected "// repository" but found "//repository"
(#207) Inline comments must start with a capital letter, digit or 3-dots sequence
(#207) Inline comments must end in full-stops, exclamation marks, or question marks
(#207) No space found before comment text; expected "// rendering service" but found "//rendering service"
(#239) Commas (,) must be followed by white space.
(#240) Expected "if (...) {\n"; found "if(...) {\n"
(#254) Variable "appId" must be all lower-case
(#254) Variable "hostAliases" must be all lower-case
(#254) Variable "wlo_guestuser" must not contain underscores.
(#254) Expected 1 space before opening brace; found 0
(#296) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#299) Expected "if (...) {\n"; found "if(...){\n"
(#303) Inline comments must start with a capital letter, digit or 3-dots sequence
(#303) Inline comments must end in full-stops, exclamation marks, or question marks
(#304) Variable "currentAppId" must be all lower-case
(#305) Expected "if (...) {\n"; found "if(...){\n"
(#305) Variable "appId" must be all lower-case
(#305) Variable "currentAppId" must be all lower-case
(#306) Variable "appId" must be all lower-case
(#307) Expected "} else if (...) {\n"; found "}else if (...){\n"
(#307) Expected "if (...) {\n"; found "if (...){\n"
(#307) Variable "currentAppId" must be all lower-case
(#308) Variable "appId" must be all lower-case
(#308) Variable "currentAppId" must be all lower-case
(#312) Variable "appId" must be all lower-case
(#319) Expected "if (...) {\n"; found "if (...){\n"
(#319) Variable "hostAliases" must be all lower-case
(#320) Variable "hostAliases" must be all lower-case
(#323) Expected "if (...) {\n"; found "if (...){\n"
(#323) Variable "wlo_guestuser" must not contain underscores.
(#325) Variable "wlo_guestuser" must not contain underscores.
(#328) Expected "if (...) {\n"; found "if (...){\n"
(#328) Line exceeds 132 characters; contains 134 characters
(#358) function name "createXmlMetadata" must be lower-case letters only
(#358) Expected 1 space before opening brace; found 0
(#361) Line exceeds 132 characters; contains 145 characters
(#384) Expected "if (...) {\n"; found "if(...){\n"
(#392) function name "createApiBody" must be lower-case letters only
(#392) Expected 1 space before opening brace; found 0
(#404) function name "registerPlugin" must be lower-case letters only
(#404) Variable "repoUrl" must be all lower-case
(#404) Expected 1 space before opening brace; found 0
(#405) Variable "repoUrl" must be all lower-case
(#411) Variable "curlSession" must be all lower-case
(#412) Variable "curlSession" must be all lower-case
(#417) Variable "curlSession" must be all lower-case
(#421) Variable "curlSession" must be all lower-case
(#422) Expected "if (...) {\n"; found "if(...){\n"
(#426) Variable "urlXML" must be all lower-case
(#426) Variable "repoUrl" must be all lower-case
(#427) Variable "curlXML" must be all lower-case
(#428) Variable "curlXML" must be all lower-case
(#434) Variable "curlXML" must be all lower-case
(#438) Variable "curlXML" must be all lower-case
(#438) Variable "urlXML" must be all lower-case
(#440) Variable "curlXML" must be all lower-case
(#441) Variable "curlXML" must be all lower-case
(#442) Variable "curlXML" must be all lower-case
mod/edusharing/metadata.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
mod/edusharing/mod_form.php
(#41) Opening brace should be on the same line as the declaration for class mod_edusharing_mod_form
(#48) Opening brace should be on the same line as the declaration
(#55) Inline comments must start with a capital letter, digit or 3-dots sequence
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Inline comments must start with a capital letter, digit or 3-dots sequence
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Line exceeds 132 characters; contains 168 characters
(#79) Inline comments must start with a capital letter, digit or 3-dots sequence
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Variable "repoSearch" must be all lower-case
(#86) Line exceeds 132 characters; contains 161 characters
(#87) Line exceeds 132 characters; contains 167 characters
(#88) Variable "repoOnClick" must be all lower-case
(#95) Whitespace found at end of line within string
(#104) Whitespace found at end of line within string
(#106) Whitespace found at end of line within string
(#108) Variable "repoSearch" must be all lower-case
(#108) Line exceeds 132 characters; contains 134 characters
(#108) Whitespace found at end of line within string
(#112) Variable "repoOnClick" must be all lower-case
(#112) Line exceeds 132 characters; contains 170 characters
(#115) Inline comments must start with a capital letter, digit or 3-dots sequence
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#119) Line exceeds 132 characters; contains 154 characters
(#120) Line exceeds 132 characters; contains 153 characters
(#127) Inline comments must start with a capital letter, digit or 3-dots sequence
(#127) Inline comments must end in full-stops, exclamation marks, or question marks
(#129) Line exceeds 132 characters; contains 142 characters
(#133) Inline comments must start with a capital letter, digit or 3-dots sequence
(#133) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/settings.php
(#28) Line exceeds 132 characters; contains 138 characters
(#32) Whitespace found at end of line within string
(#43) Variable "str_version" must not contain underscores.
(#45) Whitespace found at end of line within string
(#50) Line exceeds 132 characters; contains 152 characters
(#55) Variable "str_version" must not contain underscores.
(#129) Line exceeds 132 characters; contains 157 characters
(#131) Variable "nameSetting" must be all lower-case
(#132) Variable "nameSetting" must be all lower-case
(#133) Variable "nameSetting" must be all lower-case
(#135) Variable "imgSetting" must be all lower-case
(#135) Line exceeds 132 characters; contains 139 characters
(#136) Variable "imgSetting" must be all lower-case
(#137) Variable "imgSetting" must be all lower-case
(#139) Variable "hintSetting" must be all lower-case
(#139) Line exceeds 132 characters; contains 137 characters
(#140) Variable "hintSetting" must be all lower-case
(#141) Variable "hintSetting" must be all lower-case
mod/edusharing/sigSoapClient.php
(#17) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#71) Expected "if (...) {\n"; found "if (...){\n"
(#74) Expected "if (...) {\n"; found "if (...){\n"
mod/edusharing/version.php
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) No space found before comment text; expected "// YYYYMMDDXX" but found "//YYYYMMDDXX"
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) No space found before comment text; expected "// YYYYMMDDXX" but found "//YYYYMMDDXX"
mod/edusharing/view.php
(#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
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Variable "backAction" must be all lower-case
(#73) Variable "backAction" must be all lower-case
(#76) Variable "backAction" must be all lower-case
(#79) Variable "backAction" must be all lower-case
(#82) Space found before object operator
(#82) Space found after object operator
(#82) Line exceeds 132 characters; contains 141 characters

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

(31 errors, 0 warnings)

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

mod/edusharing/import_metadata_style.css
(#13) Expected single space before "{" (block-opening-brace-space-before)
(#17) Expected single space before "{" (block-opening-brace-space-before)
(#21) Expected single space before "{" (block-opening-brace-space-before)
(#29) Expected single space before "{" (block-opening-brace-space-before)
(#49) Expected single space before "{" (block-opening-brace-space-before)
(#64) Expected single space before "{" (block-opening-brace-space-before)
(#68) Expected single space before "{" (block-opening-brace-space-before)
(#79) Expected single space before "{" (block-opening-brace-space-before)
(#83) Expected single space before "{" (block-opening-brace-space-before)
(#87) Expected single space before "{" (block-opening-brace-space-before)
(#92) Expected single space before "{" (block-opening-brace-space-before)
(#96) Expected single space before "{" (block-opening-brace-space-before)
(#105) Expected single space before "{" (block-opening-brace-space-before)
(#111) Expected single space before "{" (block-opening-brace-space-before)
(#117) Expected single space before "{" (block-opening-brace-space-before)
(#125) Expected single space before "{" (block-opening-brace-space-before)
(#130) Expected single space before "{" (block-opening-brace-space-before)
(#136) Expected single space before "{" (block-opening-brace-space-before)
(#139) Expected single space before "{" (block-opening-brace-space-before)
(#144) Expected single space before "{" (block-opening-brace-space-before)
(#148) Expected single space before "{" (block-opening-brace-space-before)
(#154) Expected single space before "{" (block-opening-brace-space-before)
(#161) Expected single space before "{" (block-opening-brace-space-before)
(#167) Expected single space before "{" (block-opening-brace-space-before)
(#173) Expected single space before "{" (block-opening-brace-space-before)
(#177) Expected single space before "{" (block-opening-brace-space-before)
(#8) Expected newline after "," (selector-list-comma-newline-after)
(#8) Expected newline after "," (selector-list-comma-newline-after)
(#8) Expected newline after "," (selector-list-comma-newline-after)
(#45) Expected newline after "," (selector-list-comma-newline-after)
mod/edusharing/styles.css
(#1) Expected single space before "{" (block-opening-brace-space-before)

PHPDocs style problems

(58 errors, 4 warnings)

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

mod/edusharing/backup/moodle2/backup_edusharing_activity_task.class.php
(#6) Package is not specified for class backup_edusharing_activity_task. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#6) No one-line description found in phpdocs for class backup_edusharing_activity_task
(#27) Phpdocs for function backup_edusharing_activity_task::encode_content_links has incomplete parameters list
mod/edusharing/backup/moodle2/backup_edusharing_settingslib.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
mod/edusharing/backup/moodle2/backup_edusharing_stepslib.php
(#6) Package is not specified for class backup_edusharing_activity_structure_step. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#11) Function backup_edusharing_activity_structure_step::define_structure is not documented
(#3) File-level phpdocs block does not have @copyright tag
(#3) File-level phpdocs block does not have @license tag
mod/edusharing/backup/moodle2/restore_edusharing_activity_task.class.php
(#9) Package is not specified for class restore_edusharing_activity_task. It is also not specified in file-level phpdocs
(#9) Class restore_edusharing_activity_task is not documented
(#92) Function restore_edusharing_activity_task::after_restore is not documented
(#2) No one-line description found in phpdocs for file
(#2) File-level phpdocs block does not have @copyright tag
(#2) File-level phpdocs block does not have @license tag
(#54) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#56) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#73) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
(#75) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link valid URL} or {@see valid FQSEN}
mod/edusharing/backup/moodle2/restore_edusharing_stepslib.php
(#12) Package is not specified for class restore_edusharing_activity_structure_step. It is also not specified in file-level phpdocs
(#12) Class restore_edusharing_activity_structure_step is not documented
(#14) Function restore_edusharing_activity_structure_step::define_structure is not documented
(#25) Function restore_edusharing_activity_structure_step::process_edusharing is not documented
(#40) Function restore_edusharing_activity_structure_step::after_execute is not documented
(#2) File-level phpdocs block does not have @copyright tag
(#2) File-level phpdocs block does not have @license tag
mod/edusharing/classes/observer.php
(#4) Package is not specified for class mod_edusharing_observer. It is also not specified in file-level phpdocs
(#103) Package is not specified for function set_module_id_in_db. It is also not specified in file-level phpdocs
(#4) Class mod_edusharing_observer is not documented
(#10) Function mod_edusharing_observer::course_module_deleted is not documented
(#26) Function mod_edusharing_observer::course_module_created is not documented
(#39) Function mod_edusharing_observer::course_module_updated is not documented
(#52) Function mod_edusharing_observer::course_section_created is not documented
(#65) Function mod_edusharing_observer::course_section_updated is not documented
(#85) Function mod_edusharing_observer::course_deleted is not documented
(#96) Function mod_edusharing_observer::course_restored is not documented
(#103) Function set_module_id_in_db is not documented
mod/edusharing/classes/restorehelper.php
(#4) Package is not specified for class mod_edusharing_restorehelper. It is also not specified in file-level phpdocs
(#4) Class mod_edusharing_restorehelper is not documented
(#6) Function mod_edusharing_restorehelper::edusharing_convert_inline_objects is not documented
(#49) Function mod_edusharing_restorehelper::edusharing_get_inline_objects is not documented
(#76) Function mod_edusharing_restorehelper::edusharing_convert_object is not documented
(#131) Function mod_edusharing_restorehelper::edusharing_add_usage is not documented
mod/edusharing/db/events.php
(#2) File-level phpdocs block is not found
mod/edusharing/db/install.php
(#2) Empty line found after PHP open tag
(#14) Function xmldb_edusharing_install is not documented
mod/edusharing/import_metadata.php
(#77) Function callRepo is not documented
(#105) Function getRepoForm is not documented
(#141) Phpdocs for function get_form has incomplete parameters list
mod/edusharing/lib.php
(#571) Function edusharing_course_module_background_deletion_recommended is not documented
(#575) Function edusharing_pre_block_delete is not documented
(#581) Function edusharing_update_settings_images is not documented
(#640) Function edusharing_update_settings_name is not documented
mod/edusharing/lib/cclib.php
(#58) Phpdocs for function mod_edusharing_web_service_factory::edusharing_authentication_get_ticket has incomplete parameters list
mod/edusharing/locallib.php
(#178) Function edusharing_get_redirect_url is not documented
(#358) Function createXmlMetadata is not documented
(#392) Function createApiBody is not documented
(#404) Function registerPlugin is not documented
(#251) Phpdocs for function edusharing_import_metadata has incomplete parameters list
mod/edusharing/sigSoapClient.php
(#27) Package is not specified for class mod_edusharing_sig_soap_client. It is also not specified in file-level phpdocs

Update savepoints problems

(1 errors, 0 warnings)

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

mod/edusharing/db/upgrade.php
'return true;' 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]


Missing changes in external functions or backup support for new detected tables or columns

(0 errors, 0 warnings)

This section shows potential problems detected when there are new database structures added in a patch and it is detected that nothing has been changed related with external functions (to be used by WS) or backup and restore. It must be checked that everything is correct and nothing is being missed in those areas. [More info]


grunt changes

(1 errors, 1 warnings)

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

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

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]