vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

    $reason = sanitize_text_field($reason);
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Closing brace indented incorrectly; expected 2 spaces, found 4
Open

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

Opening brace should be on a new line
Open

function VindiRedirectToMyAccount() {

Multi-line function call not indented correctly; expected 20 spaces but found 24
Open

                        ), array('a' => array('href' => true))));

Expected 0 spaces before closing bracket; 1 found
Open

if ( ! defined( 'ABSPATH' ) ) {

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

  exit;

Multi-line function call not indented correctly; expected 8 spaces but found 6
Open

      $name,

Space after opening parenthesis of function call prohibited
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

Space after opening parenthesis of function call prohibited
Open

        <p><strong><?php _e('Vindi', VINDI);?></strong>: <?php printf( __( 'Não foi possível criar/atualizar o produto na Vindi!', VINDI ) ); ?></p>
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

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

    return $response;
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

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

Expected 0 spaces after opening bracket; newline found
Open

            if (

Space after opening parenthesis of function call prohibited
Open

      wp_redirect(get_permalink( wc_get_page_id( 'myaccount' ) ));

Opening brace should be on a new line
Open

function VindiRedirectInfo() {

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

    wp_register_style('vindi_woocommerce_admin_style', plugins_url('/assets/css/admin.css', plugin_dir_path(__FILE__)), array(), VINDI_VERSION);

Expected 1 space after IF keyword; 0 found
Open

  if(is_user_logged_in() || get_option('woocommerce_enable_guest_checkout') == "yes") return;

Expected 0 spaces before closing bracket; 1 found
Open

      <?php _e('Clique aqui para acessar uma conta existente ou criá-la.', VINDI ); ?>

Expected 0 spaces before closing bracket; 1 found
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>

Opening brace should be on a new line
Open

  function __construct() {

Expected 0 spaces before closing bracket; 1 found
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>
Severity
Category
Status
Source
Language