Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(166 errors, 588 warnings)

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

mod/pdfannotator/action.php
(#46) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#178) Short array syntax must be used to define arrays
(#197) Short array syntax must be used to define arrays
(#316) Short array syntax must be used to define arrays
(#317) Short array syntax must be used to define arrays
(#485) Short array syntax must be used to define arrays
(#519) Short array syntax must be used to define arrays
(#561) Short array syntax must be used to define arrays
(#579) Short array syntax must be used to define arrays
mod/pdfannotator/backup/moodle2/backup_pdfannotator_stepslib.php
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#56) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#105) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
mod/pdfannotator/backup/moodle2/restore_pdfannotator_activity_task.class.php
(#61) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
mod/pdfannotator/backup/moodle2/restore_pdfannotator_stepslib.php
(#31) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#49) Short array syntax must be used to define arrays
(#188) Inline comments must start with a capital letter, digit or 3-dots sequence
(#188) This comment is 67% valid code; is this commented out code?
mod/pdfannotator/classes/event/course_module_instance_list_viewed.php
(#19) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/pdfannotator/classes/event/course_module_viewed.php
(#19) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#46) Short array syntax must be used to define arrays
mod/pdfannotator/classes/event/report_added.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) This comment is 48% valid code; is this commented out code?
(#62) Short array syntax must be used to define arrays
mod/pdfannotator/classes/output/answermenu.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#31) Missing docblock for class answermenu
(#33) Missing member variable doc comment
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
(#52) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
mod/pdfannotator/classes/output/comment.php
(#20) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) Missing member variable doc comment
(#33) Missing member variable doc comment
(#125) Missing docblock for function addcssclasses
(#129) Expected "if (...) {\n"; found "if(...) {\n"
(#143) Missing docblock for function setvotes
(#235) Missing docblock for function addhidebutton
(#276) Missing docblock for function addsubscribebutton
(#289) Missing docblock for function addforwardbutton
(#302) Missing docblock for function addmarksolvedbutton
mod/pdfannotator/classes/output/index.php
(#37) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#39) Missing docblock for class index
(#42) You must use "/**" style comments for a member variable comment
(#43) Missing member variable doc comment
(#44) Missing member variable doc comment
(#45) Missing member variable doc comment
(#46) Missing member variable doc comment
(#47) Missing member variable doc comment
(#48) Missing member variable doc comment
(#50) Missing docblock for function __construct
(#63) Missing docblock for function export_for_template
mod/pdfannotator/classes/output/printview.php
(#31) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#33) Missing docblock for class printview
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
(#37) Missing member variable doc comment
(#40) Missing docblock for function __construct
(#47) Missing docblock for function export_for_template
mod/pdfannotator/classes/output/questionmenu.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#31) Missing docblock for class questionmenu
(#33) Missing member variable doc comment
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
mod/pdfannotator/classes/output/reportmenu.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#31) Missing docblock for class reportmenu
(#33) Missing member variable doc comment
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#48) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
mod/pdfannotator/classes/output/statistics.php
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) Missing member variable doc comment
(#41) Missing member variable doc comment
(#60) Short array syntax must be used to define arrays
mod/pdfannotator/classes/privacy/provider.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#204) Short array syntax must be used to define arrays
(#215) Line exceeds 132 characters; contains 149 characters
(#216) Short array syntax must be used to define arrays
(#216) Line exceeds 132 characters; contains 158 characters
(#224) Line exceeds 132 characters; contains 170 characters
(#226) Short array syntax must be used to define arrays
(#226) Line exceeds 132 characters; contains 140 characters
(#232) Short array syntax must be used to define arrays
(#238) Short array syntax must be used to define arrays
(#244) Short array syntax must be used to define arrays
(#244) Line exceeds 132 characters; contains 175 characters
(#288) Short array syntax must be used to define arrays
(#290) Short array syntax must be used to define arrays
(#296) Short array syntax must be used to define arrays
(#298) Short array syntax must be used to define arrays
(#302) Line exceeds 132 characters; contains 159 characters
(#303) Short array syntax must be used to define arrays
(#305) Short array syntax must be used to define arrays
(#309) Short array syntax must be used to define arrays
(#311) Short array syntax must be used to define arrays
(#347) Short array syntax must be used to define arrays
(#349) Short array syntax must be used to define arrays
(#359) Short array syntax must be used to define arrays
(#361) Short array syntax must be used to define arrays
(#368) Short array syntax must be used to define arrays
(#379) Line exceeds 132 characters; contains 173 characters
(#380) Short array syntax must be used to define arrays
(#380) Line exceeds 132 characters; contains 152 characters
(#389) Line exceeds 132 characters; contains 167 characters
(#402) Short array syntax must be used to define arrays
(#407) Short array syntax must be used to define arrays
(#410) Short array syntax must be used to define arrays
(#414) Short array syntax must be used to define arrays
(#417) Short array syntax must be used to define arrays
(#420) Short array syntax must be used to define arrays
(#435) Short array syntax must be used to define arrays
(#435) Line exceeds 132 characters; contains 140 characters
(#439) Short array syntax must be used to define arrays
(#444) Line exceeds 132 characters; contains 150 characters
(#445) Short array syntax must be used to define arrays
(#451) Short array syntax must be used to define arrays
(#458) Short array syntax must be used to define arrays
(#515) Inline comments must end in full-stops, exclamation marks, or question marks
mod/pdfannotator/constants.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/pdfannotator/controller.php
(#1) No one-line description found in phpdocs for docblock of file controller.php
(#30) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#185) Short array syntax must be used to define arrays
(#282) Short array syntax must be used to define arrays
(#316) Short array syntax must be used to define arrays
(#335) Short array syntax must be used to define arrays
(#373) Short array syntax must be used to define arrays
(#436) Short array syntax must be used to define arrays
mod/pdfannotator/db/access.php
(#26) Short array syntax must be used to define arrays
(#27) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#105) Short array syntax must be used to define arrays
(#112) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
(#128) Short array syntax must be used to define arrays
(#134) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#156) Short array syntax must be used to define arrays
(#159) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#170) Short array syntax must be used to define arrays
(#178) Short array syntax must be used to define arrays
(#182) Short array syntax must be used to define arrays
(#188) Short array syntax must be used to define arrays
(#191) Short array syntax must be used to define arrays
(#198) Short array syntax must be used to define arrays
(#202) Short array syntax must be used to define arrays
(#209) Short array syntax must be used to define arrays
(#213) Short array syntax must be used to define arrays
(#220) Short array syntax must be used to define arrays
(#223) Short array syntax must be used to define arrays
(#230) Short array syntax must be used to define arrays
(#233) Short array syntax must be used to define arrays
(#240) Short array syntax must be used to define arrays
(#244) Short array syntax must be used to define arrays
(#251) Short array syntax must be used to define arrays
(#254) Short array syntax must be used to define arrays
(#263) Short array syntax must be used to define arrays
(#266) Short array syntax must be used to define arrays
(#274) Short array syntax must be used to define arrays
(#277) Short array syntax must be used to define arrays
(#285) Short array syntax must be used to define arrays
(#288) Short array syntax must be used to define arrays
(#299) Short array syntax must be used to define arrays
(#302) Short array syntax must be used to define arrays
(#310) Short array syntax must be used to define arrays
(#313) Short array syntax must be used to define arrays
(#319) Short array syntax must be used to define arrays
(#322) Short array syntax must be used to define arrays
(#331) Short array syntax must be used to define arrays
(#334) Short array syntax must be used to define arrays
(#342) Short array syntax must be used to define arrays
(#345) Short array syntax must be used to define arrays
(#352) Short array syntax must be used to define arrays
(#355) Short array syntax must be used to define arrays
(#363) Short array syntax must be used to define arrays
(#366) Short array syntax must be used to define arrays
mod/pdfannotator/db/events.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file events.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/pdfannotator/db/install.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Missing docblock for function xmldb_pdfannotator_install
(#37) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
mod/pdfannotator/db/messages.php
(#29) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
mod/pdfannotator/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#27) Missing docblock for function xmldb_pdfannotator_upgrade
(#44) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#112) Short array syntax must be used to define arrays
(#112) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#133) Short array syntax must be used to define arrays
(#142) Short array syntax must be used to define arrays
(#142) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#231) Short array syntax must be used to define arrays
(#231) Short array syntax must be used to define arrays
(#245) Short array syntax must be used to define arrays
(#245) Short array syntax must be used to define arrays
(#253) Short array syntax must be used to define arrays
(#275) Short array syntax must be used to define arrays
(#275) Short array syntax must be used to define arrays
(#292) Short array syntax must be used to define arrays
(#300) Short array syntax must be used to define arrays
(#313) Short array syntax must be used to define arrays
(#313) Short array syntax must be used to define arrays
(#340) Short array syntax must be used to define arrays
(#340) Short array syntax must be used to define arrays
(#347) Short array syntax must be used to define arrays
(#348) Short array syntax must be used to define arrays
mod/pdfannotator/forward_form.php
(#36) Missing docblock for function definition
(#84) Missing docblock for function display
mod/pdfannotator/index.php
(#1) No one-line description found in phpdocs for docblock of file index.php
(#23) Inline comments must start with a capital letter, digit or 3-dots sequence
(#23) Inline comments must end in full-stops, exclamation marks, or question marks
(#23) This comment is 100% valid code; is this commented out code?
(#23) No space found before comment text; expected "// require_once('../../config.php');" but found "//require_once('../../config.php');"
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) Short array syntax must be used to define arrays
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) This comment is 72% valid code; is this commented out code?
(#36) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#115) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#128) Short array syntax must be used to define arrays
(#141) Short array syntax must be used to define arrays
mod/pdfannotator/lang/en/pdfannotator.php
(#30) The string key "add_private_comment" is not in the correct order, it should be before "add_protected_comment"
(#34) The string key "all_answers" is not in the correct order, it should be before "allanswers"
(#36) The string key "all_questions" is not in the correct order, it should be before "allquestions"
(#47) The string key "answerSolved" is not in the correct order, it should be before "answers"
(#69) Unexpected comment found. Auto-fixing will not work after this comment
(#84) The string key "decision" is not in the correct order, it should be before "decision:overlappingAnnotation"
(#106) The string key "editNotAllowed" is not in the correct order, it should be before "editedComment"
(#125) The string key "error:getQuestions" is not in the correct order, it should be before "error:getimagewidth"
(#143) The string key "error:redihideCommentsplayComment" is not in the correct order, it should be before "error:unsupportedextension"
(#145) The string key "error" is not in the correct order, it should be before "error:voteComment"
(#180) The string key "global_setting_latexusegoogle" is not in the correct order, it should be before "global_setting_latexusemoodle"
(#188) The string key "global_setting_use_private_comments" is not in the correct order, it should be before "global_setting_useprint_comments_desc"
(#232) The string key "markCorrect" is not in the correct order, it should be before "markasunread"
(#234) The string key "markSolved" is not in the correct order, it should be before "markhidden"
(#283) The string key "noCommentsupported" is not in the correct order, it should be before "noanswerssubscribed"
(#342) The string key "pdfannotator" is not in the correct order, it should be before "pdfannotator:writeprotectedcomments"
(#347) The string key "pdfButton" is not in the correct order, it should be before "pdfannotatorpost"
(#359) The string key "privacy:metadata:pdfannotator_annotations" is not in the correct order, it should be before "privacy:metadata:pdfannotator_annotations:userid"
(#363) The string key "privacy:metadata:pdfannotator_comments" is not in the correct order, it should be before "privacy:metadata:pdfannotator_comments:userid"
(#367) The string key "privacy:metadata:pdfannotator_reports" is not in the correct order, it should be before "privacy:metadata:pdfannotator_reports:userid"
(#370) The string key "privacy:metadata:pdfannotator_subscriptions" is not in the correct order, it should be before "privacy:metadata:pdfannotator_subscriptions:userid"
(#373) The string key "privacy:metadata:pdfannotator_votes" is not in the correct order, it should be before "privacy:metadata:pdfannotator_votes:userid"
(#381) The string key "public_comments" is not in the correct order, it should be before "publicanswers"
(#386) The string key "questionSolved" is not in the correct order, it should be before "questionsimgtitle"
(#445) The string key "setting_use_private_comments" is not in the correct order, it should be before "setting_useprint_help"
(#465) The string key "subscribeQuestion" is not in the correct order, it should be before "subscribedanswers"
(#473) The string key "successfullyRedisplayed" is not in the correct order, it should be before "successfullymarkedasunreadandnolongerdisplayed"
(#492) The string key "unsubscribeQuestion" is not in the correct order, it should be before "unsubscribe_notification"
(#498) The string key "use_private_comments" is not in the correct order, it should be before "useprint_comments"
mod/pdfannotator/lib.php
(#78) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#100) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#134) Short array syntax must be used to define arrays
(#176) Short array syntax must be used to define arrays
(#190) Short array syntax must be used to define arrays
(#232) Short array syntax must be used to define arrays
(#257) Short array syntax must be used to define arrays
(#274) Inline comments must start with a capital letter, digit or 3-dots sequence
(#274) This comment is 54% valid code; is this commented out code?
(#295) Short array syntax must be used to define arrays
(#341) Line exceeds 132 characters; contains 137 characters
(#363) Short array syntax must be used to define arrays
(#398) Short array syntax must be used to define arrays
(#402) Line exceeds 132 characters; contains 139 characters
(#412) Inline comments must end in full-stops, exclamation marks, or question marks
(#435) Line exceeds 132 characters; contains 135 characters
(#455) Short array syntax must be used to define arrays
(#466) Short array syntax must be used to define arrays
(#468) Short array syntax must be used to define arrays
(#473) Short array syntax must be used to define arrays
(#480) Line exceeds 132 characters; contains 136 characters
(#501) Inline comments must start with a capital letter, digit or 3-dots sequence
(#501) This comment is 58% valid code; is this commented out code?
(#505) Inline comments must end in full-stops, exclamation marks, or question marks
(#512) Inline comments must start with a capital letter, digit or 3-dots sequence
(#512) This comment is 49% valid code; is this commented out code?
(#526) Inline comments must end in full-stops, exclamation marks, or question marks
(#540) Short array syntax must be used to define arrays
(#565) Short array syntax must be used to define arrays
(#566) Short array syntax must be used to define arrays
(#616) Short array syntax must be used to define arrays
(#622) Short array syntax must be used to define arrays
(#643) Line exceeds 132 characters; contains 146 characters
(#654) Short array syntax must be used to define arrays
(#685) Inline comments must start with a capital letter, digit or 3-dots sequence
(#685) This comment is 69% valid code; is this commented out code?
(#730) Inline comments must start with a capital letter, digit or 3-dots sequence
(#730) This comment is 59% valid code; is this commented out code?
(#732) Line exceeds 132 characters; contains 143 characters
(#746) Line exceeds 132 characters; contains 142 characters
(#748) Line exceeds 132 characters; contains 175 characters
(#749) Inline comments must start with a capital letter, digit or 3-dots sequence
(#749) This comment is 60% valid code; is this commented out code?
(#814) Line exceeds 132 characters; contains 146 characters
mod/pdfannotator/locallib.php
(#49) Line exceeds 132 characters; contains 138 characters
(#54) Line exceeds 132 characters; contains 136 characters
(#97) Line exceeds 132 characters; contains 137 characters
(#112) Missing docblock for function pdfannotator_get_image_options_editor
(#123) Missing docblock for function pdfannotator_get_editor_options
(#142) Missing docblock for function pdfannotator_get_relativelink
(#145) Line exceeds 132 characters; contains 135 characters
(#151) Missing docblock for function pdfannotator_extract_images
(#170) Missing docblock for function pdfannotator_split_content_image
(#277) Missing docblock for function pdfannotator_data_preprocessing
(#300) Inline comments must start with a capital letter, digit or 3-dots sequence
(#302) Inline comments must start with a capital letter, digit or 3-dots sequence
(#307) Inline comments must start with a capital letter, digit or 3-dots sequence
(#307) Inline comments must end in full-stops, exclamation marks, or question marks
(#331) Line exceeds 132 characters; contains 148 characters
(#349) Inline comments must start with a capital letter, digit or 3-dots sequence
(#350) Inline comments must end in full-stops, exclamation marks, or question marks
(#368) Inline comments must end in full-stops, exclamation marks, or question marks
(#381) Inline comments must end in full-stops, exclamation marks, or question marks
(#385) Inline comments must start with a capital letter, digit or 3-dots sequence
(#387) Inline comments must end in full-stops, exclamation marks, or question marks
(#394) Inline comments must start with a capital letter, digit or 3-dots sequence
(#398) Missing docblock for function pdfannotator_get_instance_name
(#401) Short array syntax must be used to define arrays
(#404) Missing docblock for function pdfannotator_get_course_name_by_id
(#406) Short array syntax must be used to define arrays
(#409) Missing docblock for function pdfannotator_get_username
(#411) Short array syntax must be used to define arrays
(#415) Missing docblock for function pdfannotator_get_annotationtype_id
(#420) Short array syntax must be used to define arrays
(#426) Missing docblock for function pdfannotator_get_annotationtype_name
(#428) Short array syntax must be used to define arrays
(#434) Missing docblock for function pdfannotator_handle_latex
(#438) This comment is 50% valid code; is this commented out code?
(#444) Short array syntax must be used to define arrays
(#483) Inline comments must end in full-stops, exclamation marks, or question marks
(#502) Missing docblock for function pdfannotator_process_latex_moodle
(#507) Short array syntax must be used to define arrays
(#537) Line exceeds 132 characters; contains 151 characters
(#537) Inline comments must start with a capital letter, digit or 3-dots sequence
(#543) Line exceeds 132 characters; contains 153 characters
(#558) Missing docblock for function pdfannotator_send_forward_message
(#563) Line exceeds 132 characters; contains 133 characters
(#567) Line exceeds 132 characters; contains 149 characters
(#572) Missing docblock for function pdfannotator_notify_manager
(#596) Short array syntax must be used to define arrays
(#596) Short array syntax must be used to define arrays
(#603) Missing docblock for function pdfannotator_format_notification_message_text
(#603) Line exceeds 132 characters; contains 152 characters
(#605) Short array syntax must be used to define arrays
(#613) Line exceeds 132 characters; contains 171 characters
(#628) Line exceeds 132 characters; contains 149 characters
(#630) Short array syntax must be used to define arrays
(#644) Short array syntax must be used to define arrays
(#647) Line exceeds 132 characters; contains 153 characters
(#704) Short array syntax must be used to define arrays
(#760) Inline comments must start with a capital letter, digit or 3-dots sequence
(#760) This comment is 67% valid code; is this commented out code?
(#780) Short array syntax must be used to define arrays
(#807) Short array syntax must be used to define arrays
(#814) Short array syntax must be used to define arrays
(#820) Line exceeds 132 characters; contains 143 characters
(#824) Line exceeds 132 characters; contains 161 characters
(#838) Missing docblock for function get_parent
(#845) Missing docblock for function get_visible_name
(#854) Missing docblock for function pdfannotator_set_mainfile
(#862) Short array syntax must be used to define arrays
(#872) Missing docblock for function pdfannotator_render_listitem_actions
(#879) Line exceeds 132 characters; contains 136 characters
(#888) Missing docblock for function pdfannotator_render_action_menu
(#893) Missing docblock for function pdfannotator_subscribe_all
(#905) Missing docblock for function pdfannotator_unsubscribe_all
(#917) Line exceeds 132 characters; contains 139 characters
(#946) Line exceeds 132 characters; contains 135 characters
(#946) Inline comments must end in full-stops, exclamation marks, or question marks
(#957) Line exceeds 132 characters; contains 135 characters
(#957) Inline comments must end in full-stops, exclamation marks, or question marks
(#998) Short array syntax must be used to define arrays
(#1040) Line exceeds 132 characters; contains 136 characters
(#1093) Short array syntax must be used to define arrays
(#1129) Line exceeds 132 characters; contains 140 characters
(#1166) Short array syntax must be used to define arrays
(#1223) Line exceeds 132 characters; contains 139 characters
(#1237) Short array syntax must be used to define arrays
(#1239) Short array syntax must be used to define arrays
(#1239) Line exceeds 132 characters; contains 133 characters
(#1305) Line exceeds 132 characters; contains 156 characters
(#1316) Short array syntax must be used to define arrays
(#1318) Short array syntax must be used to define arrays
(#1325) Short array syntax must be used to define arrays
(#1325) Line exceeds 132 characters; contains 142 characters
(#1340) Missing docblock for function compare_votes_ascending
(#1347) Missing docblock for function compare_votes_descending
(#1354) Missing docblock for function compare_answers_ascending
(#1361) Missing docblock for function compare_answers_descending
(#1368) Missing docblock for function compare_time_ascending
(#1375) Missing docblock for function compare_time_descending
(#1382) Missing docblock for function compare_lastanswertime_ascending
(#1389) Missing docblock for function compare_lastanswertime_descending
(#1396) Missing docblock for function compare_commenttime_ascending
(#1403) Missing docblock for function compare_commenttime_descending
(#1410) Missing docblock for function compare_creationtime_ascending
(#1417) Missing docblock for function compare_creationtime_descending
(#1424) Missing docblock for function compare_alphabetically_ascending
(#1435) Missing docblock for function compare_alphabetically_descending
(#1446) Missing docblock for function compare_question_ascending
(#1457) Missing docblock for function compare_question_descending
(#1506) Missing docblock for function pdfannotator_sort_questions
(#1631) Missing docblock for function array_key_first
(#1670) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1673) Line exceeds 132 characters; contains 149 characters
(#1715) Line exceeds 132 characters; contains 149 characters
(#1723) Line exceeds 132 characters; contains 137 characters
(#1735) Line exceeds 132 characters; contains 137 characters
(#1758) Line exceeds 132 characters; contains 149 characters
(#1801) Line exceeds 132 characters; contains 149 characters
(#1808) Line exceeds 132 characters; contains 137 characters
(#1820) Line exceeds 132 characters; contains 137 characters
(#1841) Line exceeds 132 characters; contains 161 characters
(#1844) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1844) This comment is 54% valid code; is this commented out code?
(#1848) Line exceeds 132 characters; contains 176 characters
(#1862) Short array syntax must be used to define arrays
(#1880) Line exceeds 132 characters; contains 135 characters
(#1904) Line exceeds 132 characters; contains 161 characters
(#1920) Line exceeds 132 characters; contains 148 characters
(#1922) Short array syntax must be used to define arrays
(#1922) Line exceeds 132 characters; contains 140 characters
(#1941) Short array syntax must be used to define arrays
(#1956) Line exceeds 132 characters; contains 135 characters
(#1965) Line exceeds 132 characters; contains 170 characters
(#1967) Line exceeds 132 characters; contains 171 characters
(#1981) Short array syntax must be used to define arrays
(#1981) Line exceeds 132 characters; contains 163 characters
(#1993) Short array syntax must be used to define arrays
(#1993) Line exceeds 132 characters; contains 133 characters
(#1997) Short array syntax must be used to define arrays
(#2002) Short array syntax must be used to define arrays
(#2040) Missing docblock for function pdfannotator_is_mobile_device
(#2042) Line exceeds 132 characters; contains 166 characters
(#2045) Missing docblock for function pdfannotator_is_phone
(#2047) Line exceeds 132 characters; contains 166 characters
(#2051) Missing docblock for function pdfannotator_get_last_answer
(#2053) Short array syntax must be used to define arrays
(#2067) Missing docblock for function pdfannotator_can_see_comment
(#2075) Short array syntax must be used to define arrays
(#2087) Line exceeds 132 characters; contains 152 characters
(#2099) Short array syntax must be used to define arrays
mod/pdfannotator/mod_form.php
(#24) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#32) Missing docblock for class mod_pdfannotator_mod_form
(#34) Missing docblock for function definition
(#42) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#81) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#100) Short array syntax must be used to define arrays
(#106) Short array syntax must be used to define arrays
(#112) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#134) Missing docblock for function data_preprocessing
(#138) Short array syntax must be used to define arrays
(#144) Missing docblock for function validation
mod/pdfannotator/model/annotation.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) Missing docblock for class pdfannotator_annotation
(#80) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#123) Short array syntax must be used to define arrays
(#126) Short array syntax must be used to define arrays
(#195) Short array syntax must be used to define arrays
(#251) Short array syntax must be used to define arrays
(#262) Short array syntax must be used to define arrays
mod/pdfannotator/model/comment.class.php
(#33) Missing docblock for class pdfannotator_comment
(#49) Short array syntax must be used to define arrays
(#65) Whitespace found at end of line
(#70) Line exceeds 132 characters; contains 152 characters
(#77) Whitespace found at end of line
(#123) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#175) Short array syntax must be used to define arrays
(#210) Line exceeds 132 characters; contains 133 characters
(#264) Short array syntax must be used to define arrays
(#289) Short array syntax must be used to define arrays
(#294) Short array syntax must be used to define arrays
(#298) This comment is 75% valid code; is this commented out code?
(#308) Short array syntax must be used to define arrays
(#329) Short array syntax must be used to define arrays
(#346) Short array syntax must be used to define arrays
(#370) Short array syntax must be used to define arrays
(#376) Short array syntax must be used to define arrays
(#381) Short array syntax must be used to define arrays
(#400) Short array syntax must be used to define arrays
(#403) Short array syntax must be used to define arrays
(#413) Missing docblock for function update
(#426) Line exceeds 132 characters; contains 142 characters
(#437) Short array syntax must be used to define arrays
(#463) Short array syntax must be used to define arrays
(#486) Short array syntax must be used to define arrays
(#490) Short array syntax must be used to define arrays
(#510) Short array syntax must be used to define arrays
(#511) Short array syntax must be used to define arrays
(#548) Missing docblock for function is_solved
(#560) Short array syntax must be used to define arrays
(#570) Short array syntax must be used to define arrays
(#580) Short array syntax must be used to define arrays
(#591) Short array syntax must be used to define arrays
(#595) Missing docblock for function get_questions
(#601) Short array syntax must be used to define arrays
(#626) Missing docblock for function get_all_questions
(#632) Short array syntax must be used to define arrays
mod/pdfannotator/model/overviewtable.php
(#33) Possible useless method overriding detected
(#33) Missing docblock for function __construct
(#37) Missing docblock for function setup
(#38) Short array syntax must be used to define arrays
(#43) There should be a comma after the last array item in a multi-line array.
(#64) Missing member variable doc comment
(#66) Missing docblock for function __construct
(#69) Inline comments must start with a capital letter, digit or 3-dots sequence
(#69) This comment is 67% valid code; is this commented out code?
(#71) Short array syntax must be used to define arrays
(#86) Inline comments must start with a capital letter, digit or 3-dots sequence
(#86) This comment is 68% valid code; is this commented out code?
(#88) Inline comments must start with a capital letter, digit or 3-dots sequence
(#88) This comment is 60% valid code; is this commented out code?
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#92) This comment is 56% valid code; is this commented out code?
(#95) Inline comments must start with a capital letter, digit or 3-dots sequence
(#95) This comment is 63% valid code; is this commented out code?
(#97) Inline comments must start with a capital letter, digit or 3-dots sequence
(#97) This comment is 68% valid code; is this commented out code?
(#99) Inline comments must start with a capital letter, digit or 3-dots sequence
(#99) This comment is 65% valid code; is this commented out code?
(#101) Short array syntax must be used to define arrays
(#124) Missing member variable doc comment
(#126) Missing docblock for function __construct
(#129) Inline comments must start with a capital letter, digit or 3-dots sequence
(#129) This comment is 67% valid code; is this commented out code?
(#131) Short array syntax must be used to define arrays
(#140) Inline comments must start with a capital letter, digit or 3-dots sequence
(#140) This comment is 68% valid code; is this commented out code?
(#142) Inline comments must start with a capital letter, digit or 3-dots sequence
(#142) This comment is 60% valid code; is this commented out code?
(#144) Inline comments must start with a capital letter, digit or 3-dots sequence
(#144) This comment is 60% valid code; is this commented out code?
(#147) Inline comments must start with a capital letter, digit or 3-dots sequence
(#147) This comment is 68% valid code; is this commented out code?
(#149) Inline comments must start with a capital letter, digit or 3-dots sequence
(#149) This comment is 65% valid code; is this commented out code?
(#151) Inline comments must start with a capital letter, digit or 3-dots sequence
(#151) This comment is 68% valid code; is this commented out code?
(#152) Short array syntax must be used to define arrays
(#166) Missing member variable doc comment
(#168) Missing docblock for function __construct
(#171) Inline comments must start with a capital letter, digit or 3-dots sequence
(#171) This comment is 67% valid code; is this commented out code?
(#173) Short array syntax must be used to define arrays
(#180) Inline comments must start with a capital letter, digit or 3-dots sequence
(#180) This comment is 68% valid code; is this commented out code?
(#182) Inline comments must start with a capital letter, digit or 3-dots sequence
(#182) This comment is 68% valid code; is this commented out code?
(#185) Inline comments must start with a capital letter, digit or 3-dots sequence
(#185) This comment is 58% valid code; is this commented out code?
(#188) Inline comments must start with a capital letter, digit or 3-dots sequence
(#188) This comment is 65% valid code; is this commented out code?
(#189) Short array syntax must be used to define arrays
(#201) Missing member variable doc comment
(#203) Missing docblock for function __construct
(#207) Short array syntax must be used to define arrays
(#215) Inline comments must start with a capital letter, digit or 3-dots sequence
(#215) This comment is 68% valid code; is this commented out code?
(#217) Inline comments must start with a capital letter, digit or 3-dots sequence
(#217) This comment is 60% valid code; is this commented out code?
(#220) Inline comments must start with a capital letter, digit or 3-dots sequence
(#220) This comment is 68% valid code; is this commented out code?
(#222) Inline comments must start with a capital letter, digit or 3-dots sequence
(#222) This comment is 60% valid code; is this commented out code?
(#225) Inline comments must start with a capital letter, digit or 3-dots sequence
(#225) This comment is 68% valid code; is this commented out code?
(#226) Short array syntax must be used to define arrays
mod/pdfannotator/model/pdfannotator.php
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
(#37) Missing member variable doc comment
(#38) You must use "/**" style comments for a member variable comment
(#39) Missing member variable doc comment
(#40) Missing member variable doc comment
(#41) Missing member variable doc comment
(#42) Missing member variable doc comment
(#44) Missing docblock for function __construct
(#48) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#93) Missing docblock for function get_cm_info
(#95) Short array syntax must be used to define arrays
(#105) Short array syntax must be used to define arrays
(#113) Missing docblock for function use_votes
(#115) Short array syntax must be used to define arrays
(#120) Missing docblock for function get_id
(#124) Missing docblock for function get_name
(#128) Missing docblock for function get_conversations
(#140) Short array syntax must be used to define arrays
(#166) Short array syntax must be used to define arrays
mod/pdfannotator/model/statistics.class.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) Missing member variable doc comment
(#33) Missing member variable doc comment
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#37) Missing docblock for function __construct
(#53) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#125) Short array syntax must be used to define arrays
(#135) Short array syntax must be used to define arrays
(#135) Short array syntax must be used to define arrays
(#137) Short array syntax must be used to define arrays
(#137) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#146) Short array syntax must be used to define arrays
(#146) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#157) Short array syntax must be used to define arrays
(#157) Short array syntax must be used to define arrays
(#160) Short array syntax must be used to define arrays
(#160) Short array syntax must be used to define arrays
(#165) Short array syntax must be used to define arrays
(#165) Short array syntax must be used to define arrays
(#219) Short array syntax must be used to define arrays
(#234) Short array syntax must be used to define arrays
(#270) Missing docblock for function count_protected_comments
(#296) Missing docblock for function count_private_comments_in_course
(#300) Short array syntax must be used to define arrays
(#303) Missing docblock for function count_protected_comments_in_course
(#307) Short array syntax must be used to define arrays
mod/pdfannotator/renderable.php
(#31) Missing docblock for class pdfannotator_comment_info
(#33) Missing member variable doc comment
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
(#37) Missing member variable doc comment
mod/pdfannotator/renderer.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#27) Missing docblock for class mod_pdfannotator_renderer
(#73) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#105) Short array syntax must be used to define arrays
(#128) Short array syntax must be used to define arrays
mod/pdfannotator/reportform.php
(#36) Missing docblock for function definition
(#71) Missing docblock for function display
mod/pdfannotator/settings.php
(#1) No one-line description found in phpdocs for docblock of file settings.php
(#54) Short array syntax must be used to define arrays
(#60) Whitespace found at end of line
(#81) Whitespace found at end of line
mod/pdfannotator/tests/generator/lib.php
(#34) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $options.
mod/pdfannotator/tests/privacy/provider_test.php
(#32) Unit test provider_test should be declared as final.
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
(#37) Missing member variable doc comment
(#38) Missing member variable doc comment
(#39) Missing member variable doc comment
(#40) Missing member variable doc comment
(#42) The setUp() method in unit tests must always call to parent::setUp().
(#118) Test method test_delete_data_for_users() is missing any coverage information, own or at class level
(#118) Test method test_delete_data_for_users() is missing a return type
mod/pdfannotator/view.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file view.php
(#38) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays

Javascript coding style problems

(65 errors, 57 warnings)

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

mod/pdfannotator/shared/locallib.js
(#8) 'addDropdownNavigation' is defined but never used. (no-unused-vars)
(#49) This line has a length of 205. Maximum allowed is 132. (max-len)
(#61) Unexpected space before function parentheses. (space-before-function-paren)
(#68) Unexpected space before function parentheses. (space-before-function-paren)
(#69) Unexpected space before function parentheses. (space-before-function-paren)
(#76) Missing space before opening brace. (space-before-blocks)
(#79) Missing space before opening brace. (space-before-blocks)
(#85) Expected space or tab after '/**' in comment. (spaced-comment)
(#86) Expected space or tab after '/*' in comment. (spaced-comment)
(#102) 'fixCommentForm' is defined but never used. (no-unused-vars)
(#103) '$' is not defined. (no-undef)
(#104) '$' is not defined. (no-undef)
(#105) '$' is not defined. (no-undef)
(#106) '$' is not defined. (no-undef)
(#109) '$' is not defined. (no-undef)
(#109) '$' is not defined. (no-undef)
(#110) '$' is not defined. (no-undef)
(#111) '$' is not defined. (no-undef)
(#112) '$' is not defined. (no-undef)
(#113) '$' is not defined. (no-undef)
(#114) '$' is not defined. (no-undef)
(#116) '$' is not defined. (no-undef)
(#120) '$' is not defined. (no-undef)
(#120) Unexpected space before function parentheses. (space-before-function-paren)
(#120) 'event' is defined but never used. (no-unused-vars)
(#124) '$' is not defined. (no-undef)
(#124) Unexpected space before function parentheses. (space-before-function-paren)
(#124) 'event' is defined but never used. (no-unused-vars)
(#126) '$' is not defined. (no-undef)
(#127) '$' is not defined. (no-undef)
(#128) '$' is not defined. (no-undef)
(#129) '$' is not defined. (no-undef)
(#132) '$' is not defined. (no-undef)
(#140) '$' is not defined. (no-undef)
(#142) '$' is not defined. (no-undef)
(#146) '$' is not defined. (no-undef)
(#147) '$' is not defined. (no-undef)
(#148) '$' is not defined. (no-undef)
(#152) 'closeComment' is defined but never used. (no-unused-vars)
(#159) 'makeFullScreen' is defined but never used. (no-unused-vars)
(#184) Trailing spaces not allowed. (no-trailing-spaces)
(#186) 'checkOnlyOneCheckbox' is defined but never used. (no-unused-vars)
(#186) There should be no space after this paren. (space-in-parens)
(#186) 'Y' is defined but never used. (no-unused-vars)
(#186) There should be no space before this paren. (space-in-parens)
(#187) 'radios' is assigned a value but never used. (no-unused-vars)
(#191) Expected space(s) after "if". (keyword-spacing)
(#192) Missing space before opening brace. (space-before-blocks)
(#193) Expected space(s) after "if". (keyword-spacing)
(#194) Expected space(s) after "if". (keyword-spacing)
(#194) Missing space before opening brace. (space-before-blocks)
(#197) Expected space(s) after "if". (keyword-spacing)
(#204) Expected space(s) after "if". (keyword-spacing)
(#205) Missing space before opening brace. (space-before-blocks)
(#206) Expected space(s) after "if". (keyword-spacing)
(#207) Expected space(s) after "if". (keyword-spacing)
(#207) Missing space before opening brace. (space-before-blocks)
(#210) Expected space(s) after "if". (keyword-spacing)
(#217) Expected space(s) after "if". (keyword-spacing)
(#218) Missing space before opening brace. (space-before-blocks)
(#219) Expected space(s) after "if". (keyword-spacing)
(#220) Expected space(s) after "if". (keyword-spacing)
(#220) Missing space before opening brace. (space-before-blocks)
(#223) Expected space(s) after "if". (keyword-spacing)
(#231) 'setTimeoutNotification' is defined but never used. (no-unused-vars)
(#231) Missing space before opening brace. (space-before-blocks)
(#232) Missing space before opening brace. (space-before-blocks)
(#234) Trailing spaces not allowed. (no-trailing-spaces)
(#236) Trailing spaces not allowed. (no-trailing-spaces)
mod/pdfannotator/shared/overview.js
(#16) 'startOverview' is defined but never used. (no-unused-vars)
(#18) Unexpected space before function parentheses. (space-before-function-paren)
(#18) 'templates' is defined but never used. (no-unused-vars)
(#18) 'notification' is defined but never used. (no-unused-vars)
(#20) Expected space or tab after '/**' in comment. (spaced-comment)
(#26) 'addDropdownNavigation' is not defined. (no-undef)
(#39) Comments should not begin with a lowercase character. (capitalized-comments)
(#39) Expected space or tab after '//' in comment. (spaced-comment)
(#41) Expected space or tab after '/**' in comment. (spaced-comment)
(#51) There should be no space after this paren. (space-in-parens)
(#61) Unexpected space before function parentheses. (space-before-function-paren)
(#70) Expected space or tab after '/**' in comment. (spaced-comment)
(#129) A space is required after ','. (comma-spacing)
(#145) Unexpected space before function parentheses. (space-before-function-paren)
(#153) This line has a length of 203. Maximum allowed is 132. (max-len)
(#153) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#153) There should be no space after this paren. (space-in-parens)
(#153) Unary word operator 'typeof' must be followed by whitespace. (space-unary-ops)
(#153) Use '===' to compare with null. (no-eq-null)
(#153) There should be no space before this paren. (space-in-parens)
(#342) Unexpected space before function parentheses. (space-before-function-paren)
(#355) There should be no space after this paren. (space-in-parens)
(#396) Unexpected space before function parentheses. (space-before-function-paren)
(#401) Unexpected space before function parentheses. (space-before-function-paren)
(#403) Trailing spaces not allowed. (no-trailing-spaces)
(#409) Missing semicolon. (semi)
(#428) Unnecessary escape character: \(. (no-useless-escape)
(#433) Unnecessary escape character: \). (no-useless-escape)
(#436) Unnecessary escape character: \[. (no-useless-escape)
(#441) Unnecessary escape character: \]. (no-useless-escape)
(#449) Missing semicolon. (semi)
(#459) This line has a length of 225. Maximum allowed is 132. (max-len)
(#466) Unexpected space before function parentheses. (space-before-function-paren)
(#480) Expected space or tab after '/**' in comment. (spaced-comment)
(#481) Expected space or tab after '/*' in comment. (spaced-comment)
mod/pdfannotator/shared/statistic.js
(#9) This line has a length of 199. Maximum allowed is 132. (max-len)
(#9) 'setCharts' is defined but never used. (no-unused-vars)
(#10) Unexpected space before function parentheses. (space-before-function-paren)
(#18) This line has a length of 205. Maximum allowed is 132. (max-len)
(#22) 'myChart' is assigned a value but never used. (no-unused-vars)
(#34) This line has a length of 144. Maximum allowed is 132. (max-len)
(#48) This line has a length of 148. Maximum allowed is 132. (max-len)
(#62) Duplicate key 'borderColor'. (no-dupe-keys)
(#63) Duplicate key 'borderWidth'. (no-dupe-keys)
(#64) Trailing spaces not allowed. (no-trailing-spaces)
(#66) This line has a length of 142. Maximum allowed is 132. (max-len)
(#72) Duplicate key 'borderColor'. (no-dupe-keys)
(#73) Duplicate key 'borderWidth'. (no-dupe-keys)
(#74) Trailing spaces not allowed. (no-trailing-spaces)
(#83) This line has a length of 146. Maximum allowed is 132. (max-len)
(#99) This line has a length of 145. Maximum allowed is 132. (max-len)
(#153) This line has a length of 192. Maximum allowed is 132. (max-len)
(#165) Trailing spaces not allowed. (no-trailing-spaces)

CSS problems

(91 errors, 5 warnings)

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

mod/pdfannotator/styles.css
(#939) Expected single space before "{" (block-opening-brace-space-before)
(#1305) Expected single space before "{" (block-opening-brace-space-before)
(#817) Expected "#FDEFDF" to be "#fdefdf" (color-hex-case)
(#822) Expected "#FDEFDF" to be "#fdefdf" (color-hex-case)
(#554) Unexpected !important (declaration-no-important)
(#582) Unexpected !important (declaration-no-important)
(#650) Unexpected !important (declaration-no-important)
(#746) Unexpected !important (declaration-no-important)
(#750) Unexpected !important (declaration-no-important)
(#759) Unexpected !important (declaration-no-important)
(#767) Unexpected !important (declaration-no-important)
(#771) Unexpected !important (declaration-no-important)
(#776) Unexpected !important (declaration-no-important)
(#780) Unexpected !important (declaration-no-important)
(#827) Unexpected !important (declaration-no-important)
(#887) Unexpected !important (declaration-no-important)
(#890) Unexpected !important (declaration-no-important)
(#891) Unexpected !important (declaration-no-important)
(#953) Unexpected !important (declaration-no-important)
(#967) Unexpected !important (declaration-no-important)
(#970) Unexpected !important (declaration-no-important)
(#973) Unexpected !important (declaration-no-important)
(#976) Unexpected !important (declaration-no-important)
(#1046) Unexpected !important (declaration-no-important)
(#1194) Unexpected !important (declaration-no-important)
(#1203) Unexpected !important (declaration-no-important)
(#1219) Unexpected !important (declaration-no-important)
(#1220) Unexpected !important (declaration-no-important)
(#1302) Unexpected !important (declaration-no-important)
(#1306) Unexpected !important (declaration-no-important)
(#1310) Unexpected !important (declaration-no-important)
(#1314) Unexpected !important (declaration-no-important)
(#1310) Expected single space after "," in a single-line function (function-comma-space-after)
(#1310) Expected single space after "," in a single-line function (function-comma-space-after)
(#1350) Expected single space after "," in a single-line function (function-comma-space-after)
(#1350) Expected single space after "," in a single-line function (function-comma-space-after)
(#1350) Expected single space after "," in a single-line function (function-comma-space-after)
(#205) Unexpected URL scheme "data:" (function-url-scheme-disallowed-list)
(#230) Unexpected URL scheme "data:" (function-url-scheme-disallowed-list)
(#713) Unexpected unit (length-zero-no-unit)
(#1350) Unexpected unit (length-zero-no-unit)
(#237) Unexpected extra semicolon (no-extra-semicolons)
(#250) Expected indentation of 4 spaces (indentation)
(#251) Expected indentation of 4 spaces (indentation)
(#252) Expected indentation of 4 spaces (indentation)
(#253) Expected indentation of 4 spaces (indentation)
(#254) Expected indentation of 4 spaces (indentation)
(#255) Expected indentation of 4 spaces (indentation)
(#256) Expected indentation of 4 spaces (indentation)
(#257) Expected indentation of 4 spaces (indentation)
(#258) Expected indentation of 4 spaces (indentation)
(#290) Expected indentation of 4 spaces (indentation)
(#296) Expected indentation of 4 spaces (indentation)
(#297) Expected indentation of 4 spaces (indentation)
(#305) Expected indentation of 4 spaces (indentation)
(#306) Expected indentation of 4 spaces (indentation)
(#307) Expected indentation of 4 spaces (indentation)
(#313) Expected indentation of 4 spaces (indentation)
(#314) Expected indentation of 4 spaces (indentation)
(#315) Expected indentation of 4 spaces (indentation)
(#316) Expected indentation of 4 spaces (indentation)
(#321) Expected indentation of 4 spaces (indentation)
(#322) Expected indentation of 4 spaces (indentation)
(#323) Expected indentation of 4 spaces (indentation)
(#327) Expected indentation of 4 spaces (indentation)
(#331) Expected indentation of 4 spaces (indentation)
(#360) Expected indentation of 4 spaces (indentation)
(#361) Expected indentation of 4 spaces (indentation)
(#402) Expected indentation of 0 spaces (indentation)
(#405) Expected indentation of 4 spaces (indentation)
(#422) Expected indentation of 4 spaces (indentation)
(#441) Expected indentation of 4 spaces (indentation)
(#437) Expected indentation of 8 spaces (indentation)
(#438) Expected indentation of 8 spaces (indentation)
(#439) Expected indentation of 8 spaces (indentation)
(#440) Expected indentation of 8 spaces (indentation)
(#445) Expected indentation of 4 spaces (indentation)
(#481) Expected indentation of 4 spaces (indentation)
(#482) Expected indentation of 4 spaces (indentation)
(#488) Expected indentation of 4 spaces (indentation)
(#489) Expected indentation of 4 spaces (indentation)
(#490) Expected indentation of 4 spaces (indentation)
(#495) Expected indentation of 4 spaces (indentation)
(#501) Expected indentation of 4 spaces (indentation)
(#502) Expected indentation of 4 spaces (indentation)
(#511) Expected indentation of 4 spaces (indentation)
(#512) Expected indentation of 4 spaces (indentation)
(#518) Expected indentation of 4 spaces (indentation)
(#519) Expected indentation of 4 spaces (indentation)
(#525) Expected indentation of 4 spaces (indentation)
(#526) Expected indentation of 4 spaces (indentation)
(#559) Expected indentation of 4 spaces (indentation)
(#563) Expected indentation of 4 spaces (indentation)
(#567) Expected indentation of 4 spaces (indentation)
(#568) Expected indentation of 4 spaces (indentation)
(#1373) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(81 errors, 0 warnings)

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

mod/pdfannotator/classes/output/answermenu.php
(#84) Phpdocs for function answermenu::export_for_template has incomplete parameters list
mod/pdfannotator/classes/output/comment.php
(#38) Phpdocs for function comment::__construct has incomplete parameters list
(#115) Phpdocs for function comment::export_for_template has incomplete parameters list
(#170) Phpdocs for function comment::addsolvedicon has incomplete parameters list
(#186) Phpdocs for function comment::addreportbutton has incomplete parameters list
(#200) Phpdocs for function comment::addcloseopenbutton has incomplete parameters list
(#222) Phpdocs for function comment::addeditbutton has incomplete parameters list
(#263) Phpdocs for function comment::adddeletebutton has incomplete parameters list
mod/pdfannotator/classes/output/questionmenu.php
(#67) Phpdocs for function questionmenu::export_for_template has incomplete parameters list
mod/pdfannotator/classes/output/reportmenu.php
(#77) Phpdocs for function reportmenu::export_for_template has incomplete parameters list
mod/pdfannotator/classes/output/statistics.php
(#67) Phpdocs for function statistics::export_for_template has incomplete parameters list
mod/pdfannotator/lib.php
(#82) Phpdocs for function pdfannotator_reset_userdata has incomplete parameters list
(#459) Phpdocs for function pdfannotator_export_contents has incomplete parameters list
(#600) Phpdocs for function pdfannotator_get_recent_mod_activity has incomplete parameters list
(#778) Phpdocs for function mod_pdfannotator_output_fragment_open_edit_comment_editor has incomplete parameters list
(#807) Phpdocs for function mod_pdfannotator_output_fragment_open_add_comment_editor has incomplete parameters list
mod/pdfannotator/locallib.php
(#40) Phpdocs for function pdfannotator_display_embed has incomplete parameters list
(#327) Phpdocs for function pdfannotator_file_prepare_draft_area has incomplete parameters list
(#527) Phpdocs for function pdfannotator_process_latex_google has incomplete parameters list
(#620) Phpdocs for function pdfannotator_format_notification_message_html has incomplete parameters list
(#651) Phpdocs for function pdfannotator_get_clicktoopen has incomplete parameters list
(#666) Phpdocs for function pdfannotator_get_clicktodownload has incomplete parameters list
(#768) Phpdocs for function pdfannotator_get_number_of_new_activities has incomplete parameters list
(#918) Phpdocs for function pdfannotator_subscribed has incomplete parameters list
(#942) Phpdocs for function pdfannotator_get_user_datetime has incomplete parameters list
(#952) Phpdocs for function pdfannotator_get_user_datetime_shortformat has incomplete parameters list
(#965) Phpdocs for function pdfannotator_prepare_overviewpage has incomplete parameters list
(#1006) Phpdocs for function pdfannotator_get_questions has incomplete parameters list
(#1106) Phpdocs for function pdfannotator_get_posts_by_this_user has incomplete parameters list
(#1179) Phpdocs for function pdfannotator_get_answers_for_this_user has incomplete parameters list
(#1292) Phpdocs for function pdfannotator_get_reports has incomplete parameters list
(#1646) Phpdocs for function pdfannotator_print_questions has incomplete parameters list
(#1701) Phpdocs for function pdfannotator_print_answers has incomplete parameters list
(#1744) Phpdocs for function pdfannotator_print_this_users_posts has incomplete parameters list
(#1787) Phpdocs for function pdfannotator_print_reports has incomplete parameters list
(#1831) Phpdocs for function pdfannotator_questionstable_add_row has incomplete parameters list
(#1876) Phpdocs for function pdfannotator_answerstable_add_row has incomplete parameters list
(#1948) Phpdocs for function pdfannotator_reportstable_add_row has incomplete parameters list
(#2027) Phpdocs for function pdfannotator_optional_timeago has incomplete parameters list
(#2093) Phpdocs for function pdfannotator_count_answers has incomplete parameters list
(#367) Inline phpdocs tag {@link file_storage::search_references()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#368) Inline phpdocs tag {@link file_storage::search_references_count()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/pdfannotator/model/annotation.class.php
(#37) Phpdocs for function pdfannotator_annotation::create_annotation has incomplete parameters list
(#61) Phpdocs for function pdfannotator_annotation::update has incomplete parameters list
(#95) Phpdocs for function pdfannotator_annotation::delete has incomplete parameters list
(#142) Phpdocs for function pdfannotator_annotation::deletion_allowed has incomplete parameters list
(#181) Phpdocs for function pdfannotator_annotation::shifting_allowed has incomplete parameters list
(#204) Phpdocs for function pdfannotator_annotation::get_information has incomplete parameters list
(#245) Phpdocs for function pdfannotator_annotation::get_author has incomplete parameters list
(#257) Phpdocs for function pdfannotator_annotation::get_pageid has incomplete parameters list
(#268) Phpdocs for function pdfannotator_annotation::get_question has incomplete parameters list
mod/pdfannotator/model/comment.class.php
(#38) Phpdocs for function pdfannotator_comment::create has incomplete parameters list
(#150) Phpdocs for function pdfannotator_comment::read has incomplete parameters list
(#228) Phpdocs for function pdfannotator_comment::set_username has incomplete parameters list
(#253) Phpdocs for function pdfannotator_comment::hide_comment has incomplete parameters list
(#338) Phpdocs for function pdfannotator_comment::delete_comment has incomplete parameters list
(#449) Phpdocs for function pdfannotator_comment::insert_vote has incomplete parameters list
(#479) Phpdocs for function pdfannotator_comment::insert_subscription has incomplete parameters list
(#505) Phpdocs for function pdfannotator_comment::delete_subscription has incomplete parameters list
(#520) Phpdocs for function pdfannotator_comment::mark_solved has incomplete parameters list
(#555) Phpdocs for function pdfannotator_comment::is_voted has incomplete parameters list
(#565) Phpdocs for function pdfannotator_comment::get_number_of_votes has incomplete parameters list
(#575) Phpdocs for function pdfannotator_comment::is_subscribed has incomplete parameters list
(#585) Phpdocs for function pdfannotator_comment::get_subscribed_users has incomplete parameters list
(#647) Phpdocs for function pdfannotator_comment::get_questions_search has incomplete parameters list
mod/pdfannotator/model/overviewtable.php
(#51) Phpdocs for function overviewtable::wrap has incomplete parameters list
mod/pdfannotator/model/pdfannotator.php
(#62) Phpdocs for function pdfannotator_instance::get_pdfannotator_instances has incomplete parameters list
mod/pdfannotator/model/statistics.class.php
(#46) Phpdocs for function pdfannotator_statistics::get_comments_annotator has incomplete parameters list
(#63) Phpdocs for function pdfannotator_statistics::get_comments_course has incomplete parameters list
(#80) Phpdocs for function pdfannotator_statistics::get_comments_average_annotator has incomplete parameters list
(#96) Phpdocs for function pdfannotator_statistics::get_comments_average_course has incomplete parameters list
(#110) Phpdocs for function pdfannotator_statistics::get_reports_annotator has incomplete parameters list
(#119) Phpdocs for function pdfannotator_statistics::get_reports_course has incomplete parameters list
(#174) Phpdocs for function pdfannotator_statistics::get_chartdata has incomplete parameters list
(#226) Phpdocs for function pdfannotator_statistics::count_comments_annotator has incomplete parameters list
(#242) Phpdocs for function pdfannotator_statistics::count_private_comments has incomplete parameters list
mod/pdfannotator/renderer.php
(#31) Phpdocs for function mod_pdfannotator_renderer::render_index has incomplete parameters list
(#39) Phpdocs for function mod_pdfannotator_renderer::render_statistic has incomplete parameters list
(#49) Phpdocs for function mod_pdfannotator_renderer::render_dropdownmenu has incomplete parameters list
(#96) Phpdocs for function mod_pdfannotator_renderer::pdfannotator_create_tab has incomplete parameters list
(#117) Phpdocs for function mod_pdfannotator_renderer::pdfannotator_render_tabs has incomplete parameters list

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


grunt changes

(1 errors, 1 warnings)

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

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

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 22 warnings)

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

mod/pdfannotator/templates/add_comment_editor_placeholder.mustache
(#1) Example context missing (@template section not found.)
mod/pdfannotator/templates/comment.mustache
(#1) Example context missing (@template section not found.)
(#1) Template produced no content
mod/pdfannotator/templates/dropdownmenu.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 4: Possible misuse of “aria-label”. (If you disagree with this warning, file an issue report or send e-mail to www-validator@w3.org.) (> <i class="icon fa fa-cog fa-fw" aria-hidden="true" title="((+actiondropdown%2C+pdfannotator+))" aria-label="((+actiondropdown%2C+pdfannotator+))"></i> )
(#1) HTML Validation error, line 7: Bad value “button” for attribute “type” on element “a”: Subtype missing. ( <li><a href="" class="dropdown-item " type="button"> )
(#1) HTML Validation error, line 3: The “aria-controls” attribute must point to an element in the same document. (own"> <a tabindex="0" class="dropdown-toggle icon-no-margin" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" aria-controls="action-menu-3-menu"> )
mod/pdfannotator/templates/edit_comment_editor_placeholder.mustache
(#1) Example context missing (@template section not found.)
mod/pdfannotator/templates/index.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 21: Attribute “alt” not allowed on element “button” at this point. ( <button id="scaleMinus" class="" title="((+zoomout%2C+pdfannotator+))" alt="((+zoomout%2C+pdfannotator+))"> )
(#1) HTML Validation error, line 22: Attribute “alt” not allowed on element “i” at this point. ( <i class="icon fa fa-minus-circle fa-lg" title="((+zoomout%2C+pdfannotator+))" alt="((+zoomout%2C+pdfannotator+))"></i> )
(#1) HTML Validation error, line 24: Attribute “alt” not allowed on element “button” at this point. ( --><button id="scalePlus" class="" title="((+zoomin%2C+pdfannotator+))" alt="((+zoomin%2C+pdfannotator+))"> )
(#1) HTML Validation error, line 25: Attribute “alt” not allowed on element “i” at this point. ( <i class="icon fa fa-plus-circle fa-lg" title="((+zoomin%2C+pdfannotator+))" alt="((+zoomin%2C+pdfannotator+))"></i> )
(#1) HTML Validation error, line 42: Attribute value missing. (tator+))"><img class="icon " alt="((+hideAnnotations%2C+pdfannotator+))" title="((+hideAnnotations%2C+pdfannotator+))" src=></a><!)
(#1) HTML Validation info, line 42: Attribute “src” without an explicit value seen. The attribute may be dropped by IE7. (tator+))"><img class="icon " alt="((+hideAnnotations%2C+pdfannotator+))" title="((+hideAnnotations%2C+pdfannotator+))" src=></a><!)
(#1) HTML Validation error, line 42: Bad value “” for attribute “src” on element “img”: Must be non-empty. (tator+))"><img class="icon " alt="((+hideAnnotations%2C+pdfannotator+))" title="((+hideAnnotations%2C+pdfannotator+))" src=></a><!)
(#1) HTML Validation error, line 47: Attribute “alt” not allowed on element “button” at this point. ( <button id="prevPage" class="" title="((+prevPage%2C+pdfannotator+))" alt="((+prevPage%2C+pdfannotator+))"> )
(#1) HTML Validation error, line 48: Attribute “alt” not allowed on element “i” at this point. ( <i class="icon fa fa-arrow-circle-up fa-lg" title="((+prevPage%2C+pdfannotator+))" alt="((+prevPage%2C+pdfannotator+))"></i> )
(#1) HTML Validation error, line 50: Attribute “alt” not allowed on element “button” at this point. ( --><button id="nextPage" class="" title="((+nextPage%2C+pdfannotator+))" alt="((+nextPage%2C+pdfannotator+))"> )
(#1) HTML Validation error, line 51: Attribute “alt” not allowed on element “i” at this point. ( <i class="icon fa fa-arrow-circle-down fa-lg" title="((+nextPage%2C+pdfannotator+))" alt="((+nextPage%2C+pdfannotator+))"></i> )
(#1) HTML Validation error, line 90: Attribute “visiblewidth” not allowed on element “span” at this point. ( <span class="spacer" visiblewidth="1"></span)
(#1) HTML Validation error, line 100: Attribute “visiblewidth” not allowed on element “span” at this point. ( <span class="spacer" visiblewidth="1"></span)
(#1) HTML Validation error, line 102: Attribute “alt” not allowed on element “button” at this point. ( <button id="searchButton" class="btn-link" title="((+search%2C+pdfannotator+))" alt="((+search%2C+pdfannotator+))"> )
(#1) HTML Validation error, line 103: Attribute “alt” not allowed on element “i” at this point. ( <i class="icon fa fa-search fa-fw" title="((+search%2C+pdfannotator+))" alt="((+search%2C+pdfannotator+))"></i> )
mod/pdfannotator/templates/statistic.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

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