vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line exceeds 120 characters; contains 149 characters
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

Spaces must be used to indent lines; tabs are not allowed
Open

            $request['amount'] = substr($amount, 0, strlen($amount)-2) . "." . substr($amount, -2);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Spaces must be used to indent lines; tabs are not allowed
Open

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

Spaces must be used to indent lines; tabs are not allowed
Open

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

Line exceeds 120 characters; contains 130 characters
Open

                $this->abort(__('Falha ao registrar o método de pagamento. Verifique os dados e tente novamente.', VINDI), true);

Inline control structures are not allowed
Open

            if (empty($subscription_order_item))

Line exceeds 120 characters; contains 167 characters
Open

        return $this->is_subscription_type($product) && class_exists('WC_Subscriptions_Product') && WC_Subscriptions_Product::get_trial_length($product->get_id()) > 0;

Inline control structures are not allowed
Open

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

Spaces must be used to indent lines; tabs are not allowed
Open

    <div class="test-return-infos">

Line exceeds 120 characters; contains 124 characters
Open

          <p><?php echo sprintf(__('Falha na conexão! <br><strong>%s</strong>', VINDI), $settings->api->last_error); ?></p>

Inline control structures are not allowed
Open

<?php if (!defined('ABSPATH')) exit; ?>

Spaces must be used to indent lines; tabs are not allowed
Open

        ?>

Spaces must be used to indent lines; tabs are not allowed
Open

                                <?php echo $subscription['product']; ?>

Spaces must be used to indent lines; tabs are not allowed
Open

                        <?php if (is_array($item) && array_key_exists('product', $item) && !in_array($item['bill']['status'], array('paid', 'canceled'))): ?>

Line exceeds 120 characters; contains 149 characters
Open

    wp_register_script('jquery-mask', plugins_url('/assets/js/jquery.mask.min.js', plugin_dir_path(__FILE__)), array('jquery'), VINDI_VERSION, true);

Spaces must be used to indent lines; tabs are not allowed
Open

     * Get refund request args.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line exceeds 120 characters; contains 140 characters
Open

    public function __construct(WC_Order $order, VindiPaymentGateway $gateway, VindiSettings $vindi_settings, VindiControllers $controllers)

Line exceeds 120 characters; contains 145 characters
Open

                return $this->abort(__('Falha ao processar carrinho de compras. Verifique os itens escolhidos e tente novamente.', VINDI), true);

Line exceeds 120 characters; contains 121 characters
Open

     * @param WC_Order_Item_Product|WC_Order_Item_Product[] $order_items. Subscriptions will pass only one order_item and

Spaces must be used to indent lines; tabs are not allowed
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
Severity
Category
Status
Source
Language