vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Blank line found at start of control structure
Open

    foreach ($custom_attributes as $name => $value) {

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

  }

Blank line found at start of control structure
Open

      isset($response['subscription']['id'])) {
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Incorrect spacing between default value and equals sign for argument "$order"; expected 1 but found 0
Open

  public static function array_sort($array, $on, $order=SORT_ASC)

Incorrect spacing between argument "$order" and equals sign; expected 1 but found 0
Open

  public static function array_sort($array, $on, $order=SORT_ASC)

Opening brace indented incorrectly; expected 4 spaces, found 2
Open

  {
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Opening brace indented incorrectly; expected 4 spaces, found 2
Open

  {
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

              break;

Visibility must be declared on method "__construct"
Open

  function __construct() {

Opening brace of a class must be on the line after the definition
Open

class VindiConversions {
Severity: Minor
Found in src/utils/Conversions.php by phpcodesniffer

Opening brace of a class must be on the line after the definition
Open

class InterestPriceHandler {

Opening brace indented incorrectly; expected 4 spaces, found 2
Open

  {
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Property name "$_instance" should not be prefixed with an underscore to indicate visibility
Open

    protected static $_instance = null;

Blank line found at start of control structure
Open

    if ($vindi_subscription && isset($vindi_subscription['next_billing_at'])) {
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

  }
Severity: Minor
Found in src/utils/Conversions.php by phpcodesniffer

Terminating statement must be indented to the same level as the CASE body
Open

              break;

Opening brace indented incorrectly; expected 4 spaces, found 2
Open

  {
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

The abstract declaration must precede the visibility declaration
Open

  public abstract function type();
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Expected 1 blank line at end of file; 3 found
Open

}

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

  }
Severity: Minor
Found in src/utils/Conversions.php by phpcodesniffer
Severity
Category
Status
Source
Language