vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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 169 characters
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);

Line exceeds 120 characters; contains 126 characters
Open

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

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

    </div>
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

Line exceeds 120 characters; contains 180 characters
Open

                !empty($order_item['type']) && $total_tax += ($order_item['type'] === 'shipping' ? (float) $this->order->get_shipping_tax() : (float) $order_item->get_total_tax());

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

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

Line exceeds 120 characters; contains 159 characters
Open

      __('O Plugin Vindi WooCommerce depende da versão %s+ do %s para funcionar! Como a versão atual do %s é mais antiga, o plugin foi DESATIVADO!', VINDI),

Line exceeds 120 characters; contains 182 characters
Open

            'card_expiration' => filter_var($_POST['vindi_cc_monthexpiry'], FILTER_SANITIZE_NUMBER_INT) . '/' . filter_var($_POST['vindi_cc_yearexpiry'], FILTER_SANITIZE_NUMBER_INT),

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

     * @param  float    $amount Refund amount.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

     * Refund an order via PayPal.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

     * @param  string   $reason Refund reason.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

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

    delete_transient('vindi_product_message');
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

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

        self::$instance = new self;
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    $methods[] = new VindiCreditGateway($this->settings, $this->controllers);
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

        $notes = '';

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

    $phones = $vindi_phones = [];

Line indented incorrectly; expected 8 spaces, found 4
Open

    if ($customer->get_meta('billing_cellphone')) {

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

        $name = $order->get_billing_company();
Severity
Category
Status
Source
Language