CT_REST_Controller C

Total Complexity 107
Dependencies 8
Dependents 0
Total lines 1,066
Lines of code 446
Logical lines of code 259
Comment lines 442
Methods 23
Properties 3

Methods 23

Method Rating Maintainability Complexity Lines of code
get_items()
B
36 18 72
create_item()
A
44 10 41
update_item()
A
45 10 39
prepare_item_for_database()
A
49 10 29
delete_item()
S
48 6 32
prepare_item_for_response()
S
55 6 17
get_item_permissions_check()
S
59 6 13
prepare_items_query()
S
58 5 15
get_object()
S
59 4 14
register_routes()
S
46 1 47
delete_item_permissions_check()
S
63 4 10
update_item_permissions_check()
S
63 4 10
get_item_schema()
S
55 2 19
__construct()
S
64 3 9
prepare_date_response()
S
66 3 9
create_item_permissions_check()
S
64 3 9
get_items_permissions_check()
S
68 3 6
get_collection_params()
S
52 1 25
check_read_permission()
S
69 2 7
check_update_permission()
S
69 2 7
get_item()
S
65 2 9
check_create_permission()
S
80 1 3
check_delete_permission()
S
75 1 4