MPTBM_Rest_Api D

Total Complexity 336
Dependencies 5
Dependents 0
Total lines 2,522
Lines of code 1,957
Logical lines of code 756
Comment lines 207
Methods 50
Properties 3

Methods 50

Method Rating Maintainability Complexity Lines of code
update_booking()
D
31 33 106
calculate_price_internal()
C
33 29 94
filter_transports()
C
34 28 88
get_locations()
C
32 27 103
get_fare_quote()
C
33 24 93
create_booking()
B
37 16 73
get_statistics()
B
35 14 88
update_customer()
A
42 13 51
get_booking_args()
A
36 7 111
add_location()
A
40 9 63
create_order()
A
41 9 61
register_routes()
A
32 1 163
get_location_coordinates()
A
44 8 44
prepare_transport_service()
A
46 8 37
calculate_distance()
A
44 7 42
update_order()
A
47 7 40
create_customer()
A
46 7 38
check_rate_limit()
S
49 6 31
get_location_args()
S
47 5 42
get_extra_services()
S
52 6 23
get_pricing_args()
S
46 4 48
update_api_settings()
S
52 5 25
get_filter_args()
S
45 3 50
get_order_details()
S
50 4 30
delete_booking()
S
52 4 26
get_or_create_wc_product()
S
48 3 37
calculate_pricing()
S
59 4 15
get_order_args()
S
52 3 29
get_customer_details()
S
50 3 28
create_direct_order()
S
52 3 26
get_booking_details()
S
54 3 19
get_orders()
S
56 3 18
get_customer_args()
S
52 2 30
create_woocommerce_order()
S
50 2 28
get_settings_args()
S
54 2 23
get_customer_bookings()
S
55 2 20
get_all_bookings()
S
60 2 13
get_transport_services()
S
60 2 13
get_customers()
S
60 2 13
__construct()
S
73 2 5
check_booking_write_permission()
S
73 2 4
check_booking_read_permission()
S
73 2 4
check_request_permissions()
S
71 2 6
get_currency_symbol()
S
68 2 8
prepare_booking_data()
S
60 1 13
prepare_order_data()
S
63 1 11
check_booking_admin_permission()
S
82 1 3
is_api_enabled()
S
78 1 3
prepare_customer_data()
S
64 1 10
get_api_settings()
S
66 1 8