{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"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"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"MultimediaUpload.uploadFiles (cyclomatic 68): MultimediaUpload.uploadFiles has cyclomatic complexity 68 (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":"libs/MultimediaUpload.class.php"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bdda8532c34e59a3caea1fd949b5434869b62a6ba982a8b5f9b5a345ff0a2e5"}},{"ruleId":"D1","level":"warning","message":{"text":"Account.setPlan (cyclomatic 58): Account.setPlan has cyclomatic complexity 58 (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":"libs/Account.class.php"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fde5a86566dfedd93a0b8a1ab0a8fe864c11aaa597d8ea407cb5452d6207de3"}},{"ruleId":"D1","level":"warning","message":{"text":"Account.applyRenewalForInvoice (cyclomatic 38): Account.applyRenewalForInvoice has cyclomatic complexity 38 (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":"libs/Account.class.php"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"9478ee61f63d0b447754111c71b333a9764bcc24ce1292edecf600431d03d033"}},{"ruleId":"D1","level":"warning","message":{"text":"Plans.init (cyclomatic 36): Plans.init has cyclomatic complexity 36 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Plans.class.php"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd117b3bd527e35db988e38c09c487b7f363ddbc9ccf6eee4f8b570bdb01034e"}},{"ruleId":"D1","level":"warning","message":{"text":"UploadValidator.validate (cyclomatic 35): UploadValidator.validate has cyclomatic complexity 35 (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":"libs/Upload/UploadValidator.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e30dc217d82cb6ad1ebef16574a2b8e3599a7b66923783d09a7a455dd96ff2b"}},{"ruleId":"D1","level":"warning","message":{"text":"routes_account_dashboard.dashboardGenerateStabilityImage (cyclomatic 32): routes_account_dashboard.dashboardGenerateStabilityImage has cyclomatic complexity 32 (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":"api/v2/routes_account_dashboard.php"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"642bb7e001c425db11181761e2f98d8145c1fd83619e42c9143ac8438f824587"}},{"ruleId":"D1","level":"warning","message":{"text":"EpubCoverExtractor.extractFromSvgCover (cyclomatic 27): EpubCoverExtractor.extractFromSvgCover has cyclomatic complexity 27 (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":"libs/EpubCoverExtractor.class.php"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c80d3a564905634b6aa072f2242c82b99dc0b343de6eda0971977c09b5c1a5"}},{"ruleId":"D1","level":"warning","message":{"text":"S3Multipart.completeMultipartUpload (cyclomatic 27): S3Multipart.completeMultipartUpload has cyclomatic complexity 27 (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":"libs/S3Multipart.class.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"9156102c3a16b52581deb8f0f1b4d1f461bcc6fdb05c018caeffb0e6b0a3689c"}},{"ruleId":"D1","level":"warning","message":{"text":"Account.updateAccountDataFromNostrApi (cyclomatic 26): Account.updateAccountDataFromNostrApi 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":"libs/Account.class.php"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a922f1336d58180368eb7caff71bcf93574c30497ce0503ba46c494938b837"}},{"ruleId":"D1","level":"warning","message":{"text":"DuplicateDetector.check (cyclomatic 26): DuplicateDetector.check has cyclomatic complexity 26 (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":"libs/Upload/DuplicateDetector.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a662aa7f69f59c4b8e7c63c5c5c3850583cb74f81117cf80b3c78604c0830fec"}},{"ruleId":"D1","level":"warning","message":{"text":"helper_functions.createNip96SuccessResponse (cyclomatic 24): helper_functions.createNip96SuccessResponse has cyclomatic complexity 24 (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":"api/v2/helper_functions.php"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"3151174708192efd73459f87b33a67d5cd79129a05d124c3f89a91a15499e7a6"}},{"ruleId":"D1","level":"warning","message":{"text":"funcs.curlUserUrl (cyclomatic 24): funcs.curlUserUrl 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":"libs/utils.funcs.php"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"14740cb11e2d7da250d1b7f900b64f4fb7ad9d6e585ab103956f76f05eba5fc6"}},{"ruleId":"D1","level":"warning","message":{"text":"funcs.checkUrlSanity (cyclomatic 22): funcs.checkUrlSanity has cyclomatic complexity 22 (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":"libs/utils.funcs.php"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5831ce2fa8c6a58b7a7a43a8308f6956de556b1934861aacf5202592ed1314"}},{"ruleId":"D1","level":"warning","message":{"text":"routes_account_dashboard.dashboardFetchAiSourceImage (cyclomatic 21): routes_account_dashboard.dashboardFetchAiSourceImage 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":"api/v2/routes_account_dashboard.php"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd88293521bb64bebbf12cc64d4df82908ade44d0303fa82ff9d5596fb5e255"}},{"ruleId":"D1","level":"warning","message":{"text":"EpubCoverExtractor.extractCoverBytes (cyclomatic 21): EpubCoverExtractor.extractCoverBytes has cyclomatic complexity 21 (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":"libs/EpubCoverExtractor.class.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e242f4631a3a6653df5987bf46d4afea98974f4532e48269327c98942181406e"}},{"ruleId":"D1","level":"warning","message":{"text":"S3Multipart.completeImageUpload (cyclomatic 21): S3Multipart.completeImageUpload has cyclomatic complexity 21 (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":"libs/S3Multipart.class.php"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"2712f73ec6c270f820355d8c05ddc69d843bb5740d52e8d074fe41bfcddf6d34"}},{"ruleId":"D1","level":"warning","message":{"text":"MultimediaUpload.uploadFileFromUrl (cyclomatic 20): MultimediaUpload.uploadFileFromUrl has cyclomatic complexity 20 (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":"libs/MultimediaUpload.class.php"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"71aa2fe8324119392460cb0d0139477a4ee09d4ef3cdb972070a926b57ef1ad9"}},{"ruleId":"D1","level":"warning","message":{"text":"routes_accounts.backupManifestForUuid (cyclomatic 19): routes_accounts.backupManifestForUuid 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":"api/v2/routes_accounts.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb528bffce2efd752e60efe014ec078ca16cb0658449c3e36c22b693654dc80"}},{"ruleId":"D1","level":"warning","message":{"text":"pagination.handle_pagination (cyclomatic 18): pagination.handle_pagination 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":"components/pagination.php"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9c80262c09cf92034b9f54b4b7996795f904fc63b1f8710e332417373fe49c"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageCatalogManager.deleteImageRecords (cyclomatic 17): ImageCatalogManager.deleteImageRecords 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":"libs/ImageCatalogManager.class.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"05669cd21f5e3babccd1c86161cd9791d065478ece1f52bfe19a9f12c6f71abe"}},{"ruleId":"D1","level":"warning","message":{"text":"zap.zap_check_event (cyclomatic 16): zap.zap_check_event 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":"creators/creator/zap.php"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"a652281445785a964da63a7fbacfbdc595c69e5d8e4b73f52087af9764d40873"}},{"ruleId":"D1","level":"warning","message":{"text":"MultimediaUpload.uploadProfilePicture (cyclomatic 16): MultimediaUpload.uploadProfilePicture 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":"libs/MultimediaUpload.class.php"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaafe5315caee50f68925abb9da6e998b35d40aad4045e5d5366fc252b2b3ee"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimediaUpload.uploadFiles (cognitive 130): MultimediaUpload.uploadFiles has cognitive complexity 130 (threshold 15). Drivers by points: if/else 28 (62 pts), ternaries 12 (33 pts), boolean chains 18, error handling 5 (12 pts), loops 2 (3 pts), match/switch 1 (2 pts) (nesting depth added 64). 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":"libs/MultimediaUpload.class.php"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b933f43a51a892c9c077f2bc8499d8fd0a67900755c39623bb148700d5b2b725"}},{"ruleId":"D2","level":"warning","message":{"text":"Account.setPlan (cognitive 78): Account.setPlan has cognitive complexity 78 (threshold 15). Drivers by points: if/else 30 (45 pts), boolean chains 22, error handling 2 (6 pts), ternaries 3 (4 pts), match/switch 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":"libs/Account.class.php"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7c5f16325681624beb8c936ff259a667e31a7cb297d8eaeeb344fbe38312e5"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadValidator.validate (cognitive 55): UploadValidator.validate has cognitive complexity 55 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 14, ternaries 3 (10 pts), error handling 4 (8 pts) (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Upload/UploadValidator.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9209790b7f09b52895e2833f1c2ef111f7a51cbccf81a19d21e067c8b9e4ad"}},{"ruleId":"D2","level":"warning","message":{"text":"Account.applyRenewalForInvoice (cognitive 53): Account.applyRenewalForInvoice has cognitive complexity 53 (threshold 15). Drivers by points: if/else 20 (31 pts), ternaries 5 (9 pts), boolean chains 7, error handling 3 (5 pts), match/switch 1 (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":"libs/Account.class.php"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01af1253e309a24286bd831424018d59db75e7ebb51776de3e83463d4e6dbd9"}},{"ruleId":"D2","level":"warning","message":{"text":"funcs.curlUserUrl (cognitive 49): funcs.curlUserUrl has cognitive complexity 49 (threshold 15). Drivers by points: if/else 9 (28 pts), ternaries 5 (11 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 26). 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":"libs/utils.funcs.php"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"5557f3fa2d28bdc235c4e9f93183818f86ca073daf714dfd1e4390cf4d80d80d"}},{"ruleId":"D2","level":"warning","message":{"text":"EpubCoverExtractor.extractFromSvgCover (cognitive 42): EpubCoverExtractor.extractFromSvgCover has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 11, ternaries 2 (4 pts), loops 1 (2 pts) (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":"libs/EpubCoverExtractor.class.php"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acb71634263071c491bb9870036fd87dba93fed00252e8c505d47e0b96a879f"}},{"ruleId":"D2","level":"warning","message":{"text":"Plans.init (cognitive 42): Plans.init has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 19, if/else 11 (18 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 9). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Plans.class.php"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4656ea03b8a6a9e9e4ee3f9fa146650c93a39e9c4ac9dd2858bbee549631b2c"}},{"ruleId":"D2","level":"warning","message":{"text":"S3Multipart.completeMultipartUpload (cognitive 35): S3Multipart.completeMultipartUpload has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (19 pts), error handling 6 (9 pts), ternaries 3, boolean chains 2, loops 1 (2 pts) (nesting depth added 7). 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":"libs/S3Multipart.class.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4daacabba3d09147d241e8b768fc5aa0f799bed7e9051a6f82fa222284bf548"}},{"ruleId":"D2","level":"warning","message":{"text":"pagination.handle_pagination (cognitive 34): pagination.handle_pagination has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 2, loops 1, ternaries 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":"components/pagination.php"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3c433e9448a3ac492e2ea1c8c260aea18e658bcf8647c45122b13a1fb322f8"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoInformation.get_video_orientation (cognitive 34): VideoInformation.get_video_orientation has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (17 pts), ternaries 2 (9 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 20). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/VideoTranscoding.class.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"b01686c418c265e50d8b555e8c0a9a7303151c11321e453eff952390684fe4ec"}},{"ruleId":"D2","level":"warning","message":{"text":"routes_account_dashboard.dashboardGenerateStabilityImage (cognitive 33): routes_account_dashboard.dashboardGenerateStabilityImage has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22 (24 pts), boolean chains 9 (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":"api/v2/routes_account_dashboard.php"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"836e43c7653f45f583e44ccf9c8ce63999aad54a3856bd3769d3d811976e31eb"}},{"ruleId":"D2","level":"warning","message":{"text":"Account.updateAccountDataFromNostrApi (cognitive 32): Account.updateAccountDataFromNostrApi has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 12, ternaries 6 (12 pts), if/else 6 (7 pts), loops 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":"libs/Account.class.php"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fdbeb169f312fbfd1d29005a3ccdc1880ed3424ddefec1b5642a513b789b02"}},{"ruleId":"D2","level":"warning","message":{"text":"DuplicateDetector.check (cognitive 30): DuplicateDetector.check has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 9, ternaries 5 (6 pts), error handling 1 (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, 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":"libs/Upload/DuplicateDetector.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f564faf26beb21052a042373e5c061862979e96e7f7511fdee7861d2a1ad74fd"}},{"ruleId":"D2","level":"warning","message":{"text":"routes_account_dashboard.dashboardFetchAiSourceImage (cognitive 29): routes_account_dashboard.dashboardFetchAiSourceImage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 9, loops 1, ternaries 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":"api/v2/routes_account_dashboard.php"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82d5fe4fe3267e2956167da352f0736607de5e9de541ded53e56660a6f16592"}},{"ruleId":"D2","level":"warning","message":{"text":"routes_accounts.backupManifestForUuid (cognitive 26): routes_accounts.backupManifestForUuid has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 5 (7 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 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":"api/v2/routes_accounts.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"235e05240291ecc56cd697764885b5bc09a737c79081af44c4f5f04d1d37463f"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageCatalogManager.deleteImageRecords (cognitive 25): ImageCatalogManager.deleteImageRecords has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), error handling 2 (4 pts), ternaries 1 (2 pts), boolean chains 1, 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":"libs/ImageCatalogManager.class.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54b85f1db0e0f555139255f4bb757bb5374ad168c24a4846e6d5ab367a8ec6c"}},{"ruleId":"D2","level":"warning","message":{"text":"helper_functions.createNip96SuccessResponse (cognitive 24): helper_functions.createNip96SuccessResponse has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 2 (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":"api/v2/helper_functions.php"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc00bdbaebf6ee19bcbafc22774eea2663c914f989b6491c8a8bebf0abcddcb"}},{"ruleId":"D2","level":"warning","message":{"text":"funcs.checkUrlSanity (cognitive 24): funcs.checkUrlSanity has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 6, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/utils.funcs.php"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c93534f680e9fefff1832d6695cf6f223b9f104c8a4396259d1cf4f32430a7"}},{"ruleId":"D2","level":"warning","message":{"text":"IpAccessControl.normalizeCidr (cognitive 22): IpAccessControl.normalizeCidr has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (20 pts), 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":"libs/IpAccessControl.class.php"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b96e8e7a321ac961751d6aa8c19fb7a6b15d06c899c8fdcbc35b9517eace7c0"}},{"ruleId":"D2","level":"warning","message":{"text":"MultimediaUpload.uploadFileFromUrl (cognitive 22): MultimediaUpload.uploadFileFromUrl has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, error handling 3, ternaries 2 (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":"libs/MultimediaUpload.class.php"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83798c0d207e34d46d8a78b064c8ee2e925d9dc37ca4f5f2732e9029bd68c24"}},{"ruleId":"D2","level":"warning","message":{"text":"S3Service.multipartCopyObject (cognitive 22): S3Service.multipartCopyObject has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (5 pts), error handling 2 (4 pts), ternaries 2 (4 pts) (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":"libs/S3Service.class.php"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbee4e6dcb4339333578af0ed46eff72674f42db295e24af99794965564e8e1"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageProcessor.convertHeicToJpeg (cognitive 22): ImageProcessor.convertHeicToJpeg has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/imageproc.class.php"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bef8e85e108557c822ab8e9ec6adacd1a1ca1aa6f0d2ae918b06dae629a374b"}},{"ruleId":"D2","level":"warning","message":{"text":"class.get_image_location (cognitive 21): class.get_image_location has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8 (16 pts), boolean chains 3, if/else 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":"libs/PhotoDNA.class.php"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"e591def0748c58fba4927cd1ea3fd18e78ecf9603435e4dcdcaacb79a756dd51"}},{"ruleId":"D2","level":"warning","message":{"text":"FileInputNormalizer.normalizeFiles (cognitive 21): FileInputNormalizer.normalizeFiles has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (4 pts), 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":"libs/Upload/FileInputNormalizer.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"597b8ef4c1e566a28e1d1c066f0b7ae380df95ebe280513af2ef7079cc13dc92"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoInformation.get_video_color_parameters (cognitive 21): VideoInformation.get_video_color_parameters has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 1 (2 pts), loops 1 (nesting depth added 13). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/VideoTranscoding.class.php"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd246f58108c4e52df00c4c3bb801be3e2c6b99b6eb8bae5ec24562b2fb94f3a"}},{"ruleId":"D2","level":"warning","message":{"text":"EpubCoverExtractor.extractCoverBytes (cognitive 20): EpubCoverExtractor.extractCoverBytes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, boolean chains 6, error handling 1, ternaries 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":"libs/EpubCoverExtractor.class.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"090e839fa0231a854737746fa0ac1685c4e4a4908973dfd6841852771bc4fd7b"}},{"ruleId":"D2","level":"warning","message":{"text":"S3Multipart.completeImageUpload (cognitive 20): S3Multipart.completeImageUpload has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6, ternaries 4 (5 pts), error handling 4, boolean chains 3, match/switch 1 (2 pts) (nesting depth added 2). 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":"libs/S3Multipart.class.php"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"c148bfb5f537a388b7f292729d8666db780eabb8ab8f60212a3cb5c9b64e5124"}},{"ruleId":"D2","level":"warning","message":{"text":"zap.zap_check_event (cognitive 19): zap.zap_check_event has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, loops 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":"creators/creator/zap.php"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86f986eebb0141599fa1d0ec347e46811a2a5566b890a90e49a11a1ddfad78e"}},{"ruleId":"D2","level":"warning","message":{"text":"routes_account_dashboard.dashboardGenerateAIImage (cognitive 18): routes_account_dashboard.dashboardGenerateAIImage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (17 pts), 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":"api/v2/routes_account_dashboard.php"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5db37364a92430896978a6e8c6729d041452fef0ce93c98d3573022ce1eb46"}},{"ruleId":"D2","level":"warning","message":{"text":"UsersImagesFolders.findFolderByNameOrCreate (cognitive 18): UsersImagesFolders.findFolderByNameOrCreate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), error handling 1 (2 pts), 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":"libs/db/UsersImagesFolders.class.php"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccf7c6f1e72045bea7740e12a82ba2b71f96dc29b13ca4f39b92e5f4e19e674"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageProcessor.stripImageMetadata (cognitive 18): ImageProcessor.stripImageMetadata has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), error handling 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":"libs/imageproc.class.php"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7915ea883e58b209dc841d9c1ab93859592089040ba4267ec0bd1efebc6365"}},{"ruleId":"D2","level":"warning","message":{"text":"IpAccessControl.extractClientIp (cognitive 17): IpAccessControl.extractClientIp has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 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":"libs/IpAccessControl.class.php"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"719abba4f568e4de51b083314abc246aa30eb2c618addf310cd849ea64c0ecd6"}},{"ruleId":"D2","level":"warning","message":{"text":"NcmecReport.sendCurlRequest (cognitive 17): NcmecReport.sendCurlRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (16 pts), 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":"libs/NCMECReportHandler.class.php"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a82ce2d4a5f39c456a5fd87639ae374cccc38ca60b8bfe726c7df072ffe044"}},{"ruleId":"D2","level":"warning","message":{"text":"NostrAuthMiddleware.process (cognitive 17): NostrAuthMiddleware.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (2 pts), boolean chains 1, error handling 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":"libs/NostrAuthMiddleware.class.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1951704b64f4e6eb2a6b4e15b034bb956f63e522403bef3431d515637548047e"}},{"ruleId":"D2","level":"warning","message":{"text":"S3Service.uploadToS3 (cognitive 17): S3Service.uploadToS3 has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, error handling 1, loops 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":"libs/S3Service.class.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf0c86b426221a587dfa2809cd41c2abaac2d0f5697e499aa3e7a656ed2f7cb"}},{"ruleId":"D2","level":"warning","message":{"text":"Permission.bridgeEcosystemSession (cognitive 17): Permission.bridgeEcosystemSession has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/permissions.class.php"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"65fc071288f2716a26861e85530612259acca667222f2a790372323285cdbac7"}},{"ruleId":"D2","level":"warning","message":{"text":"funcs.isPublicIpAddress (cognitive 17): funcs.isPublicIpAddress has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6 (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":"libs/utils.funcs.php"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb12734194adbaaa2c8f179f81724ac1985fbf15e4552c58facb07cbe64c1c1"}},{"ruleId":"D2","level":"warning","message":{"text":"EpubCoverExtractor.findCover (cognitive 16): EpubCoverExtractor.findCover has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, loops 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":"libs/EpubCoverExtractor.class.php"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"2201d646d5ebbf1c1ca2a1056e00a0fdfbf74f539133bd39610230877500e52d"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoRepackager.isAlreadyOptimized (cognitive 16): VideoRepackager.isAlreadyOptimized has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 1 (2 pts) (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":"libs/VideoRepackager.class.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50b59f18b6a0a170c4a309cb90ebaa2261a62babe58497fe9745152daa1894b"}},{"ruleId":"D2","level":"warning","message":{"text":"VideoRepackager.hasFastStart (cognitive 16): VideoRepackager.hasFastStart has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 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":"libs/VideoRepackager.class.php"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bee026c56239f926f59648e7826d4e6da4b63e442dc00b1d3a52628c594373"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Account: TooManyMethods \u2014 106 methods. The bar is 30 methods; this is 76 over it, 3.53\u00D7 the bar. 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":"libs/Account.class.php"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"720f2cfca5aefc88458d6bfd5190bc1adcfa79f7f9c8561cb101b4cf28b3c01b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: v2/routes_accounts_admin.php: FileTooLong \u2014 1628 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1128 over it, 3.26\u00D7 the bar. 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":"api/v2/routes_accounts_admin.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25a56199d190e7349166ba98f07c693efabf57ab84d854d36e2f35eaf275b7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: creator/index.php: FileTooLong \u2014 1604 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1104 over it, 3.21\u00D7 the bar. 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":"creators/creator/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09327ddcdd774c84f223b06f20755448fceedba72409ef10a9fe1886c218db8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Account: ClassTooLong \u2014 1244 significant lines (blank, comment-only and punctuation-only lines excluded), 106 methods. The bar is 400 significant lines; this is 844 over it, 3.11\u00D7 the bar. 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":"libs/Account.class.php"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bb6327d6e647d831b81b738337f37020c8ac4b6b96619e3a6c1ce7bcf6502c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: v2/routes_accounts.php: FileTooLong \u2014 1532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1032 over it, 3.06\u00D7 the bar. 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":"api/v2/routes_accounts.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a544a05f73176fd5faaf67543aa179294b6880834010815284fc876c77f034a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libs/Account.class.php: FileTooLong \u2014 1283 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Account (102-2926). The bar is 500 significant lines; this is 783 over it, 2.57\u00D7 the bar. 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":"libs/Account.class.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddf95d4b589a7e7654386f92c72b0b59690a32e73f0ff7840dcee534c9c0565"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultimediaUpload.uploadFiles: MethodTooLong \u2014 uploadFiles runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/MultimediaUpload.class.php"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b71b16f7c23bf8d839c85bf0af4dfb3df88321e5e2b77c28609ecdd5d72530"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libs/S3Service.class.php: FileTooLong \u2014 737 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: S3Service (28-844). The bar is 500 significant lines; this is 237 over it, 1.47\u00D7 the bar. 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":"libs/S3Service.class.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2be2cf2c7db72702bb3c12be8f28cc78a844565015e32d623df5f12329247c3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MultimediaUpload: ClassTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 185 over it, 1.46\u00D7 the bar. 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":"libs/MultimediaUpload.class.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbd42cae2c4bae5dea5ca67ef226a22bb519cca400cee75da96d64ceacb0696"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: S3Multipart: ClassTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 147 over it, 1.37\u00D7 the bar. 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":"libs/S3Multipart.class.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b36882c6e9d214ecb5b663b599e229db44ac0253ec8c11aecc3b558871380b3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Plans.init: MethodTooLong \u2014 init runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Plans.class.php"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"6045cbb9fad1c915212313cb3f5ad4f5e014502653e46a4d5d86a332df7b84a1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Account.setPlan: MethodTooLong \u2014 setPlan runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":1946}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed5542a6ae64318e6170fe5f403018e28bef889a9a4ae95a82a82932a169ded"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libs/MultimediaUpload.class.php: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MultimediaUpload (44-1013). The bar is 500 significant lines; this is 107 over it, 1.21\u00D7 the bar. 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":"libs/MultimediaUpload.class.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83b065d53a66f62259fae796a4bd6ace79eb605d3aa9dee1fa8e02de9f06dda"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: S3Service: ClassTooLong \u2014 473 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 73 over it, 1.18\u00D7 the bar. 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":"libs/S3Service.class.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7859deb4e421be9acfe96fef63860efd055a353e35c21e480d80892aee1d5608"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: S3Multipart.completeMultipartUpload: MethodTooLong \u2014 completeMultipartUpload runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/S3Multipart.class.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8be0b305dd5bb8675d87b8bb30dc03134a09aad9ae5112f5acf8f7c76e6dfe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IpAccessControl: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. 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":"libs/IpAccessControl.class.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb52dc5c87165f4dca5118e1fbec810318e809951fc11ba5b63677feccc7cd9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libs/NCMECReportHandler.class.php: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 66 over it, 1.13\u00D7 the bar. 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":"libs/NCMECReportHandler.class.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be62e3bdbeda800e715252709b1b3b3cd8bfb65fab43ab3f6c68f9c3800ad869"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: libs/S3Multipart.class.php: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: S3Multipart (58-1206). The bar is 500 significant lines; this is 66 over it, 1.13\u00D7 the bar. 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":"libs/S3Multipart.class.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf34c569ec30cb4e4fcbaf4d92eae7deb8d6fa5625054e408282e7172380adec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Account.applyRenewalForInvoice: MethodTooLong \u2014 applyRenewalForInvoice runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1ca6ded45e96bf2d0162cc21ce453a5ecd4a39187ae3847cf4de3f2f207b9d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: v2/routes_account_dashboard.php: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 22 over it, 1.04\u00D7 the bar. 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":"api/v2/routes_account_dashboard.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b23802b81ef611b8014870bc172911542abad3d234ba20536eb2c5f72fb3e7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: UsersImagesFolders.getFoldersWithStats: MethodTooLong \u2014 getFoldersWithStats runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/UsersImagesFolders.class.php"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7f2a4f8ef28128fbe403219bcf7b9d3b4270cdcd2c3e4c1814b794b37a185d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): libs/Account.class.php:2720-2752 | libs/Account.class.php:2767-2797 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":2720}}}],"partialFingerprints":{"codehealthFindingId/v1":"b175f7f90b1fc82f079fe6b71f882b01381bd62efc0c97e6d4160153401e72d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): libs/db/DatabaseTable.class.php:67-103 | libs/db/DatabaseTable.class.php:132-164 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/DatabaseTable.class.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9609f56581a74239fd45ea8e6b87f9141808aa9a56b5e15c76859e85c615085"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): libs/HmacAuthHandler.class.php:104-143 | libs/HmacAuthHandlerBodyless.class.php:101-131 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/HmacAuthHandler.class.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bbba87848ab41065abf1bf45f4b3ee8da2083cbbac12dbd5cc97322ac4fd1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): libs/Account.class.php:1009-1038 | libs/Account.class.php:1056-1079 | libs/Account.class.php:1104-1145 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"3242a40070989a0374f814c490bd7beee38f9adaa3aa87937c46cd5706289808"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): libs/Account.class.php:424-455 | libs/Account.class.php:2941-2969 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"313965bb698a3dd36c557cdc6deacdb3033e5913ac6392163211b57c403003b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): libs/BlossomFrontEndAPI.class.php:99-132 | libs/Credits.class.php:58-87 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/BlossomFrontEndAPI.class.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1054368c04fe461b17e152f4c5c2f4893767652776c4e73bb9641242d1270527"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): libs/db/DatabaseTable.class.php:108-127 | libs/db/DatabaseTable.class.php:169-191 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/DatabaseTable.class.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8751bdec03bb5425787ad3ca25ff115ae837f1423fed30ee4cdd505ebf38bfb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): libs/db/UsersImages.class.php:156-186 | libs/db/UsersImages.class.php:198-230 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/UsersImages.class.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5921717f4e5f902ca29d1b99c77b773b15a258c5486d35a47bd62f8738a1dea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): libs/Upload/MediaProcessor.php:193-223 | libs/Upload/MediaProcessor.php:240-268 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Upload/MediaProcessor.php"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba0fdd8e19cf9160f2bf744f8023ad1986ab959b26e6fe0b2cfe9c5d4995fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): libs/IpAccessControl.class.php:381-400 | libs/IpAccessControl.class.php:510-524 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/IpAccessControl.class.php"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce963c9c87d8993fd2620eb3ad01a96dc7ff1f5682876407b9fd49c02ed4c63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): libs/ImageCatalogManager.class.php:246-264 | libs/ImageCatalogManager.class.php:343-367 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/ImageCatalogManager.class.php"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"d403ffc588a96b49af9ed521126c5df382100444146d6c3dd38bafff3f778de4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): libs/Account.class.php:2813-2825 | libs/Account.class.php:2841-2853 | libs/Account.class.php:2873-2888 | libs/Account.class.php:2907-2924 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":2813}}}],"partialFingerprints":{"codehealthFindingId/v1":"a819c76b33bbdf5669f1e73e8bc9424391cf16b74ba888f0e9e15f503840a5c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): libs/Account.class.php:718-738 | libs/Account.class.php:743-763 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"9598f7c86d7dcc60df10b8e4a6098fa8095392491a9fa280d1bb78648a284dfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): libs/db/Promotions.class.php:97-111 | libs/db/Promotions.class.php:116-130 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/Promotions.class.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada307248bd9b6b383029de83a5df0a97096e1468586aa9c83f063d39b1fed41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): libs/HmacAuthMiddleware.class.php:36-64 | libs/HmacAuthMiddlewareBodyless.class.php:35-55 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/HmacAuthMiddleware.class.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af0dd3d63262e1295b0b87af53fb4825f88165be39bddbcd59ed9173ba5d617"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): libs/db/UploadsData.class.php:127-145 | libs/db/UploadsData.class.php:177-199 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/UploadsData.class.php"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"78566842a0066b933446499eae1f9017e669a81e7ab51dbe93ba6149cec579ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): libs/BlossomFrontEndAPI.class.php:148-169 | libs/Credits.class.php:103-118 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/BlossomFrontEndAPI.class.php"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c5a00f0c65bb86da1ef10692a3469a3c0ea8d81a511f476788b9604578bdb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): libs/db/UploadsData.class.php:61-121 | libs/db/UsersImages.class.php:44-69 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/UploadsData.class.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce419759c809094d90dbe6a6c78b4ad69c77cf0e5619ce2b60c3d27a9f73427f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): libs/IpAccessControl.class.php:410-422 | libs/IpAccessControl.class.php:534-544 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/IpAccessControl.class.php"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"260ce47b8b2c0594c20e37855c7d4ac6c42f54b9e14573366fc2a87984cf6f50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): libs/WorkerEventsClient.class.php:89-97 | libs/WorkerEventsClient.class.php:132-136 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/WorkerEventsClient.class.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69e68127e73a35ebb7c68d233b67d61749a88afd02be7a3afcb27201bf3d61b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): libs/Account.class.php:188-200 | libs/utils.funcs.php:660-668 | libs/utils.funcs.php:677-685 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5697fa73d5d23fe039cbcdc3037a4f515a189692f5c17b49b245c296760b017"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): libs/db/UploadsData.class.php:150-158 | libs/db/UploadsData.class.php:164-172 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/UploadsData.class.php"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"230341da597ead527ff48c1c6bdff419b498cc016aa8715aa37e6b18b1dbdc20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): libs/Upload/FileInputNormalizer.php:215-225 | libs/Upload/TempFileManager.php:94-102 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Upload/FileInputNormalizer.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7178fc32a2f38cef2b8c825311fe9a2ff42f6d37de0b22ebf9f3440c37590b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 7\u002B corresponding lines): libs/DeleteMedia.class.php:142-150 | libs/DeleteMedia.class.php:155-162 | libs/DeleteMedia.class.php:168-176 | libs/ImageCatalogManager.class.php:42-49 | libs/ImageCatalogManager.class.php:379-385 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/DeleteMedia.class.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"76fb6a2786641a605892ccdda109133b84ed61002adcd7400845c4bb26ea4f69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): libs/HmacAuthHandler.class.php:25-32 | libs/HmacAuthHandlerBodyless.class.php:25-31 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/HmacAuthHandler.class.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd17fa059224422f3cc9b21ffd183ced6eb0ba5019b71a2cd94fca236fb76ced"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): libs/S3Service.class.php:899-933 | libs/S3Service.class.php:946-979 \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 \u0060libs/S3Service.class.php:899\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":"libs/S3Service.class.php"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"73132ec554fce508ac2efc95f561d02e4545b6ec8c9dab903e14b5e2c29b353d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201331 lines \u00D7 2): libs/S3Service.class.php:473-503 | libs/S3Service.class.php:509-534 \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":"libs/S3Service.class.php"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce6bd97905f20b4c8f949b7b812fc42a3dafbae82bff73ac77b4e83fae38714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): libs/HmacAuthHandler.class.php:43-71 | libs/HmacAuthHandlerBodyless.class.php:42-69 \u2014 before extracting anything, compare \u0060libs/HmacAuthHandler.class.php\u0060 and \u0060libs/HmacAuthHandlerBodyless.class.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/HmacAuthHandler.class.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7f284c7c9a5324b504d7170ee4eec23a2a29c95d593d44a204336a75333d0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): libs/db/UsersImages.class.php:156-180 | libs/db/UsersImages.class.php:198-224 \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 \u0060libs/db/UsersImages.class.php:156\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":"libs/db/UsersImages.class.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"5877ee286202cb61b15ca2e4d0aea946f0f506af6b747a9066808a1e54a24c41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201326 lines \u00D7 2): libs/Account.class.php:1019-1033 | libs/Account.class.php:1109-1134 \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 \u0060libs/Account.class.php:1019\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":"libs/Account.class.php"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b69363de6e774f12ab962b47d986b19291882f6524341a5048ff1402eb1981"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): libs/Account.class.php:434-455 | libs/Account.class.php:2951-2969 \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 \u0060libs/Account.class.php:434\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"01082f8279061096e55e51d08e5731542b7ea716579ea8c7ce816c1c4514d92c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): libs/db/BlacklistTable.class.php:25-45 | libs/db/RejectedFilesTable.class.php:25-45 \u2014 before extracting anything, compare \u0060libs/db/BlacklistTable.class.php\u0060 and \u0060libs/db/RejectedFilesTable.class.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"libs/db/BlacklistTable.class.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e15963a5969cf606a765cf414b0e539f8d3995e59f0a057b051baebb3606138"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): libs/Account.class.php:1164-1180 | libs/Account.class.php:1215-1234 \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":"libs/Account.class.php"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"012d8f31f5f47e550c9ca4d9bd282e5543889682fee79179a10af78ca19425c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): libs/EpubCoverExtractor.class.php:472-490 | libs/VideoPosterExtractor.class.php:90-109 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/VideoPosterExtractor.class.php:90\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":"libs/EpubCoverExtractor.class.php"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"441c07e997e8b2bc0256cd56bcd47bf161fbd3ace18add18e98c76a043c43f59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): api/v2/routes_account_dashboard.php:684-702 | api/v2/routes_account_dashboard.php:826-844 \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":"api/v2/routes_account_dashboard.php"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c0471cfe907f1d10f036a384c4df098599d935c60105f24868d5db73e074e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): libs/Account.class.php:2736-2752 | libs/Account.class.php:2785-2797 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":2736}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe191b5498f2e9b91539dfdb724a0e28402d3929a459eb5ae825cd7cb4b7726"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/IpAccessControl.class.php:758-774 | libs/LegacyBlacklist.class.php:245-261 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"libs/IpAccessControl.class.php"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"29203afd5229b9f4ae4af587faea8894e3e6eee2cdca043c21e0e271fc42f7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): libs/S3Service.class.php:38-53 | libs/S3Service.class.php:59-74 \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":"libs/S3Service.class.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d11c653fbf680bac12ed113b1d0a9d83f14819907b739ed1c16ec7e6b703010"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): libs/S3Service.class.php:141-155 | libs/S3Service.class.php:160-175 \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 \u0060libs/S3Service.class.php:160\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. 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":"libs/S3Service.class.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7da8807eed175fb0d03194cd79e8ccdce66a0c00c737bccf56341de611e4cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): libs/Account.class.php:953-967 | libs/Account.class.php:1167-1180 | libs/Account.class.php:1221-1234 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/Account.class.php:1167\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":"libs/Account.class.php"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b115aab047ea221a8ae7638986170b10a4dfa0e14b2c3d914651dd531631e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): libs/S3Service.class.php:1013-1023 | libs/S3Service.class.php:1132-1146 \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 \u0060libs/S3Service.class.php:1013\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":"libs/S3Service.class.php"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d229640216c1d2018252a51ca656bb0b9f8fb1e58d2f94b571e2c0363f0ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 2): libs/Account.class.php:1919-1927 | libs/Account.class.php:2175-2188 \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":"libs/Account.class.php"},"region":{"startLine":1919}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c82d31b548f94f66eb3469b2bf6950263a3f056b2ded83243cb1cf1bdaa04ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/BlossomFrontEndAPI.class.php:110-123 | libs/Credits.class.php:67-80 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/BlossomFrontEndAPI.class.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d61d101374f59b89f2b9ed9417bd5632cc4bef79ad755c18e91081c7dcf35c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/HmacAuthHandler.class.php:107-120 | libs/HmacAuthHandlerBodyless.class.php:103-116 \u2014 before extracting anything, compare \u0060libs/HmacAuthHandler.class.php\u0060 and \u0060libs/HmacAuthHandlerBodyless.class.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/HmacAuthHandler.class.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"a572c3791f4fd0fac2a2bea5141c4887f0fc165afc3ebd9568e483f532e610a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/S3Service.class.php:613-626 | libs/S3Service.class.php:728-741 \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":"libs/S3Service.class.php"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2c79957d8f882b3c50d20b0f91d1a6e83f3ee675bcd2273cbe8283a35d54b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/db/DatabaseTable.class.php:108-121 | libs/db/DatabaseTable.class.php:169-182 \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":"libs/db/DatabaseTable.class.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed0c9b51e68872667725a2a974a77b765644bbdcfbec78407f7df143563a1a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): libs/db/BlacklistTable.class.php:32-43 | libs/db/RejectedFilesTable.class.php:32-43 | libs/db/UsersImages.class.php:134-146 \u2014 before extracting anything, compare \u0060libs/db/BlacklistTable.class.php\u0060 and \u0060libs/db/RejectedFilesTable.class.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/db/BlacklistTable.class.php:32\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":"libs/db/BlacklistTable.class.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2829d7c979efa9a29a13da3966da8633cefd01584ac8bfd737685e8b9fcdac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libs/Account.class.php:718-730 | libs/Account.class.php:743-755 \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":"libs/Account.class.php"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac01c125d5c7b83b2ae128a5a3702aca026f5e49ab62b2b698c91d3e6b051e45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libs/HmacAuthMiddleware.class.php:48-64 | libs/HmacAuthMiddlewareBodyless.class.php:43-55 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/HmacAuthMiddleware.class.php:48\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":"libs/HmacAuthMiddleware.class.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c6eb4fc46d6d1bf416924255f195606dce100183f614632aa142313101ab15a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libs/HmacAuthHandler.class.php:132-143 | libs/HmacAuthHandlerBodyless.class.php:120-131 \u2014 before extracting anything, compare \u0060libs/HmacAuthHandler.class.php\u0060 and \u0060libs/HmacAuthHandlerBodyless.class.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"libs/HmacAuthHandler.class.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2cfd4e5528ffd7eb2e1e3869d7d9d6eaa3af4fe41d0fd9e625d90444f31185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libs/Upload/MediaProcessor.php:193-204 | libs/Upload/MediaProcessor.php:240-251 \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 \u0060libs/Upload/MediaProcessor.php:193\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":"libs/Upload/MediaProcessor.php"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e208aa117fda2e9ea585d521c7307d3e6f198c4330cb70d707672b2fdd55ef4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libs/db/Promotions.class.php:97-108 | libs/db/Promotions.class.php:116-127 \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":"libs/db/Promotions.class.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"88211dea79596c288db933dc93998dec0bf55156ff28c42ab1ec242fcb76a97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): libs/Account.class.php:232-244 | libs/Account.class.php:436-448 | libs/Account.class.php:2952-2962 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/Account.class.php:232\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":"libs/Account.class.php"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fef7257299e59dd35cd4dd17e2c864c36432fe4169478cbac0bcb1629acfe82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): libs/Account.class.php:2815-2825 | libs/Account.class.php:2843-2853 | libs/Account.class.php:2877-2887 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":2815}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd401b1f6146a6640ed0b57588b6c2ddc6193d1e47d1f5694921427b9e381db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): libs/db/Promotions.class.php:83-92 | libs/db/Promotions.class.php:102-111 | libs/db/Promotions.class.php:121-130 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/Promotions.class.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e355e0ab22f6c3391fefccef735a4da77235a4451275b3313d41b19541aedc15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): api/v2/routes_account_dashboard.php:659-668 | api/v2/routes_account_dashboard.php:790-799 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060api/v2/routes_account_dashboard.php:669\u0060 calls \u0060curl_getinfo\u0060 and \u0060api/v2/routes_account_dashboard.php:800\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/v2/routes_account_dashboard.php"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebbb934c174b22c4fb7747cdd945a946d8aee1b7b97a3caa45d6ebe3405823e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/Account.class.php:2530-2539 | libs/Account.class.php:2605-2614 \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 \u0060libs/Account.class.php:2530\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":"libs/Account.class.php"},"region":{"startLine":2530}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fb0422419fdb0c5ac711e23379edfcb9534ebc26053e619a4cffa1157f3cc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): libs/S3Service.class.php:879-887 | libs/S3Service.class.php:927-935 | libs/S3Service.class.php:973-981 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/S3Service.class.php:879\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":"libs/S3Service.class.php"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"903649db06c040b2718ccc8f25c2df03a0654bd280a3448b022a8f865e1f52df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/Account.class.php:1029-1037 | libs/Account.class.php:1070-1078 \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 \u0060libs/Account.class.php:1029\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":"libs/Account.class.php"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c55737bfa1c50f0368998baad17f6748938ac94871811a80b71dcb08cace6b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/IpAccessControl.class.php:412-422 | libs/IpAccessControl.class.php:536-544 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/IpAccessControl.class.php"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32c69cb0f6751157cf5d280964ec1d46c1c3274b2f37dd348a0f0846e646c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/Plans.class.php:158-167 | libs/Plans.class.php:196-205 \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":"libs/Plans.class.php"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c85281475f0f54e3cdd718cea2a154cbd9503ff8a8f8b1f121cab337e82bcaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): libs/db/BlacklistTable.class.php:30-36 | libs/db/RejectedFilesTable.class.php:30-36 | libs/db/UsersImages.class.php:170-177 | libs/db/UsersImages.class.php:214-221 \u2014 before extracting anything, compare \u0060libs/db/BlacklistTable.class.php\u0060 and \u0060libs/db/RejectedFilesTable.class.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/BlacklistTable.class.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b59be771844f225e81c8f3ba405c52117d4631094a9ee80b6da27ab08e5fe23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/Account.class.php:2028-2034 | libs/Account.class.php:2148-2154 \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 \u0060libs/Account.class.php:2028\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":"libs/Account.class.php"},"region":{"startLine":2028}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf22824ecbfd40d6a447327d6718de16c5ca264dc92e5a4b7c72202997c6cf8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/IpAccessControl.class.php:390-396 | libs/IpAccessControl.class.php:514-520 \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 \u0060libs/IpAccessControl.class.php:390\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":"libs/IpAccessControl.class.php"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c76d98b53af6b3b69d1a19e073fe81cbf914933182851764a99eac20d53b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/db/DatabaseTable.class.php:95-101 | libs/db/DatabaseTable.class.php:154-160 \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":"libs/db/DatabaseTable.class.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"212960db0690b2b9071fd1a9b687372a44dcd58240b6ec6c78828d2aa10ebd2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): libs/CloudflarePurge.class.php:16-20 | libs/CloudflareUploadWebhook.class.php:18-22 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"libs/CloudflarePurge.class.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6f46ca57d1a00c57931c6a4b673d0e2c9304c2747cf05da0afcabe8baf8b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): libs/IpAccessControl.class.php:479-486 | libs/LegacyBlacklist.class.php:103-109 | libs/LegacyBlacklist.class.php:114-120 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. 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":"libs/IpAccessControl.class.php"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"c898f280d9afc7393c49b44eddd3b78a7adaa84e123fa74f6036661d5d499b4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/IpAccessControl.class.php:737-746 | libs/LegacyBlacklist.class.php:224-233 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"libs/IpAccessControl.class.php"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce2dc045ab5067526a63bb738aaacfe2b9348c0fee96e0c15bcd150382417b0b"}},{"ruleId":"D5","level":"error","message":{"text":"Circular dependency: (root) \u2192 libs \u2192 (root) (one cycle inside a mutually-dependent group of 3 modules)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"index.php"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"34602712f1205d2b9b3ea7b33b7abe8cfad1b65ecd15aa77be9c3e46262a2eef"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: (root): (root): abstractness 0.00, instability 0.13, distance 0.88 \u2014 zone of pain \u2014 concrete and depended on by 7 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"51ca5f5bba3ac7cbb4b8e1f651f219f376cded51fec13491755cad3ccdd7168a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: libs: libs: abstractness 0.00, instability 0.18, distance 0.82 \u2014 zone of pain \u2014 concrete and depended on by 9 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1a8c83148af67a474453cd15ff3d881892ad806209efb0a0a4328f7481c8fa98"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/MultimediaUpload.class.php: libs/MultimediaUpload.class.php changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in MultimediaUpload.uploadFiles at line 411. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 16:20:25 -05:00\u0027 --until=\u00272026-11-12 16:20:25 -05:00\u0027 --full-history --no-merges -- libs/MultimediaUpload.class.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/MultimediaUpload.class.php"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd3e124094ce04471ee94c98c711e0c167203214d39a6f5c191bd937a1ebf24"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/Account.class.php: libs/Account.class.php changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in Account.applyRenewalForInvoice at line 1781. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 16:20:25 -05:00\u0027 --until=\u00272026-11-12 16:20:25 -05:00\u0027 --full-history --no-merges -- libs/Account.class.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Account.class.php"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5f90eef91cb6c4f40c7148511407d604d147bd99476c5483e5304fd3a3e467"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/Upload/UploadValidator.php: libs/Upload/UploadValidator.php changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in UploadValidator.validate at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 16:20:25 -05:00\u0027 --until=\u00272026-11-12 16:20:25 -05:00\u0027 --full-history --no-merges -- libs/Upload/UploadValidator.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Upload/UploadValidator.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc31a49ddabeaebf354ea334b8771948745653a5ce061c72ced0c11aae0fd7c8"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 45 significant file(s) lose their only recent owner: api/v2/routes_accounts_admin.php, libs/Account.class.php, api/v2/routes_accounts.php, creators/creator/index.php, api/v2/routes_btcpay.php, libs/S3Multipart.class.php, libs/NCMECReportHandler.class.php, libs/MultimediaUpload.class.php (\u002B37 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"28603f7c468cb4b396e288b4736156389b63a2af1d475ef90292282ab7631898"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make promotion applicable to upgrades as well \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Plans.class.php"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a5deea1c3986ddfa1fc7d9bc58ff639a8bab217392eaf147249c48563749bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Extract from metadata if image/video \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/S3Multipart.class.php"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"877d6dd421658f066b23b5f30d1d95767718d2eab0f5bafc5bdd9938af0b007f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Extract from metadata if image/video \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/S3Multipart.class.php"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab00f7473d31cf8ea879771983149349bd857545b6508248849401e7b886a459"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Generate blurhash if image \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/S3Multipart.class.php"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0cab3cc86bbf7ef71965162198fe71c89560176080ea228799371e29cc7e628"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // We only accept two types now, video or archive, TODO: Update for new types \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/S3Multipart.class.php"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"f555a8c42ddb2e5bf9f63128c206d5d5c35cd02b7f677de36f708ef76aada1bf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Need to fix so it actually works correctly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/db/DatabaseTable.class.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a58bcec9b94601f79d0c9abd00bada8810c0af026684de409d30cb440e8f9f2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Need to validate array of files, so we do not allow to go over the limit with batch \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Upload/UploadValidator.php"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d637824f8639b1bd523a890ac37782ae32b4f2dff028f9b250bb30ecf0fa3c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Move the following into its own file and clean-up here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/v2/index.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4556d8c49a0c227cac31fbd6ca3db226b9fdcae9ec62a59281280cc4bf65815"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: We should migrate other routes to use this factory \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/v2/index.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"41395b4379264aeddf0c9cd80fbad401077588ffdb7bacfe6bb8d580ce77e73d"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: the repository holds project manifests and neither \u0060README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33a5992d4bd6ac1ea4b853ae69753fcd7e0410099c58731c86be53325ba8c96"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (33727 LoC, 96 module-visible types across 11 directories) overshoots its size bounds. 1 of 2 build unit(s) (Composer, npm) overshoot their size bounds, lowering Project Cohesion to 0.0/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"composer.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8efc0a2b22900caf196168a2a93a3425332b9a5bedf3e1f97e4c0ebe363ae9"}},{"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":"8c695dae3a8dde055315905f150f7c835ca61433a81ef4748278f0d198d19e1d"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8e28cefd5102016eb3391e6eceeeecbb559a6f84781e41fe9acb143138b93d79"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"308b21f55b5e5589bec168332228557bfc05295c13c9441a10418ad2d7a0e1f4"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"1ade3aef61ff1685008de5402ab39536dfdb1b2c62ed39c618e830e395f21e29"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","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":"38ad2d1d4d9fd99b5e1079e4a1c0ee2316835272b6b21ee61ab34fece6965bd8"},"properties":{"dependency":{"package":"picomatch","version":"2.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","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":"249a0aa633eae2f6bc7b60d0d756d370b1d203b651bc631780fc0543ca9cde9e"},"properties":{"dependency":{"package":"picomatch","version":"4.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 77 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 77 of the 95 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: components/pagination.php, libs/HmacAuthHandlerBodyless.class.php. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"components/pagination.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f403128d660d7db360328d20beae5b66e347b6465e7975ebf5d61a49448aeaf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/HmacAuthHandlerBodyless.class.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b546a25c14c004072f850121f0de8f9813665b04f1c6deed5fd83fdc82d3b41"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060adultview/index.php\u0060 (context adultview) and \u0060delete/index.php\u0060 (context delete) sit in DIFFERENT parts of the tree yet change together 87% of the time (46 of the 53 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 46 shared commits counted here, the most recent 3 are \u0060d0f924bf\u0060 checksums; \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f991da47c5019d72c5235e67665658b0fb6894f318916db70093f66e112dd393"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060delete/index.php\u0060 (context delete) and \u0060freeview/index.php\u0060 (context freeview) sit in DIFFERENT parts of the tree yet change together 87% of the time (46 of the 53 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 46 shared commits counted here, the most recent 3 are \u0060d0f924bf\u0060 checksums; \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"delete/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"546ad3574f0cfd2584111989c2366e0788e53a4b59719c58efb9043a205badee"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060adultview/index.php\u0060 (context adultview) and \u0060viewall/index.php\u0060 (context viewall) sit in DIFFERENT parts of the tree yet change together 86% of the time (71 of the 83 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 71 shared commits counted here, the most recent 3 are \u0060d0f924bf\u0060 checksums; \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2e3e28e06ec1292fe332177fce77f7e04374f2e5cdecbaf81730d7c3f22c78"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060freeview/index.php\u0060 (context freeview) and \u0060viewall/index.php\u0060 (context viewall) sit in DIFFERENT parts of the tree yet change together 85% of the time (76 of the 89 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 76 shared commits counted here, the most recent 3 are \u0060d0f924bf\u0060 checksums; \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"freeview/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cf9f6595b2f4e7b0914e38b6bf24fb72d37b3a880b5b2a5b2b8018e709f6aa"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060creators/creator/index.php\u0060 (context creators) and \u0060delete/index.php\u0060 (context delete) sit in DIFFERENT parts of the tree yet change together 85% of the time (45 of the 53 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 45 shared commits counted here, the most recent 3 are \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums; \u0060131314c6\u0060 Update twbuild.css version across multiple pages \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"creators/creator/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4077ac26a00a56bf012b590330298f9f7d1cc79de411218058a0a9b800e356b7"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060delete/index.php\u0060 (context delete) and \u0060viewall/index.php\u0060 (context viewall) sit in DIFFERENT parts of the tree yet change together 85% of the time (45 of the 53 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 45 shared commits counted here, the most recent 3 are \u0060d0f924bf\u0060 checksums; \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"delete/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bf59d81735ba054135410b085e0edf114f7e6adbecebd02a85890d8960a3ee"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060adultview/index.php\u0060 (context adultview) and \u0060freeview/index.php\u0060 (context freeview) sit in DIFFERENT parts of the tree yet change together 84% of the time (70 of the 83 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 70 shared commits counted here, the most recent 3 are \u0060d0f924bf\u0060 checksums; \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00aef4530e4415ba25970f50515848b61f190a821b51da2ce85fb5040d5ee616"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060creators/creator/index.php\u0060 (context creators) and \u0060freeview/index.php\u0060 (context freeview) sit in DIFFERENT parts of the tree yet change together 77% of the time (67 of the 87 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 67 shared commits counted here, the most recent 3 are \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums; \u0060131314c6\u0060 Update twbuild.css version across multiple pages \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"creators/creator/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64f176c9f4651b45d5f301cd3da4df9bdab9d4fe0a7e6cc05544951241d0936"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060adultview/index.php\u0060 (context adultview) and \u0060creators/creator/index.php\u0060 (context creators) sit in DIFFERENT parts of the tree yet change together 76% of the time (63 of the 83 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 63 shared commits counted here, the most recent 3 are \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums; \u0060131314c6\u0060 Update twbuild.css version across multiple pages \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2234614979cd0a3eb10f5139383c2617617b202dfbe33def77e764e9f99ef8d"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060delete/index.php\u0060 (context delete) and \u0060plans/index.php\u0060 (context plans) sit in DIFFERENT parts of the tree yet change together 75% of the time (40 of the 53 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 40 shared commits counted here, the most recent 3 are \u00602654a124\u0060 fix(styles): Update twbuild.css version across multiple pages; \u006031c030a5\u0060 Update twbuild.css version across multiple files for consistency; \u0060ad63259b\u0060 csum updates \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"delete/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8714604c4f17ef6f931c1174e7f3fd983497284da697a13da815f1a100f8db1d"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060creators/creator/index.php\u0060 (context creators) and \u0060viewall/index.php\u0060 (context viewall) sit in DIFFERENT parts of the tree yet change together 75% of the time (65 of the 87 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 65 shared commits counted here, the most recent 3 are \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums; \u0060131314c6\u0060 Update twbuild.css version across multiple pages \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"creators/creator/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7380e16ea54333e015f7c04c8f89d92eda13236ea83b6769bc5525486a5e23e"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060adultview/index.php\u0060 (context adultview) and \u0060plans/index.php\u0060 (context plans) sit in DIFFERENT parts of the tree yet change together 67% of the time (56 of the 83 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 56 shared commits counted here, the most recent 3 are \u00602654a124\u0060 fix(styles): Update twbuild.css version across multiple pages; \u006031c030a5\u0060 Update twbuild.css version across multiple files for consistency; \u0060ad63259b\u0060 csum updates \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ccdcb952c344506f6e1efcdd2e705b2ed2596fbdacad76d47a6c8dd534cc00"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060creators/creator/index.php\u0060 (context creators) and \u0060plans/index.php\u0060 (context plans) sit in DIFFERENT parts of the tree yet change together 67% of the time (56 of the 83 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 56 shared commits counted here, the most recent 3 are \u00602654a124\u0060 fix(styles): Update twbuild.css version across multiple pages; \u006031c030a5\u0060 Update twbuild.css version across multiple files for consistency; \u0060ad63259b\u0060 csum updates \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"creators/creator/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b139394f658ca6bf23e7741bd3c1028c5e949b8d0de0c64d54625a34f54274e"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060freeview/index.php\u0060 (context freeview) and \u0060plans/index.php\u0060 (context plans) sit in DIFFERENT parts of the tree yet change together 67% of the time (56 of the 83 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 56 shared commits counted here, the most recent 3 are \u00602654a124\u0060 fix(styles): Update twbuild.css version across multiple pages; \u006031c030a5\u0060 Update twbuild.css version across multiple files for consistency; \u0060ad63259b\u0060 csum updates \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"freeview/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc959f0143a0a93057eead3b13e2aea7e04fd4708cc1cfe50519aa5db7296fb"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060plans/index.php\u0060 (context plans) and \u0060viewall/index.php\u0060 (context viewall) sit in DIFFERENT parts of the tree yet change together 66% of the time (55 of the 83 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 55 shared commits counted here, the most recent 3 are \u00602654a124\u0060 fix(styles): Update twbuild.css version across multiple pages; \u006031c030a5\u0060 Update twbuild.css version across multiple files for consistency; \u0060ad63259b\u0060 csum updates \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plans/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0b4ae8bd534116ebb25b1f889c4d50e3e8f473d474a202be688614143ced1f"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060builders/index.php\u0060 (context builders) and \u0060creators/index.php\u0060 (context creators) sit in DIFFERENT parts of the tree yet change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00607bf63e18\u0060 csum bumps; \u00604a2f4e23\u0060 csum updates; \u00603ad0dff1\u0060 fix linking of the assets to point to the correct location \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"builders/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d370d677a43e15ffd94c651d88d560afeaf84b8709518e8185e50b37d93dc98"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060builders/index.php\u0060 (context builders) and \u0060freeview/index.php\u0060 (context freeview) sit in DIFFERENT parts of the tree yet change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00607bf63e18\u0060 csum bumps; \u00604a2f4e23\u0060 csum updates; \u00603ad0dff1\u0060 fix linking of the assets to point to the correct location \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"builders/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"100748b5270c29887ad0c051366ee3b7e3d5b1a45b0e0c3822339780fd964ce9"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060delete/index.php\u0060 (context delete) and \u0060features/index.php\u0060 (context features) sit in DIFFERENT parts of the tree yet change together 55% of the time (23 of the 42 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 23 shared commits counted here, the most recent 3 are \u0060d0f924bf\u0060 checksums; \u0060fd898d96\u0060 creators: overhaul creator portfolio \u002B directory pages, add zap flow; \u00607328b8dd\u0060 checksums \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"delete/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65886224a966a35ca0aa46b0659f106839b332c0b0cb175c09a4513fd3e8a55c"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060builders/index.php\u0060 (context builders) and \u0060tos/index.php\u0060 (context tos) sit in DIFFERENT parts of the tree yet change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00607bf63e18\u0060 csum bumps; \u00604a2f4e23\u0060 csum updates; \u00603ad0dff1\u0060 fix linking of the assets to point to the correct location \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"builders/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa30d124915a5af8c184c3be0f64305a6cd311660782ff850380cc7a2a44edf2"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060builders/index.php\u0060 (context builders) and \u0060viewall/index.php\u0060 (context viewall) sit in DIFFERENT parts of the tree yet change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00607bf63e18\u0060 csum bumps; \u00604a2f4e23\u0060 csum updates; \u00603ad0dff1\u0060 fix linking of the assets to point to the correct location \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"builders/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd546ac9591c64ff0718a3ac1b3815d321579b5696857a6db16ed8d3e1ac6cc0"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: index.php \u2194 index.php: \u0060builders/index.php\u0060 (context builders) and \u0060creators/creator/index.php\u0060 (context creators) sit in DIFFERENT parts of the tree yet change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00607bf63e18\u0060 csum bumps; \u00604a2f4e23\u0060 csum updates; \u00603ad0dff1\u0060 fix linking of the assets to point to the correct location \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"builders/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"433b1acc4e1132323223af689e260cb478b1dc3020efe196b613ba110dc619de"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: index.php \u2194 index.php: \u0060builders/index.php\u0060 and \u0060index.php\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00607bf63e18\u0060 csum bumps; \u00604a2f4e23\u0060 csum updates; \u00603ad0dff1\u0060 fix linking of the assets to point to the correct location \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"builders/index.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b10c2e206a26f7f6158c126ef24dba6c26d3204612520c28b926ccb1be83ce5"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cvideo\u003E without a captions track: Video with no captions \u003Ctrack\u003E offers no captions. Add a \u003Ctrack kind=\u0022captions\u0022\u003E pointing at a WebVTT file for this video (or confirm captions are provided another way)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"davidlynch/index.html"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a55ac6a394b5df28f8ff66ef722ba9b6f4ad2c6d17315a6e0cff0e3f0cafc3d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.0:1): \u0060.picks-list a\u0060 sets color: #07847c on background-color: #dff3ee \u2014 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hw_wallet_select/index.html"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c7c69e9098ad9e5bd0e3bcadc1c8a0f784cad6a80ca83772968fb035b347fa"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.7:1): \u0060.picks-list a:hover\u0060 sets color: #ece5f2 on background-color: #07847c \u2014 3.7:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hw_wallet_select/index.html"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c868d40e5894a0761dc08a5148e44af192e3af742a37be7c00b0b477737ea2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.0:1): \u0060.status.ok\u0060 sets color: #07847c on background-color: #dff3ee \u2014 4.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hw_wallet_select/index.html"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18bb6853ac51a8547cd45c394bde5d5d746ff90682cfdfc0b2601cfd89be9ce"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.5:1): \u0060.u-body.u-color-2, .u-color-2, .u-color-2 \u003E .u-container-layout:before, .u-container-layout.u-container-layout.u-color-2:before, section.u-color-2:before\u0060 sets color: #fff on background-color: #c7997d \u2014 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":3542}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f8f2a97dbd8ef55e492220ec955d74cf820284f8e1114847fb8f0601fb2352"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.5:1): \u0060.u-button-style.u-color-2, .u-button-style.u-color-2[class*=\u0022u-border-\u0022]\u0060 sets color: #fff on background-color: #c7997d \u2014 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":3547}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf1884bd5314520a2aa64e2787b01ab21800a105262b2327d9b04c7ab2389f1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.1:1): \u0060.u-button-style.u-button-style.u-color-2:active, .u-button-style.u-button-style.u-color-2[class*=\u0022u-border-\u0022]:active, .u-button-style.u-color-2:focus, .u-button-style.u-color-2:hover, .u-button-style.u-color-2[class*=\u0022u-border-\u0022]:focus, .u-button-style.u-color-2[class*=\u0022u-border-\u0022]:hover\u0060 sets color: #fff on background-color: #bd8766 \u2014 3.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":3556}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad45d33ce98c167f2fc649700b2d38b40f2b6ae31f8104bd971282e7112d369d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.5:1): \u0060.u-body.u-color-3, .u-color-3, .u-color-3 \u003E .u-container-layout:before, .u-container-layout.u-container-layout.u-color-3:before, section.u-color-3:before\u0060 sets color: #fff on background-color: #ee8a02 \u2014 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":3564}}}],"partialFingerprints":{"codehealthFindingId/v1":"075403d6f8b4a881e2f09fb226e7778f29a24be72bb3985673b6f46f06a32424"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.5:1): \u0060.u-button-style.u-color-3, .u-button-style.u-color-3[class*=\u0022u-border-\u0022]\u0060 sets color: #fff on background-color: #ee8a02 \u2014 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":3569}}}],"partialFingerprints":{"codehealthFindingId/v1":"18996236a6aa414d5a3ed81ae2c141fca7256ca504eb85682eb7c030c230e89a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.1:1): \u0060.u-button-style.u-button-style.u-color-3:active, .u-button-style.u-button-style.u-color-3[class*=\u0022u-border-\u0022]:active, .u-button-style.u-color-3:focus, .u-button-style.u-color-3:hover, .u-button-style.u-color-3[class*=\u0022u-border-\u0022]:focus, .u-button-style.u-color-3[class*=\u0022u-border-\u0022]:hover\u0060 sets color: #fff on background-color: #d67c02 \u2014 3.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":3578}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d63222861f9e5f94aad2c434e4984a5897e5199f6d52cdd848f6631405cdb44"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.6:1): \u0060.u-body.u-custom-color-5, .u-container-layout.u-container-layout.u-custom-color-5:before, .u-custom-color-5, .u-custom-color-5 \u003E .u-container-layout:before, section.u-custom-color-5:before\u0060 sets color: #fff on background-color: #bf8ed9 \u2014 2.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":4080}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e880554fd5a63c7a0af6addd076a6f52df4b2b20926cc07d621aee871cb7d9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.6:1): \u0060.u-button-style.u-custom-color-5, .u-button-style.u-custom-color-5[class*=\u0022u-border-\u0022]\u0060 sets color: #fff on background-color: #bf8ed9 \u2014 2.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":4085}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6082ab7da98db6253a36e47f2ee09a63de5a2cfefb0972737b1cf165cc812f0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.4:1): \u0060.u-button-style.u-button-style.u-custom-color-5:active, .u-button-style.u-button-style.u-custom-color-5[class*=\u0022u-border-\u0022]:active, .u-button-style.u-custom-color-5:focus, .u-button-style.u-custom-color-5:hover, .u-button-style.u-custom-color-5[class*=\u0022u-border-\u0022]:focus, .u-button-style.u-custom-color-5[class*=\u0022u-border-\u0022]:hover\u0060 sets color: #fff on background-color: #b073d0 \u2014 3.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":4094}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1e4663d8ad6a085953ff3ad7c4060531d9efef6d61363cd439e36b33779aea"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060button\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfffdbb9c180f90d989fed511eed82e3c26916b317021296ea0a64b78f20c41"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.u-social-url\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"v1/nostrstyle.css"},"region":{"startLine":1311}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3d4d598f50432da937163f4a92bf84c8141f602d941a93b383d50f585a1a62"}},{"ruleId":"AX3","level":"error","message":{"text":"Project dependency cycle: The projects (root) \u2192 libs \u2192 (root) (one cycle inside a mutually-dependent group of 3 projects) form a reference cycle. Cyclic dependencies prevent independent build/test/deploy, blur ownership, and tend to grow into a big ball of mud. Break the cycle by extracting the shared types into a separate project both can reference."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"index.php"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09bf73acb4f8cd44904ef700c50c70bb1c987e575b39ae88c8124edcfb4cf3c"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 4 application file(s) sit at the repository root beside the build and tooling files (\u0060SiteConfig.php\u0060, \u0060config.php\u0060, \u0060index.php\u0060, \u0060upload.php\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/2 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add phpstan or psalm (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060build/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build/package.json"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"394729267a61c48ab35274763316820e2bd8269763e6614f3f34c697f680ffc0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060curl_exec(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/BlossomFrontEndAPI.class.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"39be83e730bb6f6b7dd5b804df4d404fedd45e7129e023d506c3b38f19d2e87d"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060curl_exec(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Credits.class.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aafd460e94a9d130f49f588e26ec2f7e19ae0d2e153485faccb552f003ba8a0"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060curl_exec(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/NCMECReportHandler.class.php"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b849bc8b7db287d0407b8cce2473df3283e196fdf70723314f0391e4607ebf"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060curl_exec(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/NCMECReportHandler.class.php"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff72f3aa4c5175db76a89115df0c4b0ab72e714b658e3e5784b4403af41cc5e"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060curl_exec(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/NostrLand.class.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e6b3fb630489037cc356b3c8f775f169a7b9b0718e9819d3a7d6c4fb66bf8b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!is_array($pixels) || empty($pixels) || !is_array($pixels[0])\u0060 appears character-identically in 2 files \u2014 adultview/index.php, freeview/index.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e4980f2a275d2cd2413d1640fe787a3484434c71c88039354626b20c792aa4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!is_array($row) || empty($row[\u0027uuid_id\u0027])\u0060 appears character-identically in 2 files \u2014 api/v2/routes_accounts.php, libs/Account.class.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/v2/routes_accounts.php"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"f279ef67bae710dd4da0c062e4c33bf97a5e5f3701754bf5dc202d0f004d3f20"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$view_type !== \u0027vid\u0027 \u0026\u0026 $view_type !== \u0027gif\u0027 \u0026\u0026 !empty($row[\u0027blurhash\u0027])\u0060 appears character-identically in 2 files \u2014 adultview/index.php, freeview/index.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a823b2c13c24f94a17945d5eedff7bcedd08a9a99e7312c2ea32991dba07bba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty($row[\u0027media_height\u0027]) || $row[\u0027media_height\u0027] == 0\u0060 appears character-identically in 2 files \u2014 adultview/index.php, freeview/index.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8d76da4cfa44fd97d967fa1ac2c416866132c68f93b8ba571a003c892bc653"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty($row[\u0027media_width\u0027]) || $row[\u0027media_width\u0027] == 0\u0060 appears character-identically in 2 files \u2014 adultview/index.php, freeview/index.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fe854862904543f8be0bc5fc238e2548a95548c78396b795ed74299261f51a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_string($tmpName) \u0026\u0026 $tmpName !== \u0027\u0027 \u0026\u0026 is_file($tmpName)\u0060 appears character-identically in 2 files \u2014 libs/Upload/FileInputNormalizer.php, libs/Upload/TempFileManager.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/Upload/FileInputNormalizer.php"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"749923c4fcae49155c97d35b9d7a1a72715e9e49c66160f6928a8bd04762045c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset($_GET[\u0027k\u0027]) \u0026\u0026 in_array($_GET[\u0027k\u0027], $allowed_views)\u0060 appears character-identically in 2 files \u2014 adultview/index.php, freeview/index.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fcd8ac15346737303de06290cc56e3fdae8736157f230c74f496f8c9ee6597a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset($bh_image) \u0026\u0026 ($bh_image instanceof GdImage || is_resource($bh_image))\u0060 appears character-identically in 2 files \u2014 adultview/index.php, freeview/index.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c7ddd1a7be4c8ea342ead2de8ec0731f0b89908301501819301cdd98220c85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset($bh_stream) \u0026\u0026 is_resource($bh_stream)\u0060 appears character-identically in 2 files \u2014 adultview/index.php, freeview/index.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"adultview/index.php"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae8712196fa0de952162458de3c2ddd7eb7999cbfa8fe10b6f3f9e33665b0b0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strpos($npub, \u0027npub1\u0027) !== 0 || strlen($npub) \u003C 60 || strlen($npub) \u003E 100\u0060 appears character-identically in 2 files \u2014 api/v2/routes_accounts.php, libs/Account.class.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/v2/routes_accounts.php"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a9a717493661dde8c79ac5a8d80197195a6f8790ae1e57bef203f7bd45157b"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 0/1 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: deleteFile: \u0060deleteFile\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build/src/delete.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9d1bd80056aad449a223a3b4543670fb857002d756073181c3ce1b367de234"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. On a teardown path letting it propagate is not an option (throwing out of \u0060__destruct()\u0060 masks the failure already in flight and abandons the rest of the cleanup), so make the swallow deliberate instead: narrow the catch to the exception this release can actually raise, and record it through whatever this codebase already uses to report problems \u2014 or, if it truly cannot matter, say why in a comment on the catch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/IpAccessControl.class.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"01616cf57f4f54a68acc4fe580f342083595c26df5eaa5472cfe37cc6ae327ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/IpAccessControl.class.php"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca57d4c2871a59e2f2bcabef4218bcffefe079fbaa32ab1873d50988b297a170"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/S3Multipart.class.php"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ed59ed7592a95e4a56a676ac834b70d91e96dd7ff0b2262a63789a52277a6b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/v2/routes_accounts_admin.php"},"region":{"startLine":2311}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e9bf33e46969901102bc2660b4dbdf010b0a1eece3d1e8c0d14fafd875f4a7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/v2/routes_accounts_admin.php"},"region":{"startLine":2324}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3d546d346a3b0de3976118b62ec632460ab71a5d065a8eba1af18b6fda74fe"}},{"ruleId":"X5","level":"note","message":{"text":"PHP static analysis does not check null everywhere: This repository commits no PHPStan or Psalm configuration (\u0060phpstan.neon[.dist]\u0060, \u0060phpstan.dist.neon\u0060, \u0060psalm.xml[.dist]\u0060, or one a composer.json script names with \u0060--configuration\u0060), so nothing checks null: a \u0060?Customer\u0060 reaches \u0060-\u003Ename()\u0060 silently and throws \u0060Error: Call to a member function name() on null\u0060 the first time it is null. If the build passes a level on a command line instead, put it in a committed configuration \u2014 this check reads configuration, and configuration is all it can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4ee877508ebc333ebff2765634874753d7fd67f71ea749a6c333792a59b461d7"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"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":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":6,"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."]}]}