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

(57 errors, 31 warnings)

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

blocks/mooprofile/block_mooprofile.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#28) Opening brace should be on the same line as the declaration
(#31) "include_once" must be immediately followed by an open parenthesis
(#44) Opening brace should be on the same line as the declaration
(#45) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Inline comments must start with a capital letter, digit or 3-dots sequence
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Opening brace should be on the same line as the declaration
(#93) Inline comments must start with a capital letter, digit or 3-dots sequence
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#117) Opening brace should be on the same line as the declaration
(#120) Inline comments must start with a capital letter, digit or 3-dots sequence
(#120) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) Opening brace should be on the same line as the declaration
(#168) Line exceeds 132 characters; contains 145 characters
(#174) Line exceeds maximum limit of 180 characters; contains 183 characters
(#180) Inline comments must start with a capital letter, digit or 3-dots sequence
(#180) Inline comments must end in full-stops, exclamation marks, or question marks
(#183) Inline comments must start with a capital letter, digit or 3-dots sequence
(#184) Inline comments must end in full-stops, exclamation marks, or question marks
(#187) Line exceeds 132 characters; contains 166 characters
(#189) Line exceeds maximum limit of 180 characters; contains 189 characters
(#196) Line exceeds 132 characters; contains 178 characters
(#203) Line exceeds 132 characters; contains 156 characters
(#204) Line exceeds 132 characters; contains 134 characters
(#227) Opening brace should be on the same line as the declaration
(#248) Opening brace should be on the same line as the declaration
(#265) Opening brace should be on the same line as the declaration
(#278) Inline comments must start with a capital letter, digit or 3-dots sequence
(#278) Inline comments must end in full-stops, exclamation marks, or question marks
(#281) Line indented incorrectly; expected 8 spaces, found 16
(#281) Closing brace indented incorrectly; expected 8 spaces, found 16
(#283) Inline comments must start with a capital letter, digit or 3-dots sequence
(#283) Inline comments must end in full-stops, exclamation marks, or question marks
(#286) Line indented incorrectly; expected 8 spaces, found 16
(#286) Closing brace indented incorrectly; expected 8 spaces, found 16
(#288) Inline comments must start with a capital letter, digit or 3-dots sequence
(#288) Inline comments must end in full-stops, exclamation marks, or question marks
(#314) Inline comments must start with a capital letter, digit or 3-dots sequence
(#314) Inline comments must end in full-stops, exclamation marks, or question marks
(#319) Opening brace should be on the same line as the declaration
(#331) Opening brace should be on the same line as the declaration
(#341) Opening brace should be on the same line as the declaration
(#351) Opening brace should be on the same line as the declaration
(#361) Opening brace should be on the same line as the declaration
(#373) Opening brace should be on the same line as the declaration
(#383) Opening brace should be on the same line as the declaration
(#392) Opening brace should be on the same line as the declaration
(#393) Whitespace found at end of line
(#401) Opening brace should be on the same line as the declaration
(#402) Whitespace found at end of line
blocks/mooprofile/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/mooprofile/edit_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#25) Opening brace should be on the same line as the declaration
(#28) "include_once" must be immediately followed by an open parenthesis
(#36) Line exceeds 132 characters; contains 134 characters
(#55) Inline comments must start with a capital letter, digit or 3-dots sequence
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Line exceeds 132 characters; contains 160 characters
blocks/mooprofile/lang/en/block_mooprofile.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/mooprofile/locallib.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".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#4) 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 "//".
(#5) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#5) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#12) "include_once" must be immediately followed by an open parenthesis
(#12) File is being unconditionally included; use "require_once" instead
(#27) Whitespace found at end of line
(#32) Opening brace should be on the same line as the declaration
(#38) Whitespace found at end of line
(#42) Opening brace should be on the same line as the declaration
(#48) Whitespace found at end of line
(#53) Opening brace should be on the same line as the declaration
(#66) Opening brace should be on the same line as the declaration
blocks/mooprofile/version.php
(#2) The opening <?php tag must be followed by exactly one newline.

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

(1 errors, 2 warnings)

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

blocks/mooprofile/styles.css
(#28) Use of !important
(#28) Duplicate property 'font-size' found.
(#45) Rule is empty.

PHPDocs style problems

(19 errors, 12 warnings)

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

blocks/mooprofile/block_mooprofile.php
(#2) Empty line found after PHP open tag
(#27) Function block_mooprofile::init is not documented
(#318) Function block_mooprofile::instance_config_save is not documented
(#23) Variable block_mooprofile::$helper is not documented
(#24) Variable block_mooprofile::$usersdisplayed is not documented
(#25) Variable block_mooprofile::$displayfields is not documented
(#3) No one-line description found in phpdocs for file
(#222) Phpdocs for function block_mooprofile::can_display has incomplete parameters list
(#259) Phpdocs for function block_mooprofile::cleanup_blockdata has incomplete parameters list
(#40) Not recommended phpdocs tag @global used
(#82) Not recommended phpdocs tag @global used
(#112) Not recommended phpdocs tag @global used
(#112) Not recommended phpdocs tag @global used
(#145) Not recommended phpdocs tag @global used
(#145) Not recommended phpdocs tag @global used
(#5) Package block is not valid
blocks/mooprofile/db/access.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/mooprofile/edit_form.php
(#2) Empty line found after PHP open tag
(#24) Function block_mooprofile_edit_form::specific_definition is not documented
(#3) No one-line description found in phpdocs for file
(#5) Package block is not valid
(#16) Package block is not valid
blocks/mooprofile/lang/en/block_mooprofile.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/mooprofile/locallib.php
(#23) Variable mooprofile_helper::$name is not documented
(#2) No one-line description found in phpdocs for file
(#49) Not recommended phpdocs tag @global used
(#4) Package block is not valid
blocks/mooprofile/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]


Mustache template problems

(0 errors, 0 warnings)

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