Code Duplication    Length = 3-3 lines in 3 locations

includes/wc-cart-functions.php 1 location

@@ 424-426 (lines=3) @@
421
			}
422
		} else {
423
			$label .= ': ' . wc_price( $method->cost + $method->get_shipping_tax() );
424
			if ( $method->get_shipping_tax() > 0 && ! wc_prices_include_tax() ) {
425
				$label .= ' <small class="tax_label">' . WC()->countries->inc_tax_or_vat() . '</small>';
426
			}
427
		}
428
	}
429

includes/legacy/class-wc-legacy-cart.php 2 locations

@@ 444-446 (lines=3) @@
441
442
					$return = wc_price( $this->shipping_total );
443
444
					if ( $this->shipping_tax_total > 0 && wc_prices_include_tax() ) {
445
						$return .= ' <small class="tax_label">' . WC()->countries->ex_tax_or_vat() . '</small>';
446
					}
447
448
					return $return;
449
@@ 454-456 (lines=3) @@
451
452
					$return = wc_price( $this->shipping_total + $this->shipping_tax_total );
453
454
					if ( $this->shipping_tax_total > 0 && ! wc_prices_include_tax() ) {
455
						$return .= ' <small class="tax_label">' . WC()->countries->inc_tax_or_vat() . '</small>';
456
					}
457
458
					return $return;
459