vindi/vindi-woocommerce

View on GitHub

Showing 2,474 of 2,474 total issues

Line exceeds 120 characters; contains 152 characters
Open

            $subscriptions = wcs_get_subscriptions_for_order(wcs_get_objects_property($order, 'id'), array('order_type' => array('parent', 'renewal')));

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

     * @param  int      $bill_id Order object.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

     */
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line exceeds 120 characters; contains 128 characters
Open

        if (function_exists('wcs_order_contains_subscription') && wcs_order_contains_subscription($this->order, array('any'))) {

Line exceeds 120 characters; contains 149 characters
Open

            return $this->abort(__('Falha ao recuperar informações sobre o produto na Vindi. Verifique os dados e tente novamente.', VINDI), true);

Line exceeds 120 characters; contains 126 characters
Open

                            sprintf('<a href="%s">', esc_url(wcs_get_edit_post_link(wcs_get_objects_property($order, 'id')))),

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

    </div>
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

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

     * @return object Either an object of name value pairs for a success, or a WP_ERROR object.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line exceeds 120 characters; contains 127 characters
Open

                if (wcs_get_objects_property($order, 'id') == $latest_order && $subscription->can_be_updated_to('cancelled')) {

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

     * @param  int      $bill_id Order object.
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

        return $refund['last_transaction'];
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

Line exceeds 120 characters; contains 144 characters
Open

    wp_register_style('vindi_woocommerce_admin_style', plugins_url('/assets/css/admin.css', plugin_dir_path(__FILE__)), array(), VINDI_VERSION);

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

        <p><strong><?php _e('Vindi', VINDI);?></strong>: <?php printf( __( 'Não foi possível criar/atualizar o produto na Vindi!', VINDI ) ); ?></p>
Severity: Minor
Found in src/views/product-status.php by phpcodesniffer

Inline control structures are not allowed
Open

        if ($product->id === null) $product->id = 63;

Inline control structures are not allowed
Open

  if(is_user_logged_in() || get_option('woocommerce_enable_guest_checkout') == "yes") return;

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

    exit;

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

    <p><strong><?php _e( 'Chave API Inválida', VINDI ); ?></strong>: <?php printf( __( 'A chave API utilizada não é uma chave válida! Por favor verifique as informações e tente novamente!', VINDI ) ); ?></p>

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

        $request = array(
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

        if (!is_null($amount) ) {
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer

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

     *
Severity: Minor
Found in src/utils/PaymentGateway.php by phpcodesniffer
Severity
Category
Status
Source
Language