CoCart_Session_Handler B

Total Complexity 88
Dependencies 3
Dependents 4
Total lines 1,011
Lines of code 366
Logical lines of code 166
Comment lines 579
Methods 39
Properties 4

Methods 39

Method Rating Maintainability Complexity Lines of code
init_session_cocart()
A
53 10 23
save_data()
A
45 8 42
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_session_timestamp()
S
61 1 15
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