Fixed includes/class-wc-structured-data.php PHPCS violations

This commit is contained in:
Claudio Sanches 2018-03-21 00:19:41 -03:00
parent 698be52bf8
commit 539282be16
1 changed files with 5 additions and 7 deletions

View File

@ -2,17 +2,15 @@
/** /**
* Structured data's handler and generator using JSON-LD format. * Structured data's handler and generator using JSON-LD format.
* *
* @package WooCommerce/Classes
* @since 3.0.0 * @since 3.0.0
* @version 3.0.0 * @version 3.0.0
* @package WooCommerce/Classes
*/ */
if ( ! defined( 'ABSPATH' ) ) { defined( 'ABSPATH' ) || exit;
exit;
}
/** /**
* WC_Structured_Data class. * Structured data class.
*/ */
class WC_Structured_Data { class WC_Structured_Data {
@ -240,8 +238,8 @@ class WC_Structured_Data {
} }
} else { } else {
$markup_offer = array( $markup_offer = array(
'@type' => 'Offer', '@type' => 'Offer',
'price' => wc_format_decimal( $product->get_price(), wc_get_price_decimals() ), 'price' => wc_format_decimal( $product->get_price(), wc_get_price_decimals() ),
'priceSpecification' => array( 'priceSpecification' => array(
'price' => wc_format_decimal( $product->get_price(), wc_get_price_decimals() ), 'price' => wc_format_decimal( $product->get_price(), wc_get_price_decimals() ),
'priceCurrency' => $currency, 'priceCurrency' => $currency,