Skip to content

Commit

Permalink
updated wrong class names
Browse files Browse the repository at this point in the history
  • Loading branch information
0xBeycan committed Mar 2, 2024
1 parent 1adbae0 commit 52cbe3c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use BeycanPress\CryptoPayLite\Models\AbstractTransaction;

// @phpcs:ignore
class MemberPressCrpyoPayLiteModel extends AbstractTransaction
class MemberPressCryptoPayLiteModel extends AbstractTransaction
{
public string $addon = 'memberpress';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use BeycanPress\CryptoPay\Models\AbstractTransaction;

// @phpcs:ignore
class MemberPressCrpyoPayModel extends AbstractTransaction
class MemberPressCryptoPayModel extends AbstractTransaction
{
public string $addon = 'memberpress';

Expand Down
16 changes: 8 additions & 8 deletions memberpress-cryptopay-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});

Expand All @@ -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()
]);
});
}
Expand Down

0 comments on commit 52cbe3c

Please sign in to comment.