-
Home
-
WooCommerce
-
10.2.2
-
Code
-
Classes
- WC_REST_Coupons_V1_Controller
| Total Complexity |
43 |
| Dependencies |
8 |
| Dependents |
0 |
| Total lines |
559 |
| Lines of code |
393 |
| Logical lines of code |
110 |
| Comment lines |
115 |
| Methods |
11 |
| Properties |
3 |
Methods 11
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| prepare_item_for_database() |
A |
42 |
15 |
45 |
| prepare_item_for_response() |
A |
42 |
9 |
51 |
| get_item_schema() |
A |
32 |
1 |
153 |
| update_item() |
S |
53 |
5 |
20 |
| register_routes() |
S |
41 |
1 |
67 |
| save_coupon() |
S |
59 |
4 |
14 |
| create_item() |
S |
54 |
3 |
19 |
| query_args() |
S |
66 |
2 |
8 |
| __construct() |
S |
77 |
1 |
3 |
| filter_writable_props() |
S |
79 |
1 |
3 |
| get_collection_params() |
S |
64 |
1 |
10 |