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

(20 errors, 15 warnings)

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

user/profile/field/conditional/classes/external.php
(#45) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#80) There should be a comma after the last array item in a multi-line array.
user/profile/field/conditional/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) Import statements must not begin with a leading backslash
(#30) Import statements must not begin with a leading backslash
(#31) Import statements must not begin with a leading backslash
(#52) There must not be a space before the colon in a return type declaration
(#57) There should be a comma after the last array item in a multi-line array.
(#67) There must not be a space before the colon in a return type declaration
(#78) There should be a comma after the last array item in a multi-line array.
(#107) There should be a comma after the last array item in a multi-line array.
(#128) There should be a comma after the last array item in a multi-line array.
(#187) There should be a comma after the last array item in a multi-line array.
(#211) There should be a comma after the last array item in a multi-line array.
user/profile/field/conditional/classes/rule_required.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#45) Public method name "rule_required::getValidationScript" must be in lower-case letters only
(#51) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#91) File must end with a newline character
user/profile/field/conditional/classes/rule_required_remove.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) Expected 1 space before opening brace; found 2
(#80) File must end with a newline character
user/profile/field/conditional/db/services.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
user/profile/field/conditional/field.class.php
(#166) Logical operator "and" is prohibited; use "&&" instead
user/profile/field/conditional/lang/en/profilefield_conditional.php
(#43) The string key "privacy:metadata:profilefield_conditional:fieldid" is not in the correct order, it should be before "privacy:metadata:profilefield_conditional:userid"
(#44) The string key "privacy:metadata:profilefield_conditional:data" is not in the correct order, it should be before "privacy:metadata:profilefield_conditional:fieldid"
(#49) Unexpected string end, it should be a line feed after a semicolon
(#49) File must end with a newline character
user/profile/field/conditional/version.php
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) Short array syntax must be used to define arrays

Javascript coding style problems

(0 errors, 3 warnings)

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

user/profile/field/conditional/amd/src/conditionconfig.js
(#72) Comments should not begin with a lowercase character. (capitalized-comments)
(#167) Unexpected space before function parentheses. (space-before-function-paren)
(#172) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(0 errors, 0 warnings)

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


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

(2 errors, 0 warnings)

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

user/profile/field/conditional/amd/build/otherfields.min.js
Uncommitted change detected.
user/profile/field/conditional/amd/build/otherfields.min.js.map
Uncommitted change detected.

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]

user/profile/field/conditional/templates/condition_configuration_page.mustache
(#1) HTML Validation info, line 24: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="required_would-be-a-uniqid_0_1" data-field="profilefield_conditional_field_required_Option 1_CF1" class="form-check-input profilefield_conditional_field_required" /> )
(#1) HTML Validation info, line 35: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hidden_would-be-a-uniqid_0_1" data-field="profilefield_conditional_field_hidden_Option 1_CF1" class="form-check-input profilefield_conditional_field_hidden" /> )
(#1) HTML Validation info, line 46: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hiddencleared_would-be-a-uniqid_0_1" data-field="profilefield_conditional_field_hiddencleared_Option 1_CF1" class="form-check-input profilefield_conditional_field_hiddencleared" /> )
(#1) HTML Validation info, line 59: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="required_would-be-a-uniqid_0_2" data-field="profilefield_conditional_field_required_Option 1_CF2" class="form-check-input profilefield_conditional_field_required" /> )
(#1) HTML Validation info, line 70: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hidden_would-be-a-uniqid_0_2" data-field="profilefield_conditional_field_hidden_Option 1_CF2" class="form-check-input profilefield_conditional_field_hidden" /> )
(#1) HTML Validation info, line 81: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hiddencleared_would-be-a-uniqid_0_2" data-field="profilefield_conditional_field_hiddencleared_Option 1_CF2" class="form-check-input profilefield_conditional_field_hiddencleared" /> )
(#1) HTML Validation info, line 94: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="required_would-be-a-uniqid_0_3" data-field="profilefield_conditional_field_required_Option 1_CF3" class="form-check-input profilefield_conditional_field_required" /> )
(#1) HTML Validation info, line 105: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hidden_would-be-a-uniqid_0_3" data-field="profilefield_conditional_field_hidden_Option 1_CF3" class="form-check-input profilefield_conditional_field_hidden" /> )
(#1) HTML Validation info, line 116: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hiddencleared_would-be-a-uniqid_0_3" data-field="profilefield_conditional_field_hiddencleared_Option 1_CF3" class="form-check-input profilefield_conditional_field_hiddencleared" /> )
(#1) HTML Validation info, line 129: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="required_would-be-a-uniqid_0_4" data-field="profilefield_conditional_field_required_Option 1_CF4" class="form-check-input profilefield_conditional_field_required" /> )
(#1) HTML Validation info, line 140: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hidden_would-be-a-uniqid_0_4" data-field="profilefield_conditional_field_hidden_Option 1_CF4" class="form-check-input profilefield_conditional_field_hidden" /> )
(#1) HTML Validation info, line 151: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hiddencleared_would-be-a-uniqid_0_4" data-field="profilefield_conditional_field_hiddencleared_Option 1_CF4" class="form-check-input profilefield_conditional_field_hiddencleared" /> )
(#1) HTML Validation info, line 167: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="required_would-be-a-uniqid_1_1" data-field="profilefield_conditional_field_required_Option 2_CF1" class="form-check-input profilefield_conditional_field_required" /> )
(#1) HTML Validation info, line 178: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hidden_would-be-a-uniqid_1_1" data-field="profilefield_conditional_field_hidden_Option 2_CF1" class="form-check-input profilefield_conditional_field_hidden" /> )
(#1) HTML Validation info, line 189: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hiddencleared_would-be-a-uniqid_1_1" data-field="profilefield_conditional_field_hiddencleared_Option 2_CF1" class="form-check-input profilefield_conditional_field_hiddencleared" /> )
(#1) HTML Validation info, line 202: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="required_would-be-a-uniqid_1_2" data-field="profilefield_conditional_field_required_Option 2_CF2" class="form-check-input profilefield_conditional_field_required" /> )
(#1) HTML Validation info, line 213: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hidden_would-be-a-uniqid_1_2" data-field="profilefield_conditional_field_hidden_Option 2_CF2" class="form-check-input profilefield_conditional_field_hidden" /> )
(#1) HTML Validation info, line 224: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hiddencleared_would-be-a-uniqid_1_2" data-field="profilefield_conditional_field_hiddencleared_Option 2_CF2" class="form-check-input profilefield_conditional_field_hiddencleared" /> )
(#1) HTML Validation info, line 237: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="required_would-be-a-uniqid_1_3" data-field="profilefield_conditional_field_required_Option 2_CF3" class="form-check-input profilefield_conditional_field_required" /> )
(#1) HTML Validation info, line 248: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hidden_would-be-a-uniqid_1_3" data-field="profilefield_conditional_field_hidden_Option 2_CF3" class="form-check-input profilefield_conditional_field_hidden" /> )
(#1) HTML Validation info, line 259: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hiddencleared_would-be-a-uniqid_1_3" data-field="profilefield_conditional_field_hiddencleared_Option 2_CF3" class="form-check-input profilefield_conditional_field_hiddencleared" /> )
(#1) HTML Validation info, line 272: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="required_would-be-a-uniqid_1_4" data-field="profilefield_conditional_field_required_Option 2_CF4" class="form-check-input profilefield_conditional_field_required" /> )
(#1) HTML Validation info, line 283: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hidden_would-be-a-uniqid_1_4" data-field="profilefield_conditional_field_hidden_Option 2_CF4" class="form-check-input profilefield_conditional_field_hidden" /> )
(#1) HTML Validation info, line 294: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <input type="checkbox" id="hiddencleared_would-be-a-uniqid_1_4" data-field="profilefield_conditional_field_hiddencleared_Option 2_CF4" class="form-check-input profilefield_conditional_field_hiddencleared" /> )
(#1) HTML Validation info, line 305: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (t-2"> <input type="button" class="btn btn-secondary" data-action="cancel" value="((cancel))"/> <)
(#1) HTML Validation info, line 306: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ())"/> <input type="button" class="btn btn-primary" data-action="close" value="((apply%2C+profilefield_conditional))"/></div)

Gherkin .feature problems

(0 errors, 0 warnings)

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