vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

          array(

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

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

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

        );

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

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

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

      'billing_trigger_type' => 'beginning_of_period',

Line indented incorrectly; expected 12 spaces, found 4
Open

    } else {

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

        $data = $variation_product->get_data();

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

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

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

        )

Line indented incorrectly; expected 12 spaces, found 6
Open

      }

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

        'plan' => $variations_plans,

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

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

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

    );

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

  {

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

    $product = wc_get_product($post_id);

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

          'plan_items' => array(

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

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

Line indented incorrectly; expected 8 spaces, found 4
Open

    if ($product->get_type() == 'variable-subscription') {

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

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

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

      'code' => 'WC-' . $data['id'],
Severity
Category
Status
Source
Language