Fixed includes/class-wc-structured-data.php PHPCS violations
This commit is contained in:
parent
698be52bf8
commit
539282be16
|
@ -2,17 +2,15 @@
|
|||
/**
|
||||
* Structured data's handler and generator using JSON-LD format.
|
||||
*
|
||||
* @package WooCommerce/Classes
|
||||
* @since 3.0.0
|
||||
* @version 3.0.0
|
||||
* @package WooCommerce/Classes
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
/**
|
||||
* WC_Structured_Data class.
|
||||
* Structured data class.
|
||||
*/
|
||||
class WC_Structured_Data {
|
||||
|
||||
|
@ -240,8 +238,8 @@ class WC_Structured_Data {
|
|||
}
|
||||
} else {
|
||||
$markup_offer = array(
|
||||
'@type' => 'Offer',
|
||||
'price' => wc_format_decimal( $product->get_price(), wc_get_price_decimals() ),
|
||||
'@type' => 'Offer',
|
||||
'price' => wc_format_decimal( $product->get_price(), wc_get_price_decimals() ),
|
||||
'priceSpecification' => array(
|
||||
'price' => wc_format_decimal( $product->get_price(), wc_get_price_decimals() ),
|
||||
'priceCurrency' => $currency,
|
||||
|
|
Loading…
Reference in New Issue