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

(206 errors, 30 warnings)

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

enrol/saml/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
enrol/saml/db/install.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/saml/edit.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#41) Expected 1 space before "=>"; 0 found
(#41) Expected 1 space after "=>"; 0 found
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#51) Inline comments must start with a capital letter, digit or 3-dots sequence
(#58) Inline comments must start with a capital letter, digit or 3-dots sequence
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Expected 1 space before "=>"; 0 found
(#59) Expected 1 space after "=>"; 0 found
(#65) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#79) Expected 1 space before "=>"; 0 found
(#79) Expected 1 space after "=>"; 0 found
(#79) Expected 1 space before "=>"; 0 found
(#79) Expected 1 space after "=>"; 0 found
(#79) Expected 1 space before "=>"; 0 found
(#79) Expected 1 space after "=>"; 0 found
enrol/saml/edit_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#33) Visibility must be declared on method "definition"
(#46) Line exceeds 132 characters; contains 148 characters
enrol/saml/lang/en/enrol_saml.php
(#2) The opening <?php tag must be followed by exactly one newline.
enrol/saml/lang/es/enrol_saml.php
(#2) The opening <?php tag must be followed by exactly one newline.
enrol/saml/lang/es_es/enrol_saml.php
(#2) The opening <?php tag must be followed by exactly one newline.
enrol/saml/lib.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#4) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#6) Expected MOODLE_INTERNAL check or config.php inclusion
(#19) Expected 1 space before "=>"; 0 found
(#19) Expected 1 space after "=>"; 0 found
(#33) Inline comments must start with a capital letter, digit or 3-dots sequence
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Inline comments must start with a capital letter, digit or 3-dots sequence
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) 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
(#64) Expected 1 space before "=>"; 0 found
(#64) Expected 1 space after "=>"; 0 found
(#85) Expected 1 space before "=>"; 0 found
(#85) Expected 1 space after "=>"; 0 found
(#86) Expected 1 space before "=>"; 0 found
(#86) Expected 1 space after "=>"; 0 found
(#86) Line exceeds 132 characters; contains 159 characters
(#89) Expected 1 space before "=>"; 0 found
(#89) Expected 1 space after "=>"; 0 found
(#90) Expected 1 space before "=>"; 0 found
(#90) Expected 1 space after "=>"; 0 found
(#107) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#110) Expected 1 space before "=>"; 0 found
(#110) Expected 1 space after "=>"; 0 found
(#110) Expected 1 space before "=>"; 0 found
(#110) Expected 1 space after "=>"; 0 found
(#111) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#114) Expected 1 space before "=>"; 0 found
(#114) Expected 1 space after "=>"; 0 found
(#123) Expected 1 space before "=>"; 0 found
(#123) Expected 1 space after "=>"; 0 found
(#123) Expected 1 space before "=>"; 0 found
(#123) Expected 1 space after "=>"; 0 found
(#123) Expected 1 space before "=>"; 0 found
(#123) Expected 1 space after "=>"; 0 found
(#123) Line exceeds 132 characters; contains 157 characters
(#133) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#136) Expected 1 space before "=>"; 0 found
(#136) Expected 1 space after "=>"; 0 found
(#136) Expected 1 space before "=>"; 0 found
(#136) Expected 1 space after "=>"; 0 found
(#137) Inline comments must start with a capital letter, digit or 3-dots sequence
(#137) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#148) Line indented incorrectly; expected 12 spaces, found 10
(#149) Line indented incorrectly; expected at least 16 spaces, found 14
(#150) Line indented incorrectly; expected at least 16 spaces, found 14
(#151) Line indented incorrectly; expected 12 spaces, found 10
(#165) Inline comments must end in full-stops, exclamation marks, or question marks
(#167) Whitespace found at end of line
(#168) Variable "SAML_COURSE_INFO" must be all lower-case
(#168) Variable "SAML_COURSE_INFO" must not contain underscores.
(#170) Expected "if (...) {\n"; found "if(...) {\n"
(#172) Expected "if (...) {\n"; found "if(...) {\n"
(#175) Expected "try {\n...} catch (...) {\n"; found "try {\n...}\n catch (...) {\n"
(#177) Line indented incorrectly; expected 16 spaces, found 14
(#177) Expected "foreach (...) {\n"; found "foreach(...) {\t\t \n"
(#177) Variable "SAML_COURSE_INFO" must be all lower-case
(#177) Variable "SAML_COURSE_INFO" must not contain underscores.
(#177) Spaces must be used for alignment; tabs are not allowed
(#177) Tab found within whitespace
(#177) Whitespace found at end of line
(#178) Line indented incorrectly; expected at least 20 spaces, found 18
(#178) Variable "moodle_role" must not contain underscores.
(#178) Expected 1 space after "=>"; 0 found
(#179) Line indented incorrectly; expected 20 spaces, found 18
(#179) Expected "if (...) {\n"; found "if(...) {\n"
(#179) Variable "moodle_role" must not contain underscores.
(#180) Line indented incorrectly; expected at least 24 spaces, found 22
(#180) Variable "new_course_ids_with_role" must not contain underscores.
(#181) Line indented incorrectly; expected at least 24 spaces, found 22
(#181) Variable "delete_course_ids_with_role" must not contain underscores.
(#182) Line indented incorrectly; expected 24 spaces, found 22
(#182) Variable "SAML_COURSE_INFO" must be all lower-case
(#182) Variable "SAML_COURSE_INFO" must not contain underscores.
(#183) Line indented incorrectly; expected 28 spaces, found 26
(#183) Expected "if (...) {\n"; found "if(...) {\n"
(#183) Variable "SAML_COURSE_INFO" must be all lower-case
(#183) Variable "SAML_COURSE_INFO" must not contain underscores.
(#184) Line indented incorrectly; expected at least 32 spaces, found 30
(#184) Variable "new_course_ids_with_role" must not contain underscores.
(#184) Variable "SAML_COURSE_INFO" must be all lower-case
(#184) Variable "SAML_COURSE_INFO" must not contain underscores.
(#185) Line indented incorrectly; expected 28 spaces, found 26
(#186) Line indented incorrectly; expected 28 spaces, found 26
(#186) Expected "if (...) {\n"; found "if(...) {\n"
(#186) Variable "SAML_COURSE_INFO" must be all lower-case
(#186) Variable "SAML_COURSE_INFO" must not contain underscores.
(#187) Line indented incorrectly; expected at least 32 spaces, found 30
(#187) Variable "delete_course_ids_with_role" must not contain underscores.
(#187) Variable "SAML_COURSE_INFO" must be all lower-case
(#187) Variable "SAML_COURSE_INFO" must not contain underscores.
(#188) Line indented incorrectly; expected 28 spaces, found 26
(#189) Line indented incorrectly; expected 24 spaces, found 22
(#190) Line indented incorrectly; expected 24 spaces, found 22
(#190) Expected "if (...) {\n"; found "if(...) {\n"
(#191) Line indented incorrectly; expected 28 spaces, found 26
(#191) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#191) Variable "delete_course_ids_with_role" must not contain underscores.
(#191) Variable "course_identify" must not contain underscores.
(#192) Line indented incorrectly; expected 32 spaces, found 30
(#192) Expected "if (...) {\n"; found "if(...) {\n"
(#192) Variable "course_identify" must not contain underscores.
(#192) Line exceeds 132 characters; contains 134 characters
(#193) Line indented incorrectly; expected at least 36 spaces, found 34
(#194) Line indented incorrectly; expected 36 spaces, found 34
(#194) Expected "if (...) {\n"; found "if(...) {\n"
(#195) Line indented incorrectly; expected at least 40 spaces, found 38
(#196) Line indented incorrectly; expected 36 spaces, found 34
(#197) Line indented incorrectly; expected 32 spaces, found 30
(#198) Line indented incorrectly; expected 28 spaces, found 26
(#199) Line indented incorrectly; expected 24 spaces, found 22
(#200) Line indented incorrectly; expected 24 spaces, found 22
(#200) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#200) Variable "new_course_ids_with_role" must not contain underscores.
(#200) Variable "course_identify" must not contain underscores.
(#201) Line indented incorrectly; expected 28 spaces, found 26
(#201) Expected "if (...) {\n"; found "if(...) {\n"
(#201) Variable "course_identify" must not contain underscores.
(#202) Line indented incorrectly; expected at least 32 spaces, found 30
(#203) Line indented incorrectly; expected 32 spaces, found 30
(#203) Expected "if (...) {\n"; found "if(...) {\n"
(#204) Line indented incorrectly; expected at least 36 spaces, found 34
(#205) Line indented incorrectly; expected 32 spaces, found 30
(#206) Line indented incorrectly; expected 32 spaces, found 30
(#206) Expected "} else {\n"; found "}\n else {\n"
(#207) Line indented incorrectly; expected at least 36 spaces, found 34
(#207) Variable "moodle_role" must not contain underscores.
(#207) Line exceeds 132 characters; contains 178 characters
(#207) Inline comments must start with a capital letter, digit or 3-dots sequence
(#207) Inline comments must end in full-stops, exclamation marks, or question marks
(#207) Whitespace found at end of line
(#208) Line indented incorrectly; expected 32 spaces, found 30
(#209) Line indented incorrectly; expected 28 spaces, found 26
(#209) Whitespace found at end of line
(#210) Line indented incorrectly; expected 24 spaces, found 22
(#211) Line indented incorrectly; expected 20 spaces, found 18
(#212) Line indented incorrectly; expected 20 spaces, found 18
(#212) Expected "} else {\n"; found "}\n else {\n"
(#213) Line indented incorrectly; expected at least 24 spaces, found 22
(#214) Line indented incorrectly; expected 20 spaces, found 18
(#215) Line indented incorrectly; expected 16 spaces, found 14
(#216) Line indented incorrectly; expected 12 spaces, found 10
(#216) Closing brace indented incorrectly; expected 12 spaces, found 10
(#217) Line indented incorrectly; expected 12 spaces, found 10
(#218) Line indented incorrectly; expected at least 16 spaces, found 12
(#219) Line indented incorrectly; expected 12 spaces, found 10
(#220) Line indented incorrectly; expected at least 12 spaces, found 10
(#220) Variable "SAML_COURSE_INFO" must be all lower-case
(#220) Variable "SAML_COURSE_INFO" must not contain underscores.
(#221) Line indented incorrectly; expected at least 12 spaces, found 10
(#221) Variable "SAML_COURSE_INFO" must be all lower-case
(#221) Variable "SAML_COURSE_INFO" must not contain underscores.
(#222) Line indented incorrectly; expected 8 spaces, found 6
(#222) Closing brace indented incorrectly; expected 8 spaces, found 6
(#256) Closing brace must be on a line by itself
(#258) Closing brace must be on a line by itself
enrol/saml/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#30) Inline comments must start with a capital letter, digit or 3-dots sequence
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) No space found before comment text; expected "// --- general settings -----------------------------------------------------------------------------------" but found "//--- general settings -----------------------------------------------------------------------------------"
(#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) No space found before comment text; expected "// --- enrol instance defaults ----------------------------------------------------------------------------" but found "//--- enrol instance defaults ----------------------------------------------------------------------------"
enrol/saml/unenrolself.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#31) Expected 1 space before "=>"; 0 found
(#31) Expected 1 space after "=>"; 0 found
(#31) Expected 1 space before "=>"; 0 found
(#31) Expected 1 space after "=>"; 0 found
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#43) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Expected 1 space before "=>"; 0 found
(#45) Expected 1 space after "=>"; 0 found
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#53) Line exceeds 132 characters; contains 136 characters
(#53) Inline comments must start with a capital letter, digit or 3-dots sequence
(#53) No space found before comment text; expected "// there should be userid somewhere!" but found "//there should be userid somewhere!"
(#58) Expected 1 space before "=>"; 0 found
(#58) Expected 1 space after "=>"; 0 found
(#58) Expected 1 space before "=>"; 0 found
(#58) Expected 1 space after "=>"; 0 found
(#59) Expected 1 space before "=>"; 0 found
(#59) Expected 1 space after "=>"; 0 found
enrol/saml/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) 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 eslint [More info]


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(37 errors, 10 warnings)

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

enrol/saml/db/access.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag
(#21) Package enrol is not valid
enrol/saml/db/install.php
(#2) Empty line found after PHP open tag
(#28) Function xmldb_enrol_saml_install is not documented
(#18) File-level phpdocs block does not have @copyright tag
(#21) Package enrol is not valid
enrol/saml/edit.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
(#18) File-level phpdocs block does not have @copyright tag
(#22) Package enrol is not valid
enrol/saml/edit_form.php
(#2) Empty line found after PHP open tag
(#31) Class enrol_saml_edit_form is not documented
(#33) Function enrol_saml_edit_form::definition is not documented
(#18) No one-line description found in phpdocs for file
(#18) File-level phpdocs block does not have @copyright tag
(#22) Package enrol is not valid
enrol/saml/lang/en/enrol_saml.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag
(#21) Package enrol is not valid
enrol/saml/lang/es/enrol_saml.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag
(#21) Package enrol is not valid
enrol/saml/lang/es_es/enrol_saml.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag
(#21) Package enrol is not valid
enrol/saml/lib.php
(#2) File-level phpdocs block is not found
(#32) Function enrol_saml_plugin::roles_protected is not documented
(#37) Function enrol_saml_plugin::allow_unenrol is not documented
(#42) Function enrol_saml_plugin::allow_manage is not documented
(#47) Function enrol_saml_plugin::show_enrolme_link is not documented
(#144) Function enrol_saml_plugin::get_instance is not documented
(#156) Function enrol_saml_plugin::get_or_create_instance is not documented
(#164) Function enrol_saml_plugin::sync_user_enrolments is not documented
(#54) Phpdocs for function enrol_saml_plugin::add_course_navigation has incomplete parameters list
(#129) Phpdocs for function enrol_saml_plugin::add_instance has incomplete parameters list
(#2) Class enrol_saml_plugin does not have @copyright tag
(#2) Package is not specified for class enrol_saml_plugin. It is also not specified in file-level phpdocs
(#248) Package is not specified for function enrol_saml_supports. It is also not specified in file-level phpdocs
enrol/saml/settings.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag
(#21) Package enrol is not valid
enrol/saml/unenrolself.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag
(#21) Package enrol is not valid
enrol/saml/version.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found

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]