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

(733 errors, 119 warnings)

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

blocks/my_external_privatefiles/block_my_external_privatefiles.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#13) Line indented incorrectly; expected 4 spaces, found 5
(#13) Visibility must be declared on method "init"
(#15) Line indented incorrectly; expected 4 spaces, found 5
(#17) Line indented incorrectly; expected 4 spaces, found 5
(#17) Visibility must be declared on method "get_content"
(#21) Line indented incorrectly; expected 8 spaces, found 10
(#21) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#23) Line indented incorrectly; expected 8 spaces, found 10
(#24) Expected 1 space after "="; 2 found
(#25) Expected 1 space before "="; 0 found
(#25) Logical operator "or" is prohibited; use "||" instead
(#25) Logical operator "or" is prohibited; use "||" instead
(#25) Expected 1 space after "=="; 0 found
(#25) Expected 1 space before "?"; 0 found
(#25) Short array syntax must be used to define arrays
(#25) Expected 1 space before ":"; 0 found
(#25) Line exceeds 132 characters; contains 165 characters
(#29) Line indented incorrectly; expected 4 spaces, found 5
(#35) Line indented incorrectly; expected 4 spaces, found 5
(#35) Visibility must be declared on method "applicable_formats"
(#36) Short array syntax must be used to define arrays
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#36) Commas (,) must be followed by white space.
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#36) Commas (,) must be followed by white space.
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#36) Commas (,) must be followed by white space.
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#36) Commas (,) must be followed by white space.
(#36) Commas (,) must be followed by white space.
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#37) Closing brace indented incorrectly; expected 5 spaces, found 4
(#39) Line indented incorrectly; expected 4 spaces, found 5
(#39) Visibility must be declared on method "has_config"
(#41) Line indented incorrectly; expected 4 spaces, found 5
blocks/my_external_privatefiles/classes/privacy/provider.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#41) File must end with a newline character
blocks/my_external_privatefiles/classes/task/cron_task.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#14) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#15) Line indented incorrectly; expected 4 spaces, found 5
(#16) Inline comments must end in full-stops, exclamation marks, or question marks
(#18) Line indented incorrectly; expected 4 spaces, found 5
(#20) Line indented incorrectly; expected 4 spaces, found 5
(#26) Line indented incorrectly; expected 4 spaces, found 5
(#28) File must end with a newline character
(#28) A closing tag is not permitted at the end of a PHP file
blocks/my_external_privatefiles/cli/install_server.php
(#37) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#46) Line exceeds 132 characters; contains 138 characters
blocks/my_external_privatefiles/db/access.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#12) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#12) Short array syntax must be used to define arrays
(#13) Whitespace found at end of line
(#14) Short array syntax must be used to define arrays
(#16) Whitespace found at end of line
(#19) Short array syntax must be used to define arrays
(#21) There should be a comma after the last array item in a multi-line array.
(#24) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#30) There should be a comma after the last array item in a multi-line array.
(#33) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#38) There should be a comma after the last array item in a multi-line array.
(#41) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#46) There should be a comma after the last array item in a multi-line array.
(#50) File must end with a newline character
(#50) A closing tag is not permitted at the end of a PHP file
blocks/my_external_privatefiles/db/services.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#12) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#12) Short array syntax must be used to define arrays
(#13) Short array syntax must be used to define arrays
(#19) Line exceeds 132 characters; contains 166 characters
(#19) There should be a comma after the last array item in a multi-line array.
(#23) Short array syntax must be used to define arrays
(#24) Short array syntax must be used to define arrays
(#25) Short array syntax must be used to define arrays
(#26) There should be a comma after the last array item in a multi-line array.
(#32) There should be a comma after the last array item in a multi-line array.
(#33) There should be a comma after the last array item in a multi-line array.
blocks/my_external_privatefiles/db/tasks.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#13) Short array syntax must be used to define arrays
(#14) Short array syntax must be used to define arrays
(#21) There should be a comma after the last array item in a multi-line array.
(#22) There should be a comma after the last array item in a multi-line array.
(#23) File must end with a newline character
blocks/my_external_privatefiles/db/upgrade.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#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 "// changing external_moodles setting to avoid eval" but found "//changing external_moodles setting to avoid eval"
(#15) Line indented incorrectly; expected 4 spaces, found 5
(#16) Variable "external_moodles" must not contain underscores.
(#17) Variable "new_external_moodles" must not contain underscores.
(#18) The use of function eval() is forbidden
(#18) Variable "external_moodles" must not contain underscores.
(#19) Line indented incorrectly; expected 8 spaces, found 10
(#19) Variable "external_moodles" must not contain underscores.
(#20) Line indented incorrectly; expected 12 spaces, found 15
(#20) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#20) Variable "external_moodles" must not contain underscores.
(#21) Variable "new_external_moodles" must not contain underscores.
(#21) Expected 1 space before ".="; 0 found
(#22) Line indented incorrectly; expected 12 spaces, found 15
(#23) Commas (,) must be followed by white space.
(#23) Variable "new_external_moodles" must not contain underscores.
(#23) Commas (,) must be followed by white space.
(#24) Line indented incorrectly; expected 8 spaces, found 10
(#25) Line indented incorrectly; expected 4 spaces, found 5
(#26) Line indented incorrectly; expected 4 spaces, found 5
(#26) Expected "if (...) {\n"; found "if(...){\n"
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) No space found before comment text; expected "// changing param names" but found "//changing param names"
(#29) Commas (,) must be followed by white space.
(#29) Commas (,) must be followed by white space.
(#30) Commas (,) must be followed by white space.
(#30) Commas (,) must be followed by white space.
(#31) Commas (,) must be followed by white space.
(#31) Commas (,) must be followed by white space.
(#32) Commas (,) must be followed by white space.
(#32) Commas (,) must be followed by white space.
(#32) Whitespace found at end of line
(#33) Whitespace found at end of line
(#34) Line indented incorrectly; expected 4 spaces, found 5
(#36) File must end with a newline character
blocks/my_external_privatefiles/externallib.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#11) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#14) Whitespace found at end of line
(#15) Line indented incorrectly; expected 4 spaces, found 5
(#17) Commas (,) must be followed by white space.
(#18) Variable "user_record" must not contain underscores.
(#18) Short array syntax must be used to define arrays
(#18) Expected 1 space before "=>"; 0 found
(#18) Expected 1 space after "=>"; 0 found
(#19) Line indented incorrectly; expected 8 spaces, found 10
(#19) Expected "if (...) {\n"; found "if(...){\n"
(#19) Variable "user_record" must not contain underscores.
(#21) Line indented incorrectly; expected 8 spaces, found 10
(#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
(#22) No space found before comment text; expected "// get user" but found "//get user"
(#23) Variable "user_context" must not contain underscores.
(#23) Variable "user_record" must not contain underscores.
(#25) Expected 1 space before "="; 0 found
(#25) Expected 1 space after "="; 0 found
(#28) Variable "stored_file" must not contain underscores.
(#28) Variable "user_context" must not contain underscores.
(#29) Line indented incorrectly; expected 8 spaces, found 10
(#29) Expected "if (...) {\n"; found "if(...){\n"
(#29) Variable "stored_file" must not contain underscores.
(#30) Commas (,) must be followed by white space.
(#31) Line indented incorrectly; expected 8 spaces, found 10
(#34) Short array syntax must be used to define arrays
(#34) Variable "stored_file" must not contain underscores.
(#34) Variable "user_context" must not contain underscores.
(#34) Variable "user_record" must not contain underscores.
(#34) Line exceeds 132 characters; contains 168 characters
(#35) 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
(#35) No space found before comment text; expected "// check if there is files" but found "//check if there is files"
(#37) Line indented incorrectly; expected 12 spaces, found 13
(#37) Expected "if (...) {\n"; found "if(...){\n"
(#37) Expected 1 space before ">"; 0 found
(#37) Expected 1 space after ">"; 0 found
(#38) Inline comments must start with a capital letter, digit or 3-dots sequence
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) No space found before comment text; expected "// change source of this file" but found "//change source of this file"
(#39) Expected 1 space before "="; 0 found
(#39) Expected 1 space after "="; 0 found
(#40) Expected 1 space before "="; 0 found
(#41) Expected 1 space before "="; 0 found
(#41) Expected 1 space after "="; 0 found
(#42) Short array syntax must be used to define arrays
(#42) Line exceeds 132 characters; contains 173 characters
(#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
(#43) No space found before comment text; expected "// change source for parent dir" but found "//change source for parent dir"
(#44) Whitespace found at end of line
(#45) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
(#46) Variable "user_context" must not contain underscores.
(#50) Expected 1 space after "=>"; 0 found
(#50) Variable "user_context" must not contain underscores.
(#52) There should be a comma after the last array item in a multi-line array.
(#54) Line indented incorrectly; expected 12 spaces, found 13
(#54) Expected "} else {\n"; found "}else{\n"
(#55) Commas (,) must be followed by white space.
(#56) Line indented incorrectly; expected 12 spaces, found 13
(#57) Whitespace found at end of line
(#61) Line indented incorrectly; expected 4 spaces, found 5
(#62) Whitespace found at end of line
(#63) Line indented incorrectly; expected 4 spaces, found 5
(#65) Short array syntax must be used to define arrays
(#69) Line indented incorrectly; expected 4 spaces, found 5
(#70) Whitespace found at end of line
(#71) Line indented incorrectly; expected 4 spaces, found 5
(#73) Short array syntax must be used to define arrays
(#84) Line indented incorrectly; expected 4 spaces, found 5
(#85) File must end with a newline character
blocks/my_external_privatefiles/filelib.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#13) Line exceeds 132 characters; contains 134 characters
(#23) Expected "if (...) {\n"; found "if(...) {\n"
(#24) Line indented incorrectly; expected at least 8 spaces, found 6
(#25) Expected "} else if (...) {\n"; found "} else if(...) {\n"
(#25) Expected "if (...) {\n"; found "if(...) {\n"
(#26) Short array syntax must be used to define arrays
(#26) Inline comments must start with a capital letter, digit or 3-dots sequence
blocks/my_external_privatefiles/get_user_draft_file_webservice.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) No space found before comment text; expected "// authenticate the user" but found "//authenticate the user"
(#31) Commas (,) must be followed by white space.
(#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
(#32) No space found before comment text; expected "// check the service allows file download" but found "//check the service allows file download"
(#35) The use of function error_log() is forbidden; use debugging() instead
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) No space found before comment text; expected "// finally we can serve the file :)" but found "//finally we can serve the file :)"
blocks/my_external_privatefiles/lang/en/block_my_external_privatefiles.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#12) Expected 1 space before "="; 0 found
(#12) Expected 1 space after "="; 0 found
(#13) Expected 1 space before "="; 0 found
(#13) Expected 1 space after "="; 0 found
(#15) Expected 1 space before "="; 0 found
(#15) Expected 1 space after "="; 0 found
(#16) Expected 1 space before "="; 0 found
(#16) Expected 1 space after "="; 0 found
(#22) Expected 1 space before "="; 0 found
(#23) Expected 1 space before "="; 0 found
(#24) Expected 1 space before "="; 0 found
(#24) Expected 1 space after "="; 0 found
(#25) Expected 1 space before "="; 0 found
(#25) Expected 1 space after "="; 0 found
(#26) Expected 1 space before "="; 0 found
(#26) Expected 1 space after "="; 0 found
(#27) Expected 1 space before "="; 0 found
(#27) Expected 1 space after "="; 0 found
(#28) Expected 1 space before "="; 0 found
(#28) Expected 1 space after "="; 0 found
(#29) Expected 1 space before "="; 0 found
(#29) Expected 1 space after "="; 0 found
(#31) File must end with a newline character
blocks/my_external_privatefiles/lang/fr/block_my_external_privatefiles.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#12) Expected 1 space before "="; 0 found
(#12) Expected 1 space after "="; 0 found
(#13) Expected 1 space before "="; 0 found
(#13) Expected 1 space after "="; 0 found
(#15) Expected 1 space before "="; 0 found
(#15) Expected 1 space after "="; 0 found
(#16) Expected 1 space before "="; 0 found
(#16) Expected 1 space after "="; 0 found
(#22) Expected 1 space before "="; 0 found
(#23) Expected 1 space before "="; 0 found
(#24) Expected 1 space before "="; 0 found
(#24) Expected 1 space after "="; 0 found
(#25) Expected 1 space before "="; 0 found
(#25) Expected 1 space after "="; 0 found
(#26) Expected 1 space before "="; 0 found
(#26) Expected 1 space after "="; 0 found
(#27) Expected 1 space before "="; 0 found
(#27) Expected 1 space after "="; 0 found
(#28) Expected 1 space before "="; 0 found
(#28) Expected 1 space after "="; 0 found
(#29) Expected 1 space before "="; 0 found
(#29) Expected 1 space after "="; 0 found
(#31) File must end with a newline character
blocks/my_external_privatefiles/locallib.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#14) Line indented incorrectly; expected 4 spaces, found 5
(#14) Expected 1 space before opening brace; found 0
(#17) Expected 1 space before "?"; 0 found
(#17) Expected 1 space after "?"; 0 found
(#17) Expected 1 space before ":"; 0 found
(#17) Expected 1 space after ":"; 0 found
(#18) Expected 1 space before "="; 0 found
(#18) Expected 1 space after "="; 0 found
(#19) Line indented incorrectly; expected 8 spaces, found 10
(#19) Expected "if (...) {\n"; found "if(...){\n"
(#20) Inline comments must start with a capital letter, digit or 3-dots sequence
(#20) Inline comments must end in full-stops, exclamation marks, or question marks
(#20) No space found before comment text; expected "// first construct file name" but found "//first construct file name"
(#21) Variable "site_info" must not contain underscores.
(#21) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#22) Line indented incorrectly; expected 12 spaces, found 15
(#22) Expected "try {\n...} catch (...) {\n"; found "try{\n...}catch(...){\n"
(#23) Variable "site_info" must not contain underscores.
(#23) Must use "self::" for local static member reference
(#23) Commas (,) must be followed by white space.
(#23) Commas (,) must be followed by white space.
(#23) Line exceeds 132 characters; contains 140 characters
(#24) Line indented incorrectly; expected 12 spaces, found 15
(#26) Line indented incorrectly; expected 12 spaces, found 15
(#27) Variable "site_info" must not contain underscores.
(#28) Line indented incorrectly; expected 12 spaces, found 15
(#28) Expected "if (...) {\n"; found "if(...){\n"
(#30) Line indented incorrectly; expected 12 spaces, found 15
(#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
(#31) No space found before comment text; expected "// transform sitename" but found "//transform sitename"
(#33) Inline comments must start with a capital letter, digit or 3-dots sequence
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) No space found before comment text; expected "// passit to 150characters" but found "//passit to 150characters"
(#34) Line indented incorrectly; expected 12 spaces, found 15
(#34) Expected "try {\n...} catch (...) {\n"; found "try{\n...}catch(...){\n"
(#35) Expected 1 space before "?"; 0 found
(#35) Expected 1 space after ":"; 0 found
(#35) Line exceeds 132 characters; contains 159 characters
(#36) Commas (,) must be followed by white space.
(#36) Commas (,) must be followed by white space.
(#37) Line indented incorrectly; expected 12 spaces, found 15
(#37) Empty CATCH statement detected
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) No space found before comment text; expected "// Nothing to do keep sitename original length" but found "//Nothing to do keep sitename original length"
(#39) Line indented incorrectly; expected 12 spaces, found 15
(#39) Whitespace found at end of line
(#40) Line indented incorrectly; expected 8 spaces, found 10
(#42) Line exceeds 132 characters; contains 161 characters
(#44) Line indented incorrectly; expected 8 spaces, found 10
(#44) Expected "if (...) {\n"; found "if(...){\n"
(#45) Expected 1 space before "="; 0 found
(#45) Expected 1 space after "="; 0 found
(#46) Line indented incorrectly; expected 8 spaces, found 10
(#47) Expected 1 space before "?"; 0 found
(#47) Expected 1 space after "?"; 0 found
(#47) Expected 1 space before ":"; 0 found
(#47) Expected 1 space after ":"; 0 found
(#48) Inline comments must start with a capital letter, digit or 3-dots sequence
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) No space found before comment text; expected "// then download file" but found "//then download file"
(#49) Expected 1 space before "="; 0 found
(#49) Expected 1 space after "="; 0 found
(#50) Expected 1 space before "="; 0 found
(#50) Expected 1 space after "="; 0 found
(#52) Short array syntax must be used to define arrays
(#53) Variable "file_returned" must not contain underscores.
(#53) Must use "self::" for local static member reference
(#53) Commas (,) must be followed by white space.
(#53) Commas (,) must be followed by white space.
(#53) Commas (,) must be followed by white space.
(#54) Line indented incorrectly; expected 8 spaces, found 10
(#54) Expected "if (...) {\n"; found "if(...){\n"
(#54) Variable "file_returned" must not contain underscores.
(#55) Line indented incorrectly; expected 12 spaces, found 15
(#55) Expected "if (...) {\n"; found "if(...){\n"
(#55) Variable "file_returned" must not contain underscores.
(#56) Variable "file_returned" must not contain underscores.
(#57) Line indented incorrectly; expected 12 spaces, found 15
(#57) Expected "} else {\n"; found "}else{\n"
(#59) Line indented incorrectly; expected 12 spaces, found 15
(#60) Line indented incorrectly; expected 8 spaces, found 10
(#61) Variable "file_returned" must not contain underscores.
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) 3 slashes comments are not allowed; use "// Comment." instead
(#63) Variable "file_returned" must not contain underscores.
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Line exceeds maximum limit of 180 characters; contains 236 characters
(#63) No space found before comment text; expected "// NOTE: normally you should get this download url from your previous call of core_course_get_contents()" but found "//NOTE: normally you should get this download url from your previous call of core_course_get_contents()"
(#64) No space found before comment text; expected "// NOTE: in your client/app don't forget to attach the token to your download url" but found "//NOTE: in your client/app don't forget to attach the token to your download url"
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) No space found before comment text; expected "// redirect($tokenurl);" but found "//redirect($tokenurl);"
(#67) Must use "self::" for local static member reference
(#67) Commas (,) must be followed by white space.
(#68) Line indented incorrectly; expected 4 spaces, found 5
(#69) Line indented incorrectly; expected 4 spaces, found 5
(#69) Expected 1 space before opening brace; found 0
(#71) Expected 1 space before "="; 0 found
(#71) Expected 1 space after "="; 0 found
(#71) Short array syntax must be used to define arrays
(#72) Variable "external_moodles" must not contain underscores.
(#72) Commas (,) must be followed by white space.
(#73) Inline comments must start with a capital letter, digit or 3-dots sequence
(#73) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) No space found before comment text; expected "// extract key/value" but found "//extract key/value"
(#74) Variable "external_moodles" must not contain underscores.
(#74) Variable "external_moodles" must not contain underscores.
(#75) Line indented incorrectly; expected 8 spaces, found 10
(#75) Expected "if (...) {\n"; found "if(...){\n"
(#75) Variable "external_moodles" must not contain underscores.
(#75) Variable "external_moodles" must not contain underscores.
(#76) Line indented incorrectly; expected 12 spaces, found 15
(#76) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#76) Variable "external_moodles" must not contain underscores.
(#76) Variable "key_value" must not contain underscores.
(#77) Line indented incorrectly; expected 16 spaces, found 20
(#77) Expected "if (...) {\n"; found "if(...){\n"
(#77) Variable "key_value" must not contain underscores.
(#78) Variable "key_value" must not contain underscores.
(#78) Commas (,) must be followed by white space.
(#78) Variable "key_value" must not contain underscores.
(#79) Variable "key_value" must not contain underscores.
(#80) Variable "key_value" must not contain underscores.
(#81) Must use "self::" for local static member reference
(#81) Commas (,) must be followed by white space.
(#82) Line indented incorrectly; expected 20 spaces, found 25
(#82) Expected "if (...) {\n"; found "if(...){\n"
(#83) Expected 1 space before "="; 0 found
(#84) Line indented incorrectly; expected 20 spaces, found 25
(#85) Line indented incorrectly; expected 16 spaces, found 20
(#86) Line indented incorrectly; expected 12 spaces, found 15
(#87) Whitespace found at end of line
(#88) Line indented incorrectly; expected 8 spaces, found 10
(#89) Line indented incorrectly; expected 8 spaces, found 10
(#89) Expected "if (...) {\n"; found "if(...){\n"
(#89) Expected 1 space before ">"; 0 found
(#89) Expected 1 space after ">"; 0 found
(#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
(#90) No space found before comment text; expected "// print directive" but found "//print directive"
(#92) Commas (,) must be followed by white space.
(#94) Whitespace found at end of line
(#95) Line indented incorrectly; expected 8 spaces, found 10
(#97) Whitespace found at end of line
(#98) Line indented incorrectly; expected 4 spaces, found 5
(#99) Line indented incorrectly; expected 4 spaces, found 5
(#99) Scope keyword "static" must be followed by a single space; found 2
(#99) Commas (,) must be followed by white space.
(#99) Expected 1 space before opening brace; found 0
(#100) Commas (,) must be followed by white space.
(#101) Line indented incorrectly; expected 8 spaces, found 10
(#101) Expected "if (...) {\n"; found "if (...){\n"
(#103) Line indented incorrectly; expected 8 spaces, found 10
(#106) Inline comments must start with a capital letter, digit or 3-dots sequence
(#106) No space found before comment text; expected "// first retrieve moodle site name" but found "//first retrieve moodle site name"
(#107) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) No space found before comment text; expected "// TODO better catching error" but found "//TODO better catching error"
(#108) Variable "site_info" must not contain underscores.
(#108) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#109) Line indented incorrectly; expected 8 spaces, found 10
(#109) Expected "try {\n...} catch (...) {\n"; found "try{\n...}catch(...){\n"
(#110) Variable "site_info" must not contain underscores.
(#110) Must use "self::" for local static member reference
(#110) Commas (,) must be followed by white space.
(#110) Commas (,) must be followed by white space.
(#110) Line exceeds 132 characters; contains 135 characters
(#111) Line indented incorrectly; expected 8 spaces, found 10
(#112) The use of function error_log() is forbidden; use debugging() instead
(#114) Line indented incorrectly; expected 8 spaces, found 10
(#115) Variable "site_info" must not contain underscores.
(#116) Line indented incorrectly; expected 8 spaces, found 10
(#116) Expected "if (...) {\n"; found "if(...){\n"
(#118) Line indented incorrectly; expected 8 spaces, found 10
(#119) Expected 1 space before "="; 0 found
(#119) Expected 1 space after "="; 0 found
(#119) Short array syntax must be used to define arrays
(#123) Expected 1 space before ".="; 0 found
(#123) Commas (,) must be followed by white space.
(#123) Commas (,) must be followed by white space.
(#124) Commas (,) must be followed by white space.
(#124) Line exceeds maximum limit of 180 characters; contains 209 characters
(#127) Line indented incorrectly; expected 4 spaces, found 5
(#128) Whitespace found at end of line
(#129) Line indented incorrectly; expected 4 spaces, found 5
(#129) Commas (,) must be followed by white space.
(#129) Commas (,) must be followed by white space.
(#129) Commas (,) must be followed by white space.
(#129) Short array syntax must be used to define arrays
(#129) Commas (,) must be followed by white space.
(#129) Expected 1 space before opening brace; found 0
(#136) Inline comments must start with a capital letter, digit or 3-dots sequence
(#136) Inline comments must end in full-stops, exclamation marks, or question marks
(#136) No space found before comment text; expected "// if rest format == 'xml', then we do not add the param for backward compatibility with Moodle < 2.2" but found "//if rest format == 'xml', then we do not add the param for backward compatibility with Moodle < 2.2"
(#137) Expected 1 space before "?"; 0 found
(#137) Expected 1 space after "?"; 0 found
(#137) Expected 1 space before ":"; 0 found
(#137) Expected 1 space after ":"; 0 found
(#139) Expected 1 space before "="; 0 found
(#139) Expected 1 space after "="; 0 found
(#141) Inline comments must start with a capital letter, digit or 3-dots sequence
(#141) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) No space found before comment text; expected "// check if errors encountered" but found "//check if errors encountered"
(#142) Line indented incorrectly; expected 8 spaces, found 10
(#142) Expected "if (...) {\n"; found "if(...){\n"
(#144) Line indented incorrectly; expected 8 spaces, found 10
(#145) Line indented incorrectly; expected 8 spaces, found 10
(#145) Expected "if (...) {\n"; found "if(...){\n"
(#147) Line indented incorrectly; expected 8 spaces, found 10
(#149) Line indented incorrectly; expected 4 spaces, found 5
(#150) Whitespace found at end of line
(#151) Whitespace found at end of line
(#157) Line indented incorrectly; expected 4 spaces, found 5
(#157) Commas (,) must be followed by white space.
(#157) Expected 1 space before opening brace; found 0
(#165) Variable "array_response" must not contain underscores.
(#165) Expected 1 space before "="; 0 found
(#165) Expected 1 space after "="; 0 found
(#166) Line indented incorrectly; expected 8 spaces, found 9
(#166) Expected "if (...) {\n"; found "if(...){\n"
(#166) Variable "array_response" must not contain underscores.
(#167) Inline comments must start with a capital letter, digit or 3-dots sequence
(#167) Inline comments must end in full-stops, exclamation marks, or question marks
(#174) Inline comments must start with a capital letter, digit or 3-dots sequence
(#174) Inline comments must end in full-stops, exclamation marks, or question marks
(#177) Line indented incorrectly; expected 8 spaces, found 9
(#177) Expected "} else {\n"; found "}else{\n"
(#178) Variable "array_response" must not contain underscores.
(#179) Line indented incorrectly; expected 8 spaces, found 9
(#180) Whitespace found at end of line
(#180) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#181) Whitespace found at end of line
(#182) Line indented incorrectly; expected 4 spaces, found 5
(#188) Short array syntax must be used to define arrays
(#203) Short array syntax must be used to define arrays
(#204) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
(#223) Short array syntax must be used to define arrays
(#225) There should be a comma after the last array item in a multi-line array.
(#235) Line indented incorrectly; expected 4 spaces, found 5
(#237) Whitespace found at end of line
(#238) Inline comments must start with a capital letter, digit or 3-dots sequence
(#239) Inline comments must end in full-stops, exclamation marks, or question marks
(#246) Short array syntax must be used to define arrays
(#246) Expected 1 space before "=>"; 0 found
(#246) Expected 1 space after "=>"; 0 found
(#248) Line indented incorrectly; expected 8 spaces, found 9
(#250) Line indented incorrectly; expected 8 spaces, found 9
(#253) Line indented incorrectly; expected 4 spaces, found 5
(#255) Line indented incorrectly; expected 4 spaces, found 5
(#255) Expected 1 space before opening brace; found 0
(#257) Inline comments must start with a capital letter, digit or 3-dots sequence
(#257) Inline comments must end in full-stops, exclamation marks, or question marks
(#258) Line indented incorrectly; expected 8 spaces, found 9
(#260) Line indented incorrectly; expected 8 spaces, found 9
(#262) Line indented incorrectly; expected 8 spaces, found 9
(#264) Inline comments must start with a capital letter, digit or 3-dots sequence
(#264) Inline comments must end in full-stops, exclamation marks, or question marks
(#267) Line indented incorrectly; expected 8 spaces, found 9
(#267) Inline comments must start with a capital letter, digit or 3-dots sequence
(#267) Inline comments must end in full-stops, exclamation marks, or question marks
(#269) Line indented incorrectly; expected 8 spaces, found 9
(#280) Inline comments must start with a capital letter, digit or 3-dots sequence
(#281) Line indented incorrectly; expected 8 spaces, found 9
(#282) Line indented incorrectly; expected 12 spaces, found 13
(#282) Logical operator "and" is prohibited; use "&&" instead
(#282) Logical operator "and" is prohibited; use "&&" instead
(#285) Line indented incorrectly; expected 16 spaces, found 17
(#287) Line indented incorrectly; expected 16 spaces, found 17
(#289) Line indented incorrectly; expected 16 spaces, found 17
(#290) Line indented incorrectly; expected 20 spaces, found 21
(#290) Expected "if (...) {\n"; found "if(...){\n"
(#292) Line indented incorrectly; expected 20 spaces, found 21
(#293) Line indented incorrectly; expected 16 spaces, found 17
(#297) Line indented incorrectly; expected 16 spaces, found 17
(#297) Logical operator "or" is prohibited; use "||" instead
(#297) Line exceeds 132 characters; contains 139 characters
(#299) Line indented incorrectly; expected 16 spaces, found 17
(#300) Variable "session_instance" must not contain underscores.
(#301) Variable "session_instance" must not contain underscores.
(#301) Inline comments must start with a capital letter, digit or 3-dots sequence
(#301) Inline comments must end in full-stops, exclamation marks, or question marks
(#303) Line indented incorrectly; expected 12 spaces, found 13
(#305) Line indented incorrectly; expected 12 spaces, found 13
(#306) Line indented incorrectly; expected 8 spaces, found 9
(#308) Line indented incorrectly; expected 4 spaces, found 5
(#309) File must end with a newline character
blocks/my_external_privatefiles/my_external_privatefiles_form.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#11) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#12) Expected 1 space before opening brace; found 0
(#13) Line indented incorrectly; expected 4 spaces, found 5
(#13) Visibility must be declared on method "definition"
(#13) Expected 1 space before opening brace; found 0
(#14) Inline comments must end in full-stops, exclamation marks, or question marks
(#14) No space found before comment text; expected "// TODO datas" but found "//TODO datas"
(#17) Commas (,) must be followed by white space.
(#17) Commas (,) must be followed by white space.
(#17) Commas (,) must be followed by white space.
(#17) Commas (,) must be followed by white space.
(#17) Short array syntax must be used to define arrays
(#17) Line exceeds maximum limit of 180 characters; contains 200 characters
(#18) Commas (,) must be followed by white space.
(#18) Commas (,) must be followed by white space.
(#19) Commas (,) must be followed by white space.
(#19) Commas (,) must be followed by white space.
(#21) Line indented incorrectly; expected 4 spaces, found 5
(#22) File must end with a newline character
blocks/my_external_privatefiles/retrievefile.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#21) Commas (,) must be followed by white space.
(#22) Commas (,) must be followed by white space.
(#28) Expected "try {\n...} catch (...) {\n"; found "try{\n...}catch(...){\n"
(#36) File must end with a newline character
blocks/my_external_privatefiles/settings.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#5) Whitespace found at end of line
(#6) Whitespace found at end of line
(#11) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#13) Whitespace found at end of line
(#14) Whitespace found at end of line
(#16) Whitespace found at end of line
(#21) Commas (,) must be followed by white space.
(#21) Whitespace found at end of line
(#22) Commas (,) must be followed by white space.
(#22) Whitespace found at end of line
(#24) Whitespace found at end of line
(#25) Commas (,) must be followed by white space.
(#25) Whitespace found at end of line
(#26) Commas (,) must be followed by white space.
(#26) Whitespace found at end of line
(#28) File must end with a newline character
blocks/my_external_privatefiles/tests/externallib_test.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#42) Inline comments must start with a capital letter, digit or 3-dots sequence
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#42) This comment is 64% valid code; is this commented out code?
(#42) No space found before comment text; expected "// require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');" but found "//require_once($CFG->dirroot . '/backup/util/includes/restore_includes.php');"
(#53) Test method test_get_private_files_zip() is missing any coverage information, own or at class level
(#53) Expected 1 space before opening brace; found 0
(#58) Expected 1 space before "="; 0 found
(#62) Commas (,) must be followed by white space.
(#63) Commas (,) must be followed by white space.
(#64) Commas (,) must be followed by white space.
(#78) Short array syntax must be used to define arrays
(#79) Line exceeds 132 characters; contains 152 characters
(#80) Line exceeds 132 characters; contains 158 characters
(#102) Short array syntax must be used to define arrays
(#108) There should be a comma after the last array item in a multi-line array.
(#113) File must end with a newline character
blocks/my_external_privatefiles/version.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.".
(#5) Line 12 of the opening comment must start "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#15) 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

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(50 errors, 9 warnings)

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

blocks/my_external_privatefiles/block_my_external_privatefiles.php
(#12) Package is not specified for class block_my_external_privatefiles. It is also not specified in file-level phpdocs
(#5) Package is not valid
(#12) Class block_my_external_privatefiles is not documented
(#13) Function block_my_external_privatefiles::init is not documented
(#17) Function block_my_external_privatefiles::get_content is not documented
(#39) Function block_my_external_privatefiles::has_config is not documented
blocks/my_external_privatefiles/classes/task/cron_task.php
(#14) Package is not specified for class cron_task. It is also not specified in file-level phpdocs
(#5) Package is not valid
(#14) Class cron_task is not documented
(#15) Function cron_task::get_name is not documented
(#20) Function cron_task::execute is not documented
blocks/my_external_privatefiles/cli/install_server.php
(#25) Package block_my_external_backup_restore_courses is not valid
(#16) No one-line description found in phpdocs for file
(#16) File-level phpdocs block does not have @copyright tag
blocks/my_external_privatefiles/db/access.php
(#5) Package is not valid
blocks/my_external_privatefiles/db/services.php
(#5) Package is not valid
blocks/my_external_privatefiles/db/tasks.php
(#5) Package is not valid
blocks/my_external_privatefiles/db/upgrade.php
(#2) Package is not specified for function xmldb_block_my_external_privatefiles_upgrade. It is also not specified in file-level phpdocs
(#5) Package is not valid
(#2) File-level phpdocs block is not found
(#2) Phpdocs for function xmldb_block_my_external_privatefiles_upgrade has incomplete parameters list
blocks/my_external_privatefiles/externallib.php
(#13) Package is not specified for class block_my_external_privatefiles_external. It is also not specified in file-level phpdocs
(#5) Package is not valid
(#13) Class block_my_external_privatefiles_external is not documented
(#15) Function block_my_external_privatefiles_external::get_private_files_zip is not documented
(#63) Function block_my_external_privatefiles_external::get_private_files_zip_parameters is not documented
(#71) Function block_my_external_privatefiles_external::get_private_files_zip_returns is not documented
blocks/my_external_privatefiles/filelib.php
(#11) Package is not specified for function block_my_external_privatefiles_file_get_user_draft. It is also not specified in file-level phpdocs
(#5) Package is not valid
(#16) Phpdocs for function block_my_external_privatefiles_file_get_user_draft has incomplete parameters list
blocks/my_external_privatefiles/get_user_draft_file_webservice.php
(#5) Package is not valid
blocks/my_external_privatefiles/lang/en/block_my_external_privatefiles.php
(#5) Package is not valid
blocks/my_external_privatefiles/lang/fr/block_my_external_privatefiles.php
(#5) Package is not valid
blocks/my_external_privatefiles/locallib.php
(#2) Package is not specified for class block_my_external_privatefiles_utils. It is also not specified in file-level phpdocs
(#5) Package is not valid
(#14) Function block_my_external_privatefiles_utils::download_external_privatefiles is not documented
(#69) Function block_my_external_privatefiles_utils::print_block_content is not documented
(#99) Function block_my_external_privatefiles_utils::print_my_external_privatefiles_entry is not documented
(#129) Function block_my_external_privatefiles_utils::rest_call_client is not documented
(#157) Function block_my_external_privatefiles_utils::download is not documented
(#184) Function block_my_external_privatefiles_utils::install_webservice_moodle_server is not documented
(#255) Function block_my_external_privatefiles_utils::get_draft_file is not documented
(#12) Constant block_my_external_privatefiles_utils::BLOCK_MY_EXTERNAL_PRIVATEFILES_ROLE is not documented
(#13) Constant block_my_external_privatefiles_utils::BLOCK_MY_EXTERNAL_PRIVATEFILES_DEFAULT_USER is not documented
(#62) Found comment starting with three or more slashes
blocks/my_external_privatefiles/my_external_privatefiles_form.php
(#12) Package is not specified for class block_my_external_privatefiles_form. It is also not specified in file-level phpdocs
(#5) Package is not valid
(#12) Class block_my_external_privatefiles_form is not documented
(#13) Function block_my_external_privatefiles_form::definition is not documented
blocks/my_external_privatefiles/retrievefile.php
(#5) Package is not valid
blocks/my_external_privatefiles/settings.php
(#5) Package is not valid
blocks/my_external_privatefiles/tests/externallib_test.php
(#19) Package blocks_my_external_privatefiles is not valid
(#45) Class externallib_test is not documented
(#46) Variable externallib_test::$datagenerator is not documented
(#47) Variable externallib_test::$user is not documented
(#48) Variable externallib_test::$wsuser is not documented
(#49) Variable externallib_test::$wsrole is not documented
(#50) Variable externallib_test::$fileinfo is not documented
blocks/my_external_privatefiles/version.php
(#5) Package blocks is not valid

Update savepoints problems

(2 errors, 0 warnings)

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

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

Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]


Gherkin .feature problems

(0 errors, 0 warnings)

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