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

(428 errors, 150 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
(#1) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#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) 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) 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
(#24) Expected "if (...) {\n"; found "if (...){\n"
(#25) Variable "appID" must be all lower-case
(#28) Expected "if (...) {\n"; found "if (...){\n"
(#28) Variable "appID" must be all lower-case
(#29) The use of function error_log() is forbidden; use debugging() instead
(#30) Variable "repo_url" must not contain underscores.
(#32) Variable "repo_url" must not contain underscores.
(#32) Variable "repo_admin" must not contain underscores.
(#32) Variable "repo_pw" must not contain underscores.
(#33) Expected "if (...) {\n"; found "if (...){\n"
(#34) The use of function error_log() is forbidden; use debugging() instead
(#34) Variable "repo_url" must not contain underscores.
(#35) Expected "} else {\n"; found "}else{\n"
(#36) The use of function error_log() is forbidden; use debugging() instead
(#36) Variable "repo_url" must not contain underscores.
(#36) Line exceeds 132 characters; contains 139 characters
(#38) Expected "} else {\n"; found "}else{\n"
(#39) 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
(#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
(#185) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#188) "require_once" must be immediately followed by an open parenthesis
(#190) Variable "repo_admin" must not contain underscores.
(#191) Variable "repo_pw" must not contain underscores.
(#192) Variable "appID" must be all lower-case
(#194) Expected "if (...) {\n"; found "if (...){\n"
(#195) Variable "appID" must be all lower-case
(#198) Expected "if (...) {\n"; found "if (...){\n"
(#198) Variable "appID" must be all lower-case
(#199) The use of function error_log() is forbidden; use debugging() instead
(#200) Variable "repo_url" must not contain underscores.
(#202) Variable "repo_url" must not contain underscores.
(#202) Variable "repo_admin" must not contain underscores.
(#202) Variable "repo_pw" must not contain underscores.
(#203) Expected "if (...) {\n"; found "if (...){\n"
(#204) The use of function error_log() is forbidden; use debugging() instead
(#204) Variable "repo_url" must not contain underscores.
(#205) Expected "} else {\n"; found "}else{\n"
(#206) The use of function error_log() is forbidden; use debugging() instead
(#206) Variable "repo_url" must not contain underscores.
(#206) Line exceeds 132 characters; contains 139 characters
(#208) Expected "} else {\n"; found "}else{\n"
(#209) 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
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#28) 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
(#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
(#96) Inline comments must start with a capital letter, digit or 3-dots sequence
(#96) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) Inline comments must start with a capital letter, digit or 3-dots sequence
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) Inline comments must start with a capital letter, digit or 3-dots sequence
(#123) Inline comments must end in full-stops, exclamation marks, or question marks
mod/edusharing/lang/en/edusharing.php
(#36) Inline comments must start with a capital letter, digit or 3-dots sequence
(#37) 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
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) Inline comments must start with a capital letter, digit or 3-dots sequence
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) Inline comments must start with a capital letter, digit or 3-dots sequence
(#107) 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/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');"
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"
(#209) Expected "if (...) {\n"; found "if(...) {\n"
(#214) Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
(#214) Function mcrypt_module_open() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
(#214) The constant "MCRYPT_BLOWFISH" is deprecated since PHP 7.1 and removed since PHP 7.2
(#214) The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
(#215) Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
(#215) Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
(#216) Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
(#216) Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
(#217) Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
(#217) Function mcrypt_generic_deinit() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
(#249) Commas (,) must be followed by white space.
(#250) Expected "if (...) {\n"; found "if(...) {\n"
(#264) Variable "appId" must be all lower-case
(#264) Variable "hostAliases" must be all lower-case
(#264) Expected 1 space before opening brace; found 0
(#304) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#307) Expected "if (...) {\n"; found "if(...){\n"
(#311) Inline comments must start with a capital letter, digit or 3-dots sequence
(#311) Inline comments must end in full-stops, exclamation marks, or question marks
(#312) Variable "currentAppId" must be all lower-case
(#313) Expected "if (...) {\n"; found "if(...){\n"
(#313) Variable "appId" must be all lower-case
(#313) Variable "currentAppId" must be all lower-case
(#314) Variable "appId" must be all lower-case
(#315) Expected "} else if (...) {\n"; found "}else if (...){\n"
(#315) Expected "if (...) {\n"; found "if (...){\n"
(#315) Variable "currentAppId" must be all lower-case
(#316) Variable "appId" must be all lower-case
(#316) Variable "currentAppId" must be all lower-case
(#320) Variable "appId" must be all lower-case
(#327) Expected "if (...) {\n"; found "if (...){\n"
(#327) Variable "hostAliases" must be all lower-case
(#328) Variable "hostAliases" must be all lower-case
(#331) Expected "if (...) {\n"; found "if (...){\n"
(#331) Line exceeds 132 characters; contains 134 characters
(#361) function name "createXmlMetadata" must be lower-case letters only
(#361) Expected 1 space before opening brace; found 0
(#364) Line exceeds 132 characters; contains 145 characters
(#390) function name "createApiBody" must be lower-case letters only
(#390) Expected 1 space before opening brace; found 0
(#402) function name "registerPlugin" must be lower-case letters only
(#402) Variable "repoUrl" must be all lower-case
(#402) Expected 1 space before opening brace; found 0
(#403) Variable "repoUrl" must be all lower-case
(#409) Variable "curlSession" must be all lower-case
(#410) Variable "curlSession" must be all lower-case
(#415) Variable "curlSession" must be all lower-case
(#419) Variable "curlSession" must be all lower-case
(#420) Expected "if (...) {\n"; found "if(...){\n"
(#424) Variable "urlXML" must be all lower-case
(#424) Variable "repoUrl" must be all lower-case
(#425) Variable "curlXML" must be all lower-case
(#426) Variable "curlXML" must be all lower-case
(#432) Variable "curlXML" must be all lower-case
(#436) Variable "curlXML" must be all lower-case
(#436) Variable "urlXML" must be all lower-case
(#438) Variable "curlXML" must be all lower-case
(#439) Variable "curlXML" must be all lower-case
(#440) Variable "curlXML" must be all lower-case
mod/edusharing/makelink.php
(#28) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
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
(#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
(#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
(#87) Expected "if (...) {\n"; found "if(...) {\n"
(#97) Line exceeds 132 characters; contains 145 characters
(#105) Expected "if (...) {\n"; found "if(...) {\n"
(#105) Empty IF statement detected
(#114) Line exceeds 132 characters; contains 154 characters
(#116) Line exceeds 132 characters; contains 133 characters
(#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
(#126) Line exceeds 132 characters; contains 154 characters
(#127) Line exceeds 132 characters; contains 153 characters
(#134) Inline comments must start with a capital letter, digit or 3-dots sequence
(#134) Inline comments must end in full-stops, exclamation marks, or question marks
(#136) Line exceeds 132 characters; contains 142 characters
(#140) Inline comments must start with a capital letter, digit or 3-dots sequence
(#140) 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.
(#75) Expected "if (...) {\n"; found "if(...) {\n"
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

(30 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)

PHPDocs style problems

(56 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
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
(#361) Function createXmlMetadata is not documented
(#390) Function createApiBody is not documented
(#402) Function registerPlugin is not documented
(#261) 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

(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]


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]