vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Expected 1 space after closing parenthesis; found 0
Open

<?php if ($is_trial): ?>

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

      "month" => 30,
Severity: Minor
Found in src/utils/Conversions.php by phpcodesniffer

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

      "week" => 7,
Severity: Minor
Found in src/utils/Conversions.php by phpcodesniffer

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

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    } else {

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

      $post_data = $_POST;

Line indented incorrectly; expected 4 spaces, found 2
Open

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

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

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

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

      $quantity            = $item->get_quantity();
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

      $unit_cost           = VindiHelpers::get_vindi_amount(($item->get_subtotal() / $quantity), $currency);
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_id = filter_var($order_id, FILTER_SANITIZE_NUMBER_INT);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

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

Line indented incorrectly; expected 16 spaces, found 8
Open

        case 'success':
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

          $order->add_order_note(
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  private function find_bill_last_charge($bill_id)
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

Expected 0 spaces after opening bracket; 1 found
Open

if ( ! defined( 'ABSPATH' ) ) {

Space after opening parenthesis of function call prohibited
Open

        <p><strong><?php _e('Vindi', VINDI);?></strong>: <?php printf( __( 'O produto foi criado na Vindi com sucesso!', VINDI ) ); ?></p>
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer
Severity
Category
Status
Source
Language