vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

    add_action('woocommerce_cart_calculate_fees', array($this, 'calculate_cost'));

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

Opening brace should be on a new line
Open

  public function calculate_cost($cart) {

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

      $total_price    = $cart_total * (1 + (($interest_rate / 100) * ($installments - 1)));

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

        'quantity'            => $quantity, // The number of items of this type sold, as a non-negative integer.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected at least 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

    $level3_data = array(
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

      'merchant_reference'   => $order->get_id(), // An alphanumeric string of up to  characters in length. This unique value is assigned by the merchant to identify the order. Also known as an “Order ID”.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    } catch (Exception $e) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function process_refund($order_id, $amount = null, $reason = '') {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

    $order = wc_get_order($order_id);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

      return new WP_Error('error', __('Reembolso falhou.', VINDI));
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 at least 8 spaces, found 4
Open

    $amount = filter_var($amount, FILTER_SANITIZE_NUMBER_FLOAT);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

    $amount = filter_var($amount, FILTER_SANITIZE_NUMBER_FLOAT);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

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

    $bill_id = filter_var($bill_id, FILTER_SANITIZE_NUMBER_INT);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

    wp_enqueue_style('vindi_woocommerce_admin_style');

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function customer() {
Severity
Category
Status
Source
Language