WC_Gateway_Paypal_Request D

Total Complexity 145
Dependencies 8
Dependents 5
Total lines 1,209
Lines of code 707
Logical lines of code 323
Comment lines 303
Methods 37
Properties 4

Methods 37

Method Rating Maintainability Complexity Lines of code
authorize_or_capture_payment()
A
40 12 60
get_paypal_create_order_request_params()
A
40 10 60
capture_authorized_payment()
A
44 11 43
create_paypal_order()
A
43 9 48
get_paypal_order_shipping()
A
48 7 32
get_approve_link()
S
59 7 13
get_shipping_cost_line_item()
S
59 6 13
get_paypal_order_details()
S
55 5 18
line_items_valid()
S
55 5 18
send_wpcom_proxy_request()
S
53 4 22
get_phone_number_args()
S
53 4 22
fetch_paypal_client_id()
S
54 4 21
get_shipping_args()
S
54 4 20
get_paypal_args()
S
57 4 16
prepare_line_items()
S
58 4 14
limit_length()
S
62 4 11
get_order_item_names()
S
53 3 23
get_transaction_args()
S
46 2 36
get_paypal_order_items()
S
56 3 17
get_line_item_args()
S
58 3 15
get_paypal_order_custom_id()
S
59 3 14
get_request_url()
S
53 2 21
add_line_item()
S
54 2 20
get_order_item_name()
S
56 2 19
get_paypal_order_items_subtotal()
S
64 3 10
get_paypal_shipping_preference()
S
68 3 7
fix_request_length()
S
59 2 15
get_paypal_state()
S
65 3 10
get_paypal_order_purchase_unit_amount()
S
54 1 25
get_paypal_order_intent()
S
69 2 7
get_line_item_args_single_item()
S
66 2 7
currency_has_decimals()
S
70 2 6
round()
S
68 2 7
number_format()
S
68 2 7
__construct()
S
76 1 4
get_line_items()
S
82 1 3
delete_line_items()
S
81 1 3