From 52cbe3c869116d1b85fbdc808253db7fc97982a7 Mon Sep 17 00:00:00 2001 From: Halil Beycan <50718965+BeycanDeveloper@users.noreply.github.com> Date: Sat, 2 Mar 2024 21:49:54 +0800 Subject: [PATCH] updated wrong class names --- ...del.php => MemberPressCryptoPayLiteModel.php} | 2 +- ...ayModel.php => MemberPressCryptoPayModel.php} | 2 +- memberpress-cryptopay-gateway.php | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) rename classes/lite/Models/{MemberPressCrpyoPayLiteModel.php => MemberPressCryptoPayLiteModel.php} (85%) rename classes/pro/Models/{MemberPressCrpyoPayModel.php => MemberPressCryptoPayModel.php} (85%) diff --git a/classes/lite/Models/MemberPressCrpyoPayLiteModel.php b/classes/lite/Models/MemberPressCryptoPayLiteModel.php similarity index 85% rename from classes/lite/Models/MemberPressCrpyoPayLiteModel.php rename to classes/lite/Models/MemberPressCryptoPayLiteModel.php index fff8bda..f845b39 100644 --- a/classes/lite/Models/MemberPressCrpyoPayLiteModel.php +++ b/classes/lite/Models/MemberPressCryptoPayLiteModel.php @@ -8,7 +8,7 @@ use BeycanPress\CryptoPayLite\Models\AbstractTransaction; // @phpcs:ignore -class MemberPressCrpyoPayLiteModel extends AbstractTransaction +class MemberPressCryptoPayLiteModel extends AbstractTransaction { public string $addon = 'memberpress'; diff --git a/classes/pro/Models/MemberPressCrpyoPayModel.php b/classes/pro/Models/MemberPressCryptoPayModel.php similarity index 85% rename from classes/pro/Models/MemberPressCrpyoPayModel.php rename to classes/pro/Models/MemberPressCryptoPayModel.php index d4be394..f693c41 100644 --- a/classes/pro/Models/MemberPressCrpyoPayModel.php +++ b/classes/pro/Models/MemberPressCryptoPayModel.php @@ -9,7 +9,7 @@ use BeycanPress\CryptoPay\Models\AbstractTransaction; // @phpcs:ignore -class MemberPressCrpyoPayModel extends AbstractTransaction +class MemberPressCryptoPayModel extends AbstractTransaction { public string $addon = 'memberpress'; diff --git a/memberpress-cryptopay-gateway.php b/memberpress-cryptopay-gateway.php index ccf7b9e..c9754f6 100644 --- a/memberpress-cryptopay-gateway.php +++ b/memberpress-cryptopay-gateway.php @@ -39,12 +39,12 @@ register_activation_hook(MEMBERPRESS_CRYPTOPAY_FILE, function (): void { if (class_exists(Loader::class)) { - require_once MEMBERPRESS_CRYPTOPAY_DIR . 'classes/pro/Models/MemberPressCrpyoPayModel.php'; - (new MemberPressCrpyoPayModel())->createTable(); + require_once MEMBERPRESS_CRYPTOPAY_DIR . 'classes/pro/Models/MemberPressCryptoPayModel.php'; + (new MemberPressCryptoPayModel())->createTable(); } if (class_exists(LiteLoader::class)) { - require_once MEMBERPRESS_CRYPTOPAY_DIR . 'classes/lite/Models/MemberPressCrpyoPayLiteModel.php'; - (new MemberPressCrpyoPayLiteModel())->createTable(); + require_once MEMBERPRESS_CRYPTOPAY_DIR . 'classes/lite/Models/MemberPressCryptoPayLiteModel.php'; + (new MemberPressCryptoPayLiteModel())->createTable(); } }); @@ -54,19 +54,19 @@ function memberpress_cryptopay_addModels(): void { if (class_exists(Loader::class)) { - require_once MEMBERPRESS_CRYPTOPAY_DIR . 'classes/pro/Models/MemberPressCrpyoPayModel.php'; + require_once MEMBERPRESS_CRYPTOPAY_DIR . 'classes/pro/Models/MemberPressCryptoPayModel.php'; Hook::addFilter('models', function ($models) { return array_merge($models, [ - 'memberpress' => new MemberPressCrpyoPayModel() + 'memberpress' => new MemberPressCryptoPayModel() ]); }); } if (class_exists(LiteLoader::class)) { - require_once MEMBERPRESS_CRYPTOPAY_DIR . 'classes/lite/Models/MemberPressCrpyoPayLiteModel.php'; + require_once MEMBERPRESS_CRYPTOPAY_DIR . 'classes/lite/Models/MemberPressCryptoPayLiteModel.php'; LiteHook::addFilter('models', function ($models) { return array_merge($models, [ - 'memberpress' => new MemberPressCrpyoPayLiteModel() + 'memberpress' => new MemberPressCryptoPayLiteModel() ]); }); }