OpalHotel_Cart B

Total Complexity 89
Dependencies 2
Dependents 1
Total lines 516
Lines of code 295
Logical lines of code 193
Comment lines 86
Methods 29
Properties 14

Methods 29

Method Rating Maintainability Complexity Lines of code
check_room_available()
A
52 10 21
calculate_refresh()
S
51 7 26
load_cart_contents()
S
51 7 25
get_packages()
S
58 6 15
remove_cart_item_child()
S
60 6 13
session_for_cart()
S
58 5 15
add_to_cart()
S
51 4 26
add_coupon()
S
59 4 14
get_room_subtotal()
S
61 3 12
remove_coupon()
S
68 3 7
get_cart_subtotal_display()
S
65 3 9
maybe_set_cart_cookies()
S
72 3 5
get_rooms()
S
63 3 10
get_cart_item_subtotal()
S
65 3 9
get_cart_item()
S
70 3 6
get_cart_item_subtotal_excl_tax()
S
63 2 10
get_cart_item_subtotal_incl_tax()
S
63 2 10
instance()
S
71 2 6
set_session()
S
66 2 8
remove_cart_item()
S
65 2 9
init()
S
82 1 3
generate_cart_id()
S
80 1 3
get_tax_total()
S
79 1 3
get_cart_subtotal()
S
79 1 3
get_cart_total()
S
79 1 3
need_payment()
S
80 1 3
is_empty()
S
80 1 3
empty_cart()
S
65 1 10
__construct()
S
66 1 8