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

    $vindiUser = $this->routes->findCustomerById($vindi_customer_id);

Line indented incorrectly; expected 8 spaces, found 4
Open

    if ($order && method_exists($order, 'needs_payment')) {

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

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

  {

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

      $variations = $product->get_available_variations();

Line indented incorrectly; expected 4 spaces, found 2
Open

  private $types;

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

          $this->routes->findProductById($vindi_product_id) :

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

    add_action('wp_insert_post', array($this, 'create'), 10, 3);

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (strpos(get_post_status($post_id), 'draft') !== false) {

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

                        )

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

        $vindi_product_id = get_post_meta($post_id, 'vindi_product_id', true);

Multi-line function call not indented correctly; expected 26 spaces but found 22
Open

                      )

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

        $createdPlan = $this->routes->createPlan(array(

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

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

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

  {

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

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

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

Line indented incorrectly; expected 12 spaces, found 6
Open

      } else {

Line indented incorrectly; expected 8 spaces, found 4
Open

    }
Severity
Category
Status
Source
Language