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

(59 errors, 77 warnings)

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

blocks/myprograms/block_myprograms.php
(#26) Missing docblock for function init
(#30) Missing docblock for function get_content
(#66) Expected 1 blank line at end of file; 2 found
blocks/myprograms/classes/output/mobile.php
(#1) DocBlock missing a @package tag for file mobile.php. Expected @package block_myprograms
(#31) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#35) Missing docblock for class mobile
(#35) Opening brace must not be followed by a blank line
(#73) Expected 1 space after FUNCTION keyword; 0 found
(#73) Multi-line function declarations must define one parameter per line
(#73) The first parameter of a multi-line use declaration must be on the line after the opening bracket
(#74) Multi-line use declarations must define one parameter per line
(#74) Multi-line use declarations must define one parameter per line
(#74) Multi-line use declarations must define one parameter per line
(#74) The closing parenthesis of a multi-line use declaration must be on a new line
(#77) Opening parenthesis of a multi-line function call must be the last content on the line
(#78) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#78) Closing parenthesis of a multi-line function call must be on a line by itself
(#146) Opening parenthesis of a multi-line function call must be the last content on the line
(#146) Only one argument is allowed per line in a multi-line function call
(#147) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#147) Only one argument is allowed per line in a multi-line function call
(#147) Only one argument is allowed per line in a multi-line function call
(#147) Only one argument is allowed per line in a multi-line function call
(#147) Closing parenthesis of a multi-line function call must be on a line by itself
(#177) Expected 1 space after FUNCTION keyword; 0 found
(#229) There should be a comma after the last array item in a multi-line array.
(#234) Missing docblock for function get_program_image
(#240) Opening parenthesis of a multi-line function call must be the last content on the line
(#241) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#241) Expected at least 1 space before "."; 0 found
(#241) Only one argument is allowed per line in a multi-line function call
(#241) Closing parenthesis of a multi-line function call must be on a line by itself
(#247) Missing docblock for function get_program_status_for_display
(#253) Line exceeds 132 characters; contains 154 characters
(#255) Line exceeds 132 characters; contains 133 characters
(#258) Line exceeds 132 characters; contains 135 characters
(#272) Missing docblock for function get_course_for_display
(#274) Short array syntax must be used to define arrays
(#278) Short array syntax must be used to define arrays
(#292) Expected 1 space after FUNCTION keyword; 0 found
(#294) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#294) Only one argument is allowed per line in a multi-line function call
(#294) Closing parenthesis of a multi-line function call must be on a line by itself
blocks/myprograms/classes/privacy/provider.php
(#28) Missing docblock for function get_reason
(#28) There must not be a space before the colon in a return type declaration
blocks/myprograms/db/access.php
(#20) Incorrect @package tag for file access.php. Expected block_myprograms, found enrol_programs.
(#28) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#37) There should be a comma after the last array item in a multi-line array.
(#40) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#47) There should be a comma after the last array item in a multi-line array.
(#49) Whitespace found at end of line
blocks/myprograms/db/install.php
(#20) Incorrect @package tag for function xmldb_block_myprograms_install. Expected block_myprograms, found enrol_programs.
(#27) Expected 1 blank line at end of file; 2 found
blocks/myprograms/db/mobile.php
(#1) DocBlock missing a @package tag for file mobile.php. Expected @package block_myprograms
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#35) There should be a comma after the last array item in a multi-line array.
(#36) There should be a comma after the last array item in a multi-line array.
(#48) There should be a comma after the last array item in a multi-line array.
(#49) There should be a comma after the last array item in a multi-line array.
blocks/myprograms/lang/ar/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/ca/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/cs/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/da/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/de/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/en/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/es/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/eu/block_myprograms.php
(#28) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#31) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#42) The string key "programdue" is not in the correct order, it should be before "programend"
blocks/myprograms/lang/fi/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/fr/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/gl/block_myprograms.php
(#28) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#31) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#42) The string key "programdue" is not in the correct order, it should be before "programend"
blocks/myprograms/lang/it/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/ja/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/nl/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/pl/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/pt_br/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/th/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/tr/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"
blocks/myprograms/lang/zh_tw/block_myprograms.php
(#29) The string key "myprograms:addinstance" is not in the correct order, it should be before "myprograms:myaddinstance"
(#32) The string key "allocationdate" is not in the correct order, it should be before "privacy:metadata"
(#43) The string key "programdue" is not in the correct order, it should be before "programend"
(#54) The string key "noresult" is not in the correct order, it should be before "sequencetype"

Javascript coding style problems

(4 errors, 1 warnings)

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

blocks/myprograms/mobile/js/programsview.js
(#41) Missing semicolon. (semi)
(#51) Missing semicolon. (semi)
(#63) Expected space(s) after "if". (keyword-spacing)
(#76) Trailing spaces not allowed. (no-trailing-spaces)
(#91) Missing semicolon. (semi)

CSS problems

(35 errors, 1 warnings)

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

blocks/myprograms/mobile/style.css
(#24) Unexpected !important (declaration-no-important)
(#24) Unexpected unit (length-zero-no-unit)
(#43) Unexpected unknown pseudo-element selector "::ng-deep" (selector-pseudo-element-no-unknown)
(#50) Unexpected unknown pseudo-element selector "::ng-deep" (selector-pseudo-element-no-unknown)
(#55) Unexpected unknown pseudo-element selector "::ng-deep" (selector-pseudo-element-no-unknown)
(#59) Unexpected unknown pseudo-element selector "::ng-deep" (selector-pseudo-element-no-unknown)
(#5) Unexpected unknown type selector "ion-avatar" (selector-type-no-unknown)
(#13) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#18) Unexpected unknown type selector "ion-label" (selector-type-no-unknown)
(#31) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#36) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#36) Unexpected unknown type selector "ion-col" (selector-type-no-unknown)
(#42) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#42) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#42) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#43) Unexpected unknown type selector "core-combobox" (selector-type-no-unknown)
(#42) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#49) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#49) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#49) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#50) Unexpected unknown type selector "core-combobox" (selector-type-no-unknown)
(#49) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#54) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#54) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#54) Unexpected unknown type selector "ion-icon" (selector-type-no-unknown)
(#54) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#55) Unexpected unknown type selector "core-combobox" (selector-type-no-unknown)
(#54) Unexpected unknown type selector "ion-button" (selector-type-no-unknown)
(#54) Unexpected unknown type selector "ion-icon" (selector-type-no-unknown)
(#59) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#59) Unexpected unknown type selector "core-combobox" (selector-type-no-unknown)
(#59) Unexpected unknown type selector "ion-select" (selector-type-no-unknown)
(#64) Unexpected unknown type selector "ion-row" (selector-type-no-unknown)
(#64) Unexpected unknown type selector "ion-searchbar" (selector-type-no-unknown)
(#68) Unexpected unknown type selector "core-empty-box" (selector-type-no-unknown)
(#73) Unexpected unknown type selector "core-empty-box" (selector-type-no-unknown)

PHPDocs style problems

(0 errors, 0 warnings)

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


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

(2 errors, 0 warnings)

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

blocks/myprograms/templates/mobile_program_page.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
blocks/myprograms/templates/mobile_programs_overview_page.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error

Gherkin .feature problems

(0 errors, 0 warnings)

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