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

(42 errors, 25 warnings)

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

local/loginas/ajax.php
(#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
(#34) Expected 1 space before "=>"; 0 found
(#34) Expected 1 space after "=>"; 0 found
(#34) Expected 1 space before "=>"; 0 found
(#34) Expected 1 space after "=>"; 0 found
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#47) Inline comments must start with a capital letter, digit or 3-dots sequence
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
local/loginas/db/uninstall.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#36) Inline comments must start with a capital letter, digit or 3-dots sequence
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) This comment is 60% valid code; is this commented out code?
(#36) No space found before comment text; expected "// $dbman = $DB->get_manager();" but found "//$dbman = $DB->get_manager();"
(#37) Whitespace found at end of line
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
local/loginas/lang/en/local_loginas.php
(#2) The opening <?php tag must be followed by exactly one newline.
local/loginas/lib.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#38) Whitespace found at end of line
(#44) Whitespace found at end of line
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Line indented incorrectly; expected at least 4 spaces, found 3
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
(#77) Whitespace found at end of line
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) Expected 1 space after "?"; newline found
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Whitespace found at end of line
(#112) Whitespace found at end of line
(#145) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) Expected 1 space before "=>"; 0 found
(#153) Expected 1 space after "=>"; 0 found
(#154) Expected 1 space before "=>"; 0 found
(#154) Expected 1 space after "=>"; 0 found
(#156) Inline comments must end in full-stops, exclamation marks, or question marks
(#160) Whitespace found at end of line
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
(#163) Commas (,) must be followed by white space.
(#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
(#177) Whitespace found at end of line
(#178) Inline comments must end in full-stops, exclamation marks, or question marks
(#182) Inline comments must end in full-stops, exclamation marks, or question marks
(#185) Whitespace found at end of line
(#186) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) Whitespace found at end of line
(#190) Whitespace found at end of line
(#191) Inline comments must end in full-stops, exclamation marks, or question marks
(#198) Inline comments must end in full-stops, exclamation marks, or question marks
(#200) Commas (,) must be followed by white space.
(#202) Whitespace found at end of line within string
(#207) Whitespace found at end of line within string
(#208) Whitespace found at end of line within string
(#214) Expected 1 space before "*"; 0 found
(#214) Expected 1 space after "*"; 0 found
local/loginas/settings.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#16) Whitespace found at end of line
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
local/loginas/version.php
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#16) Whitespace found at end of line

Javascript coding style problems

(0 errors, 25 warnings)

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

local/loginas/yui/quickloginas/quickloginas.js
(#91) Unnecessary semicolon.
(#96) ['id'] is better written in dot notation.
(#165) Expected '===' and instead saw '=='.
(#170) ['sesskey'] is better written in dot notation.
(#171) ['action'] is better written in dot notation.
(#172) ['search'] is better written in dot notation.
(#173) ['page'] is better written in dot notation.
(#185) ['contextid'] is better written in dot notation.
(#204) 'result' used out of scope.
(#214) 'result' used out of scope.
(#216) 'result' used out of scope.
(#218) ['id'] is better written in dot notation.
(#219) ['sesskey'] is better written in dot notation.
(#220) ['user'] is better written in dot notation.
(#238) Line is too long.
(#238) 'result' used out of scope.
(#238) Expected '===' and instead saw '=='.
(#238) 'result' used out of scope.
(#256) 'result' used out of scope.
(#353) Missing semicolon.
(#52) 'config' is defined but never used.
(#59) 'config' is defined but never used.
(#110) 'e' is defined but never used.
(#148) 'e' is defined but never used.
(#163) 'on' is defined but never used.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(13 errors, 3 warnings)

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

local/loginas/ajax.php
(#20) Package local is not valid
local/loginas/db/uninstall.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
(#19) Package local is not valid
local/loginas/lang/en/local_loginas.php
(#2) Empty line found after PHP open tag
(#21) Package local is not valid
local/loginas/lib.php
(#17) No one-line description found in phpdocs for file
(#29) Phpdocs for function local_loginas_extends_navigation has incomplete parameters list
(#109) Phpdocs for function local_loginas_require_js has incomplete parameters list
(#136) Phpdocs for function local_loginas_get_users has incomplete parameters list
(#135) Not recommended phpdocs tag @global used
(#18) Package local is not valid
local/loginas/settings.php
(#17) No one-line description found in phpdocs for file
(#18) Package local is not valid
local/loginas/version.php
(#17) No one-line description found in phpdocs for file
(#18) Package local 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]