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

(355 errors, 1 warnings)

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

local/analytics/ganalytics.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Whitespace found at end of line
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#37) Expected 1 space before "="; 0 found
(#37) Expected 1 space after "="; 0 found
(#37) Commas (,) must be followed by white space.
(#39) Expected "if (...) {\n"; found "if (...) {"
(#61) Whitespace found at end of line
(#65) Whitespace found at end of line
(#72) Spaces must be used to indent lines; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected at least 4 spaces, found 1
(#73) Whitespace found at end of line
(#75) Whitespace found at end of line within string
(#76) Whitespace found at end of line within string
(#77) Whitespace found at end of line within string
(#78) Whitespace found at end of line within string
(#79) Whitespace found at end of line within string
(#80) Whitespace found at end of line within string
(#81) Whitespace found at end of line within string
(#82) Whitespace found at end of line within string
(#83) Whitespace found at end of line within string
(#84) Whitespace found at end of line within string
(#85) Whitespace found at end of line within string
(#86) Whitespace found at end of line within string
(#87) Whitespace found at end of line within string
(#88) Whitespace found at end of line within string
(#91) Whitespace found at end of line
local/analytics/guniversal.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Whitespace found at end of line
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#37) Expected 1 space before "="; 0 found
(#37) Expected 1 space after "="; 0 found
(#37) Commas (,) must be followed by white space.
(#38) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#39) Expected "if (...) {\n"; found "if (...) {"
(#61) Whitespace found at end of line
(#65) Whitespace found at end of line
(#67) Commas (,) must be followed by white space.
(#72) Spaces must be used to indent lines; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected at least 4 spaces, found 1
(#73) Whitespace found at end of line
(#75) Expected 1 space after "="; newline found
(#75) Whitespace found at end of line
(#76) Whitespace found at end of line within string
(#77) Whitespace found at end of line within string
(#78) Whitespace found at end of line within string
(#83) Whitespace found at end of line
(#83) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#84) Whitespace found at end of line
(#86) Whitespace found at end of line within string
(#87) Whitespace found at end of line within string
(#88) Whitespace found at end of line within string
(#89) Whitespace found at end of line within string
(#90) Whitespace found at end of line within string
(#91) Whitespace found at end of line within string
(#92) Whitespace found at end of line within string
(#93) Whitespace found at end of line within string
(#94) Whitespace found at end of line within string
(#95) Whitespace found at end of line within string
local/analytics/index.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
local/analytics/lang/en/local_analytics.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Whitespace found at end of line
local/analytics/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#29) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#37) Usage of ELSEIF not allowed; use ELSE IF instead
(#39) Usage of ELSEIF not allowed; use ELSE IF instead
local/analytics/piwik.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Whitespace found at end of line
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#37) Expected 1 space before "="; 0 found
(#37) Expected 1 space after "="; 0 found
(#37) Commas (,) must be followed by white space.
(#38) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#39) Expected "if (...) {\n"; found "if (...) {"
(#61) Whitespace found at end of line
(#65) Whitespace found at end of line
(#74) Spaces must be used to indent lines; tabs are not allowed
(#74) Tab found within whitespace
(#74) Line indented incorrectly; expected at least 4 spaces, found 1
(#75) Whitespace found at end of line
(#76) Spaces must be used to indent lines; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected 4 spaces, found 1
(#77) Spaces must be used to indent lines; tabs are not allowed
(#77) Tab found within whitespace
(#77) Line indented incorrectly; expected 8 spaces, found 2
(#78) Spaces must be used to indent lines; tabs are not allowed
(#78) Tab found within whitespace
(#78) Line indented incorrectly; expected at least 12 spaces, found 3
(#79) Spaces must be used to indent lines; tabs are not allowed
(#79) Tab found within whitespace
(#79) Line indented incorrectly; expected 8 spaces, found 2
(#80) Spaces must be used to indent lines; tabs are not allowed
(#80) Tab found within whitespace
(#80) Line indented incorrectly; expected at least 12 spaces, found 3
(#81) Spaces must be used to indent lines; tabs are not allowed
(#81) Tab found within whitespace
(#81) Line indented incorrectly; expected 8 spaces, found 2
(#82) Spaces must be used to indent lines; tabs are not allowed
(#82) Tab found within whitespace
(#82) Whitespace found at end of line
(#83) Spaces must be used to indent lines; tabs are not allowed
(#83) Tab found within whitespace
(#83) Line indented incorrectly; expected 8 spaces, found 2
(#84) Spaces must be used to indent lines; tabs are not allowed
(#84) Tab found within whitespace
(#84) Line indented incorrectly; expected at least 12 spaces, found 3
(#85) Spaces must be used to indent lines; tabs are not allowed
(#85) Tab found within whitespace
(#85) Line indented incorrectly; expected 8 spaces, found 2
(#86) Spaces must be used to indent lines; tabs are not allowed
(#86) Tab found within whitespace
(#86) Line indented incorrectly; expected at least 12 spaces, found 3
(#87) Spaces must be used to indent lines; tabs are not allowed
(#87) Tab found within whitespace
(#87) Line indented incorrectly; expected 8 spaces, found 2
(#88) Spaces must be used to indent lines; tabs are not allowed
(#88) Tab found within whitespace
(#88) Whitespace found at end of line
(#89) Spaces must be used to indent lines; tabs are not allowed
(#89) Tab found within whitespace
(#89) Line indented incorrectly; expected 8 spaces, found 2
(#90) Spaces must be used to indent lines; tabs are not allowed
(#90) Tab found within whitespace
(#90) Line indented incorrectly; expected at least 12 spaces, found 3
(#90) Whitespace found at end of line within string
(#91) Whitespace found at end of line within string
(#92) Whitespace found at end of line within string
(#93) Whitespace found at end of line within string
(#94) Whitespace found at end of line within string
(#95) Whitespace found at end of line within string
(#96) Whitespace found at end of line within string
(#97) Whitespace found at end of line within string
(#98) Whitespace found at end of line within string
(#99) Whitespace found at end of line within string
(#100) Whitespace found at end of line within string
(#101) Whitespace found at end of line within string
(#102) Whitespace found at end of line within string
(#103) Whitespace found at end of line within string
(#105) Line indented incorrectly; expected at least 12 spaces, found 0
(#106) Spaces must be used to indent lines; tabs are not allowed
(#106) Tab found within whitespace
(#106) Line indented incorrectly; expected 8 spaces, found 2
(#107) Spaces must be used to indent lines; tabs are not allowed
(#107) Tab found within whitespace
(#107) Line indented incorrectly; expected 4 spaces, found 1
local/analytics/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#32) Line indented incorrectly; expected at least 4 spaces, found 1
(#33) Spaces must be used to indent lines; tabs are not allowed
(#33) Tab found within whitespace
(#33) Line indented incorrectly; expected at least 4 spaces, found 1
(#35) Spaces must be used to indent lines; tabs are not allowed
(#35) Tab found within whitespace
(#35) Line indented incorrectly; expected at least 4 spaces, found 1
(#36) Spaces must be used to indent lines; tabs are not allowed
(#36) Tab found within whitespace
(#36) Line indented incorrectly; expected at least 4 spaces, found 1
(#37) Spaces must be used to indent lines; tabs are not allowed
(#37) Tab found within whitespace
(#37) Line indented incorrectly; expected at least 4 spaces, found 1
(#38) Spaces must be used to indent lines; tabs are not allowed
(#38) Tab found within whitespace
(#38) Line indented incorrectly; expected at least 4 spaces, found 1
(#39) Spaces must be used to indent lines; tabs are not allowed
(#39) Tab found within whitespace
(#39) Line indented incorrectly; expected at least 4 spaces, found 1
(#40) Spaces must be used to indent lines; tabs are not allowed
(#40) Tab found within whitespace
(#40) Line indented incorrectly; expected at least 4 spaces, found 1
(#42) Spaces must be used to indent lines; tabs are not allowed
(#42) Tab found within whitespace
(#42) Line indented incorrectly; expected at least 4 spaces, found 1
(#43) Spaces must be used to indent lines; tabs are not allowed
(#43) Tab found within whitespace
(#43) Line indented incorrectly; expected at least 4 spaces, found 1
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected at least 4 spaces, found 1
(#45) Spaces must be used to indent lines; tabs are not allowed
(#45) Tab found within whitespace
(#45) Line indented incorrectly; expected at least 4 spaces, found 1
(#46) Spaces must be used to indent lines; tabs are not allowed
(#46) Tab found within whitespace
(#46) Line indented incorrectly; expected at least 4 spaces, found 1
(#47) Spaces must be used to indent lines; tabs are not allowed
(#47) Tab found within whitespace
(#47) Line indented incorrectly; expected at least 4 spaces, found 1
(#48) Spaces must be used to indent lines; tabs are not allowed
(#48) Tab found within whitespace
(#48) Line indented incorrectly; expected at least 4 spaces, found 1
(#49) Spaces must be used to indent lines; tabs are not allowed
(#49) Tab found within whitespace
(#49) Line indented incorrectly; expected at least 4 spaces, found 1
(#49) Whitespace found at end of line
(#50) Spaces must be used to indent lines; tabs are not allowed
(#50) Tab found within whitespace
(#51) Spaces must be used to indent lines; tabs are not allowed
(#51) Tab found within whitespace
(#52) Spaces must be used to indent lines; tabs are not allowed
(#52) Tab found within whitespace
(#53) Spaces must be used to indent lines; tabs are not allowed
(#53) Tab found within whitespace
(#54) Spaces must be used to indent lines; tabs are not allowed
(#54) Tab found within whitespace
(#54) Line indented incorrectly; expected at least 4 spaces, found 1
(#55) Spaces must be used to indent lines; tabs are not allowed
(#55) Tab found within whitespace
(#55) Line indented incorrectly; expected at least 4 spaces, found 1
(#56) Spaces must be used to indent lines; tabs are not allowed
(#56) Tab found within whitespace
(#56) Whitespace found at end of line
(#57) Spaces must be used to indent lines; tabs are not allowed
(#57) Tab found within whitespace
(#57) Line indented incorrectly; expected at least 4 spaces, found 1
(#58) Spaces must be used to indent lines; tabs are not allowed
(#58) Tab found within whitespace
(#58) Line indented incorrectly; expected at least 4 spaces, found 1
(#59) Spaces must be used to indent lines; tabs are not allowed
(#59) Tab found within whitespace
(#59) Line indented incorrectly; expected at least 4 spaces, found 1
(#60) Spaces must be used to indent lines; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected at least 4 spaces, found 1
(#61) Spaces must be used to indent lines; tabs are not allowed
(#61) Tab found within whitespace
(#61) Line indented incorrectly; expected at least 4 spaces, found 1
(#62) Spaces must be used to indent lines; tabs are not allowed
(#62) Tab found within whitespace
(#62) Line indented incorrectly; expected at least 4 spaces, found 1
(#64) Spaces must be used to indent lines; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected at least 4 spaces, found 1
(#65) Spaces must be used to indent lines; tabs are not allowed
(#65) Tab found within whitespace
(#65) Line indented incorrectly; expected at least 4 spaces, found 1
(#66) Spaces must be used to indent lines; tabs are not allowed
(#66) Tab found within whitespace
(#66) Line indented incorrectly; expected at least 4 spaces, found 1
(#67) Spaces must be used to indent lines; tabs are not allowed
(#67) Tab found within whitespace
(#67) Line indented incorrectly; expected at least 4 spaces, found 1
(#68) Spaces must be used to indent lines; tabs are not allowed
(#68) Tab found within whitespace
(#68) Line indented incorrectly; expected at least 4 spaces, found 1
(#69) Spaces must be used to indent lines; tabs are not allowed
(#69) Tab found within whitespace
(#69) Line indented incorrectly; expected at least 4 spaces, found 1
(#71) Spaces must be used to indent lines; tabs are not allowed
(#71) Tab found within whitespace
(#71) Line indented incorrectly; expected at least 4 spaces, found 1
(#72) Spaces must be used to indent lines; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected at least 4 spaces, found 1
(#73) Spaces must be used to indent lines; tabs are not allowed
(#73) Tab found within whitespace
(#73) Line indented incorrectly; expected at least 4 spaces, found 1
(#74) Spaces must be used to indent lines; tabs are not allowed
(#74) Tab found within whitespace
(#74) Line indented incorrectly; expected at least 4 spaces, found 1
(#75) Spaces must be used to indent lines; tabs are not allowed
(#75) Tab found within whitespace
(#75) Line indented incorrectly; expected at least 4 spaces, found 1
(#76) Spaces must be used to indent lines; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected at least 4 spaces, found 1
(#78) Spaces must be used to indent lines; tabs are not allowed
(#78) Tab found within whitespace
(#78) Line indented incorrectly; expected at least 4 spaces, found 1
(#79) Spaces must be used to indent lines; tabs are not allowed
(#79) Tab found within whitespace
(#79) Line indented incorrectly; expected at least 4 spaces, found 1
(#80) Spaces must be used to indent lines; tabs are not allowed
(#80) Tab found within whitespace
(#80) Line indented incorrectly; expected at least 4 spaces, found 1
(#81) Spaces must be used to indent lines; tabs are not allowed
(#81) Tab found within whitespace
(#81) Line indented incorrectly; expected at least 4 spaces, found 1
(#82) Spaces must be used to indent lines; tabs are not allowed
(#82) Tab found within whitespace
(#82) Line indented incorrectly; expected at least 4 spaces, found 1
(#83) Spaces must be used to indent lines; tabs are not allowed
(#83) Tab found within whitespace
(#83) Line indented incorrectly; expected at least 4 spaces, found 1
(#85) Spaces must be used to indent lines; tabs are not allowed
(#85) Tab found within whitespace
(#85) Line indented incorrectly; expected at least 4 spaces, found 1
(#86) Spaces must be used to indent lines; tabs are not allowed
(#86) Tab found within whitespace
(#86) Line indented incorrectly; expected at least 4 spaces, found 1
(#87) Spaces must be used to indent lines; tabs are not allowed
(#87) Tab found within whitespace
(#87) Line indented incorrectly; expected at least 4 spaces, found 1
(#88) Spaces must be used to indent lines; tabs are not allowed
(#88) Tab found within whitespace
(#88) Line indented incorrectly; expected at least 4 spaces, found 1
(#89) Spaces must be used to indent lines; tabs are not allowed
(#89) Tab found within whitespace
(#89) Line indented incorrectly; expected at least 4 spaces, found 1
(#90) Spaces must be used to indent lines; tabs are not allowed
(#90) Tab found within whitespace
(#90) Line indented incorrectly; expected at least 4 spaces, found 1
(#91) Spaces must be used to indent lines; tabs are not allowed
(#91) Tab found within whitespace
(#91) Whitespace found at end of line
(#92) Spaces must be used to indent lines; tabs are not allowed
(#92) Tab found within whitespace
(#92) Line indented incorrectly; expected at least 4 spaces, found 1
(#93) Spaces must be used to indent lines; tabs are not allowed
(#93) Tab found within whitespace
(#93) Line indented incorrectly; expected at least 4 spaces, found 1
(#94) Spaces must be used to indent lines; tabs are not allowed
(#94) Tab found within whitespace
(#94) Line indented incorrectly; expected at least 4 spaces, found 1
(#95) Spaces must be used to indent lines; tabs are not allowed
(#95) Tab found within whitespace
(#95) Line indented incorrectly; expected at least 4 spaces, found 1
(#96) Spaces must be used to indent lines; tabs are not allowed
(#96) Tab found within whitespace
(#96) Line indented incorrectly; expected at least 4 spaces, found 1
(#97) Spaces must be used to indent lines; tabs are not allowed
(#97) Tab found within whitespace
(#97) Line indented incorrectly; expected at least 4 spaces, found 1
(#98) Spaces must be used to indent lines; tabs are not allowed
(#98) Tab found within whitespace
(#98) Line indented incorrectly; expected at least 4 spaces, found 1
(#99) Spaces must be used to indent lines; tabs are not allowed
(#99) Tab found within whitespace
(#99) Line indented incorrectly; expected at least 4 spaces, found 1
(#99) Whitespace found at end of line
(#100) Spaces must be used to indent lines; tabs are not allowed
(#100) Tab found within whitespace
(#101) Spaces must be used to indent lines; tabs are not allowed
(#101) Tab found within whitespace
(#102) Spaces must be used to indent lines; tabs are not allowed
(#102) Tab found within whitespace
(#103) Spaces must be used to indent lines; tabs are not allowed
(#103) Tab found within whitespace
(#104) Spaces must be used to indent lines; tabs are not allowed
(#104) Tab found within whitespace
(#104) Line indented incorrectly; expected at least 4 spaces, found 1
(#105) Spaces must be used to indent lines; tabs are not allowed
(#105) Tab found within whitespace
(#105) Line indented incorrectly; expected at least 4 spaces, found 1
local/analytics/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(6 errors, 0 warnings)

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

local/analytics/ganalytics.php
(#29) Function analytics_trackurl is not documented
(#66) Function insert_analytics_tracking is not documented
local/analytics/guniversal.php
(#29) Function analytics_trackurl is not documented
(#66) Function insert_analytics_tracking is not documented
local/analytics/piwik.php
(#29) Function analytics_trackurl is not documented
(#66) Function insert_analytics_tracking is not documented

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]


Mustache template problems

(0 errors, 0 warnings)

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