Fix PHPCS errors in tests/framework/class-wc-dummy-data-store.php

This commit is contained in:
Rodrigo Primo 2019-11-21 11:52:07 -03:00
parent ed1c4b11b8
commit fa875a4d25
1 changed files with 10 additions and 4 deletions

View File

@ -1,16 +1,22 @@
<?php
/**
* Dummy WC data stores used to test data store functionality.
*
* @package WooCommerce\Tests\Framework
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// phpcs:disable Squiz.Commenting
/**
* WC Dummy Data Store: CPT.
*
* Used to test swapping out data stores.
*
* @version 3.0.0
* @category Class
* @author WooThemes
*/
class WC_Dummy_Data_Store_CPT implements WC_Object_Data_Store_Interface {
public function create( &$data ) { }
@ -29,8 +35,6 @@ class WC_Dummy_Data_Store_CPT implements WC_Object_Data_Store_Interface {
* Used to test swapping out data stores.
*
* @version 3.0.0
* @category Class
* @author WooThemes
*/
class WC_Dummy_Data_Store_Custom_Table implements WC_Object_Data_Store_Interface {
public function create( &$data ) { }
@ -42,3 +46,5 @@ class WC_Dummy_Data_Store_Custom_Table implements WC_Object_Data_Store_Interface
public function add_meta( &$data, $meta ) { }
public function update_meta( &$data, $meta ) { }
}
// phpcs:enable