Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(147 errors, 0 warnings)

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

payment/gateway/paymob/callback_leg.php
(#56) Blank line found at end of control structure
(#59) Blank line found at end of control structure
(#63) Blank line found at end of control structure
(#104) Blank line found at start of control structure
(#126) Blank line found at end of control structure
(#127) Blank line found at start of control structure
(#131) Blank line found at end of control structure
(#132) Blank line found at start of control structure
(#136) Blank line found at end of control structure
(#137) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#143) Blank line found at start of control structure
(#147) Blank line found at end of control structure
(#174) Blank line found at end of control structure
(#203) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#203) Blank line found at start of control structure
(#224) Opening parenthesis of a multi-line function call must be the last content on the line
(#225) Multi-line function call not indented correctly; expected 12 spaces but found 24
(#225) Only one argument is allowed per line in a multi-line function call
(#225) Only one argument is allowed per line in a multi-line function call
(#225) Closing parenthesis of a multi-line function call must be on a line by itself
payment/gateway/paymob/classes/actions.php
(#183) The closing brace for the class must go on the next line after the body
payment/gateway/paymob/classes/ajax/admin.php
(#67) Parentheses must be used when instantiating a new class
payment/gateway/paymob/classes/ajax/transaction.php
(#31) Opening brace must not be followed by a blank line
payment/gateway/paymob/classes/callback.php
(#50) Expected 0 spaces before closing bracket; 1 found
(#89) Blank line found at start of control structure
(#104) Expected at least 1 space before "."; 0 found
(#147) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#147) Opening parenthesis of a multi-line function call must be the last content on the line
(#147) Only one argument is allowed per line in a multi-line function call
(#148) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#153) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#200) Expected 0 spaces before closing parenthesis; 1 found
(#221) Blank line found at end of control structure
(#222) Blank line found at start of control structure
(#227) Blank line found at end of control structure
(#228) Blank line found at start of control structure
payment/gateway/paymob/classes/gateway.php
(#231) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#232) Multi-line function declaration not indented correctly; expected 8 spaces but found 49
(#232) Multi-line function declarations must define one parameter per line
(#232) Multi-line function declarations must define one parameter per line
(#232) The closing parenthesis of a multi-line function declaration must be on a new line
(#295) Blank line found at end of control structure
payment/gateway/paymob/classes/legacy_requester.php
(#77) Expected at least 1 space before "."; 0 found
(#77) Expected at least 1 space after "."; 0 found
(#97) Expected 0 spaces before closing bracket; 1 found
(#237) Blank line found at start of control structure
(#239) Parentheses must be used when instantiating a new class
(#275) Parentheses must be used when instantiating a new class
(#313) Parentheses must be used when instantiating a new class
payment/gateway/paymob/classes/notifications.php
(#34) Opening brace must not be followed by a blank line
(#229) Expected 1 blank line at end of file; 2 found
payment/gateway/paymob/classes/order.php
(#124) Blank line found at end of control structure
(#348) Opening parenthesis of a multi-line function call must be the last content on the line
(#349) Multi-line function call not indented correctly; expected 12 spaces but found 60
(#350) Multi-line function call not indented correctly; expected 12 spaces but found 60
(#351) Multi-line function call not indented correctly; expected 8 spaces but found 60
(#351) Closing parenthesis of a multi-line function call must be on a line by itself
(#373) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#374) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#406) Expected at least 1 space after "."; 0 found
(#406) Expected at least 1 space before "."; 0 found
(#418) Opening parenthesis of a multi-line function call must be the last content on the line
(#419) Multi-line function call not indented correctly; expected 12 spaces but found 32
(#420) Multi-line function call not indented correctly; expected 12 spaces but found 32
(#421) Multi-line function call not indented correctly; expected 12 spaces but found 32
(#422) Multi-line function call not indented correctly; expected 12 spaces but found 32
(#423) Multi-line function call not indented correctly; expected 12 spaces but found 32
(#424) Multi-line function call not indented correctly; expected 12 spaces but found 32
(#425) Multi-line function call not indented correctly; expected 8 spaces but found 32
(#425) Closing parenthesis of a multi-line function call must be on a line by itself
(#430) Opening parenthesis of a multi-line function call must be the last content on the line
(#431) Multi-line function call not indented correctly; expected 12 spaces but found 30
(#432) Multi-line function call not indented correctly; expected 12 spaces but found 30
(#433) Multi-line function call not indented correctly; expected 12 spaces but found 30
(#434) Multi-line function call not indented correctly; expected 8 spaces but found 30
(#434) Closing parenthesis of a multi-line function call must be on a line by itself
(#584) Opening parenthesis of a multi-line function call must be the last content on the line
(#585) Multi-line function call not indented correctly; expected 12 spaces but found 47
(#585) Expected at least 1 space before "."; 0 found
(#585) Expected at least 1 space after "."; 0 found
(#585) Expected at least 1 space before "."; 0 found
(#585) Expected at least 1 space after "."; 0 found
(#586) Multi-line function call not indented correctly; expected 8 spaces but found 47
(#586) Closing parenthesis of a multi-line function call must be on a line by itself
payment/gateway/paymob/classes/payment.php
(#80) Expected 0 spaces before closing bracket; 1 found
(#104) Blank line found at start of control structure
(#286) Space found before comma in argument list
(#286) Expected no space between "','" and the comma. Found: 1 space
(#311) Expected 0 spaces before closing bracket; 1 found
payment/gateway/paymob/classes/privacy/provider.php
(#38) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\metadata\provider, paygw_provider; Found: paygw_provider, \core_privacy\local\metadata\provider
(#38) Opening brace must not be followed by a blank line
payment/gateway/paymob/classes/requester.php
(#304) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#305) The closing parenthesis of a multi-line control structure must be on the line after the last expression
payment/gateway/paymob/classes/security.php
(#227) Blank line found at start of control structure
(#251) Blank line found at end of control structure
(#252) Blank line found at start of control structure
payment/gateway/paymob/classes/table/orders.php
(#139) Function closing brace must go on the next line following the body; found 1 blank lines before brace
payment/gateway/paymob/classes/utils.php
(#26) Opening brace must not be followed by a blank line
(#38) Space found before comma in argument list
(#38) Expected no space between "','" and the comma. Found: 1 space
(#40) Space after opening parenthesis of function call prohibited
(#40) Expected 0 spaces before closing parenthesis; 1 found
(#84) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#85) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#231) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#234) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#339) Expected 0 spaces after opening bracket; 1 found
(#339) Expected 0 spaces before closing bracket; 1 found
payment/gateway/paymob/db/services.php
(#76) Expected 1 blank line at end of file; 2 found
payment/gateway/paymob/db/upgrade.php
(#37) Blank line found at start of control structure
(#87) Blank line found at start of control structure
payment/gateway/paymob/method.php
(#57) Expected at least 1 space before "."; 0 found
(#57) Expected at least 1 space after "."; 0 found
(#72) Expected at least 1 space before "."; 0 found
(#72) Expected at least 1 space after "."; 0 found
(#73) Expected at least 1 space before "."; 0 found
(#73) Expected at least 1 space after "."; 0 found
(#80) Blank line found at start of control structure
(#82) Parentheses must be used when instantiating a new class
(#102) Expected at least 1 space before "."; 0 found
(#102) Expected at least 1 space after "."; 0 found
(#102) Parentheses must be used when instantiating a new class
(#104) Expected at least 1 space before "."; 0 found
(#104) Expected at least 1 space after "."; 0 found
payment/gateway/paymob/process.php
(#43) Opening parenthesis of a multi-line function call must be the last content on the line
(#44) Multi-line function call not indented correctly; expected 4 spaces but found 40
(#49) Multi-line function call not indented correctly; expected 0 spaces but found 40
(#49) Closing parenthesis of a multi-line function call must be on a line by itself
(#104) Blank line found at end of control structure
(#108) Each PHP statement must be on a line by itself
(#110) Blank line found at end of control structure
(#140) Parentheses must be used when instantiating a new class
(#152) Blank line found at end of control structure
(#184) Expected at least 1 space before "."; 0 found
(#184) Expected at least 1 space after "."; 0 found
(#184) Expected at least 1 space before "."; 0 found
(#184) Expected at least 1 space after "."; 0 found
(#184) Expected at least 1 space before "."; 0 found
(#184) Expected at least 1 space after "."; 0 found
(#186) Parentheses must be used when instantiating a new class
(#194) Blank line found at end of control structure
payment/gateway/paymob/settings.php
(#28) Blank line found at start of control structure
(#36) Opening parenthesis of a multi-line function call must be the last content on the line
(#37) Multi-line function call not indented correctly; expected 4 spaces but found 32
(#38) Multi-line function call not indented correctly; expected 0 spaces but found 32
(#38) Only one argument is allowed per line in a multi-line function call
(#38) Closing parenthesis of a multi-line function call must be on a line by itself

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 stylelint [More info]


PHPDocs style problems

(1 errors, 0 warnings)

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

payment/gateway/paymob/classes/requester.php
(#357) Phpdocs for function requester::log has incomplete parameters list

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]

payment/gateway/paymob/templates/admin.mustache
(#1) HTML Validation info, line 3: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. (ogo"> <img src="/payment/gateway/paymob/img/paymob.png" alt="PayMob" style="width:50%"/></div)
payment/gateway/paymob/templates/order_note.mustache
(#1) HTML Validation info, line 2: Empty heading. (ad><body><h3></h3>)

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]