vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function add_installment_change_script() {

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

      'shipping_amount'      => VindiHelpers::get_vindi_amount($order->get_shipping_total() + $order->get_shipping_tax(), $currency), // The shipping cost, in cents, as a non-negative integer.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

      $level3_data['shipping_address_zip'] = $shipping_address_zip;
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

if(file_exists(plugin_dir_path(__FILE__) . '.env.php')) {
Severity: Minor
Found in vindi.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

    } elseif ($this->vindi_settings->woocommerce->customer->get_billing_country()) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

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

      $response = array(
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

      );
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

    $types = [];
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Opening brace should be on a new line
Open

  public function process_refund($order_id, $amount = null, $reason = '') {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

      $this->logger->log('Resultado do reembolso: ' . wc_print_r($result, true));
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Closing brace indented incorrectly; expected 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

    $data = $this->get_refund_request($bill_id, $amount, $reason);
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

Expected 1 space after IF keyword; 0 found
Open

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

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

  ) {

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>

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

      $name

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

    wp_register_script('vindi_woocommerce_admin_js', plugins_url('/assets/js/admin.js', plugin_dir_path(__FILE__)), array('jquery', 'jquery-mask'), VINDI_VERSION, true);
Severity
Category
Status
Source
Language