vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line indented incorrectly; expected 12 spaces, found 6
Open

      if ('2' === $order->get_meta('_billing_persontype')) {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

        $plan_interval     = VindiConversions::convert_interval($interval_count, $interval_type);

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

                    );

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

    return $methods;
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    $this->routes = $vindi_settings->routes;

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

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

    $cpf_or_cnpj = null;

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

        'phone_type' => 'landline',

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

      $vindi_phones[$phone['phone_type']] = $phone['id'];

Line indented incorrectly; expected 16 spaces, found 8
Open

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

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

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

Line indented incorrectly; expected 16 spaces, found 8
Open

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

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

    );

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

Multi-line function call not indented correctly; expected 12 spaces but found 10
Open

          $product->get_meta('_subscription_trial_period')

Line indented incorrectly; expected 4 spaces, found 2
Open

  public static function getPath()
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

    add_action('woocommerce_save_account_details', array($this, 'update'), 10, 1);

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

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

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

        $notes = sprintf('Nome: %s %s', $order->get_billing_first_name(), $order->get_billing_last_name());
Severity
Category
Status
Source
Language