-
Home
-
Sunshine Photo Cart: Free Client Photo Galleries for Photographers
-
3.2.5
-
Code
-
Classes
- SPC_Cart
| Total Complexity |
421 |
| Dependencies |
3 |
| Dependents |
1 |
| Total lines |
1,889 |
| Lines of code |
1,433 |
| Logical lines of code |
811 |
| Comment lines |
145 |
| Methods |
79 |
| Properties |
24 |
Methods 79
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| set_checkout_fields() |
D |
12 |
65 |
330 |
| process_section() |
C |
34 |
30 |
76 |
| get_tax_rate() |
C |
39 |
27 |
58 |
| add_item() |
C |
37 |
24 |
71 |
| setup() |
B |
39 |
23 |
61 |
| create_order() |
B |
38 |
17 |
67 |
| show_checkout_fields() |
A |
42 |
13 |
48 |
| get_checkout_data_item() |
A |
47 |
12 |
40 |
| process_payment() |
A |
45 |
12 |
38 |
| set_tax() |
A |
47 |
11 |
36 |
| set_discounts() |
A |
48 |
9 |
32 |
| get_checkout_field_html() |
A |
56 |
10 |
17 |
| needs_shipping() |
A |
54 |
9 |
21 |
| get_total() |
A |
49 |
8 |
32 |
| create_customer() |
A |
47 |
7 |
36 |
| get_cart_items() |
S |
53 |
6 |
23 |
| remove_discount() |
S |
56 |
5 |
18 |
| calculate_discount() |
S |
58 |
5 |
16 |
| add_discount() |
S |
58 |
5 |
15 |
| set_payment_method() |
S |
56 |
4 |
18 |
| has_image() |
S |
64 |
5 |
10 |
| has_product() |
S |
64 |
5 |
10 |
| get_cart() |
S |
61 |
4 |
14 |
| get_subtotal() |
S |
61 |
4 |
13 |
| get_item_by_hash() |
S |
64 |
4 |
10 |
| update_item_by_hash() |
S |
63 |
4 |
10 |
| get_item_count() |
S |
64 |
4 |
10 |
| get_product_with_image_count() |
S |
65 |
4 |
9 |
| has_discount_code() |
S |
64 |
4 |
10 |
| get_checkout_field() |
S |
64 |
4 |
10 |
| set_delivery_method() |
S |
60 |
3 |
14 |
| get_credits_applied() |
S |
62 |
3 |
13 |
| set_shipping_method() |
S |
61 |
3 |
13 |
| get_product_count() |
S |
65 |
3 |
9 |
| get_fees_total() |
S |
64 |
3 |
10 |
| has_errors() |
S |
71 |
2 |
6 |
| setup_checkout_data() |
S |
72 |
2 |
6 |
| update_item() |
S |
68 |
2 |
7 |
| remove_item() |
S |
66 |
2 |
8 |
| update_cart() |
S |
69 |
2 |
7 |
| add_discount_name() |
S |
73 |
2 |
5 |
| get_discount_names() |
S |
73 |
2 |
6 |
| has_discount() |
S |
72 |
2 |
6 |
| has_discount_codes() |
S |
71 |
2 |
6 |
| get_tax() |
S |
72 |
2 |
6 |
| get_credits() |
S |
72 |
2 |
6 |
| set_use_credits() |
S |
67 |
2 |
8 |
| get_delivery_method_id() |
S |
72 |
2 |
6 |
| get_shipping() |
S |
71 |
2 |
6 |
| get_shipping_tax() |
S |
71 |
2 |
6 |
| get_shipping_formatted() |
S |
67 |
2 |
8 |
| update_item_quantity() |
S |
68 |
2 |
7 |
| get_checkout_data() |
S |
70 |
2 |
7 |
| __construct() |
S |
70 |
1 |
6 |
| add_error() |
S |
72 |
1 |
5 |
| get_errors() |
S |
82 |
1 |
3 |
| update() |
S |
81 |
1 |
3 |
| is_empty() |
S |
80 |
1 |
3 |
| empty_cart() |
S |
67 |
1 |
8 |
| get_discounts() |
S |
82 |
1 |
3 |
| remove_all_discounts() |
S |
73 |
1 |
5 |
| get_subtotal_tax() |
S |
78 |
1 |
3 |
| get_subtotal_formatted() |
S |
73 |
1 |
5 |
| get_discount() |
S |
78 |
1 |
3 |
| get_discount_formatted() |
S |
79 |
1 |
3 |
| get_tax_formatted() |
S |
80 |
1 |
3 |
| get_credits_applied_formatted() |
S |
80 |
1 |
3 |
| use_credits() |
S |
80 |
1 |
3 |
| get_delivery_method() |
S |
82 |
1 |
3 |
| get_payment_method() |
S |
82 |
1 |
3 |
| get_shipping_method() |
S |
82 |
1 |
3 |
| add_fee() |
S |
70 |
1 |
6 |
| remove_fee() |
S |
80 |
1 |
3 |
| get_fees() |
S |
82 |
1 |
3 |
| get_total_formatted() |
S |
76 |
1 |
4 |
| show_checkout_field() |
S |
79 |
1 |
3 |
| set_checkout_data_item() |
S |
72 |
1 |
5 |
| get_checkout_fields() |
S |
82 |
1 |
3 |
| get_active_section() |
S |
82 |
1 |
3 |