Fix PHPCS errors in tests/framework/class-wc-dummy-data-store.php
This commit is contained in:
parent
ed1c4b11b8
commit
fa875a4d25
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue