{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"CI_Form_validation._execute (cyclomatic 47): CI_Form_validation._execute has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Form_validation.php"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"67470bdfbd949dd10ca291872963c5e372f12eb817b17107030bcf708cde8467"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Pagination.create_links (cyclomatic 47): CI_Pagination.create_links has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Pagination.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"8246a6224a277b2f88de68cc0f8119606cc0270d73ee15418db338ec11568264"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Image_lib.initialize (cyclomatic 34): CI_Image_lib.initialize has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"6592b773c552f12a0c27dafcd08f3d6c3a363f764f2a135301be11dd432d0bc5"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Upload.do_upload (cyclomatic 34): CI_Upload.do_upload has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Upload.php"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0745d41ece759d4cf0957f0e3bbc1fd661ebfc74c3d0aed82924f66ded9c9d4"}},{"ruleId":"D1","level":"warning","message":{"text":"XML_RPC_Message.closing_tag (cyclomatic 34): XML_RPC_Message.closing_tag has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpc.php"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda55b364d9b5591036d4420f0fcbb0e1bca4709dcf9ff6523c6fe5ca3ea9648"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_driver.protect_identifiers (cyclomatic 32): CI_DB_driver.protect_identifiers has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_driver.php"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fdda2de299b761051d2e01cb577507302da3abeaeca30ddbddab947413fc82"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_mysqli_driver.db_connect (cyclomatic 31): CI_DB_mysqli_driver.db_connect has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysqli/mysqli_driver.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a12c6fec8272b5408b32862301a50ae6a4f9b28602547aec5afe0e7a7e64efd"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.DB (cyclomatic 30): DB.DB has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"61460cf05260d91b09e1e85f9ccff6da516bb1bf65a4f79dd783d46e4a3bd6e3"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Input.set_cookie (cyclomatic 28): CI_Input.set_cookie has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Input.php"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0153acd95357db1b5558bd2e4fb7f0a213d32280efc3f318cb923cb44004154c"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Calendar.generate (cyclomatic 28): CI_Calendar.generate has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Calendar.php"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"270c1ae2a956b65ceece459626bf7cb496878bd423cd071f528fd5a77e8d2828"}},{"ruleId":"D1","level":"warning","message":{"text":"XML_RPC_Message.open_tag (cyclomatic 27): XML_RPC_Message.open_tag has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpc.php"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d626f09ed0677baa4412de6e630e376a2d374b76dfadd9a29643edbb2f0bfe"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_driver.query (cyclomatic 26): CI_DB_driver.query has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_driver.php"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0ec47648969add8857a441f9bfb70f81170d7bc59961de77ed379c05c729cf"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Table.generate (cyclomatic 25): CI_Table.generate has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Table.php"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b1b028087fb7ebd23130e84d226e0cd6d0009546c357d9334bb78cb71b07b3"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Loader.model (cyclomatic 24): CI_Loader.model has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6cbfb64394f7facd04df0e9752089abffcd31e21cfe0386dea4114a6769cf9"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Session.__construct (cyclomatic 24): CI_Session.__construct has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Session/Session.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"17eff4d3e75ffeff1f20e6db7174674b36ed0ca739ae4dd78e1a3b4b8360e911"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_forge._process_fields (cyclomatic 23): CI_DB_forge._process_fields has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_forge.php"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"001fa5ace2b622a870c0d0e9a6f5192476c10c0413bd17442f38d93c1e5ffa94"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Input.ip_address (cyclomatic 22): CI_Input.ip_address has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Input.php"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"113f7133ec1eb54bf0f4bc716a9fab71ba5f97b1636d27cdd8a5b8b5d72e9be7"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Lang.load (cyclomatic 21): CI_Lang.load has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Lang.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab308e2100b374448e137298e06a510bf1d8778914af66a73ed0c8b381a1864"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Output._display (cyclomatic 21): CI_Output._display has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Output.php"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21f51115c58c2a78e7c8a5865c01c8d142cc74ea723b63fee94b667258838f4"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Email._build_message (cyclomatic 21): CI_Email._build_message has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7848795e739ceb47eb5bc11ce92f20eef81ab417da86818170c2c0073fdc0e"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_pdo_mysql_driver.db_connect (cyclomatic 20): CI_DB_pdo_mysql_driver.db_connect has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_mysql_driver.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa284f6f66ee94aa0e208e42a29b45b69a95091bffcb7aa0921fc9d47adb4e52"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Image_lib.image_reproportion (cyclomatic 20): CI_Image_lib.image_reproportion has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2b2b5cc63f096906bb5d7c4276f2426cc9b58a8ca40925666a21f7b6eb7738"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Migration.version (cyclomatic 20): CI_Migration.version has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Migration.php"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dbd43fa5d3faa5fe7a300c2d84234d118a941e6d624ae993787b17600a57046"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Xmlrpcs._execute (cyclomatic 20): CI_Xmlrpcs._execute has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpcs.php"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c108c8afe4b278bb5ec6563037bd365d101c8e841b87fee5103b8a317838bd"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Hooks._run_hook (cyclomatic 19): CI_Hooks._run_hook has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Hooks.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05f7d0f40df5cc84c00479240144389ea58068184f6ff9dcba4ea1b81061663"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_utility.backup (cyclomatic 19): CI_DB_utility.backup has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_utility.php"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"74176e34723fb86ceab78f6949a6283ba9a86071f2c7958c0e8ac0a72d938097"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_oci8_driver.__construct (cyclomatic 19): CI_DB_oci8_driver.__construct has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/oci8/oci8_driver.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cb92afa9d45e9c0d93d8abf158446195c2db0ecc9420c5a71b86920620ff70"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Form_validation.set_rules (cyclomatic 19): CI_Form_validation.set_rules has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Form_validation.php"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"7289550086c078b02ab9961bc18bec1216e9bc80c02ce07601447f8d2bef633f"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Image_lib.text_watermark (cyclomatic 19): CI_Image_lib.text_watermark has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb0f52e59c7eaa2d984f43b2cf82ab1a1e9909000623c2cdb71936118747c8c"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Upload._file_mime_type (cyclomatic 19): CI_Upload._file_mime_type has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Upload.php"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fe36a85c405f2f89891c3b4e105daabfa6a26301da48b797c44d4ca90ac052"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Loader._ci_load (cyclomatic 18): CI_Loader._ci_load has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca70c08033f2d999c9ac326814a4fbc7ed6294520321cbe00d5d404266439ca"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Session._configure (cyclomatic 18): CI_Session._configure has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Session/Session.php"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e92179312d175416e6edd8aee043ae41f2da8c3e0e2ad3ffa1fbd09c96df94"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Typography.auto_typography (cyclomatic 18): CI_Typography.auto_typography has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Typography.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7de9b7c74b85ec30d269e2837dc7dc13a49d428310ae9855f4ee1904dc8f42"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_mysql_utility._backup (cyclomatic 17): CI_DB_mysql_utility._backup has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysql/mysql_utility.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff4bbf7ef8de14d479122f6fe25bd433bcaf58692dd30b4d7d8c87f028ed3ec"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_mysqli_utility._backup (cyclomatic 17): CI_DB_mysqli_utility._backup has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysqli/mysqli_utility.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8927f65ddf6a422c906c58c074f59cf54eeae67aac53eda861946d280c7e933"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_pdo_sqlsrv_driver.__construct (cyclomatic 17): CI_DB_pdo_sqlsrv_driver.__construct has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fdfec4087e91f1dba0fd27ae3bd3ee8c1dad3bac037f0f1639a93a0953f80d"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Form_validation.run (cyclomatic 17): CI_Form_validation.run has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Form_validation.php"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91045de98a966a5a1d73e05bb6c558f352a01c03fae025bd5c1ac7021a3e8f2"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Session._ci_load_classes (cyclomatic 17): CI_Session._ci_load_classes has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Session/Session.php"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7d5b8d77ff091d17df39fcbb3512630ef2aa94550551042a34564e17dbdef2"}},{"ruleId":"D1","level":"warning","message":{"text":"XML_RPC_Message.parseResponse (cyclomatic 17): XML_RPC_Message.parseResponse has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpc.php"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1db8dc0fbb427287818f764fcf349ab4b83ad6d29eace195186aa292df22579"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_Loader._ci_autoloader (cyclomatic 16): CI_Loader._ci_autoloader has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"2659fecd61a62150311ed5dc2591c5a087852e8fd2f5c9f07f35c8692541d4bc"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_driver.escape_identifiers (cyclomatic 16): CI_DB_driver.escape_identifiers has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_driver.php"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b3e700cff83a296ef91288c5fdd3f90e2f4a307a66455855d015330e1d5962"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_pdo_ibm_driver.__construct (cyclomatic 16): CI_DB_pdo_ibm_driver.__construct has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_ibm_driver.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf69fa0a95f3b84d8f6f1dee02fa66c403db7d1fc1ba1df6ae91e12efb557a59"}},{"ruleId":"D1","level":"warning","message":{"text":"CI_DB_pdo_odbc_driver.__construct (cyclomatic 16): CI_DB_pdo_odbc_driver.__construct has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_odbc_driver.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5669b3135cbda405f8f1fc445c3fac1623de2bf32c5411541382712c8a7d3a"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Form_validation._execute (cognitive 111): CI_Form_validation._execute has cognitive complexity 111 (threshold 15). Drivers by points: if/else 61, ternaries 34, boolean chains 13, loops 3 (nesting depth added 60). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Form_validation.php"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c63ad15b410175e5b310e7628d2df7d291eeec67320fbe1742e771f06de83a"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Pagination.create_links (cognitive 70): CI_Pagination.create_links has cognitive complexity 70 (threshold 15). Drivers by points: if/else 46, ternaries 13, boolean chains 9, loops 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Pagination.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6771825632663f9097e9ef7ce4497e8608b34f8845f40a0bcf7082830fbbb23"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Input.ip_address (cognitive 68): CI_Input.ip_address has cognitive complexity 68 (threshold 15). Drivers by points: if/else 46, loops 16, ternaries 4, boolean chains 2 (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Input.php"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d550df93f56d74adb4c274a81a5fa340b032b7599b8287a4e32611beea9c09f"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_driver.protect_identifiers (cognitive 55): CI_DB_driver.protect_identifiers has cognitive complexity 55 (threshold 15). Drivers by points: if/else 35, boolean chains 7, ternaries 7, loops 6 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_driver.php"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca0357b159b08cbe473d03802d621ddfa03d700993e32c13990ae2aa522fa85"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_mysqli_driver.db_connect (cognitive 54): CI_DB_mysqli_driver.db_connect has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 26, if/else 20, boolean chains 8 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysqli/mysqli_driver.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"38384fa9fe98a06b3b1ad098f4c3975e23924e081dac5ad1cac0acfb3b321830"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.DB (cognitive 53): DB.DB has cognitive complexity 53 (threshold 15). Drivers by points: if/else 33, ternaries 10, loops 6, boolean chains 4 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e903b650b73ab9e94c9eb7e9d495555055ff2defde067d2740cd0952454a35"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Table.generate (cognitive 52): CI_Table.generate has cognitive complexity 52 (threshold 15). Drivers by points: if/else 25, loops 14, ternaries 10, boolean chains 3 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Table.php"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fad082b45600d98d20fceaa104ac4c8fd16d48d1023f1f50cf213bdff705382"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Image_lib.initialize (cognitive 50): CI_Image_lib.initialize has cognitive complexity 50 (threshold 15). Drivers by points: if/else 32, boolean chains 10, ternaries 6, loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f5e7e0653b5752dde1409c8b67ce47c853bf448d431c2de6c4534a27c05b0d"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Calendar.generate (cognitive 49): CI_Calendar.generate has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 20, if/else 18, boolean chains 6, loops 5 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Calendar.php"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea6b458d1b76427af7f50dd3a28a7711d41f67417ed9bed61252938ab039cbe"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Upload._file_mime_type (cognitive 41): CI_Upload._file_mime_type has cognitive complexity 41 (threshold 15). Drivers by points: if/else 38, boolean chains 3 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Upload.php"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2fecb0e5e0b62a1b9d595a37b28037dcd6fe9c757a47462e5172008387f2c0"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_forge._process_fields (cognitive 40): CI_DB_forge._process_fields has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19, ternaries 12, boolean chains 5, match/switch 3, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_forge.php"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acdd01616ef52650ca595ec3ae56067c994f1215f635c763ed9576ca8223a39"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Input.set_cookie (cognitive 38): CI_Input.set_cookie has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15, ternaries 12, boolean chains 9, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Input.php"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"93968dbd2fc71282c4259df8df8964b94dbbe5ef783f9c6b8565ae3097e802dd"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Loader.model (cognitive 37): CI_Loader.model has cognitive complexity 37 (threshold 15). Drivers by points: if/else 29, loops 4, ternaries 3, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98e3b6de3c02ec0bbd64721708b112b6aab0337ed7e0cdd76a740f1d1086bf7"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_mysql_utility._backup (cognitive 36): CI_DB_mysql_utility._backup has cognitive complexity 36 (threshold 15). Drivers by points: if/else 21, loops 10, ternaries 5 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysql/mysql_utility.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d926754326e2215c9222e23843748798745c869b0f9cf555443b53b064ed8b"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_mysqli_utility._backup (cognitive 36): CI_DB_mysqli_utility._backup has cognitive complexity 36 (threshold 15). Drivers by points: if/else 21, loops 10, ternaries 5 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysqli/mysqli_utility.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a2287cc55244b8edbdc95de20ea5b3b8db12e2ad93013be5ad866403aa2548"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_driver.query (cognitive 35): CI_DB_driver.query has cognitive complexity 35 (threshold 15). Drivers by points: if/else 23, boolean chains 7, loops 3, ternaries 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_driver.php"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ddd385cdebdea47f0f64a9759e2833d201f1377d8dc188a6bfd15403c166615"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Upload.do_upload (cognitive 35): CI_Upload.do_upload has cognitive complexity 35 (threshold 15). Drivers by points: if/else 26, boolean chains 3, loops 2, match/switch 2, ternaries 2 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Upload.php"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c1d466dd0033e2b7bd57c00f13ff77e46ef18ad0e073ca9abe5dd55012b81c"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Email._build_message (cognitive 33): CI_Email._build_message has cognitive complexity 33 (threshold 15). Drivers by points: if/else 28, boolean chains 2, ternaries 2, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bcf035c2ca0779856fbfb4db2c6f73d326212eb51b8e982505b7e2a0405577"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Xmlrpcs._execute (cognitive 33): CI_Xmlrpcs._execute has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17, loops 6, boolean chains 5, ternaries 5 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpcs.php"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c4f9e69efe9cb580575f2078313b2f071b249918df55850620823f6b1b9a62"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Profiler._compile_queries (cognitive 31): CI_Profiler._compile_queries has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16, loops 13, ternaries 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Profiler.php"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb37d9f740de62537f995a51820bcb8342b8d3b6949abec15035518a5179529c"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Session.__construct (cognitive 29): CI_Session.__construct has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12, ternaries 11, boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Session/Session.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a75e3541789daa0cfb290032de8867e5a760fc9a1f9f5e9cb387263be1007a"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Lang.load (cognitive 28): CI_Lang.load has cognitive complexity 28 (threshold 15). Drivers by points: if/else 17, boolean chains 5, loops 4, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Lang.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a0f675be072cf1bd0d8728e93533e22717f54353d3b50a7b6cfc133daf80d2"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Output._display (cognitive 28): CI_Output._display has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, boolean chains 6, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Output.php"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d03de0f6e6ac87e7f190eb1b8ca1145f0699c4e1f3f583204b94b853e48513"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_query_builder._compile_wh (cognitive 28): CI_DB_query_builder._compile_wh has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12, ternaries 9, loops 5, boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43ba9f540e59a6a90ac5fb003246af3451c9c5b8b8925f7cf33a4f6c904b257"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_utility.backup (cognitive 28): CI_DB_utility.backup has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, boolean chains 3, ternaries 3, loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_utility.php"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7c65cf3774970da3eeb08faf369a085ba1d3c3494dd15f42ec68006db141b7"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Config.load (cognitive 27): CI_Config.load has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18, ternaries 5, loops 3, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Config.php"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8e87ff058d1fb4a9cc207ac00be4a7c28e76124902c68e0c0a5dcde21bcb97"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Hooks._run_hook (cognitive 27): CI_Hooks._run_hook has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, ternaries 5, boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Hooks.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"7213cadfa50cef55d804c2dc0bc47ef906f24afa7fb8c649c0ea063d20795288"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Loader._ci_load (cognitive 27): CI_Loader._ci_load has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15, boolean chains 4, loops 4, ternaries 4 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"782783a44bd4394512b8efa6e37b5131d261f91f7007186b3155567990403da7"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_pdo_mysql_driver.db_connect (cognitive 27): CI_DB_pdo_mysql_driver.db_connect has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15, boolean chains 10, ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_mysql_driver.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad268315e8dbbd27ad549fccfdd546bfef83d592002a385e616f9510244d899b"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Form_validation.set_rules (cognitive 27): CI_Form_validation.set_rules has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12, ternaries 7, boolean chains 4, loops 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Form_validation.php"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcf8783282201693810e9c28ae7f65c5e1b45b1db2ca6d3ef5b6a03c01d63fe"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Migration.version (cognitive 27): CI_Migration.version has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22, boolean chains 3, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Migration.php"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6df07cac9501ace232e5c061a64ba752f8a210bf1f5db5b47b2f8afc14f2a4"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Upload.initialize (cognitive 27): CI_Upload.initialize has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22, loops 4, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Upload.php"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b8cf9d8c833a24ac5e12b34db7fdcec751a91043010a4e65695d6c06750f63"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Loader._ci_init_library (cognitive 26): CI_Loader._ci_init_library has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22, loops 3, ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c2c967f35e510f66f0a0ce86be367100cfec260816c7ed15289339b7483298"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Driver_Library.load_driver (cognitive 26): CI_Driver_Library.load_driver has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, loops 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Driver.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c640d72079dac5d3b901142806f7cbf324f33c81e4fe96bcf6b51fff273b36c"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Typography.auto_typography (cognitive 26): CI_Typography.auto_typography has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, loops 4, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Typography.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef70102a0ac1380be77e61a56b610da96268834dfb8f08ed1470743c3264fb0"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Image_lib.image_reproportion (cognitive 25): CI_Image_lib.image_reproportion has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, if/else 7, ternaries 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"33076111bbbee6073b09f6e49762a8041172fb5eeb99b8af108d1d9696971653"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_query_builder.update_batch (cognitive 24): CI_DB_query_builder.update_batch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, ternaries 11, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":1967}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7cde809ee770c26509e6756589528e33f7380e864f7d0ae8767481a791ce81"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_oci8_driver.__construct (cognitive 24): CI_DB_oci8_driver.__construct has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, boolean chains 7, ternaries 4, loops 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/oci8/oci8_driver.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"336f0aaec3ecec9dbe58f39b5aa15a499ac972f2250755238df5887f521ecf33"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Image_lib.text_watermark (cognitive 24): CI_Image_lib.text_watermark has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"49017badecdd16c9f9fd0ae8c4a6c81340bad4548f52531bee2cfb0fb42e095f"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Loader.helper (cognitive 23): CI_Loader.helper has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, loops 5, ternaries 2, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"51173d8cb6c7eab2c890d92d1ae619a904c59e912a5e6fc723c6b830bb25f18f"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Router._set_routing (cognitive 23): CI_Router._set_routing has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, boolean chains 3, ternaries 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Router.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25120adc25cfa4f4ca2ea97cd8e796b183618a08d5be9bd019ba7da71397bb5"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_pdo_ibm_driver.__construct (cognitive 23): CI_DB_pdo_ibm_driver.__construct has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, ternaries 7, boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_ibm_driver.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"860a3e96fabf265c616f2e9fd00b51ff035cf4cb47c650f907aadb418d0ec903"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_pdo_odbc_driver.__construct (cognitive 23): CI_DB_pdo_odbc_driver.__construct has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, ternaries 7, boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_odbc_driver.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"787c966f3704f14b2cfd6f0ae34479e14e567313c93366a44b5aa85c42055512"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Session._configure (cognitive 23): CI_Session._configure has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, boolean chains 9, ternaries 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Session/Session.php"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98451f3d714904611f3ed655e475b5bc81976b6c296b928b2e3b09be4dc66e4"}},{"ruleId":"D2","level":"warning","message":{"text":"XML_RPC_Message.closing_tag (cognitive 23): XML_RPC_Message.closing_tag has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, ternaries 8, boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpc.php"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"750fbfbdba03fc308fb0dcad0a75af705332606000ebed4b76f84bcb2cc2ed9c"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Form_validation.run (cognitive 22): CI_Form_validation.run has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, ternaries 5, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Form_validation.php"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"b559b71e6f31b8b626f55e3df8680b6ca9453bcb0608895dd0fb69a47967e21e"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Form_validation._reset_data_array (cognitive 22): CI_Form_validation._reset_data_array has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, loops 6, ternaries 4, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Form_validation.php"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b768fe046882e6f8c97fa05e128eda8541f30239f31d4f913b926ccef07790"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Session._ci_load_classes (cognitive 22): CI_Session._ci_load_classes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, boolean chains 5, ternaries 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Session/Session.php"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc07e2954186a870f7f217d54a13d6d57b9b03867986e456fe31fd1cfdce5dcf"}},{"ruleId":"D2","level":"warning","message":{"text":"XML_RPC_Message.parseResponse (cognitive 22): XML_RPC_Message.parseResponse has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 5, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpc.php"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11c09b540198bc48787b20ace08c0badb7ec4669b944a9130ff027b6c358902"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_query_builder.insert_batch (cognitive 21): CI_DB_query_builder.insert_batch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, ternaries 9, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"269ea4aaa9cad80e32998b21ad28a6c3fdfc8177b0ae8d63800f1d74adbcf82c"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_pdo_informix_driver.__construct (cognitive 21): CI_DB_pdo_informix_driver.__construct has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, boolean chains 5, ternaries 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_informix_driver.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc158061343a7b824f00b7f52d0f9cf7d5d52d8584ea57d7ca29abce7345297"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_pdo_sqlsrv_driver.__construct (cognitive 21): CI_DB_pdo_sqlsrv_driver.__construct has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, boolean chains 8, ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42fd70c5e1c4f539a57f0f7964916ac03827660fffe83af9d6c3a1b99260381"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Session_redis_driver.__construct (cognitive 21): CI_Session_redis_driver.__construct has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 11, if/else 9, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Session/drivers/Session_redis_driver.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3752b7f53bc15a2b90ca43ff299ab029cd5d13b39c9b1aafaf7edac4ea40173d"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Loader._ci_load_stock_library (cognitive 20): CI_Loader._ci_load_stock_library has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e6390825bc0b658b8293a409bf4bff32900389db08bcf4d5f0a80f18affa43"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_query_builder._wh (cognitive 20): CI_DB_query_builder._wh has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, ternaries 6, boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"8285e79ac2ef14102f387ef7ed70ad508b7d175e212e826e499130e8fd90bfa4"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Email.word_wrap (cognitive 20): CI_Email.word_wrap has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, loops 7, ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d086edfff10ca4f63abc4350b54d51860cd03a2e157eabeb408bfd45c5d7701"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Loader._ci_autoloader (cognitive 19): CI_Loader._ci_autoloader has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 5, boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"869b3b471569df8c0779cc9191b702efa99731fa6f055435685ce8ab22167d57"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_query_builder.join (cognitive 19): CI_DB_query_builder.join has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7, loops 5, ternaries 5, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bad14ec51175263fc99e402903527941a70ab17fa30b65ebe3debde86463e8c"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_mysql_driver.db_connect (cognitive 19): CI_DB_mysql_driver.db_connect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, ternaries 7, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysql/mysql_driver.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8706bc81134c22e5b9cb4b0eec0b53cb05990f426aa09f7bf624d2043513f8"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Security.xss_clean (cognitive 18): CI_Security.xss_clean has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 7 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Security.php"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0e8407947ca8172cd6f22ea2b820f124a9190403edad4bbc186e5df0e8d5e9"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_driver.initialize (cognitive 18): CI_DB_driver.initialize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 7, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_driver.php"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"153d47795cc2f0b686a3fb8661e2215f53c1392ab3fa16991c041b76934664a0"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_query_builder._compile_select (cognitive 18): CI_DB_query_builder._compile_select has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, ternaries 6, loops 3, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":2390}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a11c838f28c4bbb5abb2aa65accef0bba18e26e68d9cb2ac8803561a1bac9db"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_pdo_pgsql_forge._alter_table (cognitive 18): CI_DB_pdo_pgsql_forge._alter_table has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, ternaries 3, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bb05b04601922f2a12d57c82e187e55207e41685d39b13f52f3efbe837095e"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_pdo_sqlsrv_driver._limit (cognitive 18): CI_DB_pdo_sqlsrv_driver._limit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7, if/else 5, boolean chains 3, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1623785d1c39b117379c0015a7df809a83cdc6ae2f725de24e0ce08a2f165c"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_postgre_forge._alter_table (cognitive 18): CI_DB_postgre_forge._alter_table has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, ternaries 3, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/postgre/postgre_forge.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3bdfae63cd8a62549b1f54e170154fbf8fed39730a596a22f0fc574f4ae5af"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_sqlsrv_driver._limit (cognitive 18): CI_DB_sqlsrv_driver._limit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7, if/else 5, boolean chains 3, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/sqlsrv/sqlsrv_driver.php"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6852fb843e927d0986f3e49be1148e99c8cf5333e35c05d436cc97a4421948a"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Encryption._get_params (cognitive 18): CI_Encryption._get_params has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, ternaries 4, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Encryption.php"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ede2546a6ef1ed6c754d91c7ff3f60813e1f9133d602377f6aa534004d691b"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Trackback.convert_ascii (cognitive 18): CI_Trackback.convert_ascii has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, ternaries 8, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Trackback.php"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7f9205a1901162696a85bbfe28b784e0cfd13acdb7a31b5cada2068bf45323"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Xmlrpc.values_parsing (cognitive 18): CI_Xmlrpc.values_parsing has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, loops 4, boolean chains 3, ternaries 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpc.php"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bb14888c731ae1a2e8892c540860d8b7c4a193962bb673ca4ffcc594591582"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Output._write_cache (cognitive 17): CI_Output._write_cache has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Output.php"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"977969602f8725592a9eb0f1022b5e9127465b0a98e472950e1764f2fb342073"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_driver.escape_identifiers (cognitive 17): CI_DB_driver.escape_identifiers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 6, loops 3, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_driver.php"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b56e2e8927b58f4ad061c379bdaa7f82e3f4a6696f7f547167b81060184487"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_forge.create_table (cognitive 17): CI_DB_forge.create_table has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 3, ternaries 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_forge.php"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d96878da3a4624f0bba40ac5a0e611691b65243751517a5d0dca768f6f6cb1"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_query_builder.delete (cognitive 17): CI_DB_query_builder.delete has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 6, loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":2224}}}],"partialFingerprints":{"codehealthFindingId/v1":"9034c5c195bcedbd9c3f8bbb13bca412a7f24ef6369c8ba546bce1f369c084c5"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_mssql_driver._limit (cognitive 17): CI_DB_mssql_driver._limit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7, if/else 4, boolean chains 3, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mssql/mssql_driver.php"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"782967895d391999b5a02df3b421741efcee0b903d26ec11f5bed087612cee00"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_pdo_dblib_driver._limit (cognitive 17): CI_DB_pdo_dblib_driver._limit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7, if/else 4, boolean chains 3, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af7dab33d97c85d352ac50f8f59a8b38e6ccac25ff5003d236b170b07e0a336"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Email._send_with_smtp (cognitive 17): CI_Email._send_with_smtp has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 3, loops 3 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e7813fd360ebc7cc28e36d678f934d07ba43b06e2ee529a9ee5adea798ae47"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Image_lib.image_process_gd (cognitive 17): CI_Image_lib.image_process_gd has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"761ec23cb16c381d11e7926d1d95cbf2c01bf3caffcbd5ffe01112c7cbdcb119"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Image_lib.image_save_gd (cognitive 17): CI_Image_lib.image_save_gd has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bd7a76bf8e0f9a9e5d2ada66a309384e640c4817e3ae9371f3730388feabb6"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Profiler._compile_post (cognitive 17): CI_Profiler._compile_post has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6, boolean chains 5, loops 4, if/else 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Profiler.php"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5f3cd17526e9c6b585008c0d9d0b6398e2e996724bded7811a3b11b1acf957"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Input._fetch_from_array (cognitive 16): CI_Input._fetch_from_array has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Input.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f493478778a1e4f9557f659e68dc049bc27622702514ab308d7a3f05b63ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_URI._uri_to_assoc (cognitive 16): CI_URI._uri_to_assoc has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 3, ternaries 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/URI.php"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"2519697f38aa4af315165d86d079eb8654e68a61acc4a0b72d3691429b162ffd"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_mysql_forge._alter_table (cognitive 16): CI_DB_mysql_forge._alter_table has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 7, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysql/mysql_forge.php"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e546187202b2ac529a27e796305b51842d8b5e5bdf501ae002f920e8bfef17"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_mysqli_forge._alter_table (cognitive 16): CI_DB_mysqli_forge._alter_table has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 7, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysqli/mysqli_forge.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8781ad9502396a4946e387c96f542ff8779f3e49e2d535a5bc10d2357035d12b"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_DB_pdo_mysql_forge._alter_table (cognitive 16): CI_DB_pdo_mysql_forge._alter_table has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 7, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b3e48a979c68a58131fa66200c95fd2169105641f05b3a34fbe36d9e22901f"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Email._prep_quoted_printable (cognitive 16): CI_Email._prep_quoted_printable has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd326da88edc9833e437a831ac9c1fc7f4cef8c56463b69250dc126b5faca92d"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Encryption._mcrypt_initialize (cognitive 16): CI_Encryption._mcrypt_initialize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Encryption.php"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99c3c057e4b00e4d92e70066e6a7b9bb3a4df05b87cbd378540aff4dd64df29"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Session_files_driver.write (cognitive 16): CI_Session_files_driver.write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 3, loops 2, ternaries 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Session/drivers/Session_files_driver.php"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9087d61c432c7b9148a66d9d88a5b293d50c03ba7fe34173f2986ec6945ee1"}},{"ruleId":"D2","level":"warning","message":{"text":"CI_Trackback.send (cognitive 16): CI_Trackback.send has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 3, match/switch 2, boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Trackback.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71de305e2a18763aba3f2471afc18b8c70565dd888db53eaf8eaaf11dd026b6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CI_DB_query_builder: TooManyMethods \u2014 84 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe78c52b1c978e4670ab5d96df86aa985b7381cc0c90729e11cb42e5ad99d64d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CI_Email: TooManyMethods \u2014 61 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42d3d0403c39ca5f8df08eb5ed5c5c218322f43ef0d7d311736b55c02a11165"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CI_DB_driver: TooManyMethods \u2014 56 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_driver.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc45eec4d961f59db21999daac1a0efc08d330c2033c6a6b97e13a07d8a6a73"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CI_Form_validation: TooManyMethods \u2014 53 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Form_validation.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc35929cded90ea6f77637e3defec2409c2f508bd479b1e91bcde3e52134ef22"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/DB_query_builder.php: FileTooLong \u2014 798 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: CI_DB_query_builder (53-2881). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d1524749cbad750ea6dffd543148f76881a0b095aae333076a49ded83f8bb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libraries/Email.php: FileTooLong \u2014 781 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: CI_Email (52-2418). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59d89fb3e5b1e57ce2b45411586dd3c37f28bcb3f9503a4a13ca47a9e81a70d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libraries/Xmlrpc.php: FileTooLong \u2014 642 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpc.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a43952a22fb630d6d9beaa9265a20b9392c70409e9ba3082d02d26b82f9a188"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libraries/Image_lib.php: FileTooLong \u2014 624 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: CI_Image_lib (50-1879). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"19afd9dcfd1808cfdb6862359a2b0da16ef2f845d93d59142a63696084ea45d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): system/database/drivers/mysql/mysql_utility.php:83-107 | system/database/drivers/mysqli/mysqli_utility.php:85-109 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/mysql/mysql_utility.php:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysql/mysql_utility.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9a85be905a89f4bfb11819fe2bcc4f3fde7876498bdc5982a4c1b39ccca2db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): system/database/drivers/mysql/mysql_utility.php:163-185 | system/database/drivers/mysqli/mysqli_utility.php:163-185 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/mysql/mysql_utility.php:163\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysql/mysql_utility.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab513843e2fadc6c8e714678c1575142e4cf30d08a90ced6a2e97781ab4837a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): system/database/DB_driver.php:937-955 | system/database/drivers/odbc/odbc_driver.php:158-176 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/DB_driver.php:937\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_driver.php"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cffd39abf98d81908c524858415ded9c93f38e7944491b5e4ab50abf918454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): system/libraries/Form_validation.php:966-984 | system/libraries/Form_validation.php:1009-1027 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Form_validation.php"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"f854481e27f6f007b84f575ee353d1f4b0e059a1e81501e7a0721410658a6b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php:203-218 | system/database/drivers/postgre/postgre_driver.php:485-500 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3f7cedbd23b91a5dd329fdc9476ba04ac143e7ab469cb4a86626cf5e60b72a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): system/database/drivers/oci8/oci8_driver.php:418-432 | system/database/drivers/pdo/subdrivers/pdo_oci_driver.php:213-227 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/oci8/oci8_driver.php"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"44da5d62b3b4e1190d2ad320cef1817208cfcd0d446f700f636a27fb7c19222d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): system/database/drivers/oci8/oci8_forge.php:200-214 | system/database/drivers/pdo/subdrivers/pdo_oci_forge.php:191-205 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/oci8/oci8_forge.php:200\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/oci8/oci8_forge.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a795c1a13bb7b0301f6d3c1faf4dd7f10b599310900603fb99d64ae07a12f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): system/libraries/Email.php:491-505 | system/libraries/Email.php:534-548 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"d416cd036ab26b5e191cf92b7886ac37afc443762357724fb47a1deb220a2cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): system/database/drivers/mssql/mssql_forge.php:119-132 | system/database/drivers/pdo/subdrivers/pdo_dblib_forge.php:117-130 | system/database/drivers/pdo/subdrivers/pdo_sqlsrv_forge.php:117-130 | system/database/drivers/sqlsrv/sqlsrv_forge.php:117-130 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/mssql/mssql_forge.php:119\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mssql/mssql_forge.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f8ad823ccdb44954aee03199712fb83d481bf2e58ab2d0808e1cdb22dc897c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): system/database/drivers/ibase/ibase_forge.php:221-234 | system/database/drivers/pdo/subdrivers/pdo_4d_forge.php:157-170 | system/database/drivers/pdo/subdrivers/pdo_firebird_forge.php:207-220 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/ibase/ibase_forge.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38919d16c55fd23b5188aed50d2b58f45bae9237428c4f0c30c5be63e7512a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): system/database/drivers/mysql/mysql_forge.php:151-164 | system/database/drivers/mysqli/mysqli_forge.php:153-166 | system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php:165-178 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/mysql/mysql_forge.php:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysql/mysql_forge.php"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b403314509ddd4043407fd9fe36a4cba966bcf8b0c4e868c65489d189c06061f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php:182-195 | system/database/drivers/postgre/postgre_forge.php:170-183 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php:182\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"80322699349085cd8825a3e5241036f6eebb4c05576ba896ba508777dc109053"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/libraries/Session/drivers/Session_memcached_driver.php:370-383 | system/libraries/Session/drivers/Session_redis_driver.php:453-466 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Session/drivers/Session_memcached_driver.php:370\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Session/drivers/Session_memcached_driver.php"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bbc72290f333e8f0c05aed071ac4ac30bfeeb944e016afc7994c7049cc13f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): system/database/drivers/cubrid/cubrid_forge.php:172-184 | system/database/drivers/ibase/ibase_forge.php:218-230 | system/database/drivers/pdo/subdrivers/pdo_4d_forge.php:154-166 | system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php:172-184 | system/database/drivers/pdo/subdrivers/pdo_firebird_forge.php:204-216 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/cubrid/cubrid_forge.php:172\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/cubrid/cubrid_forge.php"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd609f3d9340ad9eefd2c3124dd4783aad5b3ec28c004ae8fb72f9e218a4389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/database/DB_query_builder.php:1577-1589 | system/database/DB_query_builder.php:1994-2006 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":1577}}}],"partialFingerprints":{"codehealthFindingId/v1":"798604922de397267f68e064b9f8d9a5bd03023498ba6122a2e48aa2b1c25c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/database/DB_query_builder.php:2124-2136 | system/database/DB_query_builder.php:2157-2169 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/DB_query_builder.php:2124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":2124}}}],"partialFingerprints":{"codehealthFindingId/v1":"83bc554da594ce6344178db78da71c899fd99cbe9feec3182b4808eee47a2990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_ibm_driver.php:84-96 | system/database/drivers/pdo/subdrivers/pdo_odbc_driver.php:116-129 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_ibm_driver.php:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_ibm_driver.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b595556b9ff8b09b34620ceab305ad67db9c336ade4ca9ecf12519eb4c734ba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php:158-170 | system/database/drivers/sqlite3/sqlite3_driver.php:260-272 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php:158\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3704bd93f1d85e9b66dcc51034e60091ba25e01e53e0fd1bdbb3beb95a66ff8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/libraries/Image_lib.php:1079-1091 | system/libraries/Image_lib.php:1099-1111 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Image_lib.php:1079\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"539df5fb1c9916fcd850784e5ada6fb4eaf7eacf7110e4f2bf72cb3f1f631c35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/libraries/Profiler.php:488-500 | system/libraries/Profiler.php:526-538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Profiler.php"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8f46e0b57feaca8d4b72e6a391eab7937b6b57954ba5204937e870f0573800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/libraries/Xmlrpc.php:972-984 | system/libraries/Xmlrpc.php:1611-1623 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Xmlrpc.php:972\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpc.php"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4ecd4fb6c6032f3ff062627fe7a08fc482c1a36fa58ebce5faf8ccfe3e4979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): system/database/DB_forge.php:1003-1014 | system/database/drivers/cubrid/cubrid_forge.php:209-220 | system/database/drivers/mysql/mysql_forge.php:221-232 | system/database/drivers/mysqli/mysqli_forge.php:223-234 | system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php:209-220 | system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php:235-246 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/DB_forge.php:1003\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_forge.php"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dd33c5552e56f5eb1d7c9715f8d98f566577d291cc1d00f8bf6c91f34abe2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): system/database/drivers/mssql/mssql_driver.php:315-326 | system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php:203-214 | system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php:227-238 | system/database/drivers/sqlsrv/sqlsrv_driver.php:333-344 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mssql/mssql_driver.php"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2607daaecb280b9412475318224a092e7908e33e766a86c3c3520bf4a3aaaf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/database/drivers/oci8/oci8_driver.php:447-458 | system/database/drivers/pdo/subdrivers/pdo_oci_driver.php:242-253 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/oci8/oci8_driver.php"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"0295d15eb8f00a2acc978e69f6f17e94ae635a57c3b237afc4be4d523e238d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/database/drivers/oci8/oci8_forge.php:104-115 | system/database/drivers/pdo/subdrivers/pdo_oci_forge.php:97-108 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/oci8/oci8_forge.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0808d327a8ae551beb2ccb9c2c464ffd4e47cb5cdf48c2dc06bacb622c33b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php:272-283 | system/database/drivers/postgre/postgre_driver.php:430-441 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"4237ef33db0e06d1890cf267f8d3cfb7b7f12dcc468ea4bcb80e7f2895392803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php:301-312 | system/database/drivers/sqlsrv/sqlsrv_driver.php:463-474 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef77451288e5b0980fec1e7627a9c388df9b547d90e616703f6a61617f3cf96d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/libraries/Profiler.php:320-331 | system/libraries/Profiler.php:372-383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Profiler.php:320\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Profiler.php"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9f56774767f2accc11a05e052d7a4226af252abb57879c2e24356ff048946c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): system/database/drivers/mssql/mssql_driver.php:442-452 | system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php:285-295 | system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php:317-327 | system/database/drivers/sqlsrv/sqlsrv_driver.php:479-489 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/mssql/mssql_driver.php:442\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mssql/mssql_driver.php"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"16376b204332c78290e1c5b4c2663a87ca3acd890a0ad68e0307f4ce6745d118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): system/database/drivers/mysql/mysql_forge.php:104-114 | system/database/drivers/mysqli/mysqli_forge.php:106-116 | system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php:118-128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysql/mysql_forge.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2146483c168dd894b7d4d1e4df07da7c7c696a44baa238da21a1b85364fb85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/database/DB_query_builder.php:482-492 | system/database/DB_query_builder.php:499-509 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/DB_query_builder.php:482\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40ad86dd0b45ffa561e5eff97999f29714fae980f38e3dc36abe1360270030d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/database/DB_result.php:133-143 | system/database/drivers/pdo/pdo_result.php:61-71 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/DB_result.php:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_result.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d600015736d1df4231bd9723b8b97f5a033170a99541d87a4f7a38d75a126562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/database/drivers/ibase/ibase_forge.php:151-161 | system/database/drivers/pdo/subdrivers/pdo_firebird_forge.php:137-147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/ibase/ibase_forge.php:151\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/ibase/ibase_forge.php"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8e34254361d4ce4ae91f231b2826ec6b7e98334c22288ae7c7a4b202b8d652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php:332-342 | system/database/drivers/postgre/postgre_driver.php:540-550 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"4234997b5de8ca5d29176b84f0575f1e0d05dcec75b8fc9dc071af035a078fbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_sqlite_forge.php:133-143 | system/database/drivers/sqlite3/sqlite3_forge.php:119-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_sqlite_forge.php:133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_sqlite_forge.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"94edf8d7c3ea82e299a7dad1ba04ffc576cddc3ad5f03bf999c2b533fe308af2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/libraries/Email.php:1018-1028 | system/libraries/Form_validation.php:1243-1253 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Email.php:1018\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":1018}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf715e2a5b90b589d3c4d610e1c841ae13249f40bb3839b80e4df452ea36751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/libraries/Encryption.php:248-258 | system/libraries/Encryption.php:299-309 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Encryption.php:248\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Encryption.php"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"7896bcff5f58c025e337f5f540df5c738bce22530e23dc114943d249689d8831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): system/database/DB_query_builder.php:2034-2043 | system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php:327-336 | system/database/drivers/postgre/postgre_driver.php:535-544 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/DB_query_builder.php:2034\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"885e796a346f16ba947001bd9bd322987d45d6594d4a037266b90be618da888a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): system/core/Log.php:223-232 | system/core/Output.php:624-633 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Log.php"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"23afb2e3fcfe2d9807e1215932c447fcaedf3b071b0e999a2d015e9dc123e0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): system/database/drivers/cubrid/cubrid_forge.php:114-123 | system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php:114-123 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/cubrid/cubrid_forge.php:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/cubrid/cubrid_forge.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb163231f25d88dabf31e2acfacbea13680e58ffd69386fb06fa488f06ea0cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php:139-148 | system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php:163-172 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php:139\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc2f9b62cb7a7fb5410f6a7ed56097bf79a2229a4638b364deea14cd2b82106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php:123-132 | system/database/drivers/postgre/postgre_forge.php:111-120 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php:123\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b760513d8bd23e5aefd50fb43faad47162d70d5357245e54775beebe3507f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php:134-143 | system/database/drivers/sqlite3/sqlite3_driver.php:236-245 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php:134\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_sqlite_driver.php"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d05e080cb9e50ba92e02d1db33960026926c6f115c2c4d83d295f67cd225e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): system/libraries/Xmlrpc.php:988-997 | system/libraries/Xmlrpc.php:1628-1637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Xmlrpc.php:988\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Xmlrpc.php"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3d5f83a3cbb020e3bbb8cdd0d5cfac0d30cb8f2ec1d3aa082a05d8d0309c84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): system/libraries/Zip.php:210-219 | system/libraries/Zip.php:292-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Zip.php:210\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Zip.php"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"47dccb776c5b51550fc8fa2d258f2e97fa2b0f63066a0de24ceca9eff2be1bf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 13): system/database/drivers/cubrid/cubrid_driver.php:337-345 | system/database/drivers/mssql/mssql_driver.php:321-329 | system/database/drivers/mysql/mysql_driver.php:423-431 | system/database/drivers/mysqli/mysqli_driver.php:471-479 | system/database/drivers/oci8/oci8_driver.php:434-442 | system/database/drivers/pdo/subdrivers/pdo_cubrid_driver.php:150-158 | system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php:209-217 | system/database/drivers/pdo/subdrivers/pdo_mysql_driver.php:320-328 | system/database/drivers/pdo/subdrivers/pdo_oci_driver.php:229-237 | system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php:278-286 | system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php:233-241 | system/database/drivers/postgre/postgre_driver.php:436-444 | system/database/drivers/sqlsrv/sqlsrv_driver.php:339-347 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 13 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 13 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/cubrid/cubrid_driver.php:337\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/cubrid/cubrid_driver.php"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a03e92ca31fd3d5d4df4caf2871d5ea127c257052bf715f06cf0b5eccee17b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): system/database/drivers/cubrid/cubrid_forge.php:141-149 | system/database/drivers/mysql/mysql_forge.php:181-189 | system/database/drivers/mysqli/mysqli_forge.php:183-191 | system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php:141-149 | system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php:195-203 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/cubrid/cubrid_forge.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76341a537c8b25a7681e2e1b177c0510e3997442b87660d96e752dbf0fd04d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/core/Loader.php:420-429 | system/core/Loader.php:452-460 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e44a537f3e9ed2f4f308b6d3610b165fc140de561c73a55be99f3a1fcb8a0dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/core/Output.php:574-582 | system/core/Output.php:756-764 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/core/Output.php:574\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Output.php"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"192ab64a7761f7cb9bd2d7ccf063f13832408077528ba56d3cbeefa4fb8aac1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/database/DB_forge.php:575-583 | system/database/DB_forge.php:637-645 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/DB_forge.php:575\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_forge.php"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c12393bd1223fc0312607d1d9363af8957d537f7b6f905ed3eaa66f0bd2b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php:156-164 | system/database/drivers/postgre/postgre_forge.php:144-152 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php:156\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ba3f9b97beb856fe9561d163be318f421eaf2c0343922284a551c73cff2f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/libraries/Form_validation.php:765-773 | system/libraries/Form_validation.php:784-792 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Form_validation.php:765\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Form_validation.php"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76898259c681826ddaa086c0b211d1c71392ec55403d5c7fcaa938e93894f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): system/database/drivers/pdo/subdrivers/pdo_4d_driver.php:82-89 | system/database/drivers/pdo/subdrivers/pdo_cubrid_driver.php:89-96 | system/database/drivers/pdo/subdrivers/pdo_mysql_driver.php:100-107 | system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php:91-98 | system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php:94-101 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_4d_driver.php:82\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_4d_driver.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb0c6ddac8d2ef1c619c7ad1732ef3fb0e205bb5a2b5d303bfd741e99285ede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): system/database/drivers/ibase/ibase_forge.php:123-130 | system/database/drivers/pdo/subdrivers/pdo_firebird_forge.php:109-116 | system/database/drivers/pdo/subdrivers/pdo_sqlite_forge.php:133-140 | system/database/drivers/sqlite3/sqlite3_forge.php:119-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/ibase/ibase_forge.php:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/ibase/ibase_forge.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"871538467aa0de7b059120b6d3ff30abeab9ef13baf9eedf99bd16789675604d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): system/database/drivers/mssql/mssql_forge.php:90-97 | system/database/drivers/pdo/subdrivers/pdo_dblib_forge.php:88-95 | system/database/drivers/pdo/subdrivers/pdo_sqlsrv_forge.php:88-95 | system/database/drivers/sqlsrv/sqlsrv_forge.php:88-95 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mssql/mssql_forge.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b47b8f374b98eb9bd7e6740f378e5699339d89d7332228d163118391c223d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): system/database/drivers/mysql/mysql_forge.php:191-198 | system/database/drivers/mysqli/mysqli_forge.php:193-200 | system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php:205-212 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/mysql/mysql_forge.php:191\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mysql/mysql_forge.php"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e33ab55aa65ab6f469bc15d3bb0fadbcfd6b97a9754606df832fd40c53e2d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): system/database/drivers/ibase/ibase_forge.php:167-174 | system/database/drivers/pdo/subdrivers/pdo_firebird_forge.php:153-160 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/ibase/ibase_forge.php:167\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/ibase/ibase_forge.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05e1ea622d881590440ac3e549d55be172f4a8ec709d30c170ee083e6fdaffa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): system/database/drivers/pdo/subdrivers/pdo_sqlite_forge.php:229-236 | system/database/drivers/sqlite3/sqlite3_forge.php:216-223 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_sqlite_forge.php:229\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_sqlite_forge.php"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e226a1abb84efce550ece339461cd9f36124eb7bb6514249ba8c57ee63e1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): system/libraries/Email.php:1290-1297 | system/libraries/Email.php:1379-1386 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Email.php:1290\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b154cbd7307f4ed39fd9540d47b4d470270f3d23e09917873db9028df395ee9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): system/libraries/Image_lib.php:1379-1386 | system/libraries/Image_lib.php:1399-1406 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Image_lib.php"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"27efe9ce75db10cf1aec7417183b2366e2fc9631cda7789bbbbb12525db376b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): system/database/drivers/cubrid/cubrid_forge.php:199-205 | system/database/drivers/mysql/mysql_forge.php:211-217 | system/database/drivers/mysqli/mysqli_forge.php:213-219 | system/database/drivers/pdo/subdrivers/pdo_cubrid_forge.php:199-205 | system/database/drivers/pdo/subdrivers/pdo_mysql_forge.php:225-231 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/cubrid/cubrid_forge.php:199\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/cubrid/cubrid_forge.php"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36b0b9f8ff3f10af105321393ada3a2651b0c603ac8524c98accb26af841642"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): system/database/DB_query_builder.php:2052-2058 | system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php:345-351 | system/database/drivers/postgre/postgre_driver.php:553-559 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/DB_query_builder.php:2052\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":2052}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6e85a2e99927a5f8fcf486728591a7cf79e7e982996e2b3350ecea5a9e011e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php:163-169 | system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php:187-193 | system/database/drivers/sqlsrv/sqlsrv_driver.php:293-299 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php:163\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"78027ba751e63288a4d815e22bab58d9cfaca7e496c7ddbce426436a9b185019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): system/database/drivers/pdo/subdrivers/pdo_firebird_forge.php:147-153 | system/database/drivers/pdo/subdrivers/pdo_pgsql_forge.php:134-140 | system/database/drivers/postgre/postgre_forge.php:122-128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/database/drivers/pdo/subdrivers/pdo_firebird_forge.php:147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/pdo/subdrivers/pdo_firebird_forge.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c95092d31faecd1ce0273711319316d571e86f28e0f2dfbad2387197afbb542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): system/core/Loader.php:462-468 | system/database/DB.php:164-170 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/core/Loader.php:462\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/core/Loader.php"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"46def0650b97173df6a78edf3c78796eeb34958ac155d3c586592203afc9e5e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): system/database/drivers/mssql/mssql_driver.php:135-140 | system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php:143-148 | system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php:167-172 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/drivers/mssql/mssql_driver.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d5d6621081b0142edcac87655495dd28298a7573bc28fed616cb85761cab80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): system/libraries/Email.php:1124-1129 | system/libraries/Typography.php:133-138 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/libraries/Email.php:1124\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bdcc64ee70847e7db5b79ec98543cbbddaf8bdc3f6c7b114c9cbd682639dc9"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 158 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5df798e5be62fddb8579894e5662185de69d1bb02b7d5c92da5e38a64896d431"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6259833a00a99126f13c9d1a770a30c92e8893a78514ee29b2b0f2d6b1dcd046"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"227a644c47b6f431f3b8add7aaa849c58e75a8a293037902c6bac4e9db0d4d38"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b043be858185fe34ecf3425bc6e226a7194d36208795981ed848704aadeb354"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ee0c19c5afcbe5bb393508b2b72d1e536cfccf876159afabcff9714b4c242078"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5499a257ecf1797c4e7c6d29357bc048fb7c9cf7978eaa911e02d2dc873e5913"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e0456e43362dfd41516e1ff8df0d0e3fa7eacc206791eed2a62d93be679c697"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c34a5bfd0256715f6d953f5e0e80e9f3be28eeba8bfc5207c94afa60a8035d75"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"01a8ebca8a7721b07f7462c9e961eb769c18aaca69aec0fbac033cc549a43854"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c353c33a13f122d3e178598a5256155bc146a68e937a4893f04766925382ebe1"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d17b077cf77bc4a3a0393771122a1ddadbcd9c732a856f283454b6092fd77a3f"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cbc8c909d23613ac7eabff5cb3a2aac2e778b7cb6a5cef670bb8265ab5de8145"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f5dd26c0bbb5d30870bf8564473d1fe1563580f71df8d35e34ba719dac9f652a"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25db2868c8449edc7b8d8a24c935acdf991438268830ea4352c2378ea0a87928"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c282b43a637a433615c3afddea234aec905c906bdbaaef6b9e8970c1da004c79"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e4e8fb1d4e520d594886a6a572ff6f47732887fd3af3a34a0fb6d8ca2ecf5556"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"45f9a5adbe4566900c2db5cca6c588362331367fb766059d2629d3a4410cfee4"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aceafabfb81da2bf60a63a86bf388f3342697985af8f2b3032e4edb8ea24e216"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d02c224a9056162aa2936b3fca7ac9e72b915f86de7016bbbb8a72ab6ad2204e"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8474629be63dcc50b604ffea5a2f1592e3e97ecc691229af1b6ddd1acdb83676"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cdd47cf093190d59f3a492fd49e1cbc724492c5097fabd99b740fbb2c738e736"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a0d023cd54db42afc103e46a987568270714b47e010ed507cf7b7a4b5ffc2dc1"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3744596d15362d01d77c943ce5f9c3d560e13c2756a5686613888216d75a34e9"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31caa9620f4d5f0cf631d549b1fc535fa1e89119a05b2b32106f135739d950c1"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"232a0d6532fc65c7a335aae1f12580875b74bf1a40e79057478b5beb904c3fdf"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7998a540e176aea78cd9cdf9efe63145f62783172c83851b56606cf947b7eb0"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0161b633ad782b6c83943818386e0d9f682596e5d152cee0ab976c33da0ee82e"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e556cbeedf7c9b501fcfc96cc4530373a58ba4bd97368c05ceafebc7570aaa55"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1acec1698aa684d7d9bf4e479aaadfc527a785ad29c7d545f21204ee5a56e1a6"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bdf967cfb7fd9d8746b5d1183e208258f522964357b2a122cfd039f535938c95"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8cb0eb21dfb738b0b99bec5ea76c7839f6ace9e22b39241138640807a006743d"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ea4ade65b8e86d511dc034058993f5983bcbb74696992c463172795adb5fcdb"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"44c90451a7948e5880d8260e936f56f3a480b647e1ee42b7470024408225f9c4"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b541a7e26ff68f0ef0eb35d6bf05eb31f7821197804326cdc58ec12ffda76578"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b899cf3d44340182ab52d42f821e68c289b3252006a96fbd84be11af552d83c"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b72eaa8015034e7228a5a747e3e1f69a0866400536c5fbfe20b40317199df71b"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ab88a6e2fa05e2dc13cf8c2cbb30d5f53754f3a86310cfad75f673faede4df4a"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 164 of 164 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 164 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_query_builder.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90570a07f12bff7ab81c30c634709daa1e0ad406049dc48fd91022678a5e137"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/libraries/Email.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e298ae303081ed3ef7952137531fb4761dadc7441c138d2096b13806b157b4d"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/database/DB_driver.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa07a2a4218d29d2974dd8aef0d01e24bf887bf1cc399af6ea91700ae3e592df"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"CWE-319","shortDescription":{"text":"CWE-319"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-918","guid":"2e9b9091-5a0f-dc57-b644-7ad04bd56e64","name":"CWE-918","shortDescription":{"text":"CWE-918"},"helpUri":"https://cwe.mitre.org/data/definitions/918.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":37,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}