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

(186 errors, 21 warnings)

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

theme/splash/config.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#57) Expected 1 space before "=>"; 0 found
(#57) Expected 1 space after "=>"; 0 found
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) Expected 1 space before "=>"; 0 found
(#64) Expected 1 space after "=>"; 0 found
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Expected 1 space before "=>"; 0 found
(#71) Expected 1 space after "=>"; 0 found
(#77) Expected 1 space before "=>"; 0 found
(#77) Expected 1 space after "=>"; 0 found
(#83) Expected 1 space before "=>"; 0 found
(#83) Expected 1 space after "=>"; 0 found
(#89) Expected 1 space before "=>"; 0 found
(#89) Expected 1 space after "=>"; 0 found
(#95) Expected 1 space before "=>"; 0 found
(#95) Expected 1 space after "=>"; 0 found
(#101) Expected 1 space before "=>"; 0 found
(#101) Expected 1 space after "=>"; 0 found
(#106) Expected 1 space before "=>"; 0 found
(#106) Expected 1 space after "=>"; 0 found
(#112) Expected 1 space before "=>"; 0 found
(#112) Expected 1 space after "=>"; 0 found
(#112) Expected 1 space before "=>"; 0 found
(#112) Expected 1 space after "=>"; 0 found
(#112) Expected 1 space before "=>"; 0 found
(#112) Expected 1 space after "=>"; 0 found
(#112) Expected 1 space before "=>"; 0 found
(#112) Expected 1 space after "=>"; 0 found
(#118) Expected 1 space before "=>"; 0 found
(#118) Expected 1 space after "=>"; 0 found
(#118) Expected 1 space before "=>"; 0 found
(#118) Expected 1 space after "=>"; 0 found
(#120) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) Expected 1 space before "=>"; 0 found
(#124) Expected 1 space after "=>"; 0 found
(#124) Expected 1 space before "=>"; 0 found
(#124) Expected 1 space after "=>"; 0 found
(#124) Expected 1 space before "=>"; 0 found
(#124) Expected 1 space after "=>"; 0 found
(#132) Expected 1 space before "=>"; 0 found
(#132) Expected 1 space after "=>"; 0 found
(#132) Expected 1 space before "=>"; 0 found
(#132) Expected 1 space after "=>"; 0 found
(#132) Expected 1 space before "=>"; 0 found
(#132) Expected 1 space after "=>"; 0 found
(#132) Expected 1 space before "=>"; 0 found
(#132) Expected 1 space after "=>"; 0 found
(#138) Expected 1 space before "=>"; 0 found
(#138) Expected 1 space after "=>"; 0 found
(#138) Expected 1 space before "=>"; 0 found
(#138) Expected 1 space after "=>"; 0 found
(#138) Expected 1 space before "=>"; 0 found
(#138) Expected 1 space after "=>"; 0 found
(#138) Expected 1 space before "=>"; 0 found
(#138) Expected 1 space after "=>"; 0 found
(#144) Expected 1 space before "=>"; 0 found
(#144) Expected 1 space after "=>"; 0 found
(#144) Expected 1 space before "=>"; 0 found
(#144) Expected 1 space after "=>"; 0 found
(#144) Expected 1 space before "=>"; 0 found
(#144) Expected 1 space after "=>"; 0 found
(#144) Expected 1 space before "=>"; 0 found
(#144) Expected 1 space after "=>"; 0 found
(#150) Expected 1 space before "=>"; 0 found
(#150) Expected 1 space after "=>"; 0 found
theme/splash/layout/embedded.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
theme/splash/layout/general.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#82) Line indented incorrectly; expected 8 spaces, found 4
(#85) Line indented incorrectly; expected 12 spaces, found 8
(#86) Line indented incorrectly; expected at least 16 spaces, found 12
(#86) Expected 1 space before "=>"; 0 found
(#86) Expected 1 space after "=>"; 0 found
(#87) Line indented incorrectly; expected at least 16 spaces, found 12
(#88) Line indented incorrectly; expected at least 16 spaces, found 12
(#88) Expected 1 space before "=>"; 0 found
(#88) Expected 1 space after "=>"; 0 found
(#89) Line indented incorrectly; expected at least 16 spaces, found 12
(#89) Expected 1 space before "=>"; 0 found
(#89) Expected 1 space after "=>"; 0 found
(#90) Line indented incorrectly; expected at least 16 spaces, found 12
(#91) Line indented incorrectly; expected at least 16 spaces, found 12
(#91) Expected 1 space before "=>"; 0 found
(#91) Expected 1 space after "=>"; 0 found
(#92) Line indented incorrectly; expected at least 16 spaces, found 12
(#93) Line indented incorrectly; expected at least 16 spaces, found 12
(#94) Line indented incorrectly; expected at least 16 spaces, found 12
(#95) Line indented incorrectly; expected at least 16 spaces, found 12
(#95) Expected 1 space before "=>"; 0 found
(#95) Expected 1 space after "=>"; 0 found
(#95) Expected 1 space before "=>"; 0 found
(#95) Expected 1 space after "=>"; 0 found
(#96) Line indented incorrectly; expected 12 spaces, found 8
(#97) Line indented incorrectly; expected at least 16 spaces, found 12
(#97) Expected 1 space before "=>"; 0 found
(#97) Expected 1 space after "=>"; 0 found
(#98) Line indented incorrectly; expected at least 16 spaces, found 12
(#99) Line indented incorrectly; expected at least 16 spaces, found 12
(#100) Line indented incorrectly; expected at least 16 spaces, found 12
(#101) Line indented incorrectly; expected 12 spaces, found 8
(#106) Expected 1 space before "=>"; 0 found
(#106) Expected 1 space after "=>"; 0 found
(#108) Expected 1 space before "=>"; 0 found
(#108) Expected 1 space after "=>"; 0 found
(#111) Expected 1 space before "=>"; 0 found
(#111) Expected 1 space after "=>"; 0 found
(#114) Expected 1 space before "=>"; 0 found
(#114) Expected 1 space after "=>"; 0 found
(#132) Expected 1 space before "=>"; 0 found
(#132) Expected 1 space after "=>"; 0 found
(#133) Line indented incorrectly; expected 12 spaces, found 8
(#135) Line indented incorrectly; expected 12 spaces, found 8
(#138) Line indented incorrectly; expected 12 spaces, found 8
(#142) Line indented incorrectly; expected 12 spaces, found 8
(#145) Line indented incorrectly; expected 12 spaces, found 8
(#148) Line indented incorrectly; expected 12 spaces, found 8
(#150) Line indented incorrectly; expected 8 spaces, found 4
(#178) This comment is 60% valid code; is this commented out code?
(#226) Line indented incorrectly; expected 8 spaces, found 4
(#229) Line indented incorrectly; expected 8 spaces, found 4
theme/splash/layout/report.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#82) Line indented incorrectly; expected 8 spaces, found 4
(#85) Line indented incorrectly; expected 12 spaces, found 8
(#86) Line indented incorrectly; expected at least 16 spaces, found 12
(#86) Expected 1 space before "=>"; 0 found
(#86) Expected 1 space after "=>"; 0 found
(#87) Line indented incorrectly; expected at least 16 spaces, found 12
(#88) Line indented incorrectly; expected at least 16 spaces, found 12
(#88) Expected 1 space before "=>"; 0 found
(#88) Expected 1 space after "=>"; 0 found
(#89) Line indented incorrectly; expected at least 16 spaces, found 12
(#89) Expected 1 space before "=>"; 0 found
(#89) Expected 1 space after "=>"; 0 found
(#90) Line indented incorrectly; expected at least 16 spaces, found 12
(#91) Line indented incorrectly; expected at least 16 spaces, found 12
(#91) Expected 1 space before "=>"; 0 found
(#91) Expected 1 space after "=>"; 0 found
(#92) Line indented incorrectly; expected at least 16 spaces, found 12
(#93) Line indented incorrectly; expected at least 16 spaces, found 12
(#94) Line indented incorrectly; expected at least 16 spaces, found 12
(#95) Line indented incorrectly; expected at least 16 spaces, found 12
(#95) Expected 1 space before "=>"; 0 found
(#95) Expected 1 space after "=>"; 0 found
(#95) Expected 1 space before "=>"; 0 found
(#95) Expected 1 space after "=>"; 0 found
(#96) Line indented incorrectly; expected 12 spaces, found 8
(#97) Line indented incorrectly; expected at least 16 spaces, found 12
(#97) Expected 1 space before "=>"; 0 found
(#97) Expected 1 space after "=>"; 0 found
(#98) Line indented incorrectly; expected at least 16 spaces, found 12
(#99) Line indented incorrectly; expected at least 16 spaces, found 12
(#100) Line indented incorrectly; expected at least 16 spaces, found 12
(#101) Line indented incorrectly; expected 12 spaces, found 8
(#106) Expected 1 space before "=>"; 0 found
(#106) Expected 1 space after "=>"; 0 found
(#108) Expected 1 space before "=>"; 0 found
(#108) Expected 1 space after "=>"; 0 found
(#111) Expected 1 space before "=>"; 0 found
(#111) Expected 1 space after "=>"; 0 found
(#114) Expected 1 space before "=>"; 0 found
(#114) Expected 1 space after "=>"; 0 found
(#132) Expected 1 space before "=>"; 0 found
(#132) Expected 1 space after "=>"; 0 found
(#133) Line indented incorrectly; expected 12 spaces, found 8
(#135) Line indented incorrectly; expected 12 spaces, found 8
(#138) Line indented incorrectly; expected 12 spaces, found 8
(#142) Line indented incorrectly; expected 12 spaces, found 8
(#145) Line indented incorrectly; expected 12 spaces, found 8
(#148) Line indented incorrectly; expected 12 spaces, found 8
(#150) Line indented incorrectly; expected 8 spaces, found 4
(#178) This comment is 60% valid code; is this commented out code?
(#214) Line indented incorrectly; expected 8 spaces, found 4
(#217) Line indented incorrectly; expected 8 spaces, found 4
theme/splash/lib.php
(#31) Expected MOODLE_INTERNAL check or config.php inclusion
(#67) Expected 1 space before "*"; 0 found
(#67) Expected 1 space after "*"; 0 found
(#68) Expected 1 space before "*"; 0 found
(#68) Expected 1 space after "*"; 0 found
(#68) Expected 1 space before "-"; 0 found
(#68) Expected 1 space after "-"; 0 found
(#69) Expected 1 space before "+"; 0 found
(#69) Expected 1 space after "+"; 0 found
(#100) Expected 1 space before "=>"; 0 found
(#100) Expected 1 space after "=>"; 0 found
(#100) Line exceeds 132 characters; contains 147 characters
theme/splash/settings.php
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) This comment is 50% valid code; is this commented out code?
(#53) No space found before comment text; expected "// $name = 'theme_splash/regionwidth';" but found "//$name = 'theme_splash/regionwidth';"
(#54) This comment is 59% valid code; is this commented out code?
(#54) No space found before comment text; expected "// $title = get_string('regionwidth', 'theme_splash');" but found "//$title = get_string('regionwidth', 'theme_splash');"
(#55) This comment is 59% valid code; is this commented out code?
(#55) No space found before comment text; expected "// $description = get_string('regionwidthdesc', 'theme_splash');" but found "//$description = get_string('regionwidthdesc', 'theme_splash');"
(#56) This comment is 50% valid code; is this commented out code?
(#56) No space found before comment text; expected "// $default = 240;" but found "//$default = 240;"
(#57) This comment is 78% valid code; is this commented out code?
(#57) No space found before comment text; expected "// $choices = array(200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');" but found "//$choices = array(200=>'200px', 240=>'240px', 290=>'290px', 350=>'350px', 420=>'420px');"
(#58) This comment is 61% valid code; is this commented out code?
(#58) No space found before comment text; expected "// $setting = new admin_setting_configselect($name, $title, $description, $default, $choices);" but found "//$setting = new admin_setting_configselect($name, $title, $description, $default, $choices);"
(#59) This comment is 86% valid code; is this commented out code?
(#59) No space found before comment text; expected "// $setting->set_updatedcallback('theme_reset_all_caches');" but found "//$setting->set_updatedcallback('theme_reset_all_caches');"
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) This comment is 86% valid code; is this commented out code?
(#60) No space found before comment text; expected "// $temp->add($setting);" but found "//$temp->add($setting);"
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
theme/splash/version.php
(#29) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(2 errors, 17 warnings)

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

theme/splash/javascript/colourswitcher.js
(#1) 'YUI' is not defined. (no-undef)
(#4) A space is required after ','. (comma-spacing)
(#4) A space is required after ','. (comma-spacing)
(#4) A space is required after ','. (comma-spacing)
(#18) Extra space after key 'initializer'. (key-spacing)
(#25) Infix operators must be spaced. (space-infix-ops)
(#28) Infix operators must be spaced. (space-infix-ops)
(#28) Infix operators must be spaced. (space-infix-ops)
(#36) Extra space after key 'setColour'. (key-spacing)
(#40) Infix operators must be spaced. (space-infix-ops)
(#40) Infix operators must be spaced. (space-infix-ops)
(#49) Extra space after key 'NAME'. (key-spacing)
(#50) Extra space after key 'ATTRS'. (key-spacing)
(#51) Extra space after key 'colour'. (key-spacing)
(#52) Extra space after key 'value'. (key-spacing)
(#57) Identifier 'theme_splash' is not in camel case. (camelcase)
(#61) Missing semicolon. (semi)
(#63) Missing space before value for key 'requires'. (key-spacing)
(#63) A space is required after ','. (comma-spacing)

CSS problems

(3 errors, 13 warnings)

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

theme/splash/style/core.css
(#200) Use of !important
(#226) margin can't be used with display: inline.
(#316) Use of !important
theme/splash/style/menus.css
(#154) display:inline has no effect on floated elements (but may be used to fix the IE6 double-margin bug).
theme/splash/style/pagelayout.css
(#107) margin can't be used with display: inline.
(#238) Use of !important
(#409) Use of !important
(#430) Duplicate property 'margin' found.
(#467) Use of !important
(#582) Use of !important
(#583) Use of !important
(#595) Use of !important
(#615) Use of !important
(#616) Use of !important
theme/splash/style/settings.css
(#10) Expected IDENT at line 10, col 2.
(#10) Expected IDENT at line 10, col 2.

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

(0 errors, 0 warnings)

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