-
Home
-
WooPOS Gift Cards for WooCommerce
-
2.4
-
Code
-
Classes
- WC_REST_WOOPOS_Giftcards_Controller
| Total Complexity |
117 |
| Dependencies |
9 |
| Dependents |
0 |
| Total lines |
977 |
| Lines of code |
576 |
| Logical lines of code |
267 |
| Comment lines |
282 |
| Methods |
25 |
| Properties |
5 |
Methods 25
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| get_order_item_data() |
A |
47 |
13 |
32 |
| get_object() |
A |
47 |
12 |
30 |
| prepare_objects_query() |
A |
44 |
10 |
44 |
| delete_item() |
A |
46 |
10 |
35 |
| prepare_object_for_database() |
S |
51 |
7 |
25 |
| get_item_schema() |
S |
36 |
1 |
110 |
| get_items() |
S |
48 |
6 |
32 |
| maybe_set_item_meta_data() |
S |
62 |
7 |
10 |
| create_item() |
S |
50 |
5 |
25 |
| set_item() |
S |
53 |
5 |
23 |
| get_product_id() |
S |
60 |
5 |
12 |
| prepare_shipping_lines() |
S |
60 |
5 |
11 |
| prepare_coupon_lines() |
S |
61 |
5 |
11 |
| register_routes() |
S |
42 |
1 |
61 |
| save_object() |
S |
59 |
4 |
14 |
| item_is_null() |
S |
64 |
4 |
9 |
| prepare_object_for_response() |
S |
60 |
3 |
11 |
| get_formatted_item_data() |
S |
52 |
2 |
24 |
| update_address() |
S |
67 |
3 |
7 |
| get_collection_params() |
S |
56 |
1 |
19 |
| maybe_set_item_prop() |
S |
73 |
2 |
5 |
| maybe_set_item_props() |
S |
73 |
2 |
5 |
| get_order_statuses() |
S |
68 |
2 |
7 |
| prepare_links() |
S |
63 |
1 |
11 |
| filter_writable_props() |
S |
79 |
1 |
3 |