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

This commit is contained in:
Claudio Sanches 2018-03-21 00:11:16 -03:00
parent 7173396912
commit e825f33414
2 changed files with 4 additions and 7 deletions

View File

@ -7,16 +7,12 @@
*
* @version 3.2.0
* @package WooCommerce
* @category Class
* @author crodas
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
defined( 'ABSPATH' ) || exit;
/**
* WC_Meta_Data class.
* Meta data class.
*/
class WC_Meta_Data implements JsonSerializable {
@ -39,7 +35,7 @@ class WC_Meta_Data implements JsonSerializable {
/**
* Constructor.
*
* @param array $meta Data to wrap behind this function.
* @param array $meta Data to wrap behind this function.
*/
public function __construct( $meta = array() ) {
$this->current_data = $meta;

View File

@ -25,6 +25,7 @@
<rule ref="WooCommerce-Core" />
<rule ref="PHPCompatibility">
<exclude name="PHPCompatibility.PHP.NewKeywords.t_namespaceFound" />
<exclude name="PHPCompatibility.PHP.NewInterfaces.jsonserializableFound" />
<exclude-pattern>tests/</exclude-pattern>
</rule>