vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

        'invoice' => 'always',

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

      )

Line indented incorrectly; expected 10 spaces, found 4
Open

    if ($updatedPlan && $updatedProduct) {

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

      'product' => $updatedProduct,

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

    return $response;

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

      'status' => 'inactive',

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

  {

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

      $vindi_plan_id,

Expected 1 space after IF keyword; 0 found
Open

        if(empty($vindi_product_id)) {

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

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

Line indented incorrectly; expected 4 spaces, found 2
Open

  }

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

          return;

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

        return $inactivatedProduct;

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

    $interval_count = $product->get_meta('_subscription_period_interval');

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

        'code' => 'WC-' . $data['id'],

Line indented incorrectly; expected 12 spaces, found 10
Open

          }

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

    $response = array(

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

    $vindi_plan_id = get_post_meta($product->id, 'vindi_plan_id', true);

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

    ));
Severity
Category
Status
Source
Language