phpcs fixes

This commit is contained in:
James Collins 2019-12-06 10:34:59 +08:00
parent b262ac8e53
commit 596ac29ba4
1 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,10 @@
*/
class WC_Tests_Webhook_Functions extends WC_Unit_Test_Case {
/**
* Temporarily store webhook delivery counters.
* @var array
*/
protected $delivery_counter = array();
/**
@ -239,7 +243,7 @@ class WC_Tests_Webhook_Functions extends WC_Unit_Test_Case {
* within the current request.
*
* @param WC_Webhook $webhook Webhook that is processing delivery.
* @param mixed $arg Webhook arg (usually resource ID).
* @param mixed $arg Webhook arg (usually resource ID).
*/
public function woocommerce_webhook_process_delivery( $webhook, $arg ) {
if ( ! isset( $this->delivery_counter[ $webhook->get_id() . $arg ] ) ) {