Fix typo in a function comment. (#37746)

* Fix typo in a function comment.

* Chagelog update for typo corretcion in ReportsSync.php

---------

Co-authored-by: mujuonly <muju.only@gmail.com>
This commit is contained in:
mujuonly 2023-04-17 08:49:42 +05:30 committed by GitHub
parent 68fe54fcc8
commit 9ae8208f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Fix typo in a function comment.

View File

@ -88,7 +88,7 @@ class ReportsSync {
* Fires when report data regeneration begins. * Fires when report data regeneration begins.
* *
* @param int|bool $days Number of days to import. * @param int|bool $days Number of days to import.
* @param bool $skip_existing Skip exisiting records. * @param bool $skip_existing Skip existing records.
*/ */
do_action( 'woocommerce_analytics_regenerate_init', $days, $skip_existing ); do_action( 'woocommerce_analytics_regenerate_init', $days, $skip_existing );
@ -99,7 +99,7 @@ class ReportsSync {
* Update the import stat totals and counts. * Update the import stat totals and counts.
* *
* @param int|bool $days Number of days to import. * @param int|bool $days Number of days to import.
* @param bool $skip_existing Skip exisiting records. * @param bool $skip_existing Skip existing records.
*/ */
public static function reset_import_stats( $days, $skip_existing ) { public static function reset_import_stats( $days, $skip_existing ) {
$import_stats = get_option( ImportScheduler::IMPORT_STATS_OPTION, array() ); $import_stats = get_option( ImportScheduler::IMPORT_STATS_OPTION, array() );
@ -137,7 +137,7 @@ class ReportsSync {
* Get the import totals for all syncs. * Get the import totals for all syncs.
* *
* @param int|bool $days Number of days to import. * @param int|bool $days Number of days to import.
* @param bool $skip_existing Skip exisiting records. * @param bool $skip_existing Skip existing records.
* @return array * @return array
*/ */
public static function get_import_totals( $days, $skip_existing ) { public static function get_import_totals( $days, $skip_existing ) {