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.
*
* @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,