SGBackup D

Total Complexity 408
Dependencies 27
Dependents 6
Total lines 2,331
Lines of code 1,657
Logical lines of code 1,069
Comment lines 64
Methods 137
Properties 40

Methods 137

Method Rating Maintainability Complexity Lines of code
getAllBackups()
D
33 33 83
getStorageInfoById()
C
35 23 89
getLogFileHeader()
B
34 16 83
backup()
A
35 10 90
startBackupUpload()
A
38 11 74
restore()
A
41 10 56
importDB()
A
46 10 37
didFinishBackup()
A
46 10 32
backupUploadToStorages()
A
47 9 36
prepareBackupLogFile()
S
52 7 23
autodetectBackups()
S
53 7 21
upload()
S
54 7 19
changeActionStatus()
S
56 7 16
startUploadByActionId()
S
49 6 31
deleteBackup()
S
54 6 21
importKeyFile()
S
58 6 15
cleanRunningActions()
S
59 6 15
download()
S
53 5 23
didFinishUpload()
S
56 5 17
getArchiveExtraData()
S
50 4 30
didFinishRestore()
S
58 5 14
restoreCurrentUser()
S
50 4 29
prepareBackupFolder()
S
61 5 12
setArchive()
S
53 4 21
startBackupDB()
S
47 3 34
setTreeFile()
S
56 4 19
getTables()
S
57 4 16
setOptions()
S
63 5 9
getBackedUpTables()
S
60 4 15
restoreDB()
S
59 4 14
startBackupFiles()
S
59 4 14
updateUploadProgress()
S
59 4 13
cancel()
S
56 3 18
getFileLinesCount()
S
60 3 12
getBackupFileName()
S
61 3 12
prepareRestoreLogFile()
S
61 3 12
getNewTableNames()
S
61 3 12
deleteBackupFromStorage()
S
62 3 11
getIsUploadStorage()
S
63 3 11
didFinishFilesRestore()
S
56 2 18
processDBMigration()
S
56 2 18
checkCancellation()
S
63 3 10
prepareUploadToStorages()
S
69 3 6
logException()
S
67 3 7
log()
S
73 3 5
saveCurrentUser()
S
60 2 14
prepareForBackup()
S
60 2 12
prepareQueryToExec()
S
62 2 12
didExtractArchiveHeaders()
S
62 2 11
createAction()
S
61 2 11
getOldDbPrefix()
S
71 2 6
sort()
S
78 2 3
replaceInvalidEngineTypeInQuery()
S
68 2 7
shouldUploadNextChunk()
S
70 2 7
getCharsetHandler()
S
71 2 6
resetBackupProgress()
S
67 2 8
storageObjectById()
S
65 2 9
deleteBackupFromCloud()
S
68 2 7
willStartUpload()
S
71 2 6
updateDBProgress()
S
65 2 9
getActionStatus()
S
65 2 8
isCancelled()
S
68 2 8
getMigrateObj()
S
71 2 6
updateUploadProgressManually()
S
72 2 6
getAction()
S
66 2 8
getActionProgress()
S
65 2 8
getScheduleParamsById()
S
66 2 8
shouldDeleteBackupAfterUpload()
S
79 2 3
downloadBackupArchiveFromCloud()
S
68 2 7
didFindWarnings()
S
73 2 5
listStorage()
S
69 2 7
prepareRestoreFolder()
S
64 2 9
isMigrationAvailable()
S
71 2 6
extractArchive()
S
58 1 15
getActionByName()
S
66 2 8
cleanUp()
S
74 2 5
extendLogFileHeader()
S
66 2 9
prepareForRestore()
S
60 1 12
didAddFileChunk()
S
82 1 3
getTableRowsCount()
S
70 1 6
addDontExclude()
S
80 1 3
getCurrentUploadChunksCount()
S
82 1 3
startRestore()
S
73 1 5
getProgress()
S
81 1 3
resetRestoreProgress()
S
70 1 6
getDatabaseHeaders()
S
65 1 10
warn()
S
75 1 4
replaceInvalidCharacters()
S
82 1 3
getPendingStorageUploads()
S
82 1 3
finalizeDBRestore()
S
69 1 7
resetUploadProgress()
S
77 1 4
willAddFileChunk()
S
82 1 3
__construct()
S
76 1 4
didFindExtractError()
S
91 1 2
getLogEnabled()
S
82 1 3
pathWithoutRootDirectory()
S
77 1 3
getToken()
S
82 1 3
getOptions()
S
82 1 3
getExcludeFilePaths()
S
82 1 3
setExcludeFilePaths()
S
81 1 3
getFileName()
S
82 1 3
setFileName()
S
81 1 3
getArchive()
S
82 1 3
setLogEnabled()
S
81 1 3
clear()
S
74 1 4
setLogFile()
S
68 1 7
getLogFile()
S
82 1 3
getTreeFile()
S
82 1 3
setStateFile()
S
81 1 3
getStateFile()
S
82 1 3
setRowsCount()
S
81 1 3
getRowsCount()
S
82 1 3
setFilesCount()
S
81 1 3
prepareBackupReport()
S
77 1 3
setBackupPaths()
S
74 1 4
didExtractFile()
S
91 1 2
isBackgroundMode()
S
82 1 3
willExtractFile()
S
91 1 2
shouldExtractFile()
S
82 1 3
didCountFilesInsideArchive()
S
91 1 2
getCorrectCdrFilename()
S
82 1 3
didAddFile()
S
82 1 3
willAddFile()
S
82 1 3
getIsManual()
S
82 1 3
setIsManual()
S
81 1 3
didUpdateProgress()
S
72 1 5
prepareAdditionalConfigurations()
S
79 1 3
cancelAction()
S
79 1 3
getBackupFileInfo()
S
79 1 3
getFilesCount()
S
82 1 3
deleteActionById()
S
71 1 5
changeActionProgress()
S
67 1 7
setCurrentActionStatusCancelled()
S
67 1 7
getCurrentActionStatus()
S
80 1 3
getActionId()
S
82 1 3
handleMigrationErrors()
S
75 1 4
getRunningActions()
S
68 1 7