FlycartWooDiscountRulesGeneralHelper D

Total Complexity 255
Dependencies 12
Dependents 7
Total lines 1,271
Lines of code 825
Logical lines of code 528
Comment lines 294
Methods 62
Properties 3

Methods 62

Method Rating Maintainability Complexity Lines of code
removeCouponPriceInCart()
A
42 14 47
doIHaveToRun()
A
51 14 23
get_billing_email_from_post()
A
46 13 37
getCapabilitiesList()
A
48 13 31
getCategoryList()
A
46 11 38
processBaseView()
A
50 9 25
reOrderRuleIfExists()
A
53 8 22
hasCouponInCart()
S
52 7 25
resetTheCartValues()
S
60 7 12
makeString()
S
59 6 14
validateRequest()
S
59 6 14
addVirtualCoupon()
S
47 4 36
getDynamicUsedCouponsInRules()
S
54 5 21
getUsedCouponsInRules()
S
54 5 21
getTaxonomyList()
S
56 5 16
setPromotionMessage()
S
60 5 13
validateDateAndTimeWarningTextForListing()
S
61 5 11
validateDateAndTimeWarningText()
S
61 5 11
validateDateAndTime()
S
62 5 11
getCouponsList()
S
54 4 22
getAllSubCategoriesRecursive()
S
54 4 21
is_countable()
S
68 5 7
get_calculated_item_subtotal_manually()
S
60 4 13
getUserRoles()
S
61 4 12
reArrangeArray()
S
62 4 11
getWPMLLanguage()
S
64 4 11
delete_all_between()
S
62 4 10
displayPromotionMessages()
S
66 4 8
removePromotionMessage()
S
64 4 9
validateDynamicCoupon()
S
58 3 15
resetUsedCoupons()
S
66 4 8
getSideBarContent()
S
59 3 14
docsURLHTMLForDocumentation()
S
59 3 13
haveToApplyTheRules()
S
60 3 13
getCurrentDateAndTimeBasedOnTimeZone()
S
61 3 11
checkCouponAlreadyExistsInWooCommerce()
S
62 3 11
docsURLHTML()
S
62 3 10
getCurrentTab()
S
64 3 9
getAllCountries()
S
67 3 8
validateDateAndTimeWarningTextForListingHTML()
S
59 2 13
getUserList()
S
68 2 7
verifyNonce()
S
69 2 7
escapeCode()
S
63 2 10
toInt()
S
72 2 5
hasAdminPrivilege()
S
70 2 7
showDiscountOnProductPage()
S
65 2 9
getCategoryByPost()
S
64 2 10
getCurrentUserRoles()
S
67 2 8
is_same_string()
S
64 2 10
getAllSubCategories()
S
65 2 9
addAQuantityForProductStrikeOut()
S
65 2 9
applyDiscountFromRegularPrice()
S
65 2 9
docsURL()
S
70 1 6
woo_discount_rules_custom_styles()
S
76 1 4
createNonce()
S
80 1 3
checkPluginState()
S
73 1 5
displayPromotionMessagesInCheckoutContainer()
S
77 1 4
displayPromotionMessagesInCheckout()
S
68 1 8
clearCartPromotionMessages()
S
80 1 3
getPromotionMessages()
S
79 1 3
docsDirectURL()
S
72 1 5
filterDynamicCoupon()
S
68 1 7