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

    if (empty($order))
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

    if (false === $query->have_posts())
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

      throw new Exception(sprintf(__('Pedido com bill_id #%s não encontrado!', VINDI), $bill_id), 2);
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

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

    return wc_get_order($query->post->ID);
Severity: Minor
Found in src/services/Webhooks.php by phpcodesniffer

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php endif;?>

Line indented incorrectly; expected 8 spaces, found 4
Open

    if(!$verifyType) {
Severity: Minor
Found in src/utils/Conversions.php by phpcodesniffer

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

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

Expected 1 space after IF keyword; 0 found
Open

    if(!$get_type || !$get_interval_multiplier) {
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 at least 4 spaces, found 2
Open

  define('VINDI_URL', plugins_url('/', VINDI_FILE));

Line indented incorrectly; expected 4 spaces, found 2
Open

  function __construct() {

Line indented incorrectly; expected 4 spaces, found 2
Open

  public static function adminFiles()

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

    add_action('wp_footer', array($this, 'add_installment_change_script'));

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (isset($post_data['vindi_cc_installments']) &&

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

    $currency    = $order->get_currency();
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 4 spaces, found 2
Open

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

Line indented incorrectly; expected 4 spaces, found 2
Open

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

      $response = $payment->process();
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer
Severity
Category
Status
Source
Language