uklidit v backup funkcionalite
-
vytvorit funkce pro vydumpovani defaultu databaze
funkce pro backup jsou prilis komplexni, chtelo by to zprehlednit
CODECLIMATE:
-
Function keys
has a Cognitive Complexity of 13 (exceeds 10 allowed). Consider refactoring. -
Function backupData
has a Cognitive Complexity of 36 (exceeds 10 allowed). Consider refactoring. -
The function backupData() has an NPath complexity of 65794. The configured NPath complexity threshold is 200. -
The function backupData() has 103 lines of code. Current threshold is set to 100. Avoid really long methods. -
The method keys uses an else expression. Else is never necessary and you can simplify the code to work without else. -
backup_process accesses the super-global variable $_SERVER. -
Refactor this function to reduce its Cognitive Complexity from 72 to the 15 allowed. -
Define a constant instead of duplicating this literal "dbdatabase" 3 times.
Edited by Karel Kremel