vindi/vindi-woocommerce

View on GitHub
src/templates/creditcard-checkout.html.php

Summary

Maintainability
A
0 mins
Test Coverage

Line exceeds 120 characters; contains 192 characters
Open

      <?php _e('Sua conta na Vindi está em <strong>Modo Trial</strong>. Este modo é proposto para a realização de testes e, portanto, nenhum pedido será efetivamente cobrado.', VINDI); ?>

Line exceeds 120 characters; contains 124 characters
Open

              <text transform="matrix(1 0 0 1 479.7754 388.8793)" class="st7 st5 st8"><?php _e("Validade", VINDI); ?></text>

Line exceeds 120 characters; contains 161 characters
Open

                <path class="st3" d="M701.1,249.1H48.9c-3.3,0-6-2.7-6-6v-52.5c0-3.3,2.7-6,6-6h652.1c3.3,0,6,2.7,6,6v52.5C707.1,246.4,704.4,249.1,701.1,249.1z" />

Line exceeds 120 characters; contains 141 characters
Open

          <option value="<?php echo $installment; ?>"><?php echo sprintf(__('%dx de %s', VINDI), $installment, wc_price($price)); ?></option>

Line exceeds 120 characters; contains 124 characters
Open

                <text transform="matrix(1 0 0 1 574.4219 433.8095)" id="vindi_cc_svgexpire" class="st2 st5 st9">01/23</text>

Line exceeds 120 characters; contains 130 characters
Open

              <text transform="matrix(1 0 0 1 59.5073 228.6099)" id="vindi_cc_svgnameback" class="st12 st13">João da Silva</text>

Line exceeds 120 characters; contains 235 characters
Open

        <div class="vindi-old-paymentcompany" style="background: url('https://s3.amazonaws.com/recurrent/payment_companies/<?php echo $user_payment_profile['payment_company']?>.png') no-repeat center right; background-size: auto 90%;">

Line exceeds 120 characters; contains 121 characters
Open

                <text transform="matrix(1 0 0 1 630.083 280.0879)" class="st9 st6 st10"><?php _e("CVC", VINDI); ?></text>

Line exceeds 120 characters; contains 128 characters
Open

                  <path xmlns="http://www.w3.org/2000/svg" class="vindi_cc_lightcolor" d="M 0 0 V 370 C 262 360 570 198 600 0"/>

Inline control structures are not allowed
Open

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

Line exceeds 120 characters; contains 130 characters
Open

              <text transform="matrix(1 0 0 1 65.1054 241.5)" class="st7 st5 st8"><?php _e("Número do Cartão", VINDI); ?></text>

Line exceeds 120 characters; contains 566 characters
Open

                    <path class="st12" d="M125.5,130.8c-10.2,0-18.5-8.3-18.5-18.5c0-4.6,1.7-8.9,4.7-12.3c-3-3.4-4.7-7.7-4.7-12.3               c0-10.2,8.3-18.5,18.5-18.5s18.5,8.3,18.5,18.5c0,4.6-1.7,8.9-4.7,12.3c3,3.4,4.7,7.7,4.7,12.3               C143.9,122.5,135.7,130.8,125.5,130.8z M125.5,70.8c-9.3,0-16.9,7.6-16.9,16.9c0,4.4,1.7,8.6,4.8,11.8l0.5,0.5l-0.5,0.5               c-3.1,3.2-4.8,7.4-4.8,11.8c0,9.3,7.6,16.9,16.9,16.9s16.9-7.6,16.9-16.9c0-4.4-1.7-8.6-4.8-11.8l-0.5-0.5l0.5-0.5               c3.1-3.2,4.8-7.4,4.8-11.8C142.4,78.4,134.8,70.8,125.5,70.8z"/>

Line exceeds 120 characters; contains 128 characters
Open

              <text transform="matrix(1 0 0 1 54.1064 428.1723)" id="vindi_cc_svgname" class="st2 st5 st6">JOÃO DA SILVA</text>

