CoCart_Session_Handler B

Total Complexity 86
Dependencies 3
Dependents 5
Total lines 988
Lines of code 351
Logical lines of code 164
Comment lines 572
Methods 38
Properties 4

Methods 38

Method Rating Maintainability Complexity Lines of code
save_data()
A
45 8 42
init_session_cocart()
A
53 9 23
cocart_setcookie()
S
57 7 13
create_new_cart()
S
51 5 27
get_session()
S
53 5 23
is_user_customer()
S
60 5 13
is_cart_data_valid()
S
62 5 10
has_session()
S
66 4 9
get_requested_cart()
S
63 3 10
set_cart_hash()
S
66 3 7
init()
S
62 2 12
cleanup_sessions()
S
62 2 12
use_httponly()
S
67 2 8
get_cart_data()
S
74 2 4
update_cart()
S
61 1 13
is_cookie_supported()
S
63 1 12
get_cart_expiration()
S
63 1 11
get_cart_created()
S
63 1 11
get_cart_source()
S
63 1 11
get_cart()
S
75 1 4
destroy_cookie()
S
73 1 4
save_cart()
S
75 1 4
forget_cart()
S
69 1 7
get_cookie_name()
S
75 1 4
__construct()
S
75 1 4
get_carts_expiration()
S
82 1 3
get_cart_is_expiring()
S
82 1 3
get_cart_hash()
S
82 1 3
set_customer_id()
S
81 1 3
get_table_name()
S
82 1 3
update_cart_timestamp()
S
65 1 10
delete_cart()
S
71 1 5
destroy_session()
S
82 1 3
destroy_cart()
S
77 1 4
get_cache_prefix()
S
80 1 3
generate_key()
S
68 1 6
set_cart_expiration()
S
73 1 4
get_customer_id()
S
82 1 3