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

    $this->enabled = $this->get_option('enabled');
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

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

      $product_description = substr($item->get_name(), 0, 26);
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 4 spaces, found 2
Open

  {
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 12 spaces, found 6
Open

      $order_item_attributes = wp_list_pluck($order_item->get_formatted_meta_data('_', true), 'value', 'key');

Line indented incorrectly; expected 12 spaces, found 6
Open

      }

Opening brace should be on a new line
Open

  public static function sanitize_xss($value) {

Line indented incorrectly; expected 20 spaces, found 18
Open

                  }

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

      throw new Exception(__('Falha ao interpretar JSON do webhook: Evento do Webhook não encontrado!', VINDI));
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

    $type = $body->event->type;
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

      throw new Exception(sprintf(
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 6
Open

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

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

      $next_payment = $this->format_date($next_billing_at);
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  private function format_date($date)
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

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

Expected 1 space after IF keyword; 0 found
Open

  <?php if(!empty($user_payment_profile)): ?>

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

    $types = array(
Severity: Minor
Found in src/utils/Conversions.php by phpcodesniffer
Severity
Category
Status
Source
Language