Remove two phpcs:ignores, improve code instead

This commit is contained in:
Nestor Soriano 2020-06-05 15:53:15 +02:00
parent 9142e27a19
commit c074f085cc
1 changed files with 0 additions and 5 deletions

View File

@ -2000,13 +2000,8 @@ class WC_Product extends WC_Abstract_Legacy_Product {
public function get_price_suffix( $price = '', $qty = 1 ) {
$html = '';
<<<<<<< HEAD
$suffix = get_option( 'woocommerce_price_display_suffix' );
if ( $suffix && wc_tax_enabled() && 'taxable' === $this->get_tax_status() ) {
=======
// phpcs:ignore Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure, WordPress.CodeAnalysis.AssignmentInCondition.Found
if ( ( $suffix = get_option( 'woocommerce_price_display_suffix' ) ) && wc_tax_enabled() && 'taxable' === $this->get_tax_status() ) {
>>>>>>> cd077dfb6... Fix code sniffer errors in some files.
if ( '' === $price ) {
$price = $this->get_price();
}