vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Space after opening parenthesis of function call prohibited
Open

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

Line indented incorrectly; expected 4 spaces, found 2
Open

  public function calculate_cost($cart) {

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

      parse_str(sanitize_text_field($_POST['post_data']), $post_data);

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

      $installments  = intval(filter_var($post_data['vindi_cc_installments'], FILTER_SANITIZE_NUMBER_INT));

Line indented incorrectly; expected 4 spaces, found 2
Open

  protected $routes;
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line indented incorrectly; expected 8 spaces, found 4
Open

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

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

      add_action('woocommerce_update_options_payment_gateways_' . $this->id, array(&$this, 'process_admin_options'));
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

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

  die();

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

      $tax_amount          = VindiHelpers::get_vindi_amount($item->get_total_tax(), $currency);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

    global $woocommerce;

Line indented incorrectly; expected 4 spaces, found 2
Open

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

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

      $interest_price = (float) $total_price - $cart_total;

Line indented incorrectly; expected 4 spaces, found 2
Open

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

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

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

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

    $reason = sanitize_text_field($reason);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

        throw new Exception($result->errors[0]->message);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

Opening brace should be on a new line
Open

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

    return end($charges);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer
Severity
Category
Status
Source
Language