OneTeamSoftware\WooCommerce\Shipping\Adapter\Shippo D

Total Complexity 173
Dependencies 1
Dependents 0
Total lines 1,298
Lines of code 1,043
Logical lines of code 370
Comment lines 2
Methods 44
Properties 5

Methods 44

Method Rating Maintainability Complexity Lines of code
getShipmentResponse()
C
34 30 84
initServices()
B
19
1 298
prepareAddress()
A
43 15 51
getRatesParams()
A
44 13 40
prepareParcelInfo()
A
46 13 36
setShipmentCacheValues()
A
45 10 42
prepareCustomsInfo()
A
49 9 29
getErrorMessage()
A
53 8 24
getResponse()
A
53 8 20
prepareCustomsItem()
S
49 7 30
initPackageTypes()
S
37 1 76
getRates()
S
56 4 17
validate()
S
57 4 16
prepareCustomsItems()
S
60 4 14
getValidationErrors()
S
59 4 13
initCarriers()
S
42 1 54
__construct()
S
49 1 34
getIntegrationFormFields()
S
50 1 34
validateActiveApiToken()
S
63 3 9
getRequestParams()
S
65 3 8
getShipmentId()
S
63 3 10
getCacheKey()
S
64 3 10
getCachedAddress()
S
63 2 10
getApiKey()
S
80 2 3
getRatesResponse()
S
66 2 8
getCachedParcelInfo()
S
63 2 10
getCachedCustomsInfo()
S
63 2 10
hasUpdateShipmentsFeature()
S
82 1 3
getName()
S
82 1 3
hasCustomItemsFeature()
S
82 1 3
hasTariffFeature()
S
82 1 3
getServices()
S
82 1 3
getRequestBody()
S
75 1 4
addHeadersAndParams()
S
78 1 3
getRouteUrl()
S
75 1 4
hasUseSellerAddressFeature()
S
82 1 3
hasDisplayDeliveryTimeFeature()
S
82 1 3
hasReturnLabelFeature()
S
82 1 3
hasCreateManifestsFeature()
S
82 1 3
hasAddressValidationFeature()
S
82 1 3
hasOriginFeature()
S
82 1 3
hasSignatureFeature()
S
82 1 3
hasCreateShipmentFeature()
S
82 1 3
hasInsuranceFeature()
S
82 1 3