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
|
<?php
|
||||||
|
/**
|
||||||
|
* Dummy WC data stores used to test data store functionality.
|
||||||
|
*
|
||||||
|
* @package WooCommerce\Tests\Framework
|
||||||
|
*/
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// phpcs:disable Squiz.Commenting
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WC Dummy Data Store: CPT.
|
* WC Dummy Data Store: CPT.
|
||||||
*
|
*
|
||||||
* Used to test swapping out data stores.
|
* Used to test swapping out data stores.
|
||||||
*
|
*
|
||||||
* @version 3.0.0
|
* @version 3.0.0
|
||||||
* @category Class
|
|
||||||
* @author WooThemes
|
|
||||||
*/
|
*/
|
||||||
class WC_Dummy_Data_Store_CPT implements WC_Object_Data_Store_Interface {
|
class WC_Dummy_Data_Store_CPT implements WC_Object_Data_Store_Interface {
|
||||||
public function create( &$data ) { }
|
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.
|
* Used to test swapping out data stores.
|
||||||
*
|
*
|
||||||
* @version 3.0.0
|
* @version 3.0.0
|
||||||
* @category Class
|
|
||||||
* @author WooThemes
|
|
||||||
*/
|
*/
|
||||||
class WC_Dummy_Data_Store_Custom_Table implements WC_Object_Data_Store_Interface {
|
class WC_Dummy_Data_Store_Custom_Table implements WC_Object_Data_Store_Interface {
|
||||||
public function create( &$data ) { }
|
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 add_meta( &$data, $meta ) { }
|
||||||
public function update_meta( &$data, $meta ) { }
|
public function update_meta( &$data, $meta ) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// phpcs:enable
|
||||||
|
|
Loading…
Reference in New Issue