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

(196 errors, 116 warnings)

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

theme/simple/config.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#34) Inline comments must start with a capital letter, digit or 3-dots sequence
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) This comment is 50% valid code; is this commented out code?
(#34) No space found before comment text; expected "// $THEME->supportscssoptimisation = false;" but found "//$THEME->supportscssoptimisation = false;"
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#155) Inline comments must start with a capital letter, digit or 3-dots sequence
(#155) Inline comments must end in full-stops, exclamation marks, or question marks
(#155) No space found before comment text; expected "// end copied from bootstrapbase/config.php" but found "//end copied from bootstrapbase/config.php"
theme/simple/lang/en/theme_simple.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#30) Whitespace found at end of line within string
(#31) Whitespace found at end of line within string
(#32) Whitespace found at end of line within string
(#33) Whitespace found at end of line within string
(#34) Whitespace found at end of line within string
(#35) Whitespace found at end of line within string
(#36) Whitespace found at end of line within string
(#37) Whitespace found at end of line within string
(#38) Whitespace found at end of line within string
(#39) Whitespace found at end of line within string
(#40) Whitespace found at end of line within string
theme/simple/layout/columns1.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#57) Expected "if (...) {\n"; found "if(...){\n"
(#57) Expected 1 space before "=="; 0 found
(#57) Expected 1 space after "=="; 0 found
(#59) Expected "} else {\n"; found "}else{\n"
(#64) Whitespace found at end of line
(#66) Variable "current_language" must not contain underscores.
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#67) Commas (,) must be followed by white space.
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#67) Commas (,) must be followed by white space.
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#67) Commas (,) must be followed by white space.
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#67) Commas (,) must be followed by white space.
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#68) Variable "current_language" must not contain underscores.
(#69) Line indented incorrectly; expected 8 spaces, found 12
(#70) Line indented incorrectly; expected 12 spaces, found 16
(#70) Expected "if (...) {\n"; found "if(...){\n"
(#70) Expected 1 space before "=="; 0 found
(#70) Expected 1 space after "=="; 0 found
(#70) Variable "current_language" must not contain underscores.
(#72) Line indented incorrectly; expected 12 spaces, found 16
(#72) Expected "} else {\n"; found "}else{\n"
(#74) Line indented incorrectly; expected 12 spaces, found 16
(#75) Line indented incorrectly; expected 8 spaces, found 12
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
theme/simple/layout/columns2.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#58) Expected "if (...) {\n"; found "if(...){\n"
(#58) Expected 1 space before "=="; 0 found
(#58) Expected 1 space after "=="; 0 found
(#60) Expected "} else {\n"; found "}else{\n"
(#65) Whitespace found at end of line
(#67) Variable "current_language" must not contain underscores.
(#68) Expected 1 space before "=>"; 0 found
(#68) Expected 1 space after "=>"; 0 found
(#68) Commas (,) must be followed by white space.
(#68) Expected 1 space before "=>"; 0 found
(#68) Expected 1 space after "=>"; 0 found
(#68) Commas (,) must be followed by white space.
(#68) Expected 1 space before "=>"; 0 found
(#68) Expected 1 space after "=>"; 0 found
(#68) Commas (,) must be followed by white space.
(#68) Expected 1 space before "=>"; 0 found
(#68) Expected 1 space after "=>"; 0 found
(#68) Commas (,) must be followed by white space.
(#68) Expected 1 space before "=>"; 0 found
(#68) Expected 1 space after "=>"; 0 found
(#69) Variable "current_language" must not contain underscores.
(#70) Line indented incorrectly; expected 8 spaces, found 12
(#71) Line indented incorrectly; expected 12 spaces, found 16
(#71) Expected "if (...) {\n"; found "if(...){\n"
(#71) Expected 1 space before "=="; 0 found
(#71) Expected 1 space after "=="; 0 found
(#71) Variable "current_language" must not contain underscores.
(#73) Line indented incorrectly; expected 12 spaces, found 16
(#73) Expected "} else {\n"; found "}else{\n"
(#75) Line indented incorrectly; expected 12 spaces, found 16
(#76) Line indented incorrectly; expected 8 spaces, found 12
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#82) Line exceeds 132 characters; contains 173 characters
(#105) Expected "if (...) {\n"; found "if (...) { "
(#105) Closing brace must be on a line by itself
theme/simple/layout/columns3.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#63) Expected "if (...) {\n"; found "if(...){\n"
(#63) Expected 1 space before "=="; 0 found
(#63) Expected 1 space after "=="; 0 found
(#65) Expected "} else {\n"; found "}else{\n"
(#70) Whitespace found at end of line
(#72) Variable "current_language" must not contain underscores.
(#73) Expected 1 space before "=>"; 0 found
(#73) Expected 1 space after "=>"; 0 found
(#73) Commas (,) must be followed by white space.
(#73) Expected 1 space before "=>"; 0 found
(#73) Expected 1 space after "=>"; 0 found
(#73) Commas (,) must be followed by white space.
(#73) Expected 1 space before "=>"; 0 found
(#73) Expected 1 space after "=>"; 0 found
(#73) Commas (,) must be followed by white space.
(#73) Expected 1 space before "=>"; 0 found
(#73) Expected 1 space after "=>"; 0 found
(#73) Commas (,) must be followed by white space.
(#73) Expected 1 space before "=>"; 0 found
(#73) Expected 1 space after "=>"; 0 found
(#74) Variable "current_language" must not contain underscores.
(#75) Line indented incorrectly; expected 8 spaces, found 12
(#76) Line indented incorrectly; expected 12 spaces, found 16
(#76) Expected "if (...) {\n"; found "if(...){\n"
(#76) Expected 1 space before "=="; 0 found
(#76) Expected 1 space after "=="; 0 found
(#76) Variable "current_language" must not contain underscores.
(#78) Line indented incorrectly; expected 12 spaces, found 16
(#78) Expected "} else {\n"; found "}else{\n"
(#80) Line indented incorrectly; expected 12 spaces, found 16
(#81) Line indented incorrectly; expected 8 spaces, found 12
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
(#87) Line exceeds 132 characters; contains 173 characters
theme/simple/layout/embedded.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
theme/simple/layout/frontpage.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#57) Whitespace found at end of line
(#59) Variable "current_language" must not contain underscores.
(#60) Expected 1 space before "=>"; 0 found
(#60) Expected 1 space after "=>"; 0 found
(#60) Commas (,) must be followed by white space.
(#60) Expected 1 space before "=>"; 0 found
(#60) Expected 1 space after "=>"; 0 found
(#60) Commas (,) must be followed by white space.
(#60) Expected 1 space before "=>"; 0 found
(#60) Expected 1 space after "=>"; 0 found
(#60) Commas (,) must be followed by white space.
(#60) Expected 1 space before "=>"; 0 found
(#60) Expected 1 space after "=>"; 0 found
(#60) Commas (,) must be followed by white space.
(#60) Expected 1 space before "=>"; 0 found
(#60) Expected 1 space after "=>"; 0 found
(#61) Variable "current_language" must not contain underscores.
(#62) Line indented incorrectly; expected 8 spaces, found 12
(#63) Line indented incorrectly; expected 12 spaces, found 16
(#63) Expected "if (...) {\n"; found "if(...){\n"
(#63) Expected 1 space before "=="; 0 found
(#63) Expected 1 space after "=="; 0 found
(#63) Variable "current_language" must not contain underscores.
(#65) Line indented incorrectly; expected 12 spaces, found 16
(#65) Expected "} else {\n"; found "}else{\n"
(#67) Line indented incorrectly; expected 12 spaces, found 16
(#68) Line indented incorrectly; expected 8 spaces, found 12
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#74) Line exceeds 132 characters; contains 173 characters
(#97) Expected "if (...) {\n"; found "if (...) { "
(#97) Closing brace must be on a line by itself
theme/simple/layout/maintenance.php
(#31) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
theme/simple/layout/popup.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#42) Line indented incorrectly; expected 0 spaces, found 4
(#42) Expected "if (...) {\n"; found "if(...) {\n"
(#45) Line indented incorrectly; expected 0 spaces, found 4
theme/simple/layout/secure.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#57) Expected "if (...) {\n"; found "if(...){\n"
(#57) Expected 1 space before "=="; 0 found
(#57) Expected 1 space after "=="; 0 found
(#59) Expected "} else {\n"; found "}else{\n"
(#64) Whitespace found at end of line
(#66) Variable "current_language" must not contain underscores.
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#67) Commas (,) must be followed by white space.
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#67) Commas (,) must be followed by white space.
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#67) Commas (,) must be followed by white space.
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#67) Commas (,) must be followed by white space.
(#67) Expected 1 space before "=>"; 0 found
(#67) Expected 1 space after "=>"; 0 found
(#68) Variable "current_language" must not contain underscores.
(#69) Line indented incorrectly; expected 8 spaces, found 12
(#70) Line indented incorrectly; expected 12 spaces, found 16
(#70) Expected "if (...) {\n"; found "if(...){\n"
(#70) Expected 1 space before "=="; 0 found
(#70) Expected 1 space after "=="; 0 found
(#70) Variable "current_language" must not contain underscores.
(#72) Line indented incorrectly; expected 12 spaces, found 16
(#72) Expected "} else {\n"; found "}else{\n"
(#74) Line indented incorrectly; expected 12 spaces, found 16
(#75) Line indented incorrectly; expected 8 spaces, found 12
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
(#81) Line exceeds 132 characters; contains 173 characters
theme/simple/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"

Javascript coding style problems

(0 errors, 2 warnings)

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

theme/simple/javascript/footer.js
(#3) Line is too long.
(#1) 'showHeader' is defined but never used.

CSS problems

(2 errors, 62 warnings)

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

theme/simple/style/simple.css
(#4) Use of !important
(#5) Use of !important
(#8) Use of !important
(#14) Use of !important
(#15) Use of !important
(#16) Use of !important
(#17) Use of !important
(#40) Use of !important
(#42) Rule is empty.
(#53) Use of !important
(#54) Use of !important
(#55) Use of !important
(#56) Use of !important
(#103) Use of !important
(#107) Use of !important
(#108) Use of !important
(#109) Use of !important
(#119) Use of !important
(#141) Use of !important
(#154) Use of !important
(#165) Duplicate property 'padding' found.
(#190) Use of !important
(#197) Use of !important
(#198) Use of !important
(#199) Use of !important
(#203) Use of !important
(#204) Use of !important
(#206) Use of !important
(#207) Use of !important
(#208) Use of !important
(#215) Use of !important
(#216) Use of !important
(#217) Use of !important
(#218) Use of !important
(#221) Use of !important
(#234) Rule is empty.
(#241) Rule is empty.
(#255) Use of !important
(#276) width can't be used with display: inline.
(#277) height can't be used with display: inline.
(#279) margin-bottom can't be used with display: inline.
(#297) Use of !important
(#304) Use of !important
(#309) Use of !important
(#313) Use of !important
(#318) Use of !important
(#323) Use of !important
(#355) Duplicate property 'text-align' found.
(#386) Rule is empty.
(#423) Use of !important
(#458) Use of !important
(#467) Use of !important
(#468) Use of !important
(#492) Use of !important
(#502) Use of !important
(#510) Use of !important
(#511) Use of !important
(#512) Use of !important
(#513) Use of !important
(#529) Use of !important
(#533) Use of !important
(#537) Use of !important
(#538) Use of !important
(#541) Use of !important

PHPDocs style problems

(11 errors, 1 warnings)

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

theme/simple/config.php
(#23) Package theme_decaf is not valid
theme/simple/lang/en/theme_simple.php
(#2) Empty line found after PHP open tag
(#21) Package theme_base is not valid
theme/simple/layout/columns1.php
(#20) Package theme_bootstrapbase is not valid
theme/simple/layout/columns2.php
(#20) Package theme_bootstrapbase is not valid
theme/simple/layout/columns3.php
(#20) Package theme_bootstrapbase is not valid
theme/simple/layout/embedded.php
(#20) Package theme_bootstrapbase is not valid
theme/simple/layout/frontpage.php
(#20) Package theme_bootstrapbase is not valid
theme/simple/layout/maintenance.php
(#26) Package theme_bootstrapbase is not valid
theme/simple/layout/popup.php
(#20) Package theme_bootstrapbase is not valid
theme/simple/layout/secure.php
(#20) Package theme_bootstrapbase is not valid
theme/simple/version.php
(#20) Package theme_base is not valid

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]