vindi/vindi-woocommerce

View on GitHub
src/templates/admin-settings.html.php

Summary

Maintainability
A
0 mins
Test Coverage

Line exceeds 120 characters; contains 221 characters
Open

    <?php printf(__('É necessário um <strong>Certificado SSL</strong> para ativar este método de pagamento em modo de produção. Por favor, verifique se um certificado SSL está instalado em seu servidor!', VINDI));?>

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 _e('Link de configuração dos Eventos da Vindi', VINDI);?>

Line exceeds 120 characters; contains 128 characters
Open

        <?php if (isset($api_key) && strlen($api_key) === 43 && $settings->api->last_error !== "unauthorized|authorization"): ?>

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

    <h3 class="wc-settings-sub-title title-1">

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

              </script>

Line exceeds 120 characters; contains 138 characters
Open

                  jQuery('.wc-settings-sub-title').parent().append('<div class="alert alert-info">Aguarde! Reconectando ao Vindi.</div>');

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

    </h3>

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

    <p><?php _e('Copie esse link e utilize-o para configurar os eventos nos Webhooks da Vindi.', VINDI);?></p>

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>

Line indented incorrectly; expected 4 spaces, found 2
Open

  <?php $settings->generate_settings_html();?>

Expected 1 space after ELSE keyword; 0 found
Open

    <?php else: ?>

Expected 1 space after closing parenthesis; found 0
Open

    <?php if ($merchant): ?>

Expected 1 space after closing parenthesis; found 0
Open

        <?php if (isset($api_key) && strlen($api_key) === 43 && $settings->api->last_error !== "unauthorized|authorization"): ?>

Line indented incorrectly; expected 12 spaces, found 10
Open

          <?php endif;?>

Closing brace indented incorrectly; expected 8 spaces, found 10
Open

          <?php endif;?>

Expected 1 space after closing parenthesis; found 0
Open

if (!$settings->check_ssl()): ?>

There are no issues that match your filters.

Category
Status