ConvertKit_Output_Restrict_Content B

Total Complexity 85
Dependencies 8
Dependents 1
Total lines 1,018
Lines of code 357
Logical lines of code 231
Comment lines 471
Methods 22
Properties 9

Methods 22

Method Rating Maintainability Complexity Lines of code
maybe_run_subscriber_authentication()
A
42 13 57
subscriber_has_access()
A
49 11 32
get_call_to_action()
A
44 8 48
maybe_run_subscriber_verification()
A
49 8 32
maybe_restrict_content()
S
52 7 28
resource_exists()
S
56 5 20
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
is_restricted_content()
S
64 3 11
has_parent_page()
S
66 3 9
maybe_change_previous_next_post_order_by_clause()
S
66 3 9
__construct()
S
58 2 14
get_url()
S
63 2 12
get_resource_type()
S
65 2 9
get_subscriber_id_from_request()
S
68 2 8
restrict_content()
S
64 2 10
get_resource_id()
S
70 1 6
redirect()
S
77 1 4
store_subscriber_id_in_cookie()
S
76 1 4
get_excerpt()
S
70 1 6
in_authentication_flow()
S
80 1 3