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

(106 errors, 200 warnings)

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

theme/campus/admin_setting_configinteger.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion
(#39) Line exceeds 132 characters; contains 145 characters
theme/campus/campus-lib.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion
(#36) Expected "foreach (...) {\n"; found "foreach(...){\n"
theme/campus/classes/core_renderer.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#29) Expected MOODLE_INTERNAL check or config.php inclusion
(#59) Variable "list_items" must not contain underscores.
(#62) Variable "list_items" must not contain underscores.
(#272) This comment is 67% valid code; is this commented out code?
(#280) Line exceeds 132 characters; contains 134 characters
(#290) Inline comments must start with a capital letter, digit or 3-dots sequence
(#301) Line exceeds 132 characters; contains 133 characters
(#312) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#312) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#333) Line exceeds 132 characters; contains 142 characters
(#343) Variable "anti_gravity" must not contain underscores.
(#346) Variable "anti_gravity" must not contain underscores.
(#401) Expected 1 space before "=>"; 0 found
(#401) Expected 1 space after "=>"; 0 found
(#401) Expected 1 space before "=>"; 0 found
(#401) Expected 1 space after "=>"; 0 found
(#401) Expected 1 space before "=>"; 0 found
(#401) Expected 1 space after "=>"; 0 found
(#459) Inline comments must end in full-stops, exclamation marks, or question marks
(#467) Inline comments must end in full-stops, exclamation marks, or question marks
(#471) Inline comments must end in full-stops, exclamation marks, or question marks
(#476) Inline comments must end in full-stops, exclamation marks, or question marks
(#490) Inline comments must end in full-stops, exclamation marks, or question marks
(#497) Inline comments must end in full-stops, exclamation marks, or question marks
(#510) Inline comments must end in full-stops, exclamation marks, or question marks
(#512) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#528) Inline comments must end in full-stops, exclamation marks, or question marks
(#589) Inline comments must start with a capital letter, digit or 3-dots sequence
(#589) Inline comments must end in full-stops, exclamation marks, or question marks
(#595) Inline comments must end in full-stops, exclamation marks, or question marks
(#614) Inline comments must end in full-stops, exclamation marks, or question marks
(#622) Line exceeds 132 characters; contains 157 characters
(#656) Line exceeds 132 characters; contains 146 characters
(#688) Inline comments must end in full-stops, exclamation marks, or question marks
(#724) Inline comments must end in full-stops, exclamation marks, or question marks
(#764) Line exceeds 132 characters; contains 140 characters
(#789) Line exceeds 132 characters; contains 140 characters
(#828) Line exceeds 132 characters; contains 133 characters
(#829) Expected 1 space before ":"; newline found
(#831) Line exceeds 132 characters; contains 136 characters
(#832) Expected 1 space before ":"; newline found
(#837) Line exceeds 132 characters; contains 161 characters
(#845) Line exceeds 132 characters; contains 166 characters
(#861) Line exceeds 132 characters; contains 133 characters
(#862) Expected 1 space before ":"; newline found
(#864) Line exceeds 132 characters; contains 136 characters
(#865) Expected 1 space before ":"; newline found
(#870) Line exceeds 132 characters; contains 161 characters
theme/campus/config.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#122) Expected 1 space before "=>"; 0 found
(#122) Expected 1 space after "=>"; 0 found
(#129) Inline comments must start with a capital letter, digit or 3-dots sequence
(#129) Inline comments must end in full-stops, exclamation marks, or question marks
(#152) Expected 1 space before "=>"; 0 found
(#152) Expected 1 space after "=>"; 0 found
(#163) Expected 1 space before "=>"; 0 found
(#163) Expected 1 space after "=>"; 0 found
(#170) Expected 1 space before "=>"; 0 found
(#170) Expected 1 space after "=>"; 0 found
(#170) Expected 1 space before "=>"; 0 found
(#170) Expected 1 space after "=>"; 0 found
(#176) Expected 1 space before "=>"; 0 found
(#176) Expected 1 space after "=>"; 0 found
(#176) Expected 1 space before "=>"; 0 found
(#176) Expected 1 space after "=>"; 0 found
(#178) Inline comments must end in full-stops, exclamation marks, or question marks
(#189) Expected 1 space before "=>"; 0 found
(#189) Expected 1 space after "=>"; 0 found
(#189) Expected 1 space before "=>"; 0 found
(#189) Expected 1 space after "=>"; 0 found
(#189) Expected 1 space before "=>"; 0 found
(#189) Expected 1 space after "=>"; 0 found
(#189) Expected 1 space before "=>"; 0 found
(#189) Expected 1 space after "=>"; 0 found
(#195) Expected 1 space before "=>"; 0 found
(#195) Expected 1 space after "=>"; 0 found
(#195) Expected 1 space before "=>"; 0 found
(#195) Expected 1 space after "=>"; 0 found
theme/campus/db/upgrade.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion
theme/campus/lang/en/theme_campus.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#417) Inline comments must start with a capital letter, digit or 3-dots sequence
theme/campus/layout/columns1.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
theme/campus/layout/columns2l.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#86) Expected "if (...) {\n"; found "if (...) { "
(#86) Closing brace must be on a line by itself
theme/campus/layout/columns2r.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#86) Expected "if (...) {\n"; found "if (...) { "
(#86) Closing brace must be on a line by itself
theme/campus/layout/columns3.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#104) Line exceeds 132 characters; contains 153 characters
(#105) Expected 1 space before "=="; newline found
theme/campus/layout/embedded.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
theme/campus/layout/frontpage2l.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#87) Expected "if (...) {\n"; found "if (...) { "
(#87) Closing brace must be on a line by itself
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
theme/campus/layout/frontpage2r.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#87) Expected "if (...) {\n"; found "if (...) { "
(#87) Closing brace must be on a line by itself
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
(#95) Line exceeds 132 characters; contains 148 characters
theme/campus/layout/frontpage3.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
(#88) Line exceeds 132 characters; contains 156 characters
theme/campus/layout/maintenance.php
(#39) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
theme/campus/layout/popup.php
(#28) Whitespace found at end of line
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#49) Line indented incorrectly; expected 0 spaces, found 4
(#49) Expected "if (...) {\n"; found "if(...) {\n"
(#52) Line indented incorrectly; expected 0 spaces, found 4
theme/campus/layout/secure.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
theme/campus/layout/tiles/coursecategory-header.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#37) Line exceeds 132 characters; contains 156 characters
(#38) Line exceeds 132 characters; contains 153 characters
(#39) Line exceeds maximum limit of 180 characters; contains 186 characters
(#58) Line exceeds 132 characters; contains 146 characters
(#65) Line exceeds 132 characters; contains 152 characters
(#69) Line exceeds 132 characters; contains 141 characters
(#69) Inline comments must start with a capital letter, digit or 3-dots sequence
(#72) Line exceeds 132 characters; contains 169 characters
(#72) Inline comments must start with a capital letter, digit or 3-dots sequence
(#76) Line exceeds 132 characters; contains 171 characters
(#76) Inline comments must start with a capital letter, digit or 3-dots sequence
(#79) Inline comments must start with a capital letter, digit or 3-dots sequence
(#79) Line exceeds maximum limit of 180 characters; contains 199 characters
(#108) Line exceeds 132 characters; contains 161 characters
(#112) Line exceeds maximum limit of 180 characters; contains 191 characters
(#124) Line exceeds 132 characters; contains 160 characters
(#135) Line exceeds 132 characters; contains 137 characters
theme/campus/layout/tiles/footer.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#51) A closing tag is not permitted at the end of a PHP file
theme/campus/layout/tiles/footer_blocks.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) A closing tag is not permitted at the end of a PHP file
theme/campus/layout/tiles/frontpage-header.php
(#30) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#33) Line exceeds 132 characters; contains 138 characters
(#39) Line exceeds 132 characters; contains 141 characters
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#42) Line exceeds 132 characters; contains 169 characters
(#42) Inline comments must start with a capital letter, digit or 3-dots sequence
(#46) Line exceeds 132 characters; contains 171 characters
(#46) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Line exceeds maximum limit of 180 characters; contains 199 characters
(#60) Line exceeds maximum limit of 180 characters; contains 191 characters
(#73) Line exceeds 132 characters; contains 161 characters
(#79) Line exceeds 132 characters; contains 158 characters
(#86) Line exceeds 132 characters; contains 144 characters
theme/campus/layout/tiles/header-tile.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#59) Line exceeds 132 characters; contains 134 characters
(#67) Line exceeds 132 characters; contains 174 characters
(#69) Line exceeds 132 characters; contains 134 characters
(#71) Line exceeds 132 characters; contains 138 characters
(#87) Line exceeds 132 characters; contains 134 characters
(#97) File is being unconditionally included; use "require" instead
theme/campus/layout/tiles/header.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
theme/campus/layout/tiles/navbar.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
theme/campus/layout/tiles/page-header.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#48) Expected 1 space before "=="; newline found
theme/campus/layout/tiles/page-header_frontpage.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#40) Line exceeds 132 characters; contains 133 characters
(#40) Line exceeds 132 characters; contains 133 characters
(#40) Line exceeds 132 characters; contains 133 characters
theme/campus/layout/tiles/pagebody_slideshow.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) Line exceeds 132 characters; contains 133 characters
theme/campus/layout/tiles/slideshow.php
(#30) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#31) Expected 1 space before "?"; 0 found
(#50) Line indented incorrectly; expected 0 spaces, found 20
(#50) Closing brace indented incorrectly; expected 0 spaces, found 20
(#56) A closing tag is not permitted at the end of a PHP file
theme/campus/layout/tiles/social.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#51) Line exceeds 132 characters; contains 172 characters
theme/campus/lib.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion
(#214) Line exceeds 132 characters; contains 140 characters
(#235) Line exceeds maximum limit of 180 characters; contains 197 characters
(#238) Line indented incorrectly; expected 8 spaces, found 7
(#238) Closing brace indented incorrectly; expected 8 spaces, found 7
(#264) Line exceeds maximum limit of 180 characters; contains 197 characters
(#314) Line exceeds 132 characters; contains 164 characters
(#326) This comment is 48% valid code; is this commented out code?
(#330) Line exceeds 132 characters; contains 157 characters
(#335) Line exceeds 132 characters; contains 165 characters
(#337) Inline comments must start with a capital letter, digit or 3-dots sequence
(#338) Line exceeds 132 characters; contains 149 characters
(#350) This comment is 48% valid code; is this commented out code?
(#354) Line exceeds 132 characters; contains 157 characters
(#360) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#365) Line exceeds 132 characters; contains 148 characters
(#386) This comment is 50% valid code; is this commented out code?
(#391) Line exceeds 132 characters; contains 157 characters
(#409) This comment is 48% valid code; is this commented out code?
(#414) Line exceeds 132 characters; contains 175 characters
(#419) Line exceeds 132 characters; contains 144 characters
(#422) Line exceeds 132 characters; contains 144 characters
(#441) This comment is 50% valid code; is this commented out code?
(#446) Line exceeds 132 characters; contains 157 characters
(#448) Line exceeds 132 characters; contains 140 characters
(#449) Line exceeds 132 characters; contains 136 characters
(#450) Line exceeds 132 characters; contains 172 characters
(#462) This comment is 50% valid code; is this commented out code?
(#467) Line exceeds 132 characters; contains 175 characters
(#474) This comment is 48% valid code; is this commented out code?
(#474) Line indented incorrectly; expected at least 24 spaces, found 20
(#489) Inline comments must start with a capital letter, digit or 3-dots sequence
(#510) This comment is 50% valid code; is this commented out code?
(#515) Line exceeds 132 characters; contains 157 characters
(#518) Line exceeds 132 characters; contains 173 characters
(#520) Inline comments must start with a capital letter, digit or 3-dots sequence
(#521) Line exceeds 132 characters; contains 157 characters
(#533) This comment is 50% valid code; is this commented out code?
(#538) Line exceeds 132 characters; contains 175 characters
(#548) This comment is 46% valid code; is this commented out code?
(#556) This comment is 48% valid code; is this commented out code?
(#556) Line indented incorrectly; expected at least 20 spaces, found 16
(#574) Inline comments must end in full-stops, exclamation marks, or question marks
(#574) This comment is 43% valid code; is this commented out code?
(#576) Inline comments must start with a capital letter, digit or 3-dots sequence
(#576) Inline comments must end in full-stops, exclamation marks, or question marks
(#576) This comment is 43% valid code; is this commented out code?
(#578) Inline comments must start with a capital letter, digit or 3-dots sequence
(#578) Inline comments must end in full-stops, exclamation marks, or question marks
(#578) This comment is 43% valid code; is this commented out code?
(#612) Inline comments must start with a capital letter, digit or 3-dots sequence
(#645) Inline comments must start with a capital letter, digit or 3-dots sequence
(#678) Inline comments must start with a capital letter, digit or 3-dots sequence
(#711) Inline comments must start with a capital letter, digit or 3-dots sequence
(#748) Inline comments must start with a capital letter, digit or 3-dots sequence
(#754) Line exceeds 132 characters; contains 133 characters
(#754) Inline comments must start with a capital letter, digit or 3-dots sequence
(#760) Inline comments must start with a capital letter, digit or 3-dots sequence
(#766) Line exceeds 132 characters; contains 135 characters
(#766) Inline comments must start with a capital letter, digit or 3-dots sequence
(#818) Inline comments must end in full-stops, exclamation marks, or question marks
(#837) Inline comments must end in full-stops, exclamation marks, or question marks
(#860) Line exceeds 132 characters; contains 180 characters
(#861) Line exceeds 132 characters; contains 178 characters
(#872) Line exceeds 132 characters; contains 160 characters
theme/campus/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#173) Line exceeds 132 characters; contains 145 characters
(#701) Line exceeds 132 characters; contains 160 characters
(#743) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
theme/campus/version.php
(#32) This comment is 45% valid code; is this commented out code?

Javascript coding style problems

(0 errors, 15 warnings)

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

theme/campus/Gruntfile.js
(#110) 'module' is not defined.
(#113) 'require' is not defined.
(#125) 'console' is not defined.
(#126) 'console' is not defined.
(#130) '__dirname' is not defined.
(#133) 'process' is not defined.
(#140) 'process' is not defined.
(#116) 'LESSDIR' is defined but never used.
(#178) 'stderror' is defined but never used.
(#178) 'stdout' is defined but never used.
theme/campus/javascript/campus.js
(#2) Line is too long.
(#1) 'require' is not defined.
(#2) 'require' is not defined.
theme/campus/javascript/html5shiv.js
(#186) Missing 'new' prefix when invoking a constructor.
(#247) Line is too long.

CSS problems

(13 errors, 0 warnings)

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

theme/campus/style/custom.css
(#10) Expected IDENT at line 10, col 2.
(#10) Expected IDENT at line 10, col 2.
theme/campus/style/font.css
(#29) @charset not allowed here.
(#492) Duplicate property 'font-weight' found.
(#502) Duplicate property 'font-weight' found.
(#511) Duplicate property 'font-weight' found.
(#521) Duplicate property 'font-weight' found.
(#530) Duplicate property 'font-weight' found.
(#540) Duplicate property 'font-weight' found.
(#549) Duplicate property 'font-weight' found.
(#559) Duplicate property 'font-weight' found.
(#569) Duplicate property 'font-weight' found.
(#578) Duplicate property 'font-weight' found.

Update savepoints problems

(2 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

theme/campus/db/upgrade.php
Detected more 'if' blocks (1) than 'savepoint' calls (0)
version 2114121700 is missing corresponding savepoint call

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

(17 errors, 0 warnings)

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

theme/campus/amd/build/bootstrap.min.js
Uncommitted change detected.
theme/campus/fonts/DroidSerif-Regular-webfont.ttf
Uncommitted change detected.
theme/campus/fonts/RobotoCondensed-Light-webfont.ttf
Uncommitted change detected.
theme/campus/fonts/SourceSansPro-LightIt.eot
Uncommitted change detected.
theme/campus/fonts/SourceSansPro-LightIt.ttf
Uncommitted change detected.
theme/campus/fonts/Ubuntu-B.ttf
Uncommitted change detected.
theme/campus/fonts/Ubuntu-BI.ttf
Uncommitted change detected.
theme/campus/fonts/Ubuntu-L.ttf
Uncommitted change detected.
theme/campus/fonts/Ubuntu-LI.ttf
Uncommitted change detected.
theme/campus/fonts/Ubuntu-M.ttf
Uncommitted change detected.
theme/campus/fonts/Ubuntu-MI.ttf
Uncommitted change detected.
theme/campus/fonts/Ubuntu-R.ttf
Uncommitted change detected.
theme/campus/fonts/Ubuntu-RI.ttf
Uncommitted change detected.
theme/campus/fonts/Vollkorn-Bold.ttf
Uncommitted change detected.
theme/campus/fonts/Vollkorn-BoldItalic.ttf
Uncommitted change detected.
theme/campus/fonts/Vollkorn-Regular.ttf
Uncommitted change detected.
theme/campus/fonts/fontawesome-webfont.ttf
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]