Code Analysis: Leat CRM 1.0.1

Function Rating Maintainability Complexity Lines of code
Leat\Domain\Services\GiftcardProductService::process_giftcard_order()
D
27
27 163
Leat\WebhookManager::ensure_webhooks_installed()
C
33 23 99
Leat\Domain\Syncing\SyncVouchers::upsert_coupon_for_promotion_rule()
B
34 19 89
Leat\Settings::get_all_settings()
B
22
1 329
Leat\Domain\Services\GiftcardCouponService::process_giftcard_refund()
B
32 15 117
Leat\Domain\Services\GiftcardCouponService::update_giftcard_balance_after_order()
B
34 15 105
Leat\Api\Api::container()
B
36 13 110
Leat\Domain\Services\SpendRulesService::create_coupon_for_spend_rule()
B
38 15 72
Leat\Domain\Bootstrap::register_dependencies()
B
27
1 275
Leat\Domain\Services\GiftcardProductService::handle_giftcard_withdrawal_refund()
A
41 13 58
Leat\Api\Routes\V1\WCProductsSearch::get_route_post_response()
A
43 12 48
Leat\WebhookManager::sync_webhooks()
A
45 12 42
Leat\Api\Connection::ensure_custom_attributes_exist()
A
33 6 128
Leat\Api\Routes\V1\SpendRulesClaim::get_route_post_response()
A
43 11 46
Leat\Api\Routes\V1\Admin\Settings::get_route_post_response()
A
51 12 24
Leat\Domain\Services\GiftcardProductService::handle_giftcard_withdrawal()
A
43 10 50
Leat\AssetsController::format_page_resource()
A
48 11 32
Leat\Domain\Services\GiftcardCouponService::maybe_create_giftcard_coupon_on_get_data()
A
41 9 59
Leat\Infrastructure\Formatters\WPSpendRuleFormatter::format()
A
29
1 176
Leat\Infrastructure\Blocks\GiftcardCouponIntegration::register_scripts_and_styles()
A
46 10 36
Leat\Domain\Services\GiftcardCouponService::validate_giftcard()
A
40 8 65
Leat\Domain\Syncing\AbstractSync::start_sync()
A
42 9 49
Leat\Api\Connection::get_shops()
A
48 10 33
Leat\Api\Connection::apply_credits()
A
48 10 33
Leat\Utils\Logger::log()
A
55 11 17
Leat\Domain\Syncing\BackgroundProcess::handle()
A
46 9 41
Leat\Api\Schemas\V1\AbstractSchema::get_recursive_validate_callback()
A
51 10 24
Leat\Api\Schemas\ExtendSchema::register_endpoint_data()
A
48 9 36
Leat\Domain\Services\GiftcardCouponService::maybe_create_giftcard_coupon_before_apply()
A
48 9 34
Leat\Domain\Bootstrap::deprecated_dependency()
A
49 9 32
Leat\Utils\CreditDisplay::get_formatted_credits()
A
49 9 31
Leat\Domain\Services\GiftcardCouponService::validate_giftcard_coupon_on_store_api()
A
45 8 45
Leat\Domain\Services\EarnRules::get_svg()
A
51 9 30
Leat\Api\Connection::format_contact()
A
46 8 39
Leat\Utils\Users::create_woocommerce_user_from_email()
A
46 8 39
Leat\Utils\TranslatedText::get_text()
A
54 9 22
Leat\Api\Connection::find_or_create_wp_user_by_uuid()
A
48 8 34
Leat\Infrastructure\Formatters\WPPromotionRuleFormatter::format()
A
32 1 137
Leat\Assets\Vite::load_production_asset()
A
49 8 29
Leat\Domain\Services\GiftcardCouponService::add_giftcard_detected_note()
A
50 8 29
Leat\Api\Routes\V1\WCCategoriesSearch::get_route_post_response()
A
50 8 28
Leat\Domain\Services\GiftcardCouponService::show_giftcard_notices_on_cart_update()
A
52 8 24
Leat\Api\Routes\V1\Admin\Settings::get_route_response()
A
52 8 24
Leat\Utils\Coupons::is_coupon_valid()
A
54 8 20
Leat\Api\Connection::send_giftcard_email()
A
48 7 35
Leat\Domain\Services\Cart\CartManager::adjust_cart_item_prices()
A
54 8 20
Leat\Domain\Services\GiftcardProductService::validate_giftcard_recipient_email()
A
54 8 19
Leat\Domain\Syncing\BackgroundProcess::get_batches()
A
44 6 48
Leat\Infrastructure\Repositories\WPSpendRuleRepository::create_or_update()
S
44 6 45
Leat\Api\Connection::get_purchased_categories()
S
50 7 30
Leat\Assets\Vite::get_manifest()
S
49 7 29
Leat\Domain\Services\EarnRules::get_formatted_post()
S
35 2 104
Leat\Api\Connection::get_woocommerce_user_data()
S
44 6 43
Leat\Domain\Services\EarnRules::get_label_default()
S
52 7 26
Leat\Domain\Services\Order\OrderProcessor::sync_attributes_on_order_completed()
S
51 7 26
Leat\RedirectController::maybe_redirect_to_onboarding()
S
60 8 11
Leat\Domain\Services\GiftcardCouponService::maybe_create_giftcard_coupon_from_code()
S
52 7 25
Leat\Domain\Services\GiftcardProductService::add_giftcard_recipient_field()
S
46 6 40
Leat\Api\Schemas\V1\AbstractSchema::get_recursive_sanitize_callback()
S
52 7 24
Leat\Domain\Services\SpendRulesService::get_rules_for_contact()
S
53 7 23
Leat\Infrastructure\Repositories\WPPromotionRuleRepository::create_or_update()
S
47 6 38
Leat\Domain\Bootstrap::is_built()
S
54 7 23
Leat\Domain\Services\GiftcardCouponService::maybe_show_giftcard_success_message()
S
55 7 19
Leat\Domain\Syncing\BackgroundProcess::__construct()
S
54 7 19
Leat\Utils\Common::get_current_language()
S
56 7 18
Leat\Domain\Services\EarnRules::get_label_description()
S
56 7 18
Leat\Domain\Services\Order\OrderProcessor::process_checkout_contact()
S
50 6 31
Leat\Api\RoutesController::register_routes()
S
50 6 29
Leat\Api\Connection::get_contact_by_wp_id()
S
51 6 29
Leat\Domain\Services\GiftcardProductService::save_giftcard_recipient_email()
S
50 6 29
Leat\Api\Connection::log_exception()
S
51 6 28
Leat\Domain\Services\ApiService::log_exception()
S
51 6 28
Leat\Domain\Services\GiftcardCouponService::create_giftcard_coupon()
S
46 5 42
Leat\Api\Routes\V1\Giftcards::get_route_post_response()
S
52 6 23
Leat\Domain\Services\GiftcardProductService::add_refund_field_script()
S
54 6 23
Leat\Installer::maybe_create_tables()
S
54 6 22
Leat\Domain\Services\Order\OrderCreditHandler::handle_order_credit_withdrawal_refund()
S
54 6 21
Leat\Api\Schemas\ExtendSchema::get_endpoint_data()
S
54 6 21
Leat\Api\Schemas\ExtendSchema::get_endpoint_schema()
S
54 6 21
Leat\Domain\Syncing\SyncVouchers::queue_vouchers_for_promotion()
S
44 4 50
Leat\Utils\Common::get_languages()
S
55 6 19
Leat\Domain\Services\EarnRules::get_applicable_place_order_rule()
S
56 6 19
Leat\WebhookManager::handle_webhook()
S
57 6 19
Leat\Domain\Bootstrap::init()
S
49 5 33
Leat\Api\Routes\V1\PromotionRules::get_route_post_response()
S
47 5 33
Leat\Domain\Services\GiftcardCouponService::handle_giftcard_coupon_refund()
S
49 5 32
Leat\Domain\Syncing\AbstractSync::handle_duplicates()
S
48 5 32
Leat\Domain\Syncing\BackgroundProcess::get_chain_id()
S
58 6 16
Leat\Domain\Bootstrap::has_core_dependencies()
S
50 5 31
Leat\Migration::run_migrations()
S
58 6 16
Leat\Domain\Services\GiftcardProductService::send_giftcard_email()
S
49 5 31
Leat\Infrastructure\Repositories\WPSpendRuleRepository::get_rules_by_type()
S
50 5 30
Leat\Domain\Syncing\AbstractSync::process_batch()
S
49 5 30
Leat\Domain\Services\GiftcardCouponService::save_giftcard_coupon_meta_box()
S
60 6 14
Leat\Settings::update_settings()
S
59 6 14
Leat\Assets\Vite::inject_react_refresh_preamble_script()
S
51 5 28
Leat\Domain\Services\GiftcardCouponService::filter_coupon_list_by_giftcard()
S
59 6 13
Leat\Settings::get_setting_with_value()
S
60 6 12
Leat\Domain\Syncing\SyncVouchers::handle_voucher_redeemed_webhook()
S
51 5 26
Leat\Domain\Syncing\SyncVouchers::handle_voucher_created_webhook()
S
52 5 26
Leat\WebhookManager::get_webhooks()
S
52 5 25
Leat\Domain\Syncing\BackgroundProcess::get_process_status()
S
53 5 24
Leat\Api\Connection::create_reward_reception()
S
53 5 24
Leat\Api\Routes\V1\AbstractRoute::get_context_param()
S
53 5 23
Leat\Domain\Syncing\BackgroundProcess::maybe_handle()
S
56 5 22
Leat\Assets\Api::get_script_data()
S
53 5 22
Leat\Api\Connection::update_contact()
S
54 5 22
Leat\Api\Connection::get_rewards_for_contact()
S
54 5 22
Leat\Api\Schemas\ExtendSchema::get_update_callback()
S
55 5 22
Leat\Api\Connection::get_rewards()
S
56 5 20
Leat\Domain\Services\GiftcardProductService::create_giftcard()
S
55 5 20
Leat\Domain\Services\PromotionRulesService::get_coupons_by_user_id()
S
55 5 20
Leat\Domain\Services\SpendRulesService::get_coupons_by_user_id()
S
55 5 20
Leat\Domain\Services\Order\OrderProcessor::handle_checkout_order_processed()
S
54 5 20
Leat\Domain\Services\Order\OrderProcessor::handle_blocks_checkout_order_processed()
S
54 5 20
Leat\Api\Routes\V1\AbstractRoute::error_to_response()
S
55 5 19
Leat\Assets\Vite::set_script_type_attribute()
S
56 5 18
Leat\Utils\OrderNotes::add()
S
57 5 18
Leat\Api\Routes\V1\EarnRules::get_route_post_response()
S
44 3 47
Leat\Api\Routes\V1\WCCategoriesSearch::get_route_response()
S
56 5 17
Leat\Infrastructure\Repositories\WPSpendRuleRepository::get_applicable_rule()
S
58 5 16
Leat\Domain\Services\Order\OrderCreditHandler::handle_order_credit_withdrawal()
S
57 5 16
Leat\Api\Schemas\ExtendSchema::get_payment_requirements()
S
58 5 16
Leat\Domain\Services\GiftcardProductService::save_giftcard_program_settings()
S
58 5 15
Leat\Domain\Syncing\SyncVouchers::format_voucher_webhook()
S
58 5 15
Leat\Assets\Vite::register_asset()
S
58 5 15
Leat\Infrastructure\Repositories\WPPromotionRuleRepository::handle_duplicates()
S
50 4 29
Leat\PostTypeController::register_spend_rules_post_type()
S
44 3 43
Leat\PostTypeController::register_promotion_rules_post_type()
S
43 3 43
Leat\PostTypeController::register_earn_rules_post_type()
S
44 3 43
Leat\Domain\Services\LoyaltyManager::register_hooks()
S
49 4 28
Leat\Domain\Services\Cart\CartManager::handle_store_api_cart_update()
S
60 5 13
leat_should_display_compatibility_notices()
S
60 5 13
Leat\Api\Routes\V1\AbstractRoute::get_response_by_request_method()
S
62 5 12
Leat\Domain\Services\GiftcardCouponService::handle_giftcard_coupon_refund_without_refund_id()
S
52 4 27
Leat\Api\Connection::sync_basic_attributes_from_order()
S
50 4 27
Leat\Domain\Services\GiftcardProductService::add_giftcard_program_settings()
S
51 4 26
Leat\Domain\Services\Cart\CartManager::remove_sale_price_for_discounted_products()
S
62 5 11
Leat\Domain\Services\Cart\CartManager::adjust_price_for_discounted_products()
S
62 5 11
Leat\Installer::maybe_create_table()
S
49 3 40
Leat\AssetsController::enqueue_frontend()
S
48 3 40
Leat\Infrastructure\Repositories\LeatGiftcardRepository::create_transaction()
S
53 4 24
Leat\Api\Routes\V1\EarnReward::get_route_post_response()
S
51 4 24
Leat\Api\Schemas\V1\EarnRulesSchema::get_properties()
S
42 1 68
Leat\Domain\Services\GiftcardProductService::init()
S
52 4 22
Leat\Api\Connection::refund_credits_partial()
S
54 4 22
Leat\Infrastructure\Repositories\WPGiftcardCouponRepository::update()
S
54 4 21
Leat\AssetsController::get_middleware_config()
S
54 4 21
Leat\Api\Routes\V1\EarnRules::get_route_response()
S
54 4 20
Leat\Utils\Coupons::get_coupons_for_user()
S
54 4 20
Leat\Domain\Services\Customer\CustomerCreationHandler::handle_customer_creation()
S
55 4 20
Leat\Domain\Syncing\SyncVouchers::start_sync()
S
55 4 19
Leat\Api\Schemas\V1\SyncWebhooksSchema::get_properties()
S
44 1 64
Leat\Domain\Syncing\SyncVouchers::handle_voucher_updated_webhook()
S
55 4 19
Leat\Domain\Services\GiftcardCouponService::add_giftcard_detection_notes_to_order()
S
57 4 19
Leat\Domain\Services\Cart\CartManager::apply_discount_to_cart()
S
55 4 18
Leat\Domain\Services\Customer\CustomerCreationHandler::process_create_account_credits()
S
56 4 18
Leat\Api\Connection::get_contact_by_email()
S
57 4 17
Leat\Assets\Vite::enqueue_asset()
S
57 4 17
Leat\Api\Connection::get_contact_by_uuid()
S
57 4 17
Leat\Api\Connection::get_promotions()
S
57 4 17
Leat\Api\Routes\V1\WCProductsSearch::get_route_response()
S
57 4 17
Leat\Api\Connection::refund_credits_full()
S
58 4 17
Leat\Api\Connection::list_giftcard_programs()
S
57 4 17
Leat\AssetsController::enqueue_admin()
S
51 3 31
Leat\Api\Connection::create_contact()
S
58 4 16
Leat\Api\Connection::get_shop()
S
58 4 16
Leat\Package::container()
S
52 3 31
Leat\Api\Schemas\ExtendSchema::register_update_callback()
S
58 4 16
Leat\Domain\Services\GiftcardCouponService::render_giftcard_coupon_meta_box()
S
46 2 45
Leat\Api\Connection::get_contact_uuid_by_wp_id()
S
58 4 15
Leat\Api\Schemas\ExtendSchema::throw_exception()
S
67 5 7
Leat\Api\Formatters::__get()
S
64 5 9
Leat\Api\Routes\V1\Middleware::is_valid_user()
S
59 4 14
Leat\Domain\Services\GiftcardCouponService::init()
S
48 3 29
Leat\Domain\Syncing\SyncVouchers::task()
S
51 3 28
Leat\Integrations\IntegrationRegistry::initialize()
S
60 4 13
Leat\Domain\Services\Customer\CustomerProfileDisplay::show_claimed_rewards_on_profile()
S
51 3 28
Leat\Infrastructure\Repositories\WPGiftcardCouponRepository::update_balance()
S
51 3 27
Leat\Domain\Services\EarnRules::get_social_network_description()
S
62 4 12
Leat\Domain\Services\EarnRules::get_social_network_label()
S
62 4 12
Leat\Domain\Services\Cart\CartManager::get_coupon_code_by_spend_rule()
S
62 4 12
Leat\Api\Routes\V1\Admin\Shops::get_route_response()
S
61 4 12
Leat\Domain\Syncing\BackgroundProcess::get_memory_limit()
S
62 4 11
Leat\Domain\Syncing\BackgroundProcess::get_chain_id_arg_name()
S
63 4 11
Leat\Api\Routes\V1\AbstractRoute::get_response()
S
61 4 11
Leat\Assets\Vite::check_imports()
S
62 4 11
Leat\Domain\Services\Cart\CartManager::process_spend_rule()
S
64 4 11
Leat\Domain\Services\Cart\CartManager::remove_spend_rule()
S
64 4 11
Leat\Api\Schemas\V1\AbstractSchema::get_recursive_schema_property_defaults()
S
62 4 11
Leat\Infrastructure\Repositories\WPGiftcardCouponRepository::find_by_hash()
S
53 3 24
Leat\Infrastructure\Repositories\WPGiftcardCouponRepository::find_by_uuid()
S
53 3 24
Leat\Infrastructure\Repositories\WPSpendRuleRepository::create_or_update_from_reward()
S
54 3 22
Leat\Api\Routes\V1\Contact::get_route_response()
S
54 3 21
Leat\Utils\GiftcardDisplay::get_formatted_success_message()
S
55 3 21
Leat\Api\Schemas\V1\WebhooksSchema::get_properties()
S
45 1 50
Leat\Api\Connection::get_woocommerce_guest_data()
S
47 2 35
Leat\Domain\Bootstrap::register_blocks_integration()
S
56 3 20
Leat\Api\Routes\V1\JoinProgram::get_route_post_response()
S
55 3 20
Leat\Api\Connection::create_giftcard_transaction()
S
56 3 19
Leat\Api\Schemas\V1\PromotionRulesSchema::get_properties()
S
46 1 48
Leat\Api\Schemas\V1\SpendRulesClaimSchema::get_properties()
S
46 1 48
Leat\Api\Schemas\V1\SpendRulesSchema::get_properties()
S
46 1 48
Leat\Api\Schemas\V1\SyncPromotionsSchema::get_properties()
S
46 1 48
Leat\Api\Schemas\V1\SyncVouchersSchema::get_properties()
S
46 1 48
Leat\Api\Schemas\V1\Admin\SpendRulesSchema::get_properties()
S
46 1 48
Leat\AssetsController::get_wc_settings()
S
47 2 33
Leat\Api\Routes\V1\SpendRules::get_route_response()
S
56 3 18
Leat\Api\Connection::create_giftcard()
S
57 3 18
Leat\Infrastructure\Repositories\WPGiftcardCouponRepository::create()
S
48 2 32
Leat\Infrastructure\Repositories\WPSpendRuleRepository::get_by_uuid()
S
56 3 17
Leat\Api\Connection::get_user_attributes()
S
55 3 17
Leat\Api\Schemas\V1\AbstractSchema::get_store_currency_properties()
S
47 1 46
Leat\Domain\Syncing\BackgroundProcess::lock_process()
S
58 3 16
Leat\Infrastructure\Repositories\WPPromotionRuleRepository::get_rules()
S
57 3 16
Leat\Infrastructure\Repositories\WPPromotionRuleRepository::get_active_rules()
S
57 3 16
Leat\Infrastructure\Repositories\WPSpendRuleRepository::get_rules()
S
57 3 16
Leat\Api\Routes\V1\Coupons::get_route_response()
S
58 3 16
Leat\Domain\Services\Cart\CartManager::add_free_or_discounted_products_to_cart()
S
57 3 16
Leat\Api\Routes\V1\Webhooks::verify_webhook_signature()
S
58 3 16
Leat\Api\Routes\V1\Admin\SpendRules::get_route_post_response()
S
49 2 31
Leat\Domain\Syncing\BackgroundProcess::is_active()
S
78 4 3
Leat\Domain\Syncing\BackgroundProcess::get_cron_interval()
S
65 4 8
Leat\Domain\Syncing\BackgroundProcess::maybe_unserialize()
S
63 4 10
Leat\Domain\Syncing\BackgroundProcess::should_continue()
S
68 4 7
Leat\Infrastructure\Repositories\LeatGiftcardRepository::get_transactions()
S
59 3 15
Leat\Assets\Api::get_file_version()
S
69 4 6
Leat\Assets\Api::register_script()
S
58 3 15
Leat\Installer::maybe_redirect_to_onboarding()
S
65 4 8
Leat\Domain\Services\Cart\CartManager::remove_discount_from_cart()
S
65 4 8
Leat\Domain\Services\Cart\CartManager::remove_free_or_discounted_products_from_cart()
S
67 4 7
Leat\Domain\Services\Customer\CustomerAttributeSync::sync_attributes_on_login()
S
58 3 15
Leat\Api\Routes\V1\Middleware::is_authorized()
S
59 3 14
Leat\Api\Routes\V1\Middleware::is_logged_in()
S
59 3 14
Leat\Api\Connection::sync_attributes_with_category_update()
S
60 3 14
Leat\Domain\Services\Order\OrderProcessor::process_order_credits()
S
59 3 14
Leat\Api\Schemas\V1\AbstractSchema::remove_arg_options()
S
60 3 14
Leat\Infrastructure\Repositories\LeatGiftcardRepository::find_by_hash()
S
60 3 13
Leat\Infrastructure\Repositories\LeatGiftcardRepository::reverse_transaction()
S
61 3 13
Leat\Infrastructure\Repositories\LeatTierRepository::list()
S
61 3 13
Leat\Utils\Coupons::find_coupons_by_email()
S
52 2 28
Leat\Api\Routes\V1\PromotionRules::get_route_response()
S
60 3 13
Leat\Api\Connection::sync_user_attributes()
S
60 3 13
Leat\Api\Connection::sync_guest_attributes()
S
60 3 13
Leat\Domain\Services\Customer\CustomerAttributeSync::sync_attributes_on_logout()
S
60 3 13
Leat\Api\Routes\V1\Admin\SpendRules::get_route_response()
S
60 3 13
Leat\Infrastructure\Repositories\LeatTierRepository::get_by_contact_uuid()
S
61 3 13
Leat\Api\Connection::reverse_giftcard_transaction()
S
61 3 13
Leat\Api\Connection::init_client()
S
62 3 12
Leat\Integrations\IntegrationRegistry::unregister()
S
61 3 12
Leat\Utils\Coupons::find_or_create_coupon_by_code()
S
62 3 12
Leat\Domain\Services\ApiService::init_client()
S
62 3 12
Leat\Domain\Services\GiftcardCouponService::render_giftcard_coupon_column()
S
61 3 12
Leat\Domain\Services\GiftcardCouponService::add_giftcard_filter_to_coupon_list()
S
60 3 12
Leat\Api\Routes\V1\WCProductsSearch::get_args()
S
47 1 41
Leat\Api\Connection::create_giftcard_refund_transaction()
S
63 3 11
Leat\Domain\Syncing\BackgroundProcess::dispatch()
S
63 3 11
Leat\Api\RoutesController::__construct()
S
45 1 41
Leat\Api\Routes\V1\AbstractRoute::init_client()
S
62 3 11
Leat\Api\Routes\V1\WCCategoriesSearch::get_args()
S
47 1 41
Leat\Infrastructure\Repositories\WPPromotionRuleRepository::delete_with_empty_uuid()
S
53 2 24
Leat\Api\Routes\V1\Coupons::get_args()
S
54 2 22
Leat\Api\RoutesController::get()
S
54 2 21
Leat\Domain\Syncing\BackgroundProcess::get_status()
S
56 2 20
Leat\Api\Schemas\V1\Admin\RewardsSchema::get_properties()
S
50 1 34
Leat\Assets\Vite::load_development_asset()
S
55 2 19
Leat\Domain\Services\EarnRules::get_earn_rules_by_type()
S
57 2 18
Leat\Domain\Bootstrap::add_build_notice()
S
58 2 18
Leat\Infrastructure\Repositories\WPPromotionRuleRepository::get_by_uuid()
S
57 2 18
Leat\Infrastructure\Repositories\WPPromotionRuleRepository::delete()
S
58 2 17
Leat\Domain\Services\GiftcardCouponService::check_giftcard_balance()
S
57 2 17
Leat\Domain\Services\Customer\CustomerProfileDisplay::show_uuid_on_profile()
S
59 2 17
Leat\Api\Routes\V1\Admin\SpendRules::get_args()
S
50 1 32
Leat\Api\Routes\V1\EarnRules::get_args()
S
50 1 32
Leat\Api\SchemaController::__construct()
S
48 1 32
Leat\Api\Routes\V1\PromotionRules::get_args()
S
50 1 32
Leat\Api\Connection::format_reward()
S
58 2 16
Leat\Domain\Services\GiftcardCouponService::handle_giftcard_coupon_refund_by_status()
S
58 2 16
Leat\Api\Connection::get_product_categories_options()
S
59 2 16
Leat\Domain\Services\EarnRules::has_user_claimed_rule()
S
58 2 16
Leat\Api\Schemas\ExtendSchema::format_extensions_properties()
S
58 2 16
Leat\Domain\Syncing\BackgroundProcess::handle_cron_healthcheck()
S
66 3 10
Leat\Infrastructure\Repositories\WPPromotionRuleRepository::get_by_id()
S
68 3 7
Leat\Infrastructure\Repositories\WPSpendRuleRepository::delete_by_uuid()
S
58 2 15
Leat\Shortcodes\AbstractShortcode::has_shortcode()
S
67 3 8
Leat\Shortcodes\RewardPointsShortcode::shortcode_output()
S
59 2 15
Leat\Shortcodes\AbstractShortcode::register_shortcode_type()
S
66 3 8
Leat\Domain\Services\GiftcardCouponService::validate_giftcard_coupon()
S
65 3 10
Leat\Domain\Services\GiftcardCouponService::add_giftcard_coupon_column()
S
63 3 10
Leat\Domain\Services\GiftcardProductService::find_matching_refunded_order_item()
S
63 3 10
Leat\Api\Connection::get_total_products_purchased()
S
64 3 10
Leat\Api\Routes\V1\SyncVouchers::get_args()
S
51 1 30
Leat\Domain\Services\Cart\CartManager::calculate_discounted_price()
S
66 3 8
Leat\Domain\Services\Cart\CartManager::find_product_in_cart()
S
67 3 8
Leat\Domain\Services\Cart\CartManager::handle_removed_coupon()
S
64 3 10
Leat\Api\Schemas\ExtendSchema::register_payment_requirements()
S
69 3 6
Leat\Api\Connection::get_items_for_sync()
S
64 3 10
Leat\Domain\Services\SpendRulesService::get_discount_type()
S
67 3 8
Leat\Api\Connection::get_first_order_date()
S
59 2 15
Leat\Api\Schemas\V1\WCCategoriesSearchSchema::get_item_response()
S
66 3 9
Leat\Registry\Container::register()
S
67 3 8
Leat\Domain\Services\Cart\CartManager::handle_applied_coupon()
S
64 3 10
Leat\Api\Connection::attribute_exists()
S
67 3 8
Leat\Domain\Services\GiftcardProductService::calculate_giftcard_amount()
S
67 3 7
Leat\Assets\Vite::register_stylesheets()
S
63 3 9
Leat\Api\Schemas\V1\EarnRewardSchema::get_item_response()
S
67 3 7
Leat\Infrastructure\Repositories\WPSpendRuleRepository::get_by_id()
S
68 3 7
Leat\Api\Routes\V1\Admin\Settings::mask_api_key()
S
66 3 9
Leat\Domain\Services\PromotionRulesService::get_discount_type()
S
67 3 8
Leat\Shortcodes\AbstractShortcode::enqueue_assets()
S
66 3 9
Leat\Infrastructure\Blocks\GiftcardCouponIntegration::enqueue_block_scripts()
S
70 3 6
Leat\AssetsController::get_plugin_settings()
S
61 2 14
Leat\Domain\Bootstrap::__construct()
S
61 2 14
Leat\Domain\Syncing\BackgroundProcess::schedule_cron_healthcheck()
S
60 2 13
Leat\Settings::get_setting_by_id()
S
61 2 13
Leat\Api\Routes\V1\Admin\Settings::get_args()
S
52 1 28
Leat\WebhookManager::handle_voucher_created()
S
61 2 13
Leat\Domain\Services\Order\OrderCreditHandler::process_withdrawal_result()
S
61 2 13
Leat\WebhookManager::handle_voucher_redeemed()
S
61 2 13
Leat\Domain\Syncing\AsyncRequest::get_post_args()
S
60 2 13
Leat\Assets\Api::get_manifest_path()
S
61 2 13
Leat\Api\Routes\V1\SpendRules::get_args()
S
51 1 28
Leat\WebhookManager::handle_voucher_updated()
S
61 2 13
Leat\WebhookManager::handle_voucher_deleted()
S
61 2 13
Leat\Infrastructure\Formatters\TierFormatter::format()
S
60 2 13
Leat\Domain\Syncing\SyncVouchers::handle_voucher_deleted_webhook()
S
61 2 12
Leat\Domain\Services\Order\OrderCreditHandler::get_credit_transaction_data()
S
62 2 12
Leat\Domain\Services\Order\OrderProcessor::save_credit_transaction()
S
60 2 12
Leat\Settings::get_all_settings_with_values()
S
62 2 12
Leat\Api\Schemas\V1\AbstractSchema::force_schema_readonly()
S
62 2 12
Leat\WebhookManager::handle_contact_updated()
S
61 2 12
Leat\Api\Connection::get_user_reward_logs()
S
60 2 12
Leat\Api\Schemas\V1\WCProductsSearchSchema::get_item_response()
S
63 2 11
Leat\Integrations\IntegrationRegistry::get_all_registered_editor_script_handles()
S
63 2 11
Leat\Api\Routes\V1\EarnReward::get_args()
S
52 1 26
Leat\Registry\Container::get()
S
63 2 11
Leat\Api\Routes\V1\SpendRulesClaim::get_args()
S
53 1 26
Leat\Api\Routes\V1\SyncRewards::get_route_post_response()
S
63 2 11
Leat\Api\Routes\V1\SyncVouchers::get_route_post_response()
S
63 2 11
Leat\Assets\Vite::prepare_asset_url()
S
61 2 11
Leat\Api\Routes\V1\SyncPromotions::get_route_post_response()
S
63 2 11
Leat\Settings::woocommerce_order_statuses_options()
S
62 2 11
Leat\Api\Routes\V1\SyncWebhooks::get_route_post_response()
S
62 2 11
Leat\Integrations\IntegrationRegistry::get_all_registered_script_handles()
S
63 2 11
Leat\Api\Schemas\V1\SyncRewardsSchema::get_properties()
S
54 1 25
Leat\AssetsController::init()
S
54 1 22
Leat\Api\Api::init()
S
57 1 21
Leat\Api\Routes\V1\Giftcards::get_args()
S
55 1 21
Leat\Api\Connection::add_reward_log()
S
56 1 19
Leat\Api\Schemas\V1\ContactSchema::get_properties()
S
58 1 19
Leat\Api\Connection::format_voucher()
S
56 1 19
Leat\Api\Routes\V1\JoinProgram::get_args()
S
56 1 19
Leat\Api\Schemas\V1\TiersSchema::get_properties()
S
60 1 16
Leat\Api\Routes\V1\SyncRewards::get_args()
S
59 1 16
Leat\Api\Routes\V1\SyncWebhooks::get_args()
S
59 1 16
Leat\Api\Routes\V1\SyncPromotions::get_args()
S
59 1 16
Leat\Domain\Package::get_url()
S
70 2 6
Leat\Infrastructure\Repositories\WPGiftcardRepository::get_recipient_email_for_order()
S
74 2 4
Leat\Integrations\IntegrationRegistry::get_all_registered_script_data()
S
66 2 8
Leat\Domain\Services\ApiService::__construct()
S
66 2 9
Leat\Assets\Api::get_block_metadata_path()
S
68 2 7
Leat\Infrastructure\Repositories\WPGiftcardCouponRepository::get_balance()
S
69 2 7
Leat\Api\Connection::has_api_key()
S
75 2 4
Leat\Domain\Syncing\BackgroundProcess::time_exceeded()
S
66 2 8
Leat\Domain\Syncing\BackgroundProcess::is_processing()
S
71 2 6
Leat\Utils\Common::replace_placeholders()
S
67 2 7
Leat\Api\Routes\V1\SpendRules::get_single_post()
S
68 2 7
Leat\Domain\Syncing\AsyncRequest::get_query_url()
S
68 2 7
Leat\WebhookManager::init()
S
67 2 7
Leat\Api\Schemas\V1\AbstractSchema::get_item_responses_from_schema()
S
68 2 7
Leat\Shortcodes\AbstractShortcode::render_callback()
S
64 2 10
Leat\Assets\Vite::register_vite_client_script()
S
66 2 8
leat_admin_unsupported_wp_notice()
S
68 2 9
Leat\Installer::maybe_install_webhooks()
S
75 2 5
Leat\Domain\Services\EarnRules::get_post_meta_data()
S
74 2 4
Leat\Utils\Common::is_not_empty_array()
S
78 2 3
Leat\Domain\Syncing\AsyncRequest::maybe_wp_die()
S
70 2 6
Leat\Api\Connection::__construct()
S
66 2 9
Leat\Api\Routes\V1\Webhooks::get_route_post_response()
S
63 2 9
Leat\Utils\Common::glob_wp_options()
S
70 2 6
Leat\Registry\AbstractDependencyType::resolve_value()
S
71 2 6
Leat\WooCommerceAccountTab::add_leat_dashboard_endpoint()
S
68 2 7
Leat\Domain\Services\Order\OrderProcessor::get_order()
S
68 2 7
Leat\Domain\Services\EarnRules::get_by_id()
S
69 2 7
Leat\Domain\Services\Order\OrderCreditHandler::are_credits_withdrawn()
S
69 2 7
Leat\Infrastructure\Repositories\WPGiftcardRepository::get_order()
S
75 2 4
Leat\Domain\Syncing\AbstractSync::delete_all_posts()
S
63 2 10
Leat\Domain\Services\EarnRules::is_rule_claimable_once()
S
65 2 8
Leat\Shortcodes\AbstractShortcode::init()
S
68 2 7
Leat\Api\Schemas\V1\AbstractSchema::get_public_item_schema()
S
69 2 7
Leat\Domain\Syncing\BackgroundProcess::delete_all()
S
67 2 8
Leat\Settings::get_setting_value_by_id()
S
75 2 4
Leat\Domain\Services\GiftcardCouponService::handle_giftcard_coupon_refund_by_status_change()
S
74 2 5
Leat\Domain\Syncing\SyncVouchers::sync_vouchers_to_woocommerce()
S
70 2 6
Leat\Domain\Syncing\BackgroundProcess::clear_scheduled_event()
S
71 2 6
Leat\Infrastructure\Repositories\WPGiftcardRepository::add_order_note()
S
71 2 6
Leat\Api\Routes\V1\Admin\SpendRules::get_single_post()
S
68 2 7
Leat\Installer::add_create_table_notice()
S
60 1 15
Leat\Integrations\IntegrationRegistry::register()
S
64 2 9
Leat\Api\Routes\V1\Admin\Settings::create_masked_value()
S
65 2 9
Leat\Domain\Syncing\BackgroundProcess::schedule_event()
S
66 2 9
Leat\Api\Routes\V1\AbstractRoute::prepare_response_for_collection()
S
65 2 9
Leat\Api\Routes\V1\AbstractRoute::__construct()
S
59 1 15
Leat\Integrations\IntegrationRegistry::get_registered()
S
78 2 3
Leat\Domain\Services\ApiService::has_api_key()
S
75 2 4
Leat\Utils\TranslatedText::is_json()
S
68 2 7
Leat\Api\SchemaController::get()
S
66 2 7
Leat\Infrastructure\Repositories\WPGiftcardRepository::get_program_uuid_for_product()
S
74 2 4
Leat\Infrastructure\Repositories\WPGiftcardRepository::get_order_items()
S
69 2 7
Leat\Domain\Services\Order\OrderProcessor::get_order_uuid()
S
68 2 7
Leat\Domain\Services\ApiService::get_api_key()
S
69 2 7
Leat\Domain\Syncing\AsyncRequest::get_query_args()
S
64 2 10
Leat\Domain\Syncing\BackgroundProcess::memory_exceeded()
S
64 2 9
Leat\Api\Routes\V1\PromotionRules::get_single_post()
S
68 2 7
Leat\AssetsController::get_store_pages()
S
60 1 14
Leat\Api\Schemas\V1\AbstractSchema::get_extended_schema()
S
60 1 14
Leat\AssetsController::get_currency_data()
S
61 1 12
Leat\Api\Api::__construct()
S
62 1 12
Leat\Domain\Syncing\AbstractSync::get_sync_status()
S
62 1 12
Leat\Integrations\IntegrationRegistry::get_all_registered()
S
82 1 3
Leat\Shortcodes\AbstractShortcode::get_shortcode_type_attributes()
S
100 1 0
Leat\Infrastructure\Repositories\WPGiftcardRepository::save_program_uuid_for_product()
S
79 1 3
Leat\Installer::init()
S
75 1 4
Leat\Infrastructure\Repositories\LeatGiftcardRepository::__construct()
S
76 1 4
Leat\Installer::__construct()
S
81 1 3
Leat\Utils\Logger::debug()
S
79 1 3
Leat\Domain\Services\Order\OrderCreditHandler::handle_partial_refund()
S
71 1 7
Leat\Shortcodes\AbstractShortcode::shortcode_output()
S
100 1 0
Leat\PostTypeController::init()
S
73 1 5
Leat\Assets\Api::get_manifest_path_url()
S
78 1 3
Leat\Infrastructure\Blocks\GiftcardCouponIntegration::get_editor_script_handles()
S
82 1 3
Leat\Domain\Services\SpendRulesService::get_spend_rules_by_type()
S
79 1 3
Leat\Shortcodes\AbstractShortcode::init_hooks()
S
100 1 0
Leat\Infrastructure\Blocks\GiftcardCouponIntegration::get_script_handles()
S
81 1 3
Leat\Domain\Services\Customer\CustomerCreationHandler::__construct()
S
74 1 5
Leat\Domain\Syncing\AbstractSync::get_post_type()
S
100 1 0
Leat\Infrastructure\Repositories\WPPromotionRuleRepository::__construct()
S
76 1 4
Leat\Utils\Logger::warning()
S
79 1 3
Leat\Domain\Services\PromotionRulesService::__construct()
S
76 1 4
Leat\Domain\Syncing\AbstractSync::__construct()
S
76 1 4
Leat\Settings::get_main_settings_page_url()
S
75 1 4
Leat\Assets\Api::get_dist_path()
S
80 1 3
Leat\Shortcodes\AbstractShortcode::get_shortcode_types()
S
68 1 8
Leat\Settings::get_route_response()
S
80 1 3
Leat\Infrastructure\Repositories\WPSpendRuleRepository::get_active_rules()
S
79 1 3
Leat\Api\Schemas\ExtendSchema::__construct()
S
81 1 3
Leat\Assets\Api::get_asset_url()
S
80 1 3
Leat\Infrastructure\Repositories\WPGiftcardRepository::save_recipient_email_for_order()
S
78 1 3
Leat\Infrastructure\Repositories\WPSpendRuleRepository::__construct()
S
76 1 4
Leat\Api\Routes\V1\EarnRules::get_path()
S
82 1 3
Leat\Api\Routes\V1\Middleware::is_public()
S
81 1 3
Leat\Domain\Services\PromotionRulesService::get_rules()
S
80 1 3
Leat\Assets\Api::register_style()
S
69 1 6
Leat\Domain\Syncing\AsyncRequest::maybe_handle()
S
71 1 6
Leat\Utils\Logger::__construct()
S
75 1 4
Leat\Infrastructure\Repositories\WPGiftcardCouponRepository::is_giftcard()
S
79 1 3
Leat\Domain\Syncing\AsyncRequest::dispatch()
S
72 1 5
Leat\Domain\Services\Order\OrderCreditHandler::handle_error()
S
74 1 4
Leat\Domain\Syncing\AsyncRequest::handle()
S
100 1 0
Leat\Domain\Services\SpendRulesService::__construct()
S
76 1 4
Leat\Settings::get_settings_page_slug()
S
82 1 3
Leat\Domain\Syncing\AbstractSync::get_action_name()
S
100 1 0
Leat\Domain\Services\PromotionRulesService::get_by_id()
S
80 1 3
Leat\Domain\Services\PromotionRulesService::get_by_uuid()
S
80 1 3
Leat\Domain\Services\PromotionRulesService::handle_duplicates()
S
81 1 3
Leat\Utils\Common::array_to_object()
S
79 1 3
Leat\Domain\Syncing\AsyncRequest::data()
S
77 1 4
Leat\Api\Routes\V1\AbstractRoute::prepare_item_for_response()
S
72 1 5
Leat\Domain\Services\PromotionRulesService::create_or_update()
S
80 1 3
Leat\Domain\Services\SpendRulesService::get_rules()
S
80 1 3
Leat\Infrastructure\Blocks\GiftcardCouponIntegration::get_script_handles_for_admin()
S
82 1 3
Leat\Api\Routes\V1\Admin\SpendRules::get_path()
S
82 1 3
Leat\Domain\Services\Order\OrderProcessor::__construct()
S
68 1 7
Leat\Api\Routes\V1\WCProductsSearch::get_path()
S
82 1 3
Leat\Api\RoutesController::register_all_routes()
S
76 1 4
Leat\Utils\Coupons::find_coupon_by_code()
S
79 1 3
Leat\Utils\Common::is_woocommerce_product()
S
79 1 3
Leat\Domain\Services\PromotionRulesService::get_active_rules()
S
81 1 3
Leat\Integrations\IntegrationRegistry::is_registered()
S
79 1 3
Leat\Domain\Syncing\AsyncRequest::__construct()
S
71 1 5
Leat\Api\Routes\V1\PromotionRules::get_path()
S
82 1 3
Leat\Api\Routes\V1\WCCategoriesSearch::get_path()
S
82 1 3
Leat\Utils\Users::create_username_from_email()
S
78 1 3
Leat\AssetsController::__construct()
S
69 1 7
Leat\Domain\Syncing\AbstractSync::init()
S
100 1 0
Leat\Infrastructure\Repositories\WPGiftcardCouponRepository::__construct()
S
80 1 3
Leat\Infrastructure\Blocks\GiftcardCouponIntegration::initialize()
S
74 1 4
Leat\Api\Routes\V1\SpendRulesClaim::get_path()
S
82 1 3
Leat\PostTypeController::__construct()
S
77 1 4
Leat\Infrastructure\Blocks\GiftcardCouponIntegration::__construct()
S
77 1 4
Leat\Api\Schemas\V1\AbstractSchema::prepare_money_response()
S
66 1 9
Leat\Domain\Syncing\AbstractSync::format_data()
S
100 1 0
Leat\Domain\Services\Order\OrderCreditHandler::get_refund_details()
S
64 1 10
Leat\Infrastructure\Blocks\GiftcardCouponIntegration::get_name()
S
82 1 3
Leat\Api\Routes\V1\AbstractRoute::prepare_links()
S
82 1 3
Leat\Assets\Api::__construct()
S
81 1 3
Leat\Infrastructure\Blocks\GiftcardCouponIntegration::get_script_data()
S
64 1 9
Leat\Utils\CreditDisplay::__construct()
S
77 1 4
Leat\Domain\Services\Order\OrderProcessor::are_credits_already_issued()
S
80 1 3
Leat\Domain\Services\SpendRulesService::get_by_uuid()
S
80 1 3
Leat\Domain\Services\Order\OrderCreditHandler::__construct()
S
76 1 4
Leat\Domain\Services\SpendRulesService::get_by_id()
S
80 1 3
Leat\Domain\Services\SpendRulesService::get_spend_rule_by_leat_uuid()
S
80 1 3
Leat\Domain\Services\PromotionRulesService::delete()
S
81 1 3
Leat\Api\Routes\V1\Admin\Settings::get_path()
S
82 1 3
Leat\Domain\Services\ApiService::get_shop_uuid()
S
79 1 3
Leat\Utils\Logger::info()
S
79 1 3
Leat\Api\Routes\V1\AbstractRoute::get_route_error_response()
S
77 1 3
Leat\Shortcodes\AbstractShortcode::__construct()
S
81 1 3
Leat\Utils\Logger::error()
S
79 1 3

200 more item(s) not shown.