MM_WPFS_Database D

Total Complexity 211
Dependencies 5
Dependents 36
Total lines 3,238
Lines of code 2,065
Logical lines of code 661
Comment lines 693
Methods 150
Properties 0

Methods 150

Method Rating Maintainability Complexity Lines of code
fullstripe_setup_db()
D
20
1 582
insertCheckoutDonation()
B
38 19 58
insertInlineDonation()
B
38 19 57
insertPayment()
S
41 5 54
insertSubscriber()
S
42 5 50
find_existing_stripe_customer_by_email()
S
57 5 15
getExistingStripeCustomersByEmail()
S
62 5 9
insertSavedCard()
S
46 1 37
insertCheckoutFormSubmit()
S
55 2 19
find_popup_form_submits()
S
57 2 19
getInlinePaymentFormsForList()
S
52 1 34
getCheckoutPaymentFormsForList()
S
52 1 34
getInlineSaveCardFormsForList()
S
52 1 34
getCheckoutSaveCardFormsForList()
S
52 1 34
getInlineSubscriptionFormsForList()
S
53 1 32
getCheckoutSubscriptionFormsForList()
S
53 1 32
getInlineDonationFormsForList()
S
53 1 32
getCheckoutDonationFormsForList()
S
53 1 32
insertCustomerPortalSession()
S
57 2 16
getTruncatedDescriptionFromPaymentIntent()
S
73 3 4
get_customer_id_from_payments()
S
64 3 9
insert_security_code()
S
59 2 14
insertLog()
S
57 1 17
handleDbError()
S
66 2 8
updateInlinePaymentFormTaxDefaultSettings()
S
59 1 15
updateCheckoutPaymentFormTaxDefaultSettings()
S
59 1 15
getAllForms()
S
61 1 14
getFormIdsByName()
S
58 1 14
updateInlineSubscriptionFormSelectorListStyle()
S
60 1 14
updateCheckoutSubscriptionFormSelectorListStyle()
S
60 1 14
updateInlineDonationFormDefaultProduct()
S
60 1 14
updateSubscriptionByPaymentIntentToRunning()
S
62 1 12
updateSubscriptionBySetupIntentToRunning()
S
62 1 12
updateSubscriptionToRunning()
S
62 1 12
getNumberOfOneTimePaymentForms()
S
62 1 12
getNumberOfSubscriptionForms()
S
62 1 12
getNumberOfDonationForms()
S
62 1 12
getNumberOfSaveCardForms()
S
62 1 12
updateInlineSubscriptionFormTaxDefaultSettings()
S
61 1 12
updateCheckoutSubscriptionFormTaxDefaultSettings()
S
61 1 12
update_popup_form_submits_with_status_by_id()
S
61 1 11
findCustomerPortalSessionsByEmailAndCustomer()
S
64 1 11
get_site_ids()
S
74 1 4
updateSubscriber()
S
69 1 6
insertInlineSubscriptionForm()
S
69 1 6
updateInlineSubscriptionForm()
S
69 1 6
insertCheckoutSubscriptionForm()
S
69 1 6
updateCheckoutSubscriptionForm()
S
65 1 8
insertInlinePaymentForm()
S
70 1 6
insertCheckoutPaymentForm()
S
70 1 6
insertInlineDonationForm()
S
70 1 6
insertCheckoutDonationForm()
S
70 1 6
updateInlineDonationForm()
S
69 1 6
updateCheckoutDonationForm()
S
65 1 8
updateInlinePaymentForm()
S
69 1 6
insert_checkout_form()
S
70 1 6
updateCheckoutPaymentForm()
S
64 1 9
deleteInlinePaymentForm()
S
69 1 6
deleteInlineDonationForm()
S
69 1 6
deleteCheckoutDonationForm()
S
69 1 6
deleteInlineSubscriptionForm()
S
69 1 6
deleteCheckoutPaymentForm()
S
69 1 6
deleteCheckoutSubscriptionForm()
S
69 1 6
cancelSubscription()
S
69 1 6
cancelDonationByDonationId()
S
69 1 6
deleteSubscriptionById()
S
69 1 6
cancelSubscriptionByStripeSubscriptionId()
S
69 1 6
cancelDonationByStripeSubscriptionId()
S
69 1 6
updateSubscriptionPlanByStripeSubscriptionId()
S
69 1 6
updateSubscriptionPlanAndQuantityByStripeSubscriptionId()
S
68 1 6
endSubscription()
S
69 1 6
updateSubscriptionWithInvoice()
S
69 1 6
updateSubscriberWithInvoiceAndEvent()
S
69 1 6
updateSubscriberWithPaymentAndEvent()
S
69 1 6
updateSubscriberWithEvent()
S
69 1 6
updatePopupFormSubmitWithEvent()
S
69 1 6
updateSubscriptionPlanAndCounters()
S
68 1 6
deletePayment()
S
69 1 6
deleteDonation()
S
69 1 6
deleteSavedCard()
S
69 1 6
getInlineSaveCardFormsAsArray()
S
69 1 6
getInlinePaymentFormAsArrayById()
S
74 1 4
getInlinePaymentFormById()
S
74 1 4
getInlinePaymentFormByName()
S
74 1 4
getInlinePaymentFormsAsArray()
S
69 1 6
getInlineSubscriptionFormById()
S
74 1 4
getInlineSubscriptionFormAsArrayById()
S
74 1 4
getInlineSubscriptionFormByName()
S
74 1 4
getInlineSubscriptionFormsAsArray()
S
69 1 6
getCheckoutSubscriptionFormById()
S
74 1 4
getCheckoutSubscriptionFormAsArrayById()
S
74 1 4
getCheckoutPaymentFormByName()
S
74 1 4
getCheckoutPaymentFormAsArrayById()
S
74 1 4
getCheckoutPaymentFormById()
S
74 1 4
getCheckoutPaymentFormsAsArray()
S
69 1 6
getCheckoutSaveCardFormsAsArray()
S
69 1 6
getCheckoutSubscriptionFormByName()
S
74 1 4
getCheckoutSubscriptionFormsAsArray()
S
69 1 6
getInlineDonationFormAsArrayById()
S
74 1 4
getInlineDonationFormsAsArray()
S
69 1 6
getCheckoutDonationFormsAsArray()
S
69 1 6
getInlineDonationFormById()
S
74 1 4
getInlineDonationFormByName()
S
74 1 4
getCheckoutDonationFormAsArrayById()
S
74 1 4
getCheckoutDonationFormByName()
S
74 1 4
getCheckoutDonationFormById()
S
74 1 4
findSubscriberById()
S
71 1 5
findSubscriberByPaymentIntentId()
S
65 1 10
findSubscriberBySetupIntentId()
S
65 1 10
getSubscriptionByStripeSubscriptionId()
S
71 1 5
findPopupFormSubmitByHash()
S
71 1 5
delete_popup_form_submits_by_id()
S
66 1 7
update_popup_form_submit_by_hash()
S
69 1 6
updateCustomerPortalSession()
S
69 1 6
findCustomerPortalSessionByHash()
S
71 1 5
findCustomerPortalSessionsById()
S
71 1 5
find_security_codes_by_session()
S
74 1 4
find_security_code_by_session_and_code()
S
74 1 4
updateSecurityCode()
S
69 1 6
incrementSecurityCodeInput()
S
69 1 6
increment_security_code_request()
S
69 1 6
invalidateExpiredCustomerPortalSessions()
S
69 1 6
invalidateCustomerPortalSessionsBySecurityCodeRequestLimit()
S
69 1 6
invalidateCustomerPortalSessionsBySecurityCodeInputLimit()
S
69 1 6
findInvalidatedCustomerPortalSessionIds()
S
71 1 5
deleteSecurityCodesBySessions()
S
66 1 7
deleteInvalidatedCustomerPortalSessions()
S
66 1 7
getPayment()
S
74 1 4
getSavedCard()
S
74 1 4
getPaymentByEventId()
S
74 1 4
updatePaymentByEventId()
S
69 1 6
getDonation()
S
74 1 4
getDonationByStripeSubscriptionId()
S
74 1 4
getDonationByPaymentIntentId()
S
74 1 4
updateDonationByPaymentIntentId()
S
69 1 6
findLogs()
S
91 1 2
getNumberOfOneTimePayments()
S
69 1 6
getNumberOfSubscriptions()
S
69 1 6
getNumberOfDonations()
S
69 1 6
getNumberOfSavedCards()
S
69 1 6
getResults()
S
70 1 6
runQuery()
S
70 1 6
getOneTimePaymentFormNames()
S
67 1 7
getSaveCardFormNames()
S
67 1 7
getSubscriptionFormNames()
S
67 1 7
getDonationFormNames()
S
67 1 7
getDatabasePrefix()
S
77 1 4
getNumberOfLogEntries()
S
69 1 6
getLogEntries()
S
68 1 6
deleteLogs()
S
72 1 5