vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

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

        $trigger_day = VindiConversions::convertTriggerToDay(

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

          $product->get_meta('_subscription_trial_period')

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

        $createdProduct = !empty($vindi_product_id) ?

Line indented incorrectly; expected 8 spaces, found 4
Open

    }
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

  {
Severity: Minor
Found in src/VindiWoocommerce.php by phpcodesniffer

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

        $cpf_or_cnpj = $order->get_meta('_billing_cnpj');

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

            update_user_meta($user_id, 'vindi_customer_id', $createdUser['id']);

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

      $mobile = array(

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

        'phone_type' => 'mobile',

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

        'number' => preg_replace('/\D+/', '', '55' . $customer->get_meta('billing_cellphone'))

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

        $notes = sprintf('Nome: %s %s', $order->get_billing_first_name(), $order->get_billing_last_name());

Line indented incorrectly; expected 8 spaces, found 4
Open

    if (empty($vindi_customer_id)) {

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 8 spaces, found 4
Open

    }

Multi-line function call not indented correctly; expected 22 spaces but found 20
Open

                    );

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

              'product_id' => $createdProduct['id']

Line indented incorrectly; expected 8 spaces, found 4
Open

    }

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

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

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

            update_post_meta($post_id, 'vindi_product_id', $createdProduct['id']);
Severity
Category
Status
Source
Language