WP_REST_Request B

Total Complexity 87
Dependencies 1
Dependents 26
Total lines 908
Lines of code 285
Logical lines of code 159
Comment lines 502
Methods 41
Properties 8

Methods 41

Method Rating Maintainability Complexity Lines of code
has_valid_params()
A
47 13 33
sanitize_params()
S
56 7 18
parse_json_params()
S
58 7 15
parse_body_params()
S
58 5 15
get_content_type()
S
56 4 18
get_parameter_order()
S
57 4 17
set_headers()
S
66 3 8
get_param()
S
65 3 9
offsetExists()
S
65 3 9
get_header()
S
68 2 7
get_header_as_array()
S
69 2 7
add_header()
S
67 2 8
set_param()
S
65 2 10
get_params()
S
65 2 9
offsetUnset()
S
70 2 6
__construct()
S
61 1 13
get_method()
S
82 1 3
set_method()
S
80 1 3
get_headers()
S
82 1 3
canonicalize_header_name()
S
72 1 5
set_header()
S
73 1 5
remove_header()
S
80 1 3
get_url_params()
S
80 1 3
set_url_params()
S
80 1 3
get_query_params()
S
80 1 3
set_query_params()
S
80 1 3
get_body_params()
S
80 1 3
set_body_params()
S
80 1 3
get_file_params()
S
80 1 3
set_file_params()
S
80 1 3
get_default_params()
S
80 1 3
set_default_params()
S
80 1 3
get_body()
S
82 1 3
set_body()
S
71 1 6
get_json_params()
S
76 1 4
get_route()
S
82 1 3
set_route()
S
81 1 3
get_attributes()
S
82 1 3
set_attributes()
S
81 1 3
offsetGet()
S
80 1 3
offsetSet()
S
80 1 3