Line exceeds 120 characters; contains 190 characters
Open

                  <path id="Rectangle-1_2_" class="vindi_cc_cardcolor greydark" d="M40,0h670c22.1,0,40,17.9,40,40v391c0,22.1-17.9,40-40,40H40c-22.1,0-40-17.9-40-40V40C0,17.9,17.9,0,40,0z" />

Line exceeds 120 characters; contains 134 characters
Open

              <text transform="matrix(1 0 0 1 60.106 295.0121)" id="vindi_cc_svgnumber" class="st2 st3 st4">0123 4567 8910 1112</text>

Line exceeds 120 characters; contains 233 characters
Open

          <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="vindi_cc_cardfront" x="0px" y="0px" viewBox="0 0 750 471" style="enable-background:new 0 0 750 471;" xml:space="preserve">

Line exceeds 120 characters; contains 192 characters
Open

                    <path id="Rectangle-1_1_" class="vindi_cc_cardcolor greydark" d="M40,0h670c22.1,0,40,17.9,40,40v391c0,22.1-17.9,40-40,40H40c-22.1,0-40-17.9-40-40V40C0,17.9,17.9,0,40,0z" />

Line exceeds 120 characters; contains 191 characters
Open

                  <path class="st2" d="M168.1,143.6H82.9c-10.2,0-18.5-8.3-18.5-18.5V74.9c0-10.2,8.3-18.5,18.5-18.5h85.3 c10.2,0,18.5,8.3,18.5,18.5v50.2C186.6,135.3,178.3,143.6,168.1,143.6z"/>

Line exceeds 120 characters; contains 129 characters
Open

          <svg version="1.1" id="vindi_cc_cardback" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"

Inline control structures are not allowed
Open

  <div class='vindi-new-cc-data' style="<?php if(!empty($user_payment_profile)) echo 'display: none'; ?>">

Line exceeds 120 characters; contains 138 characters
Open

                <path class="st5" d="M701.1,184.6H618h-8h-10v64.5h10h8h83.1c3.3,0,6-2.7,6-6v-52.5C707.1,187.3,704.4,184.6,701.1,184.6z" />

Expected 1 space after IF keyword; 0 found
Open

  <div class='vindi-new-cc-data' style="<?php if(!empty($user_payment_profile)) echo 'display: none'; ?>">

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php _e("Código de Segurança", VINDI); ?>

Expected 1 space after closing parenthesis; found 0
Open

  <?php if(!empty($user_payment_profile)): ?>

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php _e("Cartão Cadastrado", VINDI); ?>

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php echo $user_payment_profile['card_number']; ?>

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php _e("Validade (mm/aa)", VINDI) ?>

Space after opening parenthesis of function call prohibited
Open

    <h3 style="color: #f00"><?php _e( 'MODO DE TESTES', VINDI ); ?></h3>

Expected 0 spaces before closing bracket; 1 found
Open

    <h3 style="color: #f00"><?php _e( 'MODO DE TESTES', VINDI ); ?></h3>

Line indented incorrectly; expected 8 spaces, found 6
Open

      <?php _e('Sua conta na Vindi está em <strong>Modo Trial</strong>. Este modo é proposto para a realização de testes e, portanto, nenhum pedido será efetivamente cobrado.', VINDI); ?>

Line indented incorrectly; expected 4 spaces, found 2
Open

  <?php endif; ?>

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php _e("Nome Impresso no Cartão", VINDI); ?>

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php _e("Número do Cartão", VINDI); ?>

Expected 1 space after FOREACH keyword; 0 found
Open

        <?php foreach($installments as $installment => $price): ?>

Line indented incorrectly; expected 4 spaces, found 2
Open

  <?php if(!empty($user_payment_profile)): ?>

Expected 1 space after IF keyword; 0 found
Open

  <?php if(!empty($user_payment_profile)): ?>

Expected 1 space after closing parenthesis; found 0
Open

        <?php foreach($installments as $installment => $price): ?>

Expected 1 space after closing parenthesis; found 0
Open

<?php if ($is_trial): ?>

There are no issues that match your filters.

Category
Status