vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

              'cycles' => $product->get_meta('_subscription_length'),

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

            )

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

      $variations_products = $variations_plans = [];

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

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

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

            'status' => ($data['status'] == 'publish') ? 'active' : 'inactive',

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

      'billing_trigger_day' => $trigger_day,

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

        ) : array(

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

        $vindi_product_id = get_post_meta($variation['variation_id'], 'vindi_product_id', true);

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

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

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

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

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

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

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

        'product' => $variations_products,

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

            ($product->get_meta('_subscription_length') == 0) ? array(

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

    $data = $product->get_data();

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

          return;

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

Line indented incorrectly; expected 16 spaces, found 8
Open

        if (empty($vindi_plan_id)) {

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

              'price' => ($data['price']) ? $data['price'] : 0,

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

      $product->get_meta('_subscription_trial_period')

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

      array(
Severity
Category
Status
Source
Language