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() ]); }); }