vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Only one argument is allowed per line in a multi-line function call
Open

      sprintf('bills/%s%s', filter_var($bill_id, FILTER_SANITIZE_NUMBER_INT), $query), 'DELETE')
Severity: Minor
Found in src/routes/RoutesApi.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

                        ), array('a' => array('href' => true))));

Line exceeds 120 characters; contains 125 characters
Open

          'neighborhood' => ($customer->get_meta('billing_neighborhood')) ? $customer->get_meta('billing_neighborhood') : '',

Line exceeds 120 characters; contains 125 characters
Open

          'neighborhood' => ($customer->get_meta('billing_neighborhood')) ? $customer->get_meta('billing_neighborhood') : '',

Line exceeds 120 characters; contains 128 characters
Open

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

Line exceeds 120 characters; contains 132 characters
Open

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

Line exceeds 120 characters; contains 134 characters
Open

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

Line exceeds 120 characters; contains 128 characters
Open

        if(!$recreated && get_post_status($post_id) != 'publish' || !empty(get_post_meta($post_id, 'vindi_product_id', true))) {

Line exceeds 120 characters; contains 126 characters
Open

        'description'      => __('Ative esta opção para habilitar a comunicação com o ambiente Sandbox da Vindi.', VINDI),

Line exceeds 120 characters; contains 166 characters
Open

        'description'      => sprintf(__('Envia informações de RG e Inscrição Estadual para Emissão de NFe\'s com nossos parceiros. %s', VINDI), $nfe_know_more),

Line exceeds 120 characters; contains 136 characters
Open

    $prospects_url = '<a href="https://app.vindi.com.br/prospects/new" target="_blank">' . __('Não possui uma conta?', VINDI) . '</a>';

Line exceeds 120 characters; contains 130 characters
Open

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

Line exceeds 120 characters; contains 123 characters
Open

    $url           = admin_url(sprintf('admin.php?page=wc-status&tab=logs&log_file=%s-%s-log', VINDI, $this->get_token()));

Line exceeds 120 characters; contains 159 characters
Open

    $sand_box_article = '<a href="https://atendimento.vindi.com.br/hc/pt-br/articles/115012242388-Sandbox" target="_blank">' . __('Dúvidas?', VINDI) . '</a>';

Inline control structures are not allowed
Open

    if(empty(get_transient('vindi_product_message')))

Spaces must be used to indent lines; tabs are not allowed
Open

    exit; // Exit if accessed directly

Spaces must be used to indent lines; tabs are not allowed
Open

        return sprintf('%s/index.php/wc-api/%s?token=%s',

Line exceeds 120 characters; contains 128 characters
Open

        'description'      => __('Status que o pedido deverá ter após receber a confirmação de pagamento da Vindi.', VINDI),

Line exceeds 120 characters; contains 133 characters
Open

        'description'      => sprintf(__('Ative esta opção para habilitar logs de depuração do servidor. %s', VINDI), $logs_url),

Spaces must be used to indent lines; tabs are not allowed
Open

    exit; // Exit if accessed directly
Severity
Category
Status
Source
Language