Code Analysis: Leat CRM 0.5.12

Most Complex Functions

Function Rating Complexity
Leat\Domain\Services\GiftcardProduct::handle_giftcard_withdrawal_refund()
B
18
Leat\Domain\Services\GiftcardProduct::process_giftcard_order()
B
12
Leat\Domain\Services\GiftcardProduct::handle_giftcard_withdrawal()
B
13
Leat\Domain\Services\SpendRules::create_coupon_for_spend_rule()
A
14
Leat\Settings::get_all_settings()
A
1
Leat\Api\Routes\V1\WCProductsSearch::get_route_post_response()
A
12
Leat\Api\Routes\V1\SpendRulesClaim::get_route_post_response()
A
11
Leat\Api\Connection::ensure_custom_attributes_exist()
A
6
Leat\Domain\Services\CustomerSession::handle_checkout_order_processed()
A
10
Leat\Domain\Services\CustomerSession::sync_attributes_on_order_completed()
A
10
Leat\Domain\Services\SpendRules::get_formatted_post()
A
1
Leat\Api\Schemas\V1\AbstractSchema::get_recursive_validate_callback()
A
10