vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

      $result = $this->refund_transaction($bill_id, $amount, $reason);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 6
Open

      if(isset($result->errors)) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Opening brace should be on a new line
Open

    public function get_refund_request($bill_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

    $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

    $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

    $last_charge = $this->find_bill_last_charge($bill_id);
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 4 spaces, found 2
Open

  if(is_user_logged_in() || get_option('woocommerce_enable_guest_checkout') == "yes") return;

Space after opening parenthesis of function call prohibited
Open

if ( ! defined( 'ABSPATH' ) ) {

Space after opening parenthesis of function call prohibited
Open

    <p><strong><?php _e( 'Chave API Inválida', VINDI ); ?></strong>: <?php printf( __( 'A chave API utilizada não é uma chave válida! Por favor verifique as informações e tente novamente!', VINDI ) ); ?></p>

Expected 0 spaces before closing bracket; 1 found
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

Expected 1 space after closing parenthesis; found 0
Open

<?php elseif ($type == 'updated'): ?>
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

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

  exit; // Exit if accessed directly.
Severity: Minor
Found in vindi.php by phpcodesniffer

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

      return $this->vindi_settings->woocommerce->customer->get_billing_country();
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 4 spaces, found 2
Open

  protected function is_single_order()
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 12 spaces, found 6
Open

      $bill_id = $order_item['bill']['id'];
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

      if(isset($result->errors)) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

        return false;
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer
Severity
Category
Status
Source
Language