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

    $sand_box_article = '<a href="https://atendimento.vindi.com.br/hc/pt-br/articles/115012242388-Sandbox" target="_blank">' . __('Dúvidas?', VINDI) . '</a>';

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      array(

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

    );

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      return;

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      return;

Expected 1 space after IF keyword; 0 found
Open

        if(!$recreated && get_post_status($post_id) != 'publish' || !empty(get_post_meta($post_id, 'vindi_product_id', true))) {

Line indented incorrectly; expected at least 14 spaces, found 10
Open

          set_transient('vindi_product_message', 'updated', 60);

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

        return $updatedProduct;

Line indented incorrectly; expected at least 12 spaces, found 10
Open

          return;

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

      $args,

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

      sprintf(

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

      )

Line indented incorrectly; expected 4 spaces, found 2
Open

  function init_form_fields()

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

        'billing_cycles' => ($product->get_meta('_subscription_length') == 0) ? null : $product->get_meta('_subscription_length'),

Line indented incorrectly; expected at least 12 spaces, found 6
Open

      )

Line indented incorrectly; expected 12 spaces, found 4
Open

    }

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

    $activatedProduct = $this->routes->updateProduct($vindi_product_id, array(

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

      'status' => 'active',

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

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

            set_transient('vindi_product_message', 'error', 60);
Severity
Category
Status
Source
Language