Showing 2,474 of 2,474 total issues
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
add_action('woocommerce_cart_calculate_fees', array($this, 'calculate_cost'));
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Opening brace should be on a new line Open
Open
public function calculate_cost($cart) {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
$total_price = $cart_total * (1 + (($interest_rate / 100) * ($installments - 1)));
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 8 Open
Open
'quantity' => $quantity, // The number of items of this type sold, as a non-negative integer.
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
Open
);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$level3_data = array(
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
'merchant_reference' => $order->get_id(), // An alphanumeric string of up to characters in length. This unique value is assigned by the merchant to identify the order. Also known as an “Order ID”.
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 6 Open
Open
'line_items' => $vindi_line_items,
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
} catch (Exception $e) {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public function process_refund($order_id, $amount = null, $reason = '') {
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$order = wc_get_order($order_id);
- Exclude checks
Line indented incorrectly; expected at least 12 spaces, found 6 Open
Open
return new WP_Error('error', __('Reembolso falhou.', VINDI));
- Exclude checks
Line indented incorrectly; expected 8 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$amount = filter_var($amount, FILTER_SANITIZE_NUMBER_FLOAT);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$amount = filter_var($amount, FILTER_SANITIZE_NUMBER_FLOAT);
- Exclude checks
Closing brace indented incorrectly; expected 4 spaces, found 2 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
$bill_id = filter_var($bill_id, FILTER_SANITIZE_NUMBER_INT);
- Exclude checks
Line indented incorrectly; expected at least 8 spaces, found 4 Open
Open
wp_enqueue_style('vindi_woocommerce_admin_style');
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 2 Open
Open
public function customer() {
- Exclude checks