vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

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

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

          return;

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

      $interest_rate = get_option('woocommerce_vindi-credit-card_settings', true)['interest_rate'];

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

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

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

        'discount_amount'     => $discount_amount, // The amount an item was discounted—if there was a sale,for example, 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

    $this->logger->log(sprintf('Processando pedido %s.', $order_id));
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

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

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

          $matching_subscription = $subscription;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 4 spaces, found 2
Open

  public static function get_matching_subscription_item($subscription, $order_item, $match_type = 'match_attributes')

Line indented incorrectly; expected 4 spaces, found 2
Open

  private $vindi_settings;
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

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

    $subscription = $this->find_subscription_by_id($renew_infos['wc_subscription_id']);
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    if ($this->subscription_has_order_in_cycle($renew_infos['vindi_subscription_id'], $renew_infos['cycle'])) {
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

        $renew_infos['cicle'],
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

        $subscription->get_last_order()
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

      'status' => $renew_infos['bill_status'],
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Line indented incorrectly; expected 4 spaces, found 2
Open

  private function bill_canceled($data)
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

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

    if ('charge' !== $item_type)
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer
Severity
Category
Status
Source
Language