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

(34 errors, 13 warnings)

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

mod/customcert/ajax.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/customcert/backup/moodle2/backup_customcert_activity_task.class.php
(#59) Expected 1 space after "="; 0 found
(#63) Expected 1 space after "="; 0 found
mod/customcert/classes/admin_setting_link.php
(#19) Inline doc block comments are not allowed; use "// Comment." instead
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/customcert/classes/certificate.php
(#202) Inline comments must end in full-stops, exclamation marks, or question marks
(#215) Inline comments must end in full-stops, exclamation marks, or question marks
mod/customcert/classes/edit_form.php
(#281) Line exceeds 132 characters; contains 162 characters
mod/customcert/classes/element.php
(#200) Closing brace must be on a line by itself
mod/customcert/classes/element_helper.php
(#18) Expected 1 space(s) before asterisk; 0 found
(#19) Expected 1 space(s) before asterisk; 0 found
(#20) Expected 1 space(s) before asterisk; 0 found
(#21) Expected 1 space(s) before asterisk; 0 found
(#22) Expected 1 space(s) before asterisk; 0 found
(#23) Expected 1 space(s) before asterisk; 0 found
(#59) Must use "self::" for local static member reference
(#110) Must use "self::" for local static member reference
(#183) Must use "self::" for local static member reference
mod/customcert/classes/template.php
(#73) Expected 1 space before "="; 0 found
mod/customcert/classes/upload_image_form.php
(#46) Line exceeds 132 characters; contains 133 characters
(#59) Line exceeds 132 characters; contains 136 characters
mod/customcert/element/bgimage/classes/element.php
(#37) Line exceeds 132 characters; contains 133 characters
mod/customcert/element/code/classes/element.php
(#48) Line exceeds 132 characters; contains 140 characters
mod/customcert/element/date/classes/element.php
(#110) Line exceeds 132 characters; contains 140 characters
mod/customcert/element/grade/classes/element.php
(#56) Line exceeds 132 characters; contains 140 characters
mod/customcert/element/image/classes/element.php
(#67) Line exceeds 132 characters; contains 133 characters
(#232) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#263) Line exceeds 132 characters; contains 140 characters
mod/customcert/includes/colourpicker.php
(#42) Possible useless method overriding detected
(#42) Visibility must be declared on method "__construct"
(#42) Variable "elementName" must be all lower-case
(#42) Variable "elementLabel" must be all lower-case
(#43) Variable "elementName" must be all lower-case
(#43) Variable "elementLabel" must be all lower-case
(#53) method name "MoodleQuickForm_customcert_colourpicker::MoodleQuickForm_customcert_colourpicker" must be in lower-case letters only
(#53) Visibility must be declared on method "MoodleQuickForm_customcert_colourpicker"
(#53) Variable "elementName" must be all lower-case
(#53) Variable "elementLabel" must be all lower-case
(#54) Variable "elementName" must be all lower-case
(#54) Variable "elementLabel" must be all lower-case
(#62) Public method name "MoodleQuickForm_customcert_colourpicker::toHtml" must be in lower-case letters only
(#82) Public method name "MoodleQuickForm_customcert_colourpicker::getHelpButton" must be in lower-case letters only
(#82) Expected 1 space after closing parenthesis; found 0
mod/customcert/index.php
(#68) Expected 1 space after "=>"; newline found
mod/customcert/mod_form.php
(#56) Line exceeds 132 characters; contains 137 characters
mod/customcert/rearrange.php
(#99) Line indented incorrectly; expected at least 20 spaces, found 16
mod/customcert/view.php
(#121) Expected 1 space after "="; 2 found

Javascript coding style problems

(0 errors, 31 warnings)

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

mod/customcert/yui/src/rearrange/js/rearrange.js
(#15) Extra space after key 'templateid'. (key-spacing)
(#20) Extra space after key 'page'. (key-spacing)
(#25) Extra space after key 'elements'. (key-spacing)
(#30) Extra space after key 'pdfx'. (key-spacing)
(#35) Extra space after key 'pdfy'. (key-spacing)
(#40) Extra space after key 'pdfwidth'. (key-spacing)
(#45) Extra space after key 'pdfheight'. (key-spacing)
(#50) Extra space after key 'elementxy'. (key-spacing)
(#55) Extra space after key 'pdfleftboundary'. (key-spacing)
(#60) Extra space after key 'pdfrightboundary'. (key-spacing)
(#65) Extra space after key 'pixelsinmm'. (key-spacing)
(#67) Missing JSDoc parameter type for 'params'. (valid-jsdoc)
(#72) Extra space after key 'initializer'. (key-spacing)
(#105) Extra space after key 'set_data'. (key-spacing)
(#105) Identifier 'set_data' is not in camel case. (camelcase)
(#116) Extra space after key 'set_positions'. (key-spacing)
(#116) Identifier 'set_positions' is not in camel case. (camelcase)
(#146) Extra space after key 'create_events'. (key-spacing)
(#146) Identifier 'create_events' is not in camel case. (camelcase)
(#180) Missing JSDoc parameter type for 'node'. (valid-jsdoc)
(#186) Extra space after key 'is_out_of_bounds'. (key-spacing)
(#186) Identifier 'is_out_of_bounds' is not in camel case. (camelcase)
(#198) Multiple spaces found before '{'. (no-multi-spaces)
(#203) Multiple spaces found before '{'. (no-multi-spaces)
(#210) Missing JSDoc parameter type for 'e'. (valid-jsdoc)
(#215) Extra space after key 'save_positions'. (key-spacing)
(#215) Identifier 'save_positions' is not in camel case. (camelcase)
(#279) Missing JSDoc parameter type for 'response'. (valid-jsdoc)
(#285) Extra space after key 'ajax_failure'. (key-spacing)
(#285) Identifier 'ajax_failure' is not in camel case. (camelcase)
(#294) Identifier 'mod_customcert' is not in camel case. (camelcase)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(51 errors, 0 warnings)

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

mod/customcert/backup/moodle2/backup_customcert_activity_task.class.php
(#17) No one-line description found in phpdocs for file
(#50) Phpdocs for function backup_customcert_activity_task::encode_content_links has incomplete parameters list
(#30) Class backup_customcert_activity_task does not have @copyright tag
(#30) Class backup_customcert_activity_task does not have @license tag
mod/customcert/backup/moodle2/backup_customcert_stepslib.php
(#27) Class backup_customcert_activity_structure_step does not have @copyright tag
(#27) Class backup_customcert_activity_structure_step does not have @license tag
mod/customcert/backup/moodle2/restore_customcert_activity_task.class.php
(#29) No one-line description found in phpdocs for class restore_customcert_activity_task
(#29) Class restore_customcert_activity_task does not have @copyright tag
(#29) Class restore_customcert_activity_task does not have @license tag
mod/customcert/backup/moodle2/restore_customcert_stepslib.php
(#27) Class restore_customcert_activity_structure_step does not have @copyright tag
(#27) Class restore_customcert_activity_structure_step does not have @license tag
mod/customcert/classes/admin_setting_link.php
(#17) File-level phpdocs block is not found
(#43) Function admin_setting_link::__construct is not documented
(#28) Class admin_setting_link does not have @copyright tag
(#28) Class admin_setting_link does not have @license tag
(#28) Package is not specified for class admin_setting_link. It is also not specified in file-level phpdocs
mod/customcert/classes/certificate.php
(#29) Class certificate does not have @copyright tag
(#29) Class certificate does not have @license tag
mod/customcert/classes/edit_element_form.php
(#17) File-level phpdocs block is not found
mod/customcert/classes/edit_form.php
(#17) File-level phpdocs block is not found
(#126) Phpdocs for function edit_form::validation has incomplete parameters list
(#36) Phpdocs for variable edit_form::$tid does not contain @var or incorrect
(#41) Phpdocs for variable edit_form::$numpages does not contain @var or incorrect
mod/customcert/classes/element.php
(#29) Class element does not have @copyright tag
(#29) Class element does not have @license tag
mod/customcert/classes/element_helper.php
(#29) Class element_helper does not have @copyright tag
(#29) Class element_helper does not have @license tag
mod/customcert/classes/load_template_form.php
(#17) File-level phpdocs block is not found
mod/customcert/classes/page_helper.php
(#29) Class page_helper does not have @copyright tag
(#29) Class page_helper does not have @license tag
mod/customcert/classes/plugininfo/customcertelement.php
(#30) Class customcertelement is not documented
mod/customcert/classes/template.php
(#28) Package is not specified for class template. It is also not specified in file-level phpdocs
mod/customcert/classes/upload_image_form.php
(#17) File-level phpdocs block is not found
mod/customcert/element/bgimage/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/border/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/categoryname/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/code/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/coursename/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/date/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/grade/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/gradeitemname/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/image/classes/element.php
(#17) File-level phpdocs block is not found
(#30) Variable element::$filemanageroptions is not documented
mod/customcert/element/studentname/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/teachername/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/text/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/element/userfield/classes/element.php
(#17) File-level phpdocs block is not found
mod/customcert/includes/colourpicker.php
(#17) File-level phpdocs block is not found
(#30) Phpdocs for variable MoodleQuickForm_customcert_colourpicker::$_helpbutton does not contain @var or incorrect
mod/customcert/lib.php
(#253) There is no description in phpdocs for function customcert_supports
mod/customcert/mod_form.php
(#17) File-level phpdocs block is not found

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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