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

(340 errors, 37 warnings)

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

blocks/twitter/block_twitter.php
(#97) Expected 1 space before "=>"; 0 found
(#97) Expected 1 space after "=>"; 0 found
(#99) Expected 1 space before "=>"; 0 found
(#99) Expected 1 space after "=>"; 0 found
(#101) Expected 1 space before "=>"; 0 found
(#101) Expected 1 space after "=>"; 0 found
(#104) Expected 1 space before "=>"; 0 found
(#104) Expected 1 space after "=>"; 0 found
blocks/twitter/edit_form.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/twitter/locallib.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#43) Line exceeds 132 characters; contains 134 characters
blocks/twitter/renderer.php
(#34) Line exceeds maximum limit of 180 characters; contains 775 characters
(#37) Line exceeds maximum limit of 180 characters; contains 478 characters
(#40) Line exceeds maximum limit of 180 characters; contains 401 characters
(#49) Expected 1 space before "=>"; 0 found
(#49) Expected 1 space after "=>"; 0 found
(#49) Line exceeds 132 characters; contains 144 characters
(#50) Expected 1 space before "=>"; 0 found
(#50) Expected 1 space after "=>"; 0 found
(#50) Line exceeds 132 characters; contains 151 characters
(#53) Expected 1 space before "=>"; 0 found
(#53) Expected 1 space after "=>"; 0 found
(#53) Line exceeds 132 characters; contains 140 characters
(#54) Expected 1 space before "=>"; 0 found
(#54) Expected 1 space after "=>"; 0 found
(#54) Line exceeds 132 characters; contains 147 characters
(#57) Expected 1 space before "=>"; 0 found
(#57) Expected 1 space after "=>"; 0 found
(#57) Line exceeds 132 characters; contains 138 characters
(#58) Expected 1 space before "=>"; 0 found
(#58) Expected 1 space after "=>"; 0 found
(#58) Line exceeds 132 characters; contains 145 characters
blocks/twitter/twitter/Config.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#10) Expected MOODLE_INTERNAL check or config.php inclusion
(#15) Member variable "connectionTimeout" must be all lower-case
(#23) Member variable "decodeJsonAsArray" must be all lower-case
(#25) Member variable "userAgent" must be all lower-case
(#35) Public method name "Config::setTimeouts" must be in lower-case letters only
(#35) Variable "connectionTimeout" must be all lower-case
(#36) Opening brace should be on the same line as the declaration
(#37) Variable "connectionTimeout" must be all lower-case
(#44) Public method name "Config::setDecodeJsonAsArray" must be in lower-case letters only
(#45) Opening brace should be on the same line as the declaration
(#52) Public method name "Config::setUserAgent" must be in lower-case letters only
(#52) Variable "userAgent" must be all lower-case
(#53) Opening brace should be on the same line as the declaration
(#54) Variable "userAgent" must be all lower-case
(#60) Public method name "Config::setProxy" must be in lower-case letters only
(#61) Opening brace should be on the same line as the declaration
blocks/twitter/twitter/Consumer.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 "//".
(#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/>.".
(#8) Expected MOODLE_INTERNAL check or config.php inclusion
(#15) Member variable "callbackUrl" must be all lower-case
(#22) Variable "callbackUrl" must be all lower-case
(#23) Opening brace should be on the same line as the declaration
(#26) Variable "callbackUrl" must be all lower-case
(#33) Opening brace should be on the same line as the declaration
blocks/twitter/twitter/HmacSha1.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 "//".
(#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/>.".
(#15) Expected MOODLE_INTERNAL check or config.php inclusion
(#20) Public method name "HmacSha1::getName" must be in lower-case letters only
(#21) Opening brace should be on the same line as the declaration
(#28) Public method name "HmacSha1::buildSignature" must be in lower-case letters only
(#29) Opening brace should be on the same line as the declaration
(#30) Variable "signatureBase" must be all lower-case
(#37) Variable "signatureBase" must be all lower-case
blocks/twitter/twitter/Request.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 "//".
(#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/>.".
(#8) Expected MOODLE_INTERNAL check or config.php inclusion
(#11) Member variable "httpMethod" must be all lower-case
(#12) Member variable "httpUrl" must be all lower-case
(#22) Variable "httpMethod" must be all lower-case
(#22) Variable "httpUrl" must be all lower-case
(#23) Opening brace should be on the same line as the declaration
(#24) Variable "httpUrl" must be all lower-case
(#26) Variable "httpMethod" must be all lower-case
(#27) Variable "httpUrl" must be all lower-case
(#41) Public method name "Request::fromConsumerAndToken" must be in lower-case letters only
(#44) Variable "httpMethod" must be all lower-case
(#45) Variable "httpUrl" must be all lower-case
(#49) Must use "self::" for local static member reference
(#50) Must use "self::" for local static member reference
(#60) Variable "httpMethod" must be all lower-case
(#60) Variable "httpUrl" must be all lower-case
(#67) Public method name "Request::setParameter" must be in lower-case letters only
(#68) Opening brace should be on the same line as the declaration
(#77) Public method name "Request::getParameter" must be in lower-case letters only
(#78) Opening brace should be on the same line as the declaration
(#85) Public method name "Request::getParameters" must be in lower-case letters only
(#86) Opening brace should be on the same line as the declaration
(#93) Public method name "Request::removeParameter" must be in lower-case letters only
(#94) Opening brace should be on the same line as the declaration
(#103) Public method name "Request::getSignableParameters" must be in lower-case letters only
(#104) Opening brace should be on the same line as the declaration
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) This comment is 46% valid code; is this commented out code?
(#126) Public method name "Request::getSignatureBaseString" must be in lower-case letters only
(#127) Opening brace should be on the same line as the declaration
(#144) Public method name "Request::getNormalizedHttpMethod" must be in lower-case letters only
(#145) Opening brace should be on the same line as the declaration
(#155) Public method name "Request::getNormalizedHttpUrl" must be in lower-case letters only
(#156) Opening brace should be on the same line as the declaration
(#171) Public method name "Request::toUrl" must be in lower-case letters only
(#172) Opening brace should be on the same line as the declaration
(#173) Variable "postData" must be all lower-case
(#175) Variable "postData" must be all lower-case
(#176) Variable "postData" must be all lower-case
(#186) Public method name "Request::toPostdata" must be in lower-case letters only
(#187) Opening brace should be on the same line as the declaration
(#197) Public method name "Request::toHeader" must be in lower-case letters only
(#198) Opening brace should be on the same line as the declaration
(#219) Opening brace should be on the same line as the declaration
(#228) Public method name "Request::signRequest" must be in lower-case letters only
(#228) Variable "signatureMethod" must be all lower-case
(#229) Opening brace should be on the same line as the declaration
(#230) Variable "signatureMethod" must be all lower-case
(#231) Variable "signatureMethod" must be all lower-case
(#242) Public method name "Request::buildSignature" must be in lower-case letters only
(#242) Variable "signatureMethod" must be all lower-case
(#243) Opening brace should be on the same line as the declaration
(#244) Variable "signatureMethod" must be all lower-case
(#250) Public method name "Request::generateNonce" must be in lower-case letters only
(#251) Opening brace should be on the same line as the declaration
blocks/twitter/twitter/Response.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#10) Expected MOODLE_INTERNAL check or config.php inclusion
(#13) Member variable "apiPath" must be all lower-case
(#15) Member variable "httpCode" must be all lower-case
(#21) Member variable "xHeaders" must be all lower-case
(#26) Public method name "Response::setApiPath" must be in lower-case letters only
(#26) Variable "apiPath" must be all lower-case
(#27) Opening brace should be on the same line as the declaration
(#28) Variable "apiPath" must be all lower-case
(#34) Public method name "Response::getApiPath" must be in lower-case letters only
(#35) Opening brace should be on the same line as the declaration
(#42) Public method name "Response::setBody" must be in lower-case letters only
(#43) Opening brace should be on the same line as the declaration
(#50) Public method name "Response::getBody" must be in lower-case letters only
(#51) Opening brace should be on the same line as the declaration
(#58) Public method name "Response::setHttpCode" must be in lower-case letters only
(#58) Variable "httpCode" must be all lower-case
(#59) Opening brace should be on the same line as the declaration
(#60) Variable "httpCode" must be all lower-case
(#66) Public method name "Response::getHttpCode" must be in lower-case letters only
(#67) Opening brace should be on the same line as the declaration
(#74) Public method name "Response::setHeaders" must be in lower-case letters only
(#75) Opening brace should be on the same line as the declaration
(#87) Public method name "Response::getsHeaders" must be in lower-case letters only
(#88) Opening brace should be on the same line as the declaration
(#95) Public method name "Response::setXHeaders" must be in lower-case letters only
(#95) Variable "xHeaders" must be all lower-case
(#96) Opening brace should be on the same line as the declaration
(#97) Variable "xHeaders" must be all lower-case
(#103) Public method name "Response::getXHeaders" must be in lower-case letters only
(#104) Opening brace should be on the same line as the declaration
blocks/twitter/twitter/SignatureMethod.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 "//".
(#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) Expected MOODLE_INTERNAL check or config.php inclusion
(#19) Public method name "SignatureMethod::getName" must be in lower-case letters only
(#33) Public method name "SignatureMethod::buildSignature" must be in lower-case letters only
(#45) Public method name "SignatureMethod::checkSignature" must be in lower-case letters only
(#46) Opening brace should be on the same line as the declaration
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/twitter/twitter/Token.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 "//".
(#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/>.".
(#8) Expected MOODLE_INTERNAL check or config.php inclusion
(#20) Opening brace should be on the same line as the declaration
(#32) Opening brace should be on the same line as the declaration
blocks/twitter/twitter/TwitterOAuth.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".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) 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/>.".
(#16) Expected MOODLE_INTERNAL check or config.php inclusion
(#21) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Member variable "signatureMethod" must be all lower-case
(#42) Variable "consumerKey" must be all lower-case
(#42) Variable "consumerSecret" must be all lower-case
(#42) Variable "oauthToken" must be all lower-case
(#42) Variable "oauthTokenSecret" must be all lower-case
(#43) Opening brace should be on the same line as the declaration
(#46) Variable "consumerKey" must be all lower-case
(#46) Variable "consumerSecret" must be all lower-case
(#47) Variable "oauthToken" must be all lower-case
(#47) Variable "oauthTokenSecret" must be all lower-case
(#48) Variable "oauthToken" must be all lower-case
(#48) Variable "oauthTokenSecret" must be all lower-case
(#50) Variable "oauthToken" must be all lower-case
(#50) Variable "oauthTokenSecret" must be all lower-case
(#51) Variable "oauthTokenSecret" must be all lower-case
(#59) Public method name "TwitterOAuth::setOauthToken" must be in lower-case letters only
(#59) Variable "oauthToken" must be all lower-case
(#59) Variable "oauthTokenSecret" must be all lower-case
(#60) Opening brace should be on the same line as the declaration
(#61) Variable "oauthToken" must be all lower-case
(#61) Variable "oauthTokenSecret" must be all lower-case
(#67) Public method name "TwitterOAuth::getLastApiPath" must be in lower-case letters only
(#68) Opening brace should be on the same line as the declaration
(#75) Public method name "TwitterOAuth::getLastHttpCode" must be in lower-case letters only
(#76) Opening brace should be on the same line as the declaration
(#83) Public method name "TwitterOAuth::getLastXHeaders" must be in lower-case letters only
(#84) Opening brace should be on the same line as the declaration
(#91) Public method name "TwitterOAuth::getLastBody" must be in lower-case letters only
(#92) Opening brace should be on the same line as the declaration
(#99) Public method name "TwitterOAuth::resetLastResponse" must be in lower-case letters only
(#100) Opening brace should be on the same line as the declaration
(#113) Opening brace should be on the same line as the declaration
(#130) Opening brace should be on the same line as the declaration
(#156) Opening brace should be on the same line as the declaration
(#178) Opening brace should be on the same line as the declaration
(#191) Opening brace should be on the same line as the declaration
(#204) Opening brace should be on the same line as the declaration
(#217) Opening brace should be on the same line as the declaration
(#231) Opening brace should be on the same line as the declaration
(#247) Private method name "TwitterOAuth::uploadMediaNotChunked" must be in lower-case letters only
(#248) Opening brace should be on the same line as the declaration
(#263) Private method name "TwitterOAuth::uploadMediaChunked" must be in lower-case letters only
(#264) Opening brace should be on the same line as the declaration
(#265) Inline comments must end in full-stops, exclamation marks, or question marks
(#271) Inline comments must end in full-stops, exclamation marks, or question marks
(#272) Variable "segment_index" must not contain underscores.
(#274) Expected "while (...) {\n"; found "while (...)\n {\n"
(#279) Variable "segment_index" must not contain underscores.
(#284) Inline comments must end in full-stops, exclamation marks, or question marks
(#301) Opening brace should be on the same line as the declaration
(#321) Private method name "TwitterOAuth::oAuthRequest" must be in lower-case letters only
(#322) Opening brace should be on the same line as the declaration
(#349) Opening brace should be on the same line as the declaration
(#352) Inline comments must end in full-stops, exclamation marks, or question marks
(#392) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#394) Variable "curlHandle" must be all lower-case
(#395) Variable "curlHandle" must be all lower-case
(#396) Variable "curlHandle" must be all lower-case
(#399) Variable "curlHandle" must be all lower-case
(#400) Variable "curlHandle" must be all lower-case
(#400) Variable "curlHandle" must be all lower-case
(#403) Variable "curlHandle" must be all lower-case
(#405) Variable "responseBody" must be all lower-case
(#406) Variable "responseHeader" must be all lower-case
(#407) Variable "responseHeader" must be all lower-case
(#409) Variable "curlHandle" must be all lower-case
(#411) Variable "responseBody" must be all lower-case
(#421) Private method name "TwitterOAuth::parseHeaders" must be in lower-case letters only
(#422) Opening brace should be on the same line as the declaration
(#441) Private method name "TwitterOAuth::encodeAppAuthorization" must be in lower-case letters only
(#442) Opening brace should be on the same line as the declaration
(#443) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/twitter/twitter/TwitterOAuthException.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#8) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/twitter/twitter/Util.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 "//".
(#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/>.".
(#8) Expected MOODLE_INTERNAL check or config.php inclusion
(#15) Public method name "Util::urlencodeRfc3986" must be in lower-case letters only
(#16) Opening brace should be on the same line as the declaration
(#20) Usage of ELSEIF not allowed; use ELSE IF instead
(#31) Public method name "Util::urldecodeRfc3986" must be in lower-case letters only
(#32) Opening brace should be on the same line as the declaration
(#45) Public method name "Util::parseParameters" must be in lower-case letters only
(#46) Opening brace should be on the same line as the declaration
(#56) Must use "self::" for local static member reference
(#57) Must use "self::" for local static member reference
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Public method name "Util::buildHttpQuery" must be in lower-case letters only
(#83) Opening brace should be on the same line as the declaration
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Must use "self::" for local static member reference
(#90) Must use "self::" for local static member reference
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) This comment is 46% valid code; is this commented out code?
(#101) This comment is 46% valid code; is this commented out code?
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Variable "duplicateValue" must be all lower-case
(#105) Variable "duplicateValue" must be all lower-case
(#112) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/twitter/twitter/Util/JsonDecoder.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#8) Expected MOODLE_INTERNAL check or config.php inclusion
(#18) Variable "asArray" must be all lower-case
(#19) Opening brace should be on the same line as the declaration
(#21) Variable "asArray" must be all lower-case
(#24) Variable "asArray" must be all lower-case
blocks/twitter/twitterautoload.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".
(#5) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#5) 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/>.".
(#8) 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, 5 warnings)

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

blocks/twitter/styles.css
(#32) Unknown property 'fill'.
(#55) Unknown property 'fill'.
(#80) Unknown property 'fill'.
(#84) Unknown property 'fill'.
(#88) Unknown property 'fill'.

PHPDocs style problems

(118 errors, 4 warnings)

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

blocks/twitter/block_twitter.php
(#29) Class block_twitter is not documented
(#31) Function block_twitter::init is not documented
(#35) Function block_twitter::applicable_formats is not documented
(#39) Function block_twitter::has_config is not documented
(#43) Function block_twitter::instance_allow_multiple is not documented
(#47) Function block_twitter::get_content is not documented
blocks/twitter/db/caches.php
(#19) Package block_coursefiles is not valid
blocks/twitter/edit_form.php
(#17) File-level phpdocs block is not found
(#26) Function block_twitter_edit_form::specific_definition is not documented
blocks/twitter/locallib.php
(#30) Function block_twitter_get_tweets is not documented
(#55) Function block_twitter_relativetime is not documented
blocks/twitter/renderer.php
(#26) Class block_twitter_renderer is not documented
(#28) Function block_twitter_renderer::icon is not documented
blocks/twitter/twitter/Config.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#41) There is no description in phpdocs for function setDecodeJsonAsArray
(#49) There is no description in phpdocs for function setUserAgent
(#57) There is no description in phpdocs for function setProxy
(#5) Class Config does not have @copyright tag
(#5) Class Config does not have @license tag
(#5) Package is not specified for class Config. It is also not specified in file-level phpdocs
blocks/twitter/twitter/Consumer.php
(#8) Class Consumer is not documented
(#2) No one-line description found in phpdocs for file
(#17) There is no description in phpdocs for function __construct
(#29) There is no description in phpdocs for function __toString
(#2) File-level phpdocs block does not have @copyright tag
(#2) File-level phpdocs block does not have @license tag
(#8) Package is not specified for class Consumer. It is also not specified in file-level phpdocs
blocks/twitter/twitter/HmacSha1.php
(#2) No one-line description found in phpdocs for file
(#8) No one-line description found in phpdocs for class HmacSha1
(#25) Phpdocs for function HmacSha1::buildSignature has incomplete parameters list
(#2) File-level phpdocs block does not have @copyright tag
(#8) Class HmacSha1 does not have @copyright tag
(#2) File-level phpdocs block does not have @license tag
(#8) Class HmacSha1 does not have @license tag
(#8) Package is not specified for class HmacSha1. It is also not specified in file-level phpdocs
blocks/twitter/twitter/Request.php
(#8) Class Request is not documented
(#10) Variable Request::$parameters is not documented
(#11) Variable Request::$httpMethod is not documented
(#12) Variable Request::$httpUrl is not documented
(#13) Variable Request::$version is not documented
(#2) No one-line description found in phpdocs for file
(#63) There is no description in phpdocs for function setParameter
(#72) There is no description in phpdocs for function getParameter
(#82) There is no description in phpdocs for function getParameters
(#90) There is no description in phpdocs for function removeParameter
(#215) There is no description in phpdocs for function __toString
(#223) There is no description in phpdocs for function signRequest
(#235) There is no description in phpdocs for function buildSignature
(#247) There is no description in phpdocs for function generateNonce
(#18) Phpdocs for function Request::__construct has incomplete parameters list
(#73) Phpdocs for function Request::getParameter has incomplete parameters list
(#91) Phpdocs for function Request::removeParameter has incomplete parameters list
(#2) File-level phpdocs block does not have @copyright tag
(#2) File-level phpdocs block does not have @license tag
(#8) Package is not specified for class Request. It is also not specified in file-level phpdocs
blocks/twitter/twitter/Response.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#23) There is no description in phpdocs for function setApiPath
(#31) There is no description in phpdocs for function getApiPath
(#39) There is no description in phpdocs for function setBody
(#47) There is no description in phpdocs for function getBody
(#55) There is no description in phpdocs for function setHttpCode
(#63) There is no description in phpdocs for function getHttpCode
(#71) There is no description in phpdocs for function setHeaders
(#84) There is no description in phpdocs for function getsHeaders
(#92) There is no description in phpdocs for function setXHeaders
(#100) There is no description in phpdocs for function getXHeaders
(#5) Class Response does not have @copyright tag
(#5) Class Response does not have @license tag
(#5) Package is not specified for class Response. It is also not specified in file-level phpdocs
blocks/twitter/twitter/SignatureMethod.php
(#2) No one-line description found in phpdocs for file
(#8) No one-line description found in phpdocs for class SignatureMethod
(#2) File-level phpdocs block does not have @copyright tag
(#8) Class SignatureMethod does not have @copyright tag
(#2) File-level phpdocs block does not have @license tag
(#8) Class SignatureMethod does not have @license tag
(#8) Package is not specified for class SignatureMethod. It is also not specified in file-level phpdocs
blocks/twitter/twitter/Token.php
(#8) Class Token is not documented
(#2) No one-line description found in phpdocs for file
(#15) There is no description in phpdocs for function __construct
(#2) File-level phpdocs block does not have @copyright tag
(#2) File-level phpdocs block does not have @license tag
(#8) Package is not specified for class Token. It is also not specified in file-level phpdocs
blocks/twitter/twitter/TwitterOAuth.php
(#18) Constant TwitterOAuth::API_VERSION is not documented
(#19) Constant TwitterOAuth::API_HOST is not documented
(#20) Constant TwitterOAuth::UPLOAD_HOST is not documented
(#21) Constant TwitterOAuth::UPLOAD_CHUNK is not documented
(#55) There is no description in phpdocs for function setOauthToken
(#64) There is no description in phpdocs for function getLastApiPath
(#72) There is no description in phpdocs for function getLastHttpCode
(#80) There is no description in phpdocs for function getLastXHeaders
(#88) There is no description in phpdocs for function getLastBody
(#292) There is no description in phpdocs for function http
(#2) File-level phpdocs block does not have @copyright tag
(#11) Class TwitterOAuth does not have @copyright tag
(#11) Class TwitterOAuth does not have @license tag
(#11) Package is not specified for class TwitterOAuth. It is also not specified in file-level phpdocs
blocks/twitter/twitter/TwitterOAuthException.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) No one-line description found in phpdocs for class TwitterOAuthException
(#5) Class TwitterOAuthException does not have @copyright tag
(#5) Class TwitterOAuthException does not have @license tag
(#5) Package is not specified for class TwitterOAuthException. It is also not specified in file-level phpdocs
blocks/twitter/twitter/Util.php
(#8) Class Util is not documented
(#2) No one-line description found in phpdocs for file
(#10) There is no description in phpdocs for function urlencodeRfc3986
(#26) There is no description in phpdocs for function urldecodeRfc3986
(#77) There is no description in phpdocs for function buildHttpQuery
(#11) Phpdocs for function Util::urlencodeRfc3986 has incomplete parameters list
(#78) Phpdocs for function Util::buildHttpQuery has incomplete parameters list
(#2) File-level phpdocs block does not have @copyright tag
(#2) File-level phpdocs block does not have @license tag
(#8) Package is not specified for class Util. It is also not specified in file-level phpdocs
blocks/twitter/twitter/Util/JsonDecoder.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#5) No one-line description found in phpdocs for class JsonDecoder
(#5) Class JsonDecoder does not have @copyright tag
(#5) Class JsonDecoder does not have @license tag
(#5) Package is not specified for class JsonDecoder. It is also not specified in file-level phpdocs
blocks/twitter/twitterautoload.php
(#2) File-level phpdocs block does not have @copyright tag
(#2) File-level phpdocs block does not have @license tag

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]