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

(264 errors, 16 warnings)

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

question/type/poasquestion/backup/moodle2/backup_poasquestion_plugin.class.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
question/type/poasquestion/backup/moodle2/backup_poasquestion_preg_plugin.class.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#31) Duplicate class name "backup_qtype_poasquestion_plugin" found; first defined in /var/lib/jenkins/git_repositories/prechecker/question/type/poasquestion/backup/moodle2/backup_poasquestion_plugin.class.php on line 31
question/type/poasquestion/backup/moodle2/restore_poasquestion_plugin.class.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#114) Expected "if (...) {\n"; found "if (...) {\n"
(#114) Empty IF statement detected
question/type/poasquestion/backup/moodle2/restore_poasquestion_preg_plugin.class.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#31) Duplicate class name "restore_qtype_poasquestion_plugin" found; first defined in /var/lib/jenkins/git_repositories/prechecker/question/type/poasquestion/backup/moodle2/restore_poasquestion_plugin.class.php on line 31
(#114) Expected "if (...) {\n"; found "if (...) {\n"
(#114) Empty IF statement detected
question/type/poasquestion/hints.php
(#54) Whitespace found at end of line
(#75) Whitespace found at end of line
(#89) Whitespace found at end of line
(#90) Whitespace found at end of line
(#94) Whitespace found at end of line
(#96) Whitespace found at end of line
(#104) Whitespace found at end of line
(#105) Whitespace found at end of line
(#213) Inline comments must end in full-stops, exclamation marks, or question marks
(#291) Inline comments must start with a capital letter, digit or 3-dots sequence
(#291) This comment is 56% valid code; is this commented out code?
question/type/poasquestion/jlex.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 2 of the opening comment must start "//".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#8) Line 7 of the opening comment must start "//".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#13) Line 12 of the opening comment must start "//".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#35) Visibility must be declared on method "__construct"
(#44) Member variable "yy_reader" must not contain underscores.
(#45) Member variable "yy_buffer" must not contain underscores.
(#46) Member variable "yy_buffer_read" must not contain underscores.
(#47) Member variable "yy_buffer_index" must not contain underscores.
(#48) Member variable "yy_buffer_start" must not contain underscores.
(#49) Member variable "yy_buffer_end" must not contain underscores.
(#53) Member variable "yy_at_bol" must not contain underscores.
(#54) Member variable "yy_lexical_state" must not contain underscores.
(#55) Member variable "yy_last_was_cr" must not contain underscores.
(#56) Member variable "yy_count_lines" must not contain underscores.
(#57) Member variable "yy_count_chars" must not contain underscores.
(#59) Member variable "yy_eof_done" must not contain underscores.
(#61) Visibility must be declared on method "__construct"
(#138) Inline comments must start with a capital letter, digit or 3-dots sequence
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) This comment is 42% valid code; is this commented out code?
(#138) No space found before comment text; expected "// $this->yycol += $this->yy_buffer_index - $this->yy_buffer_start;" but found "//$this->yycol += $this->yy_buffer_index - $this->yy_buffer_start;"
(#141) Inline comments must start with a capital letter, digit or 3-dots sequence
(#142) Inline comments must end in full-stops, exclamation marks, or question marks
(#156) This comment is 67% valid code; is this commented out code?
(#156) Perl-style comments are not allowed; use "// Comment." instead
(#173) Member variable "yy_error_string" must not contain underscores.
(#173) Scope modifier not specified for member variable "$yy_error_string"
(#176) Variable "yy_error_string" must not contain underscores.
(#179) Variable "yy_error_string" must not contain underscores.
question/type/poasquestion/poasquestion_string.php
(#49) Expected "do {\n...} while (...);\n"; found "do {\n...}\n while (...);\n"
question/type/poasquestion/poasquestion_text_and_button.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#38) Member variable "buttonName" must be all lower-case
(#39) Member variable "linkToPage" must be all lower-case
(#40) Member variable "linkToBtnImage" must be all lower-case
(#54) PHP4 style constructors are not allowed; use "__construct()" instead
(#54) Variable "textareaName" must be all lower-case
(#54) Variable "textareaLabel" must be all lower-case
(#55) Variable "buttonName" must be all lower-case
(#55) Variable "elementLinks" must be all lower-case
(#55) Variable "dialogWidth" must be all lower-case
(#58) PHP4 style calls to parent constructors are not allowed; use "parent::__construct()" instead
(#58) Variable "textareaName" must be all lower-case
(#58) Variable "textareaLabel" must be all lower-case
(#60) Variable "buttonName" must be all lower-case
(#61) Variable "elementLinks" must be all lower-case
(#62) Variable "elementLinks" must be all lower-case
(#63) Variable "dialogWidth" must be all lower-case
(#64) Variable "dialogWidth" must be all lower-case
(#75) Variable "_poasquestion_text_and_button_included" must not contain underscores.
(#77) Variable "dialogWidth" must be all lower-case
(#81) Variable "_poasquestion_text_and_button_included" must not contain underscores.
(#85) Public method name "qtype_poasquestion_text_and_button::getDialogTitle" must be in lower-case letters only
(#89) Public method name "qtype_poasquestion_text_and_button::getTextareaId" must be in lower-case letters only
(#93) Public method name "qtype_poasquestion_text_and_button::getButtonId" must be in lower-case letters only
(#97) Public method name "qtype_poasquestion_text_and_button::getTooltip" must be in lower-case letters only
(#104) Public method name "qtype_poasquestion_text_and_button::toHtml" must be in lower-case letters only
(#114) Line exceeds 132 characters; contains 166 characters
question/type/poasquestion/questiontype.php
(#50) Inline comments must start with a capital letter, digit or 3-dots sequence
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
question/type/poasquestion/stringstream/stringstream.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/>.".
(#20) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#22) method name "StringStreamController::_getArray" must be in lower-case letters only
(#22) Visibility must be declared on method "_getArray"
(#27) method name "StringStreamController::createRef" must be in lower-case letters only
(#27) Visibility must be declared on method "createRef"
(#28) Must use "self::" for local static member reference
(#33) method name "StringStreamController::getRef" must be in lower-case letters only
(#33) Visibility must be declared on method "getRef"
(#34) Must use "self::" for local static member reference
(#35) Expected "if (...) {\n"; found "if(...) {\n"
(#45) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#45) Scope modifier not specified for member variable "$_currentstring"
(#47) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#47) Scope modifier not specified for member variable "$_path"
(#48) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#48) Scope modifier not specified for member variable "$_mode"
(#49) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#49) Scope modifier not specified for member variable "$_options"
(#50) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#50) Scope modifier not specified for member variable "$_opened_path"
(#51) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#51) Scope modifier not specified for member variable "$_pos"
(#52) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#52) Scope modifier not specified for member variable "$_len"
(#54) Visibility must be declared on method "stream_open"
(#54) Variable "opened_path" must not contain underscores.
(#55) Commas (,) must be followed by white space.
(#55) Commas (,) must be followed by white space.
(#56) Expected "if (...) {\n"; found "if(...) {\n"
(#65) Visibility must be declared on method "stream_stat"
(#69) Visibility must be declared on method "stream_read"
(#75) Visibility must be declared on method "stream_write"
(#79) Visibility must be declared on method "stream_tell"
(#83) Visibility must be declared on method "stream_eof"
(#84) Inline control structures are not allowed
(#88) Visibility must be declared on method "stream_seek"
(#89) Inline comments must start with a capital letter, digit or 3-dots sequence
(#89) No space found before comment text; expected "// $whence: SEEK_SET, SEEK_CUR, SEEK_END" but found "//$whence: SEEK_SET, SEEK_CUR, SEEK_END"
(#90) Inline control structures are not allowed
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#96) Expected "if (...) {\n"; found "if(...) {\n"
(#98) Inline control structures are not allowed
question/type/poasquestion/stringstream/test_controller.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) Whitespace found at end of line
(#4) 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
(#7) Whitespace found at end of line
(#9) Whitespace found at end of line
(#14) Whitespace found at end of line
(#15) Whitespace found at end of line
(#18) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#18) File is being unconditionally included; use "require" instead
(#19) Whitespace found at end of line
(#26) Commas (,) must be followed by white space.
question/type/poasquestion/stringstream/test_memusage.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) Whitespace found at end of line
(#4) 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/>.".
(#6) Whitespace found at end of line
(#7) Whitespace found at end of line
(#9) Whitespace found at end of line
(#11) Whitespace found at end of line
(#16) Whitespace found at end of line
(#17) Whitespace found at end of line
(#19) Whitespace found at end of line
(#20) Whitespace found at end of line
(#21) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#21) File is being unconditionally included; use "require" instead
(#29) Commas (,) must be followed by white space.
(#33) Commas (,) must be followed by white space.
(#42) Commas (,) must be followed by white space.
question/type/poasquestion/stringstream/test_memusage2.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) Whitespace found at end of line
(#4) 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/>.".
(#6) Whitespace found at end of line
(#9) Whitespace found at end of line
(#11) Whitespace found at end of line
(#13) Whitespace found at end of line
(#18) Whitespace found at end of line
(#19) Whitespace found at end of line
(#21) Whitespace found at end of line
(#22) Whitespace found at end of line
(#23) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#23) File is being unconditionally included; use "require" instead
(#31) Commas (,) must be followed by white space.
question/type/poasquestion/stringstream/test_stream.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) Whitespace found at end of line
(#4) 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/>.".
(#7) Whitespace found at end of line
(#8) Whitespace found at end of line
(#10) Whitespace found at end of line
(#12) Whitespace found at end of line
(#17) Whitespace found at end of line
(#18) Whitespace found at end of line
(#20) Whitespace found at end of line
(#21) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#21) File is being unconditionally included; use "require" instead
(#25) Commas (,) must be followed by white space.
(#29) The use of function print_r() is forbidden
question/type/poasquestion/stringstream/test_stream_csv.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) Whitespace found at end of line
(#4) 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/>.".
(#6) Whitespace found at end of line
(#7) Whitespace found at end of line
(#9) Whitespace found at end of line
(#11) Whitespace found at end of line
(#16) Whitespace found at end of line
(#19) Whitespace found at end of line
(#20) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#20) File is being unconditionally included; use "require" instead
(#23) Commas (,) must be followed by white space.
(#25) Commas (,) must be followed by white space.
(#26) Expected "while (...) {\n"; found "while(...) {\n"
(#27) The use of function print_r() is forbidden

Javascript coding style problems

(6 errors, 188 warnings)

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

question/type/poasquestion/interface.js
(#12) Line is too long.
(#12) Missing semicolon.
(#12) Missing semicolon.
(#12) Missing semicolon.
(#12) Missing semicolon.
(#12) Missing semicolon.
(#12) Unnecessary semicolon.
(#12) Missing semicolon.
(#12) Missing semicolon.
(#12) Wrap an immediate function invocation in parens to assist the reader in understanding that the expression is the result of a function, and not the function itself.
(#12) eval can be harmful.
(#12) Missing semicolon.
question/type/poasquestion/jquery-textrange.js
(#129) 'property' is defined but never used.
question/type/poasquestion/jquery.panzoom.js
(#1020) Did you mean to return a conditional instead of an assignment?
question/type/poasquestion/jquerypanzoommin.js
(#9) Line is too long.
(#9) Missing semicolon.
(#9) Expected an identifier and instead saw '=='.
(#9) Expected an operator and instead saw 'typeof'.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected '===' and instead saw '=='.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Wrap an immediate function invocation in parens to assist the reader in understanding that the expression is the result of a function, and not the function itself.
(#9) 'b' is already defined.
(#9) Expected '===' and instead saw '=='.
(#9) Missing semicolon.
(#9) 'c' is already defined.
(#9) Possible strict violation.
(#9) Missing semicolon.
(#9) Possible strict violation.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Expected '{' and instead saw 'return'.
(#9) Possible strict violation.
(#9) Expected '{' and instead saw 'return'.
(#9) A constructor name should start with an uppercase letter.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Possible strict violation.
(#9) Missing semicolon.
(#9) Possible strict violation.
(#9) Possible strict violation.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) A constructor name should start with an uppercase letter.
(#9) A constructor name should start with an uppercase letter.
(#9) Missing semicolon.
(#9) A constructor name should start with an uppercase letter.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) A leading decimal point can be confused with a dot: '.3'.
(#9) A leading decimal point can be confused with a dot: '.4'.
(#9) A leading decimal point can be confused with a dot: '.05'.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Expected '===' and instead saw '=='.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Expected '!==' and instead saw '!='.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Expected an identifier and instead saw '=='.
(#9) Expected an operator and instead saw 'typeof'.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Expected '!==' and instead saw '!='.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) A constructor name should start with an uppercase letter.
(#9) A constructor name should start with an uppercase letter.
(#9) A constructor name should start with an uppercase letter.
(#9) A constructor name should start with an uppercase letter.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected '===' and instead saw '=='.
(#9) Expected '===' and instead saw '=='.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected '{' and instead saw 'return'.
(#9) Expected '===' and instead saw '=='.
(#9) Expected '{' and instead saw 'return'.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected '{' and instead saw 'd'.
(#9) Missing semicolon.
(#9) Expected a 'break' statement before 'case'.
(#9) Missing semicolon.
(#9) Expected a 'break' statement before 'case'.
(#9) Expected a 'break' statement before 'case'.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Did you mean to return a conditional instead of an assignment?
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Expected an identifier and instead saw '=='.
(#9) Expected an operator and instead saw 'typeof'.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) Expected '===' and instead saw '=='.
(#9) Expected '===' and instead saw '=='.
(#9) Expected an assignment or function call and instead saw an expression.
(#9) Missing semicolon.
(#9) A constructor name should start with an uppercase letter.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Missing semicolon.
(#9) Expected an assignment or function call and instead saw an expression.
question/type/poasquestion/poasquestion_text_and_button.js
(#74) Expected '===' and instead saw '=='.
(#74) Expected '===' and instead saw '=='.
(#77) Expected '!==' and instead saw '!='.
(#80) Expected '!==' and instead saw '!='.
(#128) Missing semicolon.
(#133) Missing semicolon.
(#156) Expected '{' and instead saw 'callback'.
(#216) Invalid typeof value 'undifined'
(#122) 'pagewidth' is defined but never used.
(#162) 'jqXHR' is defined but never used.
(#162) 'textStatus' is defined but never used.
question/type/poasquestion/textareaHighlighter.js
(#96) 'e' is defined but never used.
(#102) 'e' is defined but never used.
(#108) 'e' is defined but never used.
(#117) 'target' is defined but never used.
(#160) 'srctext' is defined but never used.

CSS problems

(1 errors, 0 warnings)

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

question/type/poasquestion/rect.css
(#13) Unexpected token ' ' at line 13, col 11.

PHPDocs style problems

(131 errors, 6 warnings)

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

question/type/poasquestion/backup/moodle2/backup_poasquestion_plugin.class.php
(#31) Class backup_qtype_poasquestion_plugin is not documented
question/type/poasquestion/backup/moodle2/backup_poasquestion_preg_plugin.class.php
(#31) Class backup_qtype_poasquestion_plugin is not documented
question/type/poasquestion/backup/moodle2/restore_poasquestion_plugin.class.php
(#31) Class restore_qtype_poasquestion_plugin is not documented
(#44) Function restore_qtype_poasquestion_plugin::__construct is not documented
(#72) Function restore_qtype_poasquestion_plugin::process_question_answer is not documented
(#78) Function restore_qtype_poasquestion_plugin::process_extraanswerdata is not documented
(#38) Variable restore_qtype_poasquestion_plugin::$qtypeobj is not documented
(#39) Variable restore_qtype_poasquestion_plugin::$oldquestionid is not documented
(#40) Variable restore_qtype_poasquestion_plugin::$newquestionid is not documented
(#41) Variable restore_qtype_poasquestion_plugin::$questioncreated is not documented
(#42) Variable restore_qtype_poasquestion_plugin::$currentanswer is not documented
(#92) Phpdocs for function restore_qtype_poasquestion_plugin::process_poasquestion has incomplete parameters list
question/type/poasquestion/backup/moodle2/restore_poasquestion_preg_plugin.class.php
(#31) Class restore_qtype_poasquestion_plugin is not documented
(#44) Function restore_qtype_poasquestion_plugin::__construct is not documented
(#72) Function restore_qtype_poasquestion_plugin::process_question_answer is not documented
(#78) Function restore_qtype_poasquestion_plugin::process_extraanswerdata is not documented
(#38) Variable restore_qtype_poasquestion_plugin::$qtypeobj is not documented
(#39) Variable restore_qtype_poasquestion_plugin::$oldquestionid is not documented
(#40) Variable restore_qtype_poasquestion_plugin::$newquestionid is not documented
(#41) Variable restore_qtype_poasquestion_plugin::$questioncreated is not documented
(#42) Variable restore_qtype_poasquestion_plugin::$currentanswer is not documented
(#92) Phpdocs for function restore_qtype_poasquestion_plugin::process_poasquestion has incomplete parameters list
question/type/poasquestion/hints.php
(#203) Function qtype_poasquestion_hintmoodle::hint_type is not documented
(#217) Function qtype_poasquestion_hintmoodle::hint_description is not documented
(#225) Function qtype_poasquestion_hintmoodle::hint_response_based is not documented
(#229) Function qtype_poasquestion_hintmoodle::hint_available is not documented
(#233) Function qtype_poasquestion_hintmoodle::penalty_for_specific_hint is not documented
(#237) Function qtype_poasquestion_hintmoodle::render_hint is not documented
(#42) Phpdocs for function available_specific_hints has incomplete parameters list
(#51) Phpdocs for function hints_available_for_student has incomplete parameters list
(#58) Phpdocs for function hint_object has incomplete parameters list
(#67) Phpdocs for function adjust_hintkey has incomplete parameters list
(#74) Phpdocs for function adjust_hints has incomplete parameters list
(#124) Phpdocs for function qtype_specific_hint::__construct has incomplete parameters list
(#151) Phpdocs for function qtype_specific_hint::hint_available has incomplete parameters list
(#163) Phpdocs for function qtype_specific_hint::penalty_for_specific_hint has incomplete parameters list
(#187) Phpdocs for function qtype_specific_hint::render_hint has incomplete parameters list
(#207) Phpdocs for function qtype_poasquestion_hintmoodle::__construct has incomplete parameters list
(#263) Phpdocs for function qtype_poasquestion_moodlehint_adapter::__construct has incomplete parameters list
question/type/poasquestion/jlex.php
(#28) File-level phpdocs block is not found
(#30) Class JLexToken is not documented
(#43) Class JLexBase is not documented
(#35) Function JLexToken::__construct is not documented
(#61) Function JLexBase::__construct is not documented
(#73) Function JLexBase::yybegin is not documented
(#77) Function JLexBase::yy_advance is not documented
(#110) Function JLexBase::yy_move_end is not documented
(#119) Function JLexBase::yy_mark_start is not documented
(#151) Function JLexBase::yy_mark_end is not documented
(#155) Function JLexBase::yy_to_mark is not documented
(#165) Function JLexBase::yytext is not documented
(#169) Function JLexBase::yylength is not documented
(#175) Function JLexBase::yy_error is not documented
(#31) Variable JLexToken::$type is not documented
(#32) Variable JLexToken::$value is not documented
(#33) Variable JLexToken::$line is not documented
(#34) Variable JLexToken::$col is not documented
(#44) Variable JLexBase::$yy_reader is not documented
(#45) Variable JLexBase::$yy_buffer is not documented
(#46) Variable JLexBase::$yy_buffer_read is not documented
(#47) Variable JLexBase::$yy_buffer_index is not documented
(#48) Variable JLexBase::$yy_buffer_start is not documented
(#49) Variable JLexBase::$yy_buffer_end is not documented
(#50) Variable JLexBase::$yychar is not documented
(#51) Variable JLexBase::$yycol is not documented
(#52) Variable JLexBase::$yyline is not documented
(#53) Variable JLexBase::$yy_at_bol is not documented
(#54) Variable JLexBase::$yy_lexical_state is not documented
(#55) Variable JLexBase::$yy_last_was_cr is not documented
(#56) Variable JLexBase::$yy_count_lines is not documented
(#57) Variable JLexBase::$yy_count_chars is not documented
(#58) Variable JLexBase::$yyfilename is not documented
(#59) Variable JLexBase::$yy_eof_done is not documented
(#173) Variable JLexBase::$yy_error_string is not documented
(#30) Package is not specified for class JLexToken. It is also not specified in file-level phpdocs
(#43) Package is not specified for class JLexBase. It is also not specified in file-level phpdocs
question/type/poasquestion/poasquestion_string.php
(#28) Class qtype_poasquestion_string is not documented
(#34) Function qtype_poasquestion_string::__construct is not documented
(#65) Function qtype_poasquestion_string::__toString is not documented
(#69) Function qtype_poasquestion_string::set_string is not documented
(#78) Function qtype_poasquestion_string::string is not documented
(#82) Function qtype_poasquestion_string::length is not documented
(#134) Function qtype_poasquestion_string::offsetExists is not documented
(#138) Function qtype_poasquestion_string::offsetGet is not documented
(#146) Function qtype_poasquestion_string::offsetSet is not documented
(#158) Function qtype_poasquestion_string::offsetUnset is not documented
(#32) Variable qtype_poasquestion_string::$flength is not documented
(#38) Phpdocs for function qtype_poasquestion_string::replace has incomplete parameters list
(#102) Phpdocs for function qtype_poasquestion_string::contains has incomplete parameters list
(#112) Phpdocs for function qtype_poasquestion_string::substring has incomplete parameters list
(#122) Phpdocs for function qtype_poasquestion_string::concatenate has incomplete parameters list
question/type/poasquestion/poasquestion_text_and_button.php
(#36) Class qtype_poasquestion_text_and_button is not documented
(#85) Function qtype_poasquestion_text_and_button::getDialogTitle is not documented
(#89) Function qtype_poasquestion_text_and_button::getTextareaId is not documented
(#93) Function qtype_poasquestion_text_and_button::getButtonId is not documented
(#97) Function qtype_poasquestion_text_and_button::getTooltip is not documented
(#38) Variable qtype_poasquestion_text_and_button::$buttonName is not documented
(#39) Variable qtype_poasquestion_text_and_button::$linkToPage is not documented
(#40) Variable qtype_poasquestion_text_and_button::$linkToBtnImage is not documented
(#41) Variable qtype_poasquestion_text_and_button::$jsmodule is not documented
(#44) Variable qtype_poasquestion_text_and_button::$_poasquestion_text_and_button_included is not documented
(#48) Phpdocs for function qtype_poasquestion_text_and_button::qtype_poasquestion_text_and_button has incomplete parameters list
(#23) Package questions is not valid
question/type/poasquestion/questiontype.php
(#31) Class qtype_poasquestion is not documented
(#33) Function qtype_poasquestion::menu_name is not documented
question/type/poasquestion/stringstream/stringstream.php
(#20) Class StringStreamController is not documented
(#44) Class StringStream is not documented
(#22) Function StringStreamController::_getArray is not documented
(#27) Function StringStreamController::createRef is not documented
(#33) Function StringStreamController::getRef is not documented
(#54) Function StringStream::stream_open is not documented
(#65) Function StringStream::stream_stat is not documented
(#69) Function StringStream::stream_read is not documented
(#75) Function StringStream::stream_write is not documented
(#79) Function StringStream::stream_tell is not documented
(#83) Function StringStream::stream_eof is not documented
(#88) Function StringStream::stream_seek is not documented
(#45) Variable StringStream::$_currentstring is not documented
(#47) Variable StringStream::$_path is not documented
(#48) Variable StringStream::$_mode is not documented
(#49) Variable StringStream::$_options is not documented
(#50) Variable StringStream::$_opened_path is not documented
(#51) Variable StringStream::$_pos is not documented
(#52) Variable StringStream::$_len is not documented
(#17) Not recommended phpdocs tag @version used
(#12) Package stringstream is not valid
question/type/poasquestion/stringstream/test_controller.php
(#15) Not recommended phpdocs tag @version used
(#10) Package stringstream is not valid
question/type/poasquestion/stringstream/test_memusage.php
(#17) Not recommended phpdocs tag @version used
(#12) Package stringstream is not valid
question/type/poasquestion/stringstream/test_memusage2.php
(#19) Not recommended phpdocs tag @version used
(#14) Package stringstream is not valid
question/type/poasquestion/stringstream/test_stream.php
(#18) Not recommended phpdocs tag @version used
(#13) Package stringstream is not valid
question/type/poasquestion/stringstream/test_stream_csv.php
(#17) Not recommended phpdocs tag @version used
(#12) Package stringstream is not valid
question/type/poasquestion/tests/poasquestion_string_test.php
(#31) Class qtype_poasquestion_string_test is not documented

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]


Mustache template problems

(0 errors, 0 warnings)

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