vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

        );

Multi-line function call not indented correctly; expected 16 spaces but found 14
Open

              )

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

          )

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

      'interval_count' => $plan_interval['interval_count'],

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

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

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

            'name' => VINDI_PREFIX_PLAN . $data['name'],

Line indented incorrectly; expected 12 spaces, found 10
Open

          }

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

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

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

        $variations_products[$variation['variation_id']] = $updatedProduct;

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

            ) : array(

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

        $variations_plans[$variation['variation_id']] = $createdPlan;

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

      $product->get_meta('_subscription_trial_length'),

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

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

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

    $createdProduct = !empty($vindi_product_id) ?

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

      ),

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

    );

Line indented incorrectly; expected 4 spaces, found 2
Open

  function update($post_id)

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

        return $this->create($post_id, '', '', true);

Line indented incorrectly; expected 16 spaces, found 8
Open

        }

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

        $interval_type     = $variation_product->get_meta('_subscription_period');
Severity
Category
Status
Source
Language