Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions includes/Products/Sync.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php
// phpcs:ignoreFile
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
*
Expand All @@ -11,7 +10,7 @@

namespace WooCommerce\Facebook\Products;

defined( 'ABSPATH' ) or exit;
defined( 'ABSPATH' ) || exit;

/**
* The product sync handler.
Expand Down Expand Up @@ -102,7 +101,7 @@ public function create_or_update_products( array $product_ids ) {
*
* @since 2.0.0
*
* @param int[] $retailer retailer IDs to delete
* @param int[] $retailer_ids retailer IDs to delete
*/
public function delete_products( array $retailer_ids ) {

Expand Down Expand Up @@ -162,8 +161,8 @@ public function schedule_sync() {
*
* @since 2.0.0
*
* @param $product_id
* @return string
* @param int|string $product_id product ID
* @return string prefixed product index
*/
private function get_product_index( $product_id ) {

Expand All @@ -188,6 +187,4 @@ public static function is_sync_in_progress() {

return ! empty( $jobs );
}


}