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

(64 errors, 76 warnings)

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

local/shopping_cart/classes/external/add_item_to_cart.php
(#57) Short array syntax must be used to define arrays
(#81) There should be a comma after the last array item in a multi-line array.
(#104) Short array syntax must be used to define arrays
(#114) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/classes/external/cancel_purchase.php
(#57) Short array syntax must be used to define arrays
(#63) There should be a comma after the last array item in a multi-line array.
(#112) Short array syntax must be used to define arrays
(#115) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/classes/external/confirm_cash_payment.php
(#57) Short array syntax must be used to define arrays
(#60) There should be a comma after the last array item in a multi-line array.
(#93) Short array syntax must be used to define arrays
(#97) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/classes/external/credit_paid_back.php
(#58) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#96) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/classes/external/delete_all_items_from_cart.php
(#56) Short array syntax must be used to define arrays
(#73) There should be a comma after the last array item in a multi-line array.
(#96) Short array syntax must be used to define arrays
local/shopping_cart/classes/external/delete_item_from_cart.php
(#58) Short array syntax must be used to define arrays
(#82) There should be a comma after the last array item in a multi-line array.
(#124) Short array syntax must be used to define arrays
local/shopping_cart/classes/external/get_history_items.php
(#59) Short array syntax must be used to define arrays
(#60) There should be a comma after the last array item in a multi-line array.
(#73) There should be a comma after the last array item in a multi-line array.
(#97) Short array syntax must be used to define arrays
(#104) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/classes/external/get_price.php
(#57) Short array syntax must be used to define arrays
(#75) There should be a comma after the last array item in a multi-line array.
(#122) Short array syntax must be used to define arrays
(#135) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/classes/external/get_quota_consumed.php
(#57) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
local/shopping_cart/classes/external/get_shopping_cart_items.php
(#58) Short array syntax must be used to define arrays
(#59) There should be a comma after the last array item in a multi-line array.
(#73) There should be a comma after the last array item in a multi-line array.
(#100) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#141) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/classes/form/dynamic_select_users.php
(#88) There should be a comma after the last array item in a multi-line array.
(#152) Short array syntax must be used to define arrays
local/shopping_cart/classes/form/modal_add_discount_to_item.php
(#209) Short array syntax must be used to define arrays
local/shopping_cart/classes/form/modal_cancel_addcredit.php
(#208) Short array syntax must be used to define arrays
local/shopping_cart/classes/form/modal_cancel_all_addcredit.php
(#193) Short array syntax must be used to define arrays
local/shopping_cart/classes/form/modal_cashier_manual_rebook.php
(#137) Short array syntax must be used to define arrays
local/shopping_cart/classes/form/modal_cashout.php
(#152) Short array syntax must be used to define arrays
local/shopping_cart/classes/form/modal_cashtransfer.php
(#192) Short array syntax must be used to define arrays
local/shopping_cart/classes/form/modal_creditsmanager.php
(#296) Short array syntax must be used to define arrays
local/shopping_cart/classes/local/entities/cartitem.php
(#177) Short array syntax must be used to define arrays
local/shopping_cart/classes/shopping_cart.php
(#672) There should be a comma after the last array item in a multi-line array.
(#681) There should be a comma after the last array item in a multi-line array.
(#710) There should be a comma after the last array item in a multi-line array.
(#851) There should be a comma after the last array item in a multi-line array.
(#859) There should be a comma after the last array item in a multi-line array.
(#897) There should be a comma after the last array item in a multi-line array.
(#907) There should be a comma after the last array item in a multi-line array.
(#917) There should be a comma after the last array item in a multi-line array.
(#1003) There should be a comma after the last array item in a multi-line array.
(#1027) There should be a comma after the last array item in a multi-line array.
(#1033) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/classes/shopping_cart_history.php
(#657) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/classes/taxcategories.php
(#188) Short array syntax must be used to define arrays
(#191) Short array syntax must be used to define arrays
(#195) Short array syntax must be used to define arrays
(#213) Short array syntax must be used to define arrays
(#238) Short array syntax must be used to define arrays
(#238) Short array syntax must be used to define arrays
(#257) Short array syntax must be used to define arrays
local/shopping_cart/db/access.php
(#34) There should be a comma after the last array item in a multi-line array.
(#42) There should be a comma after the last array item in a multi-line array.
(#61) There should be a comma after the last array item in a multi-line array.
(#73) There should be a comma after the last array item in a multi-line array.
(#75) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/db/caches.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#32) There should be a comma after the last array item in a multi-line array.
(#34) Short array syntax must be used to define arrays
(#38) 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
(#44) There should be a comma after the last array item in a multi-line array.
(#46) Short array syntax must be used to define arrays
(#51) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/db/events.php
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
local/shopping_cart/db/services.php
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#30) 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.
(#44) There should be a comma after the last array item in a multi-line array.
(#47) Short array syntax must be used to define arrays
(#48) Short array syntax must be used to define arrays
(#53) There should be a comma after the last array item in a multi-line array.
(#55) Short array syntax must be used to define arrays
(#60) There should be a comma after the last array item in a multi-line array.
(#62) Short array syntax must be used to define arrays
(#67) There should be a comma after the last array item in a multi-line array.
(#69) Short array syntax must be used to define arrays
(#74) There should be a comma after the last array item in a multi-line array.
(#76) Short array syntax must be used to define arrays
(#81) There should be a comma after the last array item in a multi-line array.
(#83) Short array syntax must be used to define arrays
(#88) There should be a comma after the last array item in a multi-line array.
(#90) Short array syntax must be used to define arrays
(#95) There should be a comma after the last array item in a multi-line array.
(#97) Short array syntax must be used to define arrays
(#102) There should be a comma after the last array item in a multi-line array.
(#104) Short array syntax must be used to define arrays
(#109) There should be a comma after the last array item in a multi-line array.
(#111) Short array syntax must be used to define arrays
(#116) There should be a comma after the last array item in a multi-line array.
(#118) Short array syntax must be used to define arrays
(#123) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/db/shortcodes.php
(#33) There should be a comma after the last array item in a multi-line array.
(#34) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/db/upgrade.php
(#409) Short array syntax must be used to define arrays
(#410) Short array syntax must be used to define arrays
local/shopping_cart/download_cash_report.php
(#70) There should be a comma after the last array item in a multi-line array.
(#94) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/history.php
(#64) Short array syntax must be used to define arrays
local/shopping_cart/lib.php
(#63) Short array syntax must be used to define arrays
(#129) Short array syntax must be used to define arrays
(#132) Short array syntax must be used to define arrays
local/shopping_cart/receipt.php
(#70) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
local/shopping_cart/report.php
(#185) There should be a comma after the last array item in a multi-line array.
(#383) There should be a comma after the last array item in a multi-line array.
(#438) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/settings.php
(#202) Short array syntax must be used to define arrays
(#202) Short array syntax must be used to define arrays
(#316) Short array syntax must be used to define arrays
(#317) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/test.php
(#119) There should be a comma after the last array item in a multi-line array.
local/shopping_cart/tests/generator/behat_local_shopping_cart_generator.php
(#58) Short array syntax must be used to define arrays
local/shopping_cart/tests/taxcategories_test.php
(#136) Short array syntax must be used to define arrays
(#138) There should be a comma after the last array item in a multi-line array.
(#154) Short array syntax must be used to define arrays
(#156) There should be a comma after the last array item in a multi-line array.
(#174) Short array syntax must be used to define arrays
(#177) There should be a comma after the last array item in a multi-line array.

Javascript coding style problems

(0 errors, 0 warnings)

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


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

(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

(1 errors, 7 warnings)

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

local/shopping_cart/templates/cashier.mustache
(#1) HTML Validation error, line 43: No “p” element in scope but a “p” end tag seen. ( </p> )
(#1) HTML Validation error, line 154: Duplicate ID “item-mod_booking-main-3”. ( <li id="item-mod_booking-main-3" class="clearfix" data-price='133' data-name='Tenniscourse' data-component='mod_booking' data-area='main' data-itemid='3' data-item="shopping_cart_item" data-currency='EUR' data-userid='3588'> )
(#1) HTML Validation info, line 61: The first occurrence of ID “item-mod_booking-main-3” was here. ( <li id="item-mod_booking-main-3" class="clearfix" data-price='133' data-name='Tenniscourse' data-component='mod_booking' data-area='main' data-itemid='3' data-item="shopping_cart_item" data-currency='EUR' data-userid='3588'> )
(#1) HTML Validation error, line 196: No “p” element in scope but a “p” end tag seen. ( </p> )
(#1) HTML Validation error, line 226: Duplicate ID “item-mod_booking-main-3”. ( <li id="item-mod_booking-main-3" class="clearfix" data-price='133' data-name='Tenniscourse' data-component='mod_booking' data-area='main' data-itemid='3' data-item="shopping_cart_item" data-currency='EUR' data-userid='3588'> )
(#1) HTML Validation info, line 61: The first occurrence of ID “item-mod_booking-main-3” was here. ( <li id="item-mod_booking-main-3" class="clearfix" data-price='133' data-name='Tenniscourse' data-component='mod_booking' data-area='main' data-itemid='3' data-item="shopping_cart_item" data-currency='EUR' data-userid='3588'> )
(#1) HTML Validation error, line 293: Element “button” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) ( <button type="button" class="shopping_cart_history_creditsmanager btn btn-secondary m-1 btn-sm w-50" data-userid='3588'> )
local/shopping_cart/templates/form-user-selector-suggestion.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
local/shopping_cart/templates/history_item.mustache
(#1) HTML Validation error, line 2: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (ad><body><li class="list-group-item flex-column align-items-start text-dark"> <)
local/shopping_cart/templates/shopping_cart_item.mustache
(#1) HTML Validation error, line 12: Element “li” not allowed as child of element “body” in this context. (Suppressing further errors from this subtree.) (d><body><li id="item-mod_booking-main-3" class="clearfix" data-price='133' data-name='Tenniscourse' data-component='mod_booking' data-area='main' data-itemid='3' data-item="shopping_cart_item" data-currency='EUR' data-userid='3588'> <)
local/shopping_cart/templates/shopping_cart_popover.mustache
(#1) HTML Validation info, line 15: Possible misuse of “aria-label”. (If you disagree with this warning, file an issue report or send e-mail to www-validator@w3.org.) (> <div id="itemcount" class="count-container " data-region="count-container" aria-label="Count: 1">1</div)

Gherkin .feature problems

(0 errors, 0 warnings)

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