Skip to content

Commit

Permalink
Rename methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemd24 committed Feb 7, 2024
1 parent 4c304f3 commit 56d20b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MerchantCenter/MerchantStatuses.php
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,8 @@ public function process_product_statuses( $statuses ): void {
public function update_product_stats() {
$this->mc_statuses = [];
// Update each product's mc_status and then update the global statistics.
$this->update_product_mc_statuses();
$this->update_mc_statuses();
$this->update_products_meta_with_mc_status();
$this->update_mc_status_statistics();
}

/**
Expand Down Expand Up @@ -722,7 +722,7 @@ protected function calculate_synced_product_statistics(): array {
/**
* Calculate the product status statistics and update the transient.
*/
protected function update_mc_statuses() {
protected function update_mc_status_statistics() {
$product_statistics = $this->calculate_synced_product_statistics();

/** @var ProductRepository $product_repository */
Expand All @@ -745,7 +745,7 @@ protected function update_mc_statuses() {
/**
* Update the Merchant Center status for each product.
*/
protected function update_product_mc_statuses() {
protected function update_products_meta_with_mc_status() {
// Generate a product_id=>mc_status array.
$new_product_statuses = [];
foreach ( $this->product_statuses as $types ) {
Expand Down

0 comments on commit 56d20b5

Please sign in to comment.