vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

        'phone_type' => 'landline',

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

    $metadata = null;

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

        $cpf_or_cnpj = $order->get_meta('_billing_cnpj');

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

          $metadata['inscricao_estadual'] = $order->get_meta('_billing_ie');

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

    add_action('wp_trash_post', array($this, 'trash'), 10, 1);

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

    add_action('untrash_post', array($this, 'untrash'), 10, 1);

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (get_post_type($post_id) != 'product') {

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

          return;

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

        $variation_product = wc_get_product($variation['variation_id']);

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

    $customer = new WC_Customer($user_id);

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

        'number' => preg_replace('/\D+/', '', '55' . $customer->get_meta('billing_cellphone'))

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

      $metadata = array();

Line indented incorrectly; expected 16 spaces, found 8
Open

        if ($this->vindi_settings->send_nfe_information()) {

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

    return $createdUser;

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

      $landline = array(

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

        $this->vindi_settings->logger->log(sprintf('Customer cpf -> %s', $customer->get_meta('billing_cpf')));

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

      $vindi_customer_id

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

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

      return;
Severity
Category
Status
Source
Language