vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

      $cart_total     = ($cart->get_cart_contents_total() + $cart->get_shipping_total() + $tax_total);

Line indented incorrectly; expected 4 spaces, found 2
Open

  protected $validated = true;
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public $vindi_settings;
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

        'tax_amount'          => $tax_amount, // The amount of tax this item had added to it, in cents, as a non-negative integer.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

    return $order;
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

      'post_status' => 'any',
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public static function convertTriggerToDay($number, $type = 'month') {
Severity: Minor
Found in src/utils/Conversions.php by phpcodesniffer

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

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

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

    wp_enqueue_script('vindi_woocommerce_admin_js');

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

    $this->controllers = $controllers;
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function get_level3_data_from_order($order)
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

        'unit_cost'           => $unit_cost, // Cost of the product, in cents, 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

      $level3_data['shipping_from_zip'] = $store_postcode;
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

      $this->vindi_settings->get_template('admin-gateway-settings.html.php', array('gateway' => $this));
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 at least 8 spaces, found 4
Open

    $currency = get_option('woocommerce_currency');
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

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

Line indented incorrectly; expected 12 spaces, found 6
Open

      if (wcs_get_canonical_product_id($subscription_item) !== $order_item_canonical_product_id) {

Line indented incorrectly; expected 4 spaces, found 2
Open

  }
Severity
Category
Status
Source
Language