ConvertKit_Output_Restrict_Content A

Total Complexity 72
Dependencies 8
Dependents 1
Total lines 885
Lines of code 300
Logical lines of code 199
Comment lines 420
Methods 20
Properties 8

Methods 20

Method Rating Maintainability Complexity Lines of code
subscriber_has_access()
A
49 11 32
maybe_run_subscriber_authentication()
A
45 8 43
maybe_restrict_content()
S
52 7 28
get_call_to_action()
S
49 6 31
maybe_run_subscriber_verification()
S
54 5 22
resource_exists()
S
56 5 20
is_restricted_content()
S
61 4 14
get_content_preview()
S
60 3 13
maybe_change_previous_post_where_clause()
S
62 3 11
maybe_change_next_post_where_clause()
S
62 3 11
maybe_change_previous_next_post_order_by_clause()
S
66 3 9
has_parent_page()
S
66 3 9
get_subscriber_id_from_request()
S
68 2 8
get_resource_type()
S
67 2 8
restrict_content()
S
70 2 6
store_subscriber_id_in_cookie_and_redirect()
S
63 1 12
__construct()
S
61 1 11
get_resource_id()
S
73 1 5
get_url()
S
73 1 4
in_authentication_flow()
S
80 1 3