vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line indented incorrectly; expected 4 spaces, found 2
Open

  function create($post_id, $post, $update, $recreated = false)

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

          return;

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

          return;

Expected 1 space after IF keyword; 0 found
Open

        if(empty($vindi_product_id)) {

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

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

      $product->get_meta('_subscription_trial_length'),

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

      $product->get_meta('_subscription_trial_period')

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

      array(

Line indented incorrectly; expected 12 spaces, found 4
Open

    } else {

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

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

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

      'status' => 'inactive',

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

    return array(

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

    $product = wc_get_product($post_id);

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

    $activatedPlan = $this->routes->updatePlan($vindi_plan_id, array(

Line indented incorrectly; expected 4 spaces, found 2
Open

  function __construct(VindiSettings $vindi_settings)

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

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

    );

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

        )

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

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

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

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