vindi/vindi-woocommerce

View on GitHub
src/templates/bankslip-download.html.php

Summary

Maintainability
A
0 mins
Test Coverage

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

                    <?php _e('Aqui estão os boletos de suas compras.', VINDI); ?>

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

                                <?php _e('Baixar boleto', VINDI ); ?>

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

                <p class="message_title">

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

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

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

                                <a class="download_button" href="<?php echo esc_url($item['bill']['bank_slip_url']); ?>" target="_blank">

Inline control structures are not allowed
Open

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

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

            <div class="icon"></div>

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

        </div>

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

        </div>

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

    </div>

Line exceeds 120 characters; contains 173 characters
Open

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

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

                            </a>

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

                            </div>

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

                    <?php endforeach; ?>

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

            <div class="message">

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

                    <?php foreach ($subscription as $item): ?>

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

                                </span>

Line exceeds 120 characters; contains 215 characters
Open

                    <?php _e('Você pode imprimi-los e pagá-los via internet banking ou em agências bancárias e lotéricas. Após recebermos a confirmação do pagamento, seu pedido será processado.', VINDI); ?>

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

                </p>

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

            </div>

Line exceeds 120 characters; contains 141 characters
Open

                            <a class="download_button" href="<?php echo esc_url($subscription['bill']['bank_slip_url']); ?>" target="_blank">

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

                                    <?php _e('Baixar boleto', VINDI ); ?>

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

                        <?php endif; ?>

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

                <?php endif; ?>

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

                <p class="message_description">

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

                            </span>

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

                <?php else: ?>

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

        <div class="info_message">

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

                                <span class="product_title">

Line exceeds 120 characters; contains 137 characters
Open

                                <a class="download_button" href="<?php echo esc_url($item['bill']['bank_slip_url']); ?>" target="_blank">

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

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

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

                            <span class="product_title">

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

                        </div>

Line exceeds 120 characters; contains 157 characters
Open

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

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

                </p>

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

                    <?php _e('Você pode imprimi-los e pagá-los via internet banking ou em agências bancárias e lotéricas. Após recebermos a confirmação do pagamento, seu pedido será processado.', VINDI); ?>

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

                            <a class="download_button" href="<?php echo esc_url($subscription['bill']['bank_slip_url']); ?>" target="_blank">

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

                                </a>

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'))): ?>

Expected 1 space after closing parenthesis; found 0
Open

<?php if (isset($vindi_order)): ?>

Expected 1 space after closing parenthesis; found 0
Open

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

Expected 1 space after ELSE keyword; 0 found
Open

                <?php else: ?>

Expected 1 space after closing parenthesis; found 0
Open

                    <?php foreach ($subscription as $item): ?>

Expected 0 spaces before closing bracket; 1 found
Open

                                <?php _e('Baixar boleto', VINDI ); ?>

Expected 1 space after closing parenthesis; found 0
Open

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

Expected 0 spaces before closing bracket; 1 found
Open

                                    <?php _e('Baixar boleto', VINDI ); ?>

There are no issues that match your filters.

Category
Status