vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line indented incorrectly; expected 4 spaces, found 2
Open

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

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      $discount_amount     = VindiHelpers::get_vindi_amount($item->get_subtotal() - $item->get_total(), $currency);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  if (

Space after opening parenthesis of function call prohibited
Open

      wp_redirect(get_permalink( wc_get_page_id( 'myaccount' ) ));

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $shipping_address_zip = $order->get_shipping_postcode();
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    if ($this->is_valid_br_zip_code($shipping_address_zip)) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $api_key = $this->vindi_settings->get_api_key();
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected at least 12 spaces, found 8
Open

        'redirect' => '',
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    if($amount < $order->get_total()) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

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

Line indented incorrectly; expected 12 spaces, found 6
Open

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

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    $bill = $this->routes->findBillById($bill_id);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Multi-line function call not indented correctly; expected 8 spaces but found 6
Open

      $version,

Expected 1 space after ELSE keyword; 0 found
Open

<?php else: ?>
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

Closing brace indented incorrectly; expected 0 spaces, found 4
Open

    endif;
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

    if($amount < $order->get_total()) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Multi-line function call not indented correctly; expected 14 spaces but found 12
Open

            /* translators: 1: Refund amount, 2: Refund ID */
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected at least 28 spaces, found 10
Open

          );
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected at least 8 spaces, found 4
Open

    return true;
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer
Severity
Category
Status
Source
Language