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

(138 errors, 5 warnings)

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

local/custompage/classes/custom_context/context_custompage.php
(#50) Line indented incorrectly; expected at least 4 spaces, found 2
(#60) Line indented incorrectly; expected at least 4 spaces, found 2
(#83) Line indented incorrectly; expected at least 4 spaces, found 2
(#93) Line indented incorrectly; expected at least 4 spaces, found 2
(#109) Line indented incorrectly; expected at least 4 spaces, found 2
(#145) Line indented incorrectly; expected at least 4 spaces, found 2
(#174) Line indented incorrectly; expected at least 4 spaces, found 2
(#201) Line indented incorrectly; expected at least 8 spaces, found 6
(#209) Line indented incorrectly; expected at least 4 spaces, found 2
(#235) No space found before comment text; expected "// $sql = "UPDATE {context}" but found "//$sql = "UPDATE {context}"
(#236) Expected 1 space before comment text but found 11; use block comment if you need indentation
(#237) Expected 1 space before comment text but found 15; use block comment if you need indentation
(#238) Expected 1 space before comment text but found 9; use block comment if you need indentation
(#239) Expected 1 space before comment text but found 15; use block comment if you need indentation
(#240) Expected 1 space before comment text but found 29; use block comment if you need indentation
(#241) Expected 1 space before comment text but found 28; use block comment if you need indentation
(#242) Expected 1 space before comment text but found 15; use block comment if you need indentation
(#243) Inline comments must end in full-stops, exclamation marks, or question marks
(#243) No space found before comment text; expected "// $DB->execute($sql);" but found "//$DB->execute($sql);"
(#246) Line exceeds 132 characters; contains 142 characters
(#247) Inline comments must end in full-stops, exclamation marks, or question marks
(#247) No space found before comment text; expected "// $maxdepth = $DB->get_field_sql("SELECT MAX(depth) FROM {local_custompages}");" but found "//$maxdepth = $DB->get_field_sql("SELECT MAX(depth) FROM {local_custompages}");"
local/custompage/classes/custompage/audience/admins.php
(#35) Line indented incorrectly; expected at least 4 spaces, found 2
(#45) Line indented incorrectly; expected at least 4 spaces, found 2
(#62) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/custompage/audience/allusers.php
(#36) Line indented incorrectly; expected at least 4 spaces, found 2
(#60) Line indented incorrectly; expected at least 4 spaces, found 2
(#70) Line indented incorrectly; expected at least 4 spaces, found 2
(#80) Line indented incorrectly; expected at least 4 spaces, found 2
(#91) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/custompage/audience/guests.php
(#35) Line indented incorrectly; expected at least 4 spaces, found 2
(#45) Line indented incorrectly; expected at least 4 spaces, found 2
(#62) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/custompage/audience/manual.php
(#37) Line indented incorrectly; expected at least 4 spaces, found 2
(#58) Line indented incorrectly; expected at least 4 spaces, found 2
(#76) Line indented incorrectly; expected at least 4 spaces, found 2
(#86) Line indented incorrectly; expected at least 4 spaces, found 2
(#110) Line indented incorrectly; expected at least 4 spaces, found 2
(#121) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/custompage/audience/systemrole.php
(#36) Line indented incorrectly; expected at least 4 spaces, found 2
(#50) Line indented incorrectly; expected at least 4 spaces, found 2
(#78) Line indented incorrectly; expected at least 4 spaces, found 2
(#88) Line indented incorrectly; expected at least 4 spaces, found 2
(#102) Line indented incorrectly; expected at least 4 spaces, found 2
(#118) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/event/audience_created.php
(#50) Line indented incorrectly; expected at least 4 spaces, found 2
(#70) Line indented incorrectly; expected at least 4 spaces, found 2
(#105) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/event/audience_deleted.php
(#50) Line indented incorrectly; expected at least 4 spaces, found 2
(#70) Line indented incorrectly; expected at least 4 spaces, found 2
(#106) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/event/audience_updated.php
(#50) Line indented incorrectly; expected at least 4 spaces, found 2
(#70) Line indented incorrectly; expected at least 4 spaces, found 2
(#106) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/event/custompage_created.php
(#51) Line indented incorrectly; expected at least 4 spaces, found 2
(#72) Line indented incorrectly; expected at least 4 spaces, found 2
(#103) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/event/custompage_deleted.php
(#52) Line indented incorrectly; expected at least 4 spaces, found 2
(#81) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/event/custompage_updated.php
(#51) Line indented incorrectly; expected at least 4 spaces, found 2
(#72) Line indented incorrectly; expected at least 4 spaces, found 2
(#103) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/external/audiences/delete.php
(#59) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/external/custom_page_audience_cards_exporter.php
(#37) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/external/page/delete.php
(#45) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/form/audience.php
(#172) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/form/page.php
(#48) Line indented incorrectly; expected at least 4 spaces, found 2
(#69) Line indented incorrectly; expected at least 12 spaces, found 10
(#106) Line indented incorrectly; expected at least 4 spaces, found 2
(#147) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/hook_callbacks.php
(#25) Incorrect @package tag for class hook_callbacks. Expected local_custompage, found tool_policy.
(#39) Line indented incorrectly; expected at least 12 spaces, found 10
(#40) Line indented incorrectly; expected at least 12 spaces, found 10
(#44) Missing docblock for function after_config
(#45) Line indented incorrectly; expected at least 8 spaces, found 6
(#46) Line indented incorrectly; expected at least 8 spaces, found 6
(#48) Line indented incorrectly; expected at least 8 spaces, found 6
(#50) Line indented incorrectly; expected at least 8 spaces, found 6
(#52) Line indented incorrectly; expected 8 spaces, found 6
(#53) Line indented incorrectly; expected at least 12 spaces, found 8
(#54) Line indented incorrectly; expected 8 spaces, found 6
(#55) Line indented incorrectly; expected at least 12 spaces, found 8
(#56) Line indented incorrectly; expected 8 spaces, found 6
local/custompage/classes/local/audiences/base.php
(#49) Line indented incorrectly; expected at least 4 spaces, found 2
(#76) Line indented incorrectly; expected at least 4 spaces, found 2
(#105) Line indented incorrectly; expected at least 4 spaces, found 2
(#163) Line indented incorrectly; expected at least 4 spaces, found 2
(#217) Line indented incorrectly; expected at least 4 spaces, found 2
(#227) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/local/custompage/page.php
(#39) Member variable "page_persistent" must not contain underscores.
(#41) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/local/helpers/audience.php
(#41) Line indented incorrectly; expected at least 4 spaces, found 2
(#59) Line indented incorrectly; expected at least 4 spaces, found 2
(#60) Line exceeds 132 characters; contains 134 characters
(#125) Line indented incorrectly; expected at least 4 spaces, found 2
(#152) Line indented incorrectly; expected at least 4 spaces, found 2
(#172) Line indented incorrectly; expected at least 4 spaces, found 2
(#222) Line indented incorrectly; expected at least 4 spaces, found 2
(#251) Line indented incorrectly; expected at least 4 spaces, found 2
(#279) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/local/helpers/page.php
(#58) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/local/models/audience.php
(#96) Line indented incorrectly; expected at least 4 spaces, found 2
(#109) Line indented incorrectly; expected at least 4 spaces, found 2
(#122) Line indented incorrectly; expected at least 4 spaces, found 2
(#132) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/local/models/page.php
(#101) Line indented incorrectly; expected at least 4 spaces, found 2
(#112) Line indented incorrectly; expected at least 4 spaces, found 2
(#122) Line indented incorrectly; expected at least 4 spaces, found 2
(#132) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/manager.php
(#44) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/output/audience_heading_editable.php
(#45) Line indented incorrectly; expected at least 4 spaces, found 2
(#80) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/output/dynamictabs/access.php
(#40) Line indented incorrectly; expected at least 4 spaces, found 2
(#61) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/output/dynamictabs/audience.php
(#38) Line indented incorrectly; expected at least 4 spaces, found 2
(#65) Line indented incorrectly; expected at least 4 spaces, found 2
(#94) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/output/dynamictabs/content.php
(#38) Line indented incorrectly; expected at least 4 spaces, found 2
(#60) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/output/dynamictabs/details.php
(#36) Line indented incorrectly; expected at least 4 spaces, found 2
(#53) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/output/page_contents.php
(#41) Member variable "page_persistent" must not contain underscores.
(#69) Line exceeds 132 characters; contains 144 characters
local/custompage/classes/output/page_deatils.php
(#41) Member variable "page_persistent" must not contain underscores.
local/custompage/classes/output/page_name_editable.php
(#80) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/output/page_title_editable.php
(#80) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/output/renderer.php
(#37) Line indented incorrectly; expected at least 4 spaces, found 2
(#50) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/permission.php
(#49) Line indented incorrectly; expected at least 4 spaces, found 2
(#84) Line indented incorrectly; expected at least 4 spaces, found 2
(#124) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/privacy/provider.php
(#76) Line indented incorrectly; expected at least 4 spaces, found 2
(#142) Line indented incorrectly; expected at least 4 spaces, found 2
(#205) Line indented incorrectly; expected at least 4 spaces, found 2
(#225) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/classes/reportbuilder/local/entities/custompages.php
(#47) There should be a comma after the last array item in a multi-line array.
(#51) Missing docblock for function get_default_tables
(#52) Line indented incorrectly; expected at least 8 spaces, found 6
(#53) There should be a comma after the last array item in a multi-line array.
(#54) Line indented incorrectly; expected at least 8 spaces, found 6
(#84) Line indented incorrectly; expected at least 4 spaces, found 2
(#142) Line indented incorrectly; expected at least 4 spaces, found 2
local/custompage/settings.php
(#26) Inline doc block comments are not allowed; use "// Comment." instead

Javascript coding style problems

(3 errors, 3 warnings)

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

local/custompage/amd/src/audience.js
(#159) Avoid nesting promises. (promise/no-nesting)
(#159) Avoid nesting promises. (promise/no-nesting)
(#159) Avoid nesting promises. (promise/no-nesting)
local/custompage/amd/src/details.js
(#25) 'prefetchStrings' is defined but never used. (no-unused-vars)
(#46) 'contextid' is defined but never used. (no-unused-vars)
(#63) 'data' is defined but never used. (no-unused-vars)

CSS problems

(17 errors, 0 warnings)

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

local/custompage/styles.css
(#73) Expected single space before "{" (block-opening-brace-space-before)
(#77) Expected single space before "{" (block-opening-brace-space-before)
(#22) Unexpected !important (declaration-no-important)
(#77) Expected newline after "," (selector-list-comma-newline-after)
(#77) Expected newline after "," (selector-list-comma-newline-after)
(#77) Expected newline after "," (selector-list-comma-newline-after)
(#51) Expected indentation of 4 spaces (indentation)
(#52) Expected indentation of 4 spaces (indentation)
(#53) Expected indentation of 4 spaces (indentation)
(#54) Expected indentation of 4 spaces (indentation)
(#58) Expected indentation of 4 spaces (indentation)
(#59) Expected indentation of 4 spaces (indentation)
(#60) Expected indentation of 4 spaces (indentation)
(#61) Expected indentation of 4 spaces (indentation)
(#65) Expected indentation of 4 spaces (indentation)
(#69) Expected indentation of 4 spaces (indentation)
(#70) Expected indentation of 4 spaces (indentation)

PHPDocs style problems

(4 errors, 0 warnings)

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

local/custompage/classes/output/renderer.php
(#81) Phpdocs for function renderer::render_page_deatils has incomplete parameters list
(#92) Phpdocs for function renderer::render_page_contents has incomplete parameters list
local/custompage/classes/reportbuilder/local/systemreports/pages_list.php
(#91) Phpdocs for function pages_list::add_columns has incomplete parameters list
(#153) Phpdocs for function pages_list::add_filters 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 "eslint:amd" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(1 errors, 3 warnings)

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

local/custompage/templates/local/dynamictabs/audience.mustache
(#1) ESLint error []: Parsing error: Unexpected token , ( audience.init(, 1);
local/custompage/templates/local/dynamictabs/content.mustache
(#1) Example context missing.
local/custompage/templates/local/dynamictabs/details.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/custompage/templates/page_details.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]