BillPTSync D

Total Complexity 205
Dependencies 3
Dependents 3
Total lines 1,135
Lines of code 749
Logical lines of code 455
Comment lines 4
Methods 59
Properties 12

Methods 59

Method Rating Maintainability Complexity Lines of code
getWooCSVDataFormat()
C
38 24 64
syncProductList()
A
47 9 33
handleResultsProductSync()
A
49 9 31
updateProductConfig()
A
50 9 27
generateCSVFilesFromDatabase()
S
50 7 26
updateStockConfig()
S
52 7 24
doStockUpdate()
S
54 7 19
getWooMetaImages()
S
55 7 18
getProductCronjobURL()
S
54 6 20
getStockCronjobURL()
S
55 6 19
handleBillCategories()
S
56 6 19
updateCustomMap()
S
55 5 19
updateStockFromDatabase()
S
51 4 25
getCategoriesWooFormat()
S
59 4 15
getAttributesWooFormat()
S
57 4 15
generateTitles()
S
58 4 15
getStockConfig()
S
61 4 13
getProductConfig()
S
61 4 13
verifyMeta()
S
61 4 12
generateWooCategoryNameStyle()
S
62 4 11
updateSkuToID()
S
57 3 17
saveStockInDatabase()
S
58 3 15
syncStock()
S
59 3 15
checkToken()
S
67 4 7
getSkuToID()
S
60 3 14
createCSV()
S
59 3 14
parseUpdateFiles()
S
57 2 16
getRegularPrice()
S
64 3 10
getSKUField()
S
66 3 9
getNameField()
S
66 3 9
saveItemsInDatabase()
S
63 3 9
parseNewFiles()
S
59 2 14
getCurrentMap()
S
72 2 6
get_product_by_sku()
S
69 2 6
manipulateMeta()
S
68 2 7
getLastSyncTime()
S
67 2 8
array_pluck()
S
72 2 5
getConfigValue()
S
67 2 8
getNextPage()
S
78 2 3
getLogs()
S
67 2 8
generateRandomToken()
S
64 2 9
product_exists()
S
62 1 11
updateConfigValue()
S
63 1 11
getItemMetaStructurePlucked()
S
75 1 4
getMap()
S
82 1 3
checkIfWooMetaExist()
S
76 1 4
getCustomMap()
S
82 1 3
getSimpleMap()
S
82 1 3
__construct()
S
81 1 3
totalItemsWaiting()
S
76 1 4
importUpdateProducts()
S
75 1 5
prepend()
S
63 1 10
updateLastSyncTime()
S
65 1 10
deleteConfigValue()
S
70 1 7
deleteWaitingList()
S
77 1 4
deleteLogs()
S
77 1 4
insertLog()
S
69 1 6
getPortugalDateTime()
S
68 1 7
getMandatory()
S
82 1 3