From a80987f9650ad075b421ed3fd311eb7f46be0268 Mon Sep 17 00:00:00 2001 From: Asad Nur Date: Fri, 29 Nov 2024 12:48:38 +0600 Subject: [PATCH] fix: Coding indentation in init_appsero_tracker method --- dokan-migrator.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/dokan-migrator.php b/dokan-migrator.php index a04262d..19d6f11 100644 --- a/dokan-migrator.php +++ b/dokan-migrator.php @@ -187,30 +187,30 @@ public function __get( $prop ) { } /** - * Initiates Appsero services. - * - * @since 1.0.0 - * - * @return void - */ - public function init_appsero_tracker() { - if ( ! class_exists( 'WeDevs\DokanMigrator\Dependencies\Appsero\Client' ) ) { + * Initiates Appsero services. + * + * @since 1.0.0 + * + * @return void + */ + public function init_appsero_tracker() { + if ( ! class_exists( 'WeDevs\DokanMigrator\Dependencies\Appsero\Client' ) ) { return; } $client = new WeDevs\DokanMigrator\Dependencies\Appsero\Client( '2852f2fd-66ff-4649-9b00-5f9ed953f8b9', 'Dokan Migrator', DOKAN_MIGRATOR_FILE ); $insights = $client->insights(); - $insights->add_extra( + $insights->add_extra( function() { return array( 'dokan_migrator_version' => DOKAN_MIGRATOR_PLUGIN_VERSION, - ); + ); } ); $insights->init(); - } + } /** * Make dokan migrator plugin HPOS supported.