{"$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":"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":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02: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":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","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-1357","CWE-494"],"owasp":"A03:2025"}},{"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":"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C1","name":"Data Protection","shortDescription":{"text":"Data Protection"},"helpUri":"https://codehealth.canine.dev/dimensions/C1"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"C3","name":"Audit Trail","shortDescription":{"text":"Audit Trail"},"helpUri":"https://codehealth.canine.dev/dimensions/C3"},{"id":"C4","name":"Data Retention","shortDescription":{"text":"Data Retention"},"helpUri":"https://codehealth.canine.dev/dimensions/C4"},{"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":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"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":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"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":"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":"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"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":"ServerService.buildNodeConfig (cyclomatic 28): ServerService.buildNodeConfig has cyclomatic complexity 28 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Services/ServerService.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbdb4f180f11c3570cc454f31bccfb95501ff08a3d686ca1041c33474829330"}},{"ruleId":"D1","level":"warning","message":{"text":"General.buildVless (cyclomatic 27): General.buildVless 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":"app/Protocols/General.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d970d766182ee8458c5d29bebdb6ca5ec335b1cac426352b7d87e48237e229c"}},{"ruleId":"D1","level":"warning","message":{"text":"Shadowrocket.buildVless (cyclomatic 26): Shadowrocket.buildVless 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":"app/Protocols/Shadowrocket.php"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e5937f0a2eb70dad6f85dadf699365c08739c64aa0f2e799aa88d5b9f02884"}},{"ruleId":"D1","level":"warning","message":{"text":"ClashMeta.buildVless (cyclomatic 25): ClashMeta.buildVless has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/ClashMeta.php"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade5e8b7227c8f1cc5616e66f86191869941b345b7653f93eb9abb2b3d1a24f0"}},{"ruleId":"D1","level":"warning","message":{"text":"General.buildVmess (cyclomatic 24): General.buildVmess 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":"app/Protocols/General.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"067c82aeeb896fb9ec09e2016a20b1032a094e7b86638effac752f368d30da41"}},{"ruleId":"D1","level":"warning","message":{"text":"XboardInstall.handle (cyclomatic 23): XboardInstall.handle has cyclomatic complexity 23 (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":"app/Console/Commands/XboardInstall.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a76130ebda56b89bb2c9fe5df4ac1fed6dc2c934fbe43fc2df279423058812"}},{"ruleId":"D1","level":"warning","message":{"text":"General.buildTrojan (cyclomatic 22): General.buildTrojan has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/General.php"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"555f6dd7c8fc4a8058194b4953c900d37bc91116efef54cf776a980f43a0d331"}},{"ruleId":"D1","level":"warning","message":{"text":"Loon.buildVless (cyclomatic 22): Loon.buildVless has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Loon.php"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a24895f3d853f17b4dccb653d314ceee07a7158250d5357e18ec6eae08fc650"}},{"ruleId":"D1","level":"warning","message":{"text":"ClashMeta.handle (cyclomatic 21): ClashMeta.handle 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":"app/Protocols/ClashMeta.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cd7fefb396d195b9a75dcddf5b547505e28bdd61c1e9ad3dbc94e05dd26d36b"}},{"ruleId":"D1","level":"warning","message":{"text":"Loon.buildVmess (cyclomatic 21): Loon.buildVmess 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":"app/Protocols/Loon.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7f03a09095085c730db1b04850b576cd451ce001f7a3219994e4c279c120d9"}},{"ruleId":"D1","level":"warning","message":{"text":"SingBox.buildOutbounds (cyclomatic 21): SingBox.buildOutbounds 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":"app/Protocols/SingBox.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1f521f5d96c35be62f8e8ebb42f492654db754e23264eeb13c58e50c7209d7"}},{"ruleId":"D1","level":"warning","message":{"text":"Stash.handle (cyclomatic 21): Stash.handle 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":"app/Protocols/Stash.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ac97d70aa2522b93335f03112b0acf28418aec95f50713d6dc72c30a1bfabe"}},{"ruleId":"D1","level":"warning","message":{"text":"GiftCardTemplate.checkUserConditions (cyclomatic 20): GiftCardTemplate.checkUserConditions has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Models/GiftCardTemplate.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"588029ac37f01006069ca1a78e543f025f87b21915ad29ab7fc21a110abc4e45"}},{"ruleId":"D1","level":"warning","message":{"text":"Loon.buildTrojan (cyclomatic 20): Loon.buildTrojan has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Loon.php"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"21774fac0785b182afbecbcca037ae18c58cc8097f97856b0572ba91c8e914b1"}},{"ruleId":"D1","level":"warning","message":{"text":"Shadowrocket.buildVmess (cyclomatic 20): Shadowrocket.buildVmess has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Shadowrocket.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f1fe5ba371d4d46ff5874ff6779f6c9a9c9f1de71d746c1c54ea6137118367"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractProtocol.checkRequirements (cyclomatic 20): AbstractProtocol.checkRequirements has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Support/AbstractProtocol.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bf5f3591b9b8c5b061ad6d36820a163301f975e43fb22ac95a8cab135e6a4b"}},{"ruleId":"D1","level":"warning","message":{"text":"UserController.buildFilterQuery (cyclomatic 19): UserController.buildFilterQuery 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":"app/Http/Controllers/V2/Admin/UserController.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9141b3d056f3abf3422c240ca653d0948f163a3f52c45b7a47d0eb4a868f2df6"}},{"ruleId":"D1","level":"warning","message":{"text":"MailService.sendEmail (cyclomatic 19): MailService.sendEmail has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Services/MailService.php"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"b883635ad094c890a2399eca22c7d5000d85106b5fe96ed0309fd9cf4bc845c7"}},{"ruleId":"D1","level":"warning","message":{"text":"Plugin.notify (cyclomatic 19): Plugin.notify has cyclomatic complexity 19 (threshold 15). 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":"plugins-core/Epay/Plugin.php"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fa938f5e132f72106785f3a8e4116a14ac2dec7e09ca31cec794ccb2dd0986"}},{"ruleId":"D1","level":"warning","message":{"text":"ClashMeta.buildVmess (cyclomatic 18): ClashMeta.buildVmess 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":"app/Protocols/ClashMeta.php"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc4bf0ecaf9c65997e1d3bacfca4838850567291249ed1586a89cd994ff4a6d"}},{"ruleId":"D1","level":"warning","message":{"text":"QuantumultX.applyTransportSettings (cyclomatic 18): QuantumultX.applyTransportSettings 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":"app/Protocols/QuantumultX.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f8b38353e96aea7a0a63e1f2df7c91b47562ef9a9120bbe7e65873104c3bf0"}},{"ruleId":"D1","level":"warning","message":{"text":"RegisterService.validateRegister (cyclomatic 18): RegisterService.validateRegister 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":"app/Services/Auth/RegisterService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"711794bdd6d265a5a637b5b9b76384614c9873aa3bb2a02f2828dce127fa8a9d"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginController.index (cyclomatic 17): PluginController.index 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":"app/Http/Controllers/V2/Admin/PluginController.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec783d40e0f1c2c1fe3cd2e855d7a5db4f7f9d580328c4ea6719f67b12a12f7"}},{"ruleId":"D1","level":"warning","message":{"text":"Clash.handle (cyclomatic 17): Clash.handle 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":"app/Protocols/Clash.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3deb67f22cb3e43483dcfbcb45433e7fc0d9c1f7c29bea90dbdf25e86e2771ef"}},{"ruleId":"D1","level":"warning","message":{"text":"ClashMeta.buildTrojan (cyclomatic 17): ClashMeta.buildTrojan 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":"app/Protocols/ClashMeta.php"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d8d5c1e3b36c22a7314f9a7ac87ce5309626fdca77add1e3cab3ec112c1cf4"}},{"ruleId":"D1","level":"warning","message":{"text":"Stash.buildVless (cyclomatic 17): Stash.buildVless 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":"app/Protocols/Stash.php"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"1169ca3f2994679747f736c095f697892ace774406c267ac7c6d81c7e3e0fd91"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateService.checkForUpdates (cyclomatic 17): UpdateService.checkForUpdates 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":"app/Services/UpdateService.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5837f0e8b124b2a31559fc19be5bcdb9bd34b47f4d55c492b1c859ebe48a31"}},{"ruleId":"D1","level":"warning","message":{"text":"Shadowrocket.buildTrojan (cyclomatic 16): Shadowrocket.buildTrojan 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":"app/Protocols/Shadowrocket.php"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b90de700f2160989588f610324924d7305e413ffc4e7badfe3d891c4c2f1ee"}},{"ruleId":"D1","level":"warning","message":{"text":"CouponService.check (cyclomatic 16): CouponService.check 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":"app/Services/CouponService.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e234876edf2e3874dbd58d31b8cab3be83f8db4a55d1a4674cc4fee6581e7c"}},{"ruleId":"D1","level":"warning","message":{"text":"GiftCardService.giveRewards (cyclomatic 16): GiftCardService.giveRewards 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":"app/Services/GiftCardService.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74b91abc53f421452b150d8825c5f7169bb61eb3aa99040880e9a14ed92071d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClashMeta.handle (cognitive 43): ClashMeta.handle has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (35 pts), loops 4 (7 pts), ternaries 1 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/ClashMeta.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d173d51c01362a85a3bf7aa1eac178b334c056b54230371ee070171e8e84dc7"}},{"ruleId":"D2","level":"warning","message":{"text":"Stash.handle (cognitive 42): Stash.handle has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (34 pts), loops 4 (7 pts), ternaries 1 (nesting depth added 22). 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":"app/Protocols/Stash.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"165fcdc06437e679aa3f0c5897b55b034fadd604f74a5ec615606f841cac2bfd"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractProtocol.checkRequirements (cognitive 42): AbstractProtocol.checkRequirements has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (35 pts), boolean chains 6, loops 1 (nesting depth added 22). 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":"app/Support/AbstractProtocol.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0e91e87f5e39df30ce3f6dacaf7aef527cc9f9363c855302eb7b404724333c"}},{"ruleId":"D2","level":"warning","message":{"text":"General.buildVless (cognitive 38): General.buildVless has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (28 pts), ternaries 2 (6 pts), match/switch 3, boolean chains 1 (nesting depth added 18). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/General.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2426c0b3cd65095e80668b9bac16341d25f438326cdab9c0454d5cf4dac81cd"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginController.index (cognitive 37): PluginController.index has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (21 pts), ternaries 3 (9 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Http/Controllers/V2/Admin/PluginController.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9f7ce0b6df3dbc8ac2bf07f6531578178af85368d28202fd89648c0f6f7e17"}},{"ruleId":"D2","level":"warning","message":{"text":"ClashMeta.buildVless (cognitive 35): ClashMeta.buildVless has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (29 pts), match/switch 3, ternaries 1 (3 pts) (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/ClashMeta.php"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b6900f085fe8ef9e45d6456d939f3ea8050e1311ef72441e5d4d18662f82a1"}},{"ruleId":"D2","level":"warning","message":{"text":"Clash.handle (cognitive 34): Clash.handle has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 4 (7 pts), boolean chains 1, ternaries 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Clash.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a172bc2fe99a8e5f4e82de6ae0fdcea2a143c716104dc50032c2fbbc9371b58"}},{"ruleId":"D2","level":"warning","message":{"text":"General.buildVmess (cognitive 34): General.buildVmess has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 4 (10 pts), boolean chains 1, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/General.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae88ba65070f8867f7b637a31b93e9a87022a841b46431102ea54b12b94a5ce"}},{"ruleId":"D2","level":"warning","message":{"text":"SingBox.buildOutbounds (cognitive 34): SingBox.buildOutbounds has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 4, loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/SingBox.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13dad435fea214fdc71e33a165a7cb66237f2a69b74e8566bb816e7531453ed"}},{"ruleId":"D2","level":"warning","message":{"text":"General.buildTrojan (cognitive 33): General.buildTrojan has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 2 (6 pts), match/switch 2, boolean chains 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/General.php"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae071b85738ad54eae608f924e993198c9a78280efe137dcdb0b6be0f725c671"}},{"ruleId":"D2","level":"warning","message":{"text":"Loon.buildVmess (cognitive 33): Loon.buildVmess has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (26 pts), ternaries 2 (6 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":"app/Protocols/Loon.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4285e9d11d69a14843021f601645edfda3512181045b099e5e0bf85c4f0bc1"}},{"ruleId":"D2","level":"warning","message":{"text":"Shadowrocket.buildVless (cognitive 33): Shadowrocket.buildVless has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (31 pts), match/switch 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Shadowrocket.php"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f8454172f5f044b1371a33dc6eb50b666f75851a89f30d1f58726afb03aea7"}},{"ruleId":"D2","level":"warning","message":{"text":"HookManager.remove (cognitive 33): HookManager.remove has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (29 pts), loops 2 (4 pts) (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":"app/Services/Plugin/HookManager.php"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"82df6c27dd425c7559a9a572bdcb1944423346a6dd79bcab6379261d9c20e70e"}},{"ruleId":"D2","level":"warning","message":{"text":"Loon.buildVless (cognitive 32): Loon.buildVless has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (23 pts), ternaries 3 (7 pts), match/switch 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Loon.php"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"039717287eef5b05cc62ce11a8739ac3d70522659af370a0b6be24d4f406f5bb"}},{"ruleId":"D2","level":"warning","message":{"text":"Loon.buildTrojan (cognitive 31): Loon.buildTrojan has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (22 pts), ternaries 3 (7 pts), match/switch 2 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Loon.php"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e95ca4911bc4c3fb2c6772394f3cd2ef20e9906d60ff8fce4cd41f0d1c7c5b"}},{"ruleId":"D2","level":"warning","message":{"text":"UserController.buildFilterQuery (cognitive 30): UserController.buildFilterQuery has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 6 (14 pts), if/else 9 (13 pts), boolean chains 2, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Http/Controllers/V2/Admin/UserController.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b506967a9253efba198b9f9ecf06137feb9685aff0de55baf611afda6dca6a89"}},{"ruleId":"D2","level":"warning","message":{"text":"GiftCardTemplate.calculateActualRewards (cognitive 30): GiftCardTemplate.calculateActualRewards has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 2 (7 pts), boolean chains 3 (nesting depth added 18). 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":"app/Models/GiftCardTemplate.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"547b47011d11ffdca7df0bdfc4e0b291f1d560f8539ef885708b77606a0bb4ea"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateService.checkForUpdates (cognitive 30): UpdateService.checkForUpdates has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (8 pts), boolean chains 3, ternaries 1 (2 pts), error handling 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Services/UpdateService.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81982a265fa7b3e9d36bdf6585d6d694daaf31ac991222f2f5a7af99e9f167e"}},{"ruleId":"D2","level":"warning","message":{"text":"Shadowrocket.buildVmess (cognitive 28): Shadowrocket.buildVmess has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (27 pts), match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Shadowrocket.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"850cf132455a594238f8851207f9211df2b86db4a74f317512927b25867712f7"}},{"ruleId":"D2","level":"warning","message":{"text":"QuantumultX.applyTransportSettings (cognitive 27): QuantumultX.applyTransportSettings has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 6 (15 pts), if/else 5 (9 pts), match/switch 2, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/QuantumultX.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1789b9ef8e6fdd51dce85bf7fee65205268d5ba6ed5fb3c01e893cbbf7c8a3f7"}},{"ruleId":"D2","level":"warning","message":{"text":"GiftCardTemplate.checkUserConditions (cognitive 26): GiftCardTemplate.checkUserConditions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 6, match/switch 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":"app/Models/GiftCardTemplate.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"00995636566a65c197513362f25fc7a97d01e303cf16331183ced68ee0e0ee31"}},{"ruleId":"D2","level":"warning","message":{"text":"ClashMeta.buildVmess (cognitive 26): ClashMeta.buildVmess has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 2 (5 pts), match/switch 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/ClashMeta.php"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"0769dd317cfe7b6b7221e8f14145b27a87546054feeacd6770441a927edc7ef9"}},{"ruleId":"D2","level":"warning","message":{"text":"Surfboard.buildVmess (cognitive 24): Surfboard.buildVmess has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 1 (4 pts), boolean chains 2 (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":"app/Protocols/Surfboard.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"65348d76ff9780ef86d15b5c837c6bbbbd6cbea38415604f4e75df269012f5df"}},{"ruleId":"D2","level":"warning","message":{"text":"MailService.sendEmail (cognitive 24): MailService.sendEmail has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 5 (8 pts), boolean chains 6, 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":"app/Services/MailService.php"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab47586b4ad76b89228c144a9907ee989b971f0a102e05d892b9f1e215a5ea9d"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderService.setOrderType (cognitive 24): OrderService.setOrderType has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5 (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":"app/Services/OrderService.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6539baa56db9a227eaf0ca5b530b7a074d4fdde784e718eabb43291d38dc4cf7"}},{"ruleId":"D2","level":"warning","message":{"text":"ClashMeta.buildTrojan (cognitive 23): ClashMeta.buildTrojan has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), ternaries 1 (3 pts), match/switch 2 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/ClashMeta.php"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"605fe04fa5333c228278a696a3b257ea7c240865fc7b68da34b3f065fded5098"}},{"ruleId":"D2","level":"warning","message":{"text":"Stash.buildVless (cognitive 23): Stash.buildVless has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 2 (5 pts), match/switch 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":"app/Protocols/Stash.php"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4688ef48d28c3db64126805a9fcacb7cb0252282a74c878317c8fab0f061314"}},{"ruleId":"D2","level":"warning","message":{"text":"RegisterService.validateRegister (cognitive 23): RegisterService.validateRegister has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 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":"app/Services/Auth/RegisterService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ef86706a4d120f98051f9c7f35c849fbf64c963513a5de4ce927dbf4d5f622"}},{"ruleId":"D2","level":"warning","message":{"text":"XboardInstall.handle (cognitive 22): XboardInstall.handle has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, error handling 2 (3 pts), loops 3, match/switch 2, ternaries 2 (nesting depth added 2). 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":"app/Console/Commands/XboardInstall.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"360838fa504063a69cfff2c9c586d94619a422a10ada05652a2ded950980a3b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Surge.buildVmess (cognitive 22): Surge.buildVmess has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 1 (4 pts) (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":"app/Protocols/Surge.php"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd0b30e329f0bc7df73a4c3fbb8f7e7805bbf031eadc71625df04af072e0273"}},{"ruleId":"D2","level":"warning","message":{"text":"FilterScope.scopeSetFilterAllowKeys (cognitive 22): FilterScope.scopeSetFilterAllowKeys has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Scope/FilterScope.php"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"651ee5cf3c8d2eb9926a070ddc883ded06c2e5434c247874d319a32a42334137"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientController.getClientInfo (cognitive 21): ClientController.getClientInfo has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (2 pts) (nesting depth added 12). 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":"app/Http/Controllers/V1/Client/ClientController.php"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"32db648d08e6aef0eba686a916ed4eba9f3f9e5212219097ab39c07ed3220e41"}},{"ruleId":"D2","level":"warning","message":{"text":"Shadowrocket.buildTrojan (cognitive 21): Shadowrocket.buildTrojan has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 1 (3 pts), match/switch 2 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Shadowrocket.php"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba089c699388d1e5640e63473dc6fbe07837fffda3e3039e7955be8c6f0c312f"}},{"ruleId":"D2","level":"warning","message":{"text":"GiftCardService.giveRewards (cognitive 20): GiftCardService.giveRewards has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5 (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":"app/Services/GiftCardService.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"475a84af57e63d2b77f5f0a3ee7dc8f38565ca978437757ac3de749731b27964"}},{"ruleId":"D2","level":"warning","message":{"text":"Shadowrocket.buildHysteria (cognitive 19): Shadowrocket.buildHysteria has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Shadowrocket.php"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6650f2b543600592c972d23c74e17bdc7175742dc26a81fb7f3e93a2be86ce9"}},{"ruleId":"D2","level":"warning","message":{"text":"Plugin.notify (cognitive 19): Plugin.notify has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (6 pts), loops 1 (nesting depth added 1). 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":"plugins-core/Epay/Plugin.php"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"162aac55c59337b93ff0ea6aa5aaaca4d850054dbb650e2b86f4c677122e337b"}},{"ruleId":"D2","level":"warning","message":{"text":"UserController.update (cognitive 18): UserController.update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, error handling 1 (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":"app/Http/Controllers/V2/Admin/UserController.php"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"7209a088cd941b9fd18ac2385bcab0874ed36d59d66fd61ec0dc9622a6851b86"}},{"ruleId":"D2","level":"warning","message":{"text":"Shadowrocket.handle (cognitive 18): Shadowrocket.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), 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":"app/Protocols/Shadowrocket.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"56521b0d58952044a703e7e480608c5ce0eeb4bd96e9dcaac4b624934cae126b"}},{"ruleId":"D2","level":"warning","message":{"text":"Stash.buildVmess (cognitive 18): Stash.buildVmess has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (5 pts), match/switch 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":"app/Protocols/Stash.php"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a5ad1b87d5d5d5518bf46aab41312dfd4fe9caaf5469b4e2d595662d491c8e"}},{"ruleId":"D2","level":"warning","message":{"text":"Surge.handle (cognitive 18): Surge.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 2, boolean chains 1, 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":"app/Protocols/Surge.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"615820ef5c54e35582d5b3b492176f3f79b84528045f6c357050ea36a29db15b"}},{"ruleId":"D2","level":"warning","message":{"text":"CouponService.check (cognitive 18): CouponService.check has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5 (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":"app/Services/CouponService.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a3a064cf9c50d57b2bc66a8a84ee27e95e4411102206d00b8185fe57b899a5"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderService.getSurplusValue (cognitive 18): OrderService.getSurplusValue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 3 (6 pts) (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":"app/Services/OrderService.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9e3a4dec0c9eb4c93476631e7f7ca6f25805eb6fb985593c2f47c3dfdc61ec"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentService.__construct (cognitive 18): PaymentService.__construct has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1 (2 pts), ternaries 1 (2 pts) (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":"app/Services/PaymentService.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c2d0b594e1e7bea646e11a2a97b9101b77808d444fd51a6fd47f441e265cd5"}},{"ruleId":"D2","level":"warning","message":{"text":"TrafficResetService.batchCheckReset (cognitive 18): TrafficResetService.batchCheckReset has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), error handling 2 (4 pts), loops 2 (3 pts) (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":"app/Services/TrafficResetService.php"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"977e3f38118973bc3085ebc1a016cdf013e0e1861bee6f932e75f0285de1d695"}},{"ruleId":"D2","level":"warning","message":{"text":"HookList.handle (cognitive 17): HookList.handle has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 3 (5 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Console/Commands/HookList.php"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b618553517b6714782294b412dfab20d9a53574237e0c58292353805ad280b"}},{"ruleId":"D2","level":"warning","message":{"text":"Clash.buildVmess (cognitive 17): Clash.buildVmess has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 1 (2 pts), match/switch 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":"app/Protocols/Clash.php"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3088ad492a5d457c62573e70fdfa9489c952511cc9afb53727ea2d6d7c234dd7"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerService.buildNodeConfig (cognitive 17): ServerService.buildNodeConfig has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 6, ternaries 2, boolean chains 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Services/ServerService.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"31062c9907abe1839a4557a23dcd088d4e8836ae6294ef0691d152bd693040ef"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderController.assign (cognitive 16): OrderController.assign has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, 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, 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":"app/Http/Controllers/V2/Admin/OrderController.php"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12ed2fee7d22a3f42dc8786fd95dc1d1d9312165ab8d33d6f2751b37e612242"}},{"ruleId":"D2","level":"warning","message":{"text":"ClashMeta.buildShadowsocks (cognitive 16): ClashMeta.buildShadowsocks has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (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":"app/Protocols/ClashMeta.php"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a85201cac7994904cf8dd230f8c32ad4b5e2280d7a2933f7aac19ca234b2783"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeWorker.setupTimers (cognitive 16): NodeWorker.setupTimers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeWorker.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b425f7c772bcba418e1102e66acd663bdf1fa2c72532497b042fcd02196b86"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AdminRoute.map: MethodTooLong \u2014 map runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\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":"app/Http/Routes/V2/AdminRoute.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4733439d71192dfe1d1ad3184033a0b3694f01c3f72b06d3d2805a47bb2f51c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ClashMeta: ClassTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded), 17 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":"app/Protocols/ClashMeta.php"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"68188fb9a1102fb892fee8737564a2cab22854faa713e31b503f7ec62d804d7d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SingBox: ClassTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 167 over it, 1.42\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":"app/Protocols/SingBox.php"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"076d281317dcd1bf01eb49b84684e083b59a6c00ea3afbbe48c0c70374533b0d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OriginV2bMigrationsTableSeeder.run: MethodTooLong \u2014 run runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"database/seeders/OriginV2bMigrationsTableSeeder.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"06473fc5b71767a96eec33f18ca1e2d12e2b4eafd5933382b1e667fdbece5584"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MigrateFromV2b.handle: MethodTooLong \u2014 handle runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\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":"app/Console/Commands/MigrateFromV2b.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a367f0966818ffbec9e5ac72b5cabe0977331e93a3fe249da2d6ec9fbfd8eae"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UserController: ClassTooLong \u2014 474 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 74 over it, 1.19\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":"app/Http/Controllers/V2/Admin/UserController.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4dc67fa893d9374a918afa1208c1bcf8c6bc8cc0fb34cb73a8ae9ec74d62ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Protocols/ClashMeta.php: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ClashMeta (11-816). The bar is 500 significant lines; this is 92 over it, 1.18\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":"app/Protocols/ClashMeta.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ac8d40e33d9c0fcd54ebdc22e9ba9a893ee1a20c4d0dbe020b2d544ad42528"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Protocols/SingBox.php: FileTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SingBox (10-935). The bar is 500 significant lines; this is 74 over it, 1.15\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":"app/Protocols/SingBox.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60087f900b4124fd1f9d1d6e5c67841c4fd0f9764d4fc381f75a7783736b5bd7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PluginManager: 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":"app/Services/Plugin/PluginManager.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14a5531b74b97ca855644721e41cf4bdb53c4bdf114c5d84fb549b919e4d4b4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XboardInstall.handle: MethodTooLong \u2014 handle runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"app/Console/Commands/XboardInstall.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bc5856473eea75e262b70a1ebfda453afda04c210a36e3eba1ad804a44b7c5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServerService.buildNodeConfig: MethodTooLong \u2014 buildNodeConfig runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"app/Services/ServerService.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"af77b7ccb8d0bd67b626dccc8f55e672d9c168df2518a9b13573057c6c5dd7f6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigController.getConfigMappings: MethodTooLong \u2014 getConfigMappings runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"app/Http/Controllers/V2/Admin/ConfigController.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25ebdd7976c4abaaee74411df0520a4247e45755fc07bb89fe7e6b6a47e497f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StatController.getStats: MethodTooLong \u2014 getStats runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"app/Http/Controllers/V2/Admin/StatController.php"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5131e81fe0efc2f1f055ceaa091e56d4afd0f9b86dd8679bfeb17dabc9fc18"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Stash: ClassTooLong \u2014 416 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 16 over it, 1.04\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":"app/Protocols/Stash.php"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5853e05590f61d6435f05ebf259c3aa7fa910a85ded1b98cb3094e05365c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 67 shared lines): app/Protocols/Clash.php:25-106 | app/Protocols/ClashMeta.php:146-233 | app/Protocols/Stash.php:91-178 \u2014 These 3 members are variants of one another: a block of 67 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 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. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Clash.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e32101866ab647f63cd84e8e1f3a749b103be2c27a20b6f6df7238ca5c1992"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): app/Protocols/Shadowrocket.php:98-170 | app/Protocols/Shadowrocket.php:175-282 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Shadowrocket.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97ce37b42b789e12af77aab50cf83db7b1596c53fee91d5a24b60fde4c5cc66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): app/Protocols/Loon.php:110-180 | app/Protocols/Loon.php:185-247 \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":"app/Protocols/Loon.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9770e175e9077b73b036b619d4e536c766951acd59d951be4034e3c91886d163"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): app/Protocols/Clash.php:181-228 | app/Protocols/Clash.php:233-266 | app/Protocols/Clash.php:293-309 | app/Protocols/ClashMeta.php:733-749 | app/Protocols/Stash.php:242-294 | app/Protocols/Stash.php:299-371 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 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. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Clash.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e234f446e2b6ea5d021baf6630c1ede9dc0cf70eca7cb3393b8bccf0302b63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 73\u002B corresponding lines): app/Protocols/General.php:79-152 | app/Protocols/General.php:157-244 | app/Protocols/General.php:249-321 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 73 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":"app/Protocols/General.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a421f510680e964dd169227326b254c2fec4fbe2c889d24fec67296a24af045"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): app/Protocols/Surfboard.php:25-89 | app/Protocols/Surge.php:31-103 \u2014 These two members are one piece of code written twice and then edited apart: 65 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":"app/Protocols/Surfboard.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b094b4e2ce68e4b70c0ab0e6c08ebffa0af85a5c336a659c78969a0add08d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): app/Protocols/ClashMeta.php:332-401 | app/Protocols/ClashMeta.php:515-586 \u2014 These two members are one piece of code written twice and then edited apart: 70 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":"app/Protocols/ClashMeta.php"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f121f3182c7f0d1f4ddf88939fda19541aad8a0aeb49ac540d771b721727d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): app/Http/Controllers/V2/Admin/UserController.php:461-527 | app/Http/Controllers/V2/Admin/UserController.php:532-608 \u2014 These two members are one piece of code written twice and then edited apart: 67 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":"app/Http/Controllers/V2/Admin/UserController.php"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"257116f8c02b77e8c9c9560183b476c6dfe247e6b7d7b1867659cffc6d16019b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): app/Console/Commands/XboardInstall.php:299-335 | app/Console/Commands/XboardInstall.php:345-383 \u2014 These two members are one piece of code written twice and then edited apart: 37 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":"app/Console/Commands/XboardInstall.php"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"941523ee20e338903d3cd918cc4491a428e0930fd3f4b834f28987d1bb03c0d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): app/Protocols/Surfboard.php:95-137 | app/Protocols/Surge.php:109-148 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"app/Protocols/Surfboard.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c052f5cdd3361020e699e556fc1f7899729c7970bb225ab86cd310208c91c63b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): app/Protocols/Loon.php:63-105 | app/Protocols/QuantumultX.php:46-83 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"app/Protocols/Loon.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cec237331c1b983b24c7bda708b0d3cf6a42f3be3e2016c7fe9b6cffad25342"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): app/Protocols/Surfboard.php:142-178 | app/Protocols/Surge.php:153-187 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"app/Protocols/Surfboard.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61f2a359669cc5c82154a1185d59d570f59f7250f4b0985bd69b5f15724cd00"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): app/Http/Routes/V1/ServerRoute.php:14-43 | app/Http/Routes/V2/ServerRoute.php:15-34 \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":"app/Http/Routes/V1/ServerRoute.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb41d32c2898eb813a531bf2ea1e45f48a826b83b6e7c4b880d3771e0d5b0ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/Protocols/General.php:33-53 | app/Protocols/QuantumultX.php:24-41 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"app/Protocols/General.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"797fbf3d3b8d9bcb7cbb4e62a9a738298086de9fba7299335b55370244f92b1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): app/Services/TrafficResetService.php:130-149 | app/Services/TrafficResetService.php:171-190 \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":"app/Services/TrafficResetService.php"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"acec875dc3b529f5e1b26142c001e7af4e4d7eb2d99d3dd9b421c4524c9efecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): app/Http/Controllers/V1/Server/ShadowsocksTidalabController.php:48-63 | app/Http/Controllers/V1/Server/TrojanTidalabController.php:53-70 \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":"app/Http/Controllers/V1/Server/ShadowsocksTidalabController.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3955dda685d8962fec9ecaf6dc10ebca1073814f48520443f3d843842724ee0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): app/Http/Controllers/V1/Server/ShadowsocksTidalabController.php:23-42 | app/Http/Controllers/V1/Server/TrojanTidalabController.php:25-47 \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":"app/Http/Controllers/V1/Server/ShadowsocksTidalabController.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6025232e2a784898c82452c164aab8ba421d051525c09edf31455a6deee5f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/Http/Controllers/V2/Admin/Server/ManageController.php:54-75 | app/Http/Controllers/V2/Admin/Server/RouteController.php:23-52 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"app/Http/Controllers/V2/Admin/Server/ManageController.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbcd593d479144230816ada93d86e731f4741459aa4462a42e081068fbd2f7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): app/Protocols/General.php:58-74 | app/Protocols/Shadowrocket.php:77-93 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"app/Protocols/General.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f33781a348a4ce3f4544346a8200f7050449ca90b6345a28cb764ce62f197a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/Http/Controllers/V1/User/OrderController.php:101-115 | app/Services/OrderService.php:480-494 \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":"app/Http/Controllers/V1/User/OrderController.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbe7a68e14b341d831b40fbc14636b3a7c0161e57c8e2134056b9505646742f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): database/migrations/2023_09_04_190923_add_column_excludes_to_server_table.php:40-54 | database/migrations/2023_09_06_195956_add_column_ips_to_server_table.php:40-54 \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":"database/migrations/2023_09_04_190923_add_column_excludes_to_server_table.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7319e8419b1c66ca5ff2dcb1270c565e88b1ecf8b5998fd9dec8dba52d77b1f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/Http/Controllers/V2/Admin/OrderController.php:145-157 | app/Http/Controllers/V2/Admin/OrderController.php:162-174 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"app/Http/Controllers/V2/Admin/OrderController.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b9eaf83d6a4e9d51f15062f885b3617a7c8fdf28299b059a7ef06b983bdbf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): app/Http/Controllers/V2/Admin/PaymentController.php:112-131 | app/Http/Controllers/V2/Admin/PlanController.php:113-130 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"app/Http/Controllers/V2/Admin/PaymentController.php"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eda9dd5876373610d3d0f78f9c8a782d7f220eaf5a275496dfb8000e925cf5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): plugins-core/Btcpay/Plugin.php:116-129 | plugins-core/Coinbase/Plugin.php:104-117 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"plugins-core/Btcpay/Plugin.php"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc7146fa8f9d49a486d1c215d62ca2dd39f8e17fb81246f9d5bf16e7a0cf88b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): app/Services/StatisticalService.php:116-132 | app/Services/StatisticalService.php:140-154 \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":"app/Services/StatisticalService.php"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"14787cd4bb3a2c07284b9d7ab51b9d94b5c4458d9c95c39445b3c9fcfd80d4df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): app/Http/Controllers/V2/Admin/PluginController.php:158-179 | app/Http/Controllers/V2/Admin/PluginController.php:322-344 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"app/Http/Controllers/V2/Admin/PluginController.php"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a794c0eb69b8e946941e9e8a932a46b54b3ebc0854dd4a5dc839ebf6a9ee75d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): app/Http/Controllers/V2/Admin/Server/ManageController.php:137-156 | app/Http/Controllers/V2/Admin/Server/ManageController.php:166-185 | app/Http/Controllers/V2/Admin/Server/ManageController.php:195-216 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"app/Http/Controllers/V2/Admin/Server/ManageController.php"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"040679a919e9a63c6813d4915f18cf79c753c865869bae1e7564a11f6ee1c894"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/Services/Plugin/HookManager.php:161-173 | app/Services/Plugin/HookManager.php:186-198 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"app/Services/Plugin/HookManager.php"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a77d036e8aa8e06a66e91fcc1b4fc7c1829cca8e5e7f7d01a6c8b7c9807a9ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/WebSocket/NodeEventHandlers.php:87-100 | app/WebSocket/NodeEventHandlers.php:108-119 \u2014 These two members are one piece of code written twice and then edited apart: 12 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":"app/WebSocket/NodeEventHandlers.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"255407e44f749799fe46c16c75c4c3909507a792afc1718601062e7a662ee79a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): app/Http/Controllers/V1/User/InviteController.php:31-42 | app/Http/Controllers/V1/User/NoticeController.php:13-24 \u2014 These two members are one piece of code written twice and then edited apart: 12 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":"app/Http/Controllers/V1/User/InviteController.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdf097fc5d3f7d76d28d9ff092710c8e2be442743d869ce049df1047826b83d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): app/Http/Controllers/V2/Admin/CouponController.php:170-184 | app/Http/Controllers/V2/Admin/KnowledgeController.php:98-111 | app/Http/Controllers/V2/Admin/NoticeController.php:68-78 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 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":"app/Http/Controllers/V2/Admin/CouponController.php"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc35f13309000ae00807f03d126fb50834e56f0365679e937e15c94bf4a7cc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): app/Http/Controllers/V1/Server/UniProxyController.php:26-38 | app/Http/Controllers/V1/Server/UniProxyController.php:57-69 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"app/Http/Controllers/V1/Server/UniProxyController.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"340b87ab95be7e199fef72df527df8d57874e2140738a8214357af3e08b9f59e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 17\u002B corresponding lines): app/Protocols/Loon.php:342-362 | app/Protocols/Surge.php:214-230 | app/Protocols/Surge.php:266-289 | app/Protocols/Surge.php:295-317 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 17 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":"app/Protocols/Loon.php"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51ea763b2bec8caf5b8704f1121fde497150127d9f795285ec4af6b77669af3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): plugins-core/Btcpay/Plugin.php:58-78 | plugins-core/Coinbase/Plugin.php:52-76 \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":"plugins-core/Btcpay/Plugin.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d4c2a4ce2463bacce45dc7c29189b1d4f670b7ec1d9939ac1d157593f4ad83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): app/Jobs/StatServerJob.php:95-121 | app/Jobs/StatUserJob.php:78-104 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"app/Jobs/StatServerJob.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee26172ac2c52ce0684164883209303b52e1a64a128b0ded58ac1271656ad47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): app/Protocols/ClashMeta.php:667-685 | app/Protocols/SingBox.php:770-789 \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":"app/Protocols/ClashMeta.php"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ce446e3202c27ab74339e0070035f23aa222f6debca2e832ad7762c9290738"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): plugins-core/Telegram/Plugin.php:352-364 | plugins-core/Telegram/Plugin.php:369-384 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"plugins-core/Telegram/Plugin.php"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcf80bd6789155d32cad42656184f5bfe88a32c9fe93d9cc666b637eb6af068"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): app/Console/Commands/ResetTraffic.php:266-274 | app/Services/UserService.php:58-64 \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":"app/Console/Commands/ResetTraffic.php"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"deafbde71847725176a6dfd0e396340505775347afc70b27cfa8506a99022322"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): app/Models/Plan.php:190-195 | app/Services/PlanService.php:183-186 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"app/Models/Plan.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"254a67280d635aa20fa6123b314cabd0aba4b2df0af70ecba3095258b928e84e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): app/Protocols/ClashMeta.php:799-803 | app/Protocols/SingBox.php:914-921 \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":"app/Protocols/ClashMeta.php"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1cc42d705d6a8701728ff510197ab61aa7bc3b21c3a7937f18adcc25321a591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52\u201355 lines \u00D7 2): app/Protocols/Clash.php:125-176 | app/Protocols/Stash.php:183-237 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/Stash.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 212 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":"app/Protocols/Clash.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf1e94b581cbcf80c3894a77310a0e750320de625512c26c79aec9e3398dfb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): app/Console/Commands/ResetTraffic.php:155-196 | app/Console/Commands/ResetTraffic.php:204-245 \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":"app/Console/Commands/ResetTraffic.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e2fe6bbf2ee96b5a83acc9ef26795c2ef157729513a768bbb640545bd42ffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201338 lines \u00D7 2): app/Protocols/Surfboard.php:25-62 | app/Protocols/Surge.php:31-61 \u2014 before extracting anything, compare \u0060app/Protocols/Surfboard.php\u0060 and \u0060app/Protocols/Surge.php\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 150 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 \u0060app/Protocols/Surfboard.php:25\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":"app/Protocols/Surfboard.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1901eb0cf16ea7922a7305289929b500ce3d1804dc179e261326a8da82342b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60\u201362 lines \u00D7 2): app/Http/Controllers/V2/Admin/UserController.php:466-527 | app/Http/Controllers/V2/Admin/UserController.php:549-608 \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 \u0060app/Http/Controllers/V2/Admin/UserController.php:466\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":"app/Http/Controllers/V2/Admin/UserController.php"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2bd2e700ecc3eb8d15428614128e557f16436e09407eea1cb0839c934b021b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201328 lines \u00D7 2): app/Protocols/ClashMeta.php:633-652 | app/Protocols/Stash.php:471-498 \u2014 before extracting anything, compare \u0060app/Protocols/ClashMeta.php\u0060 and \u0060app/Protocols/Stash.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 189 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 \u0060app/Protocols/Stash.php:471\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/ClashMeta.php"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b809fe8add30542aa601585ff2ab6e246eae1c8542f5c94aff8fcac739b894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): app/Http/Controllers/V1/Client/AppController.php:64-88 | app/Http/Controllers/V2/Client/AppController.php:126-151 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Http/Controllers/V1/Client/AppController.php:64\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":"app/Http/Controllers/V1/Client/AppController.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"436b1018415b50571ed8e848ae44eb5a18f0581979b20e92c2ffd060d9e858cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 3): app/Protocols/Clash.php:64-93 | app/Protocols/ClashMeta.php:195-223 | app/Protocols/Stash.php:136-164 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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 \u0060app/Protocols/Clash.php:64\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":"app/Protocols/Clash.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1075049037c52f428965ff71d49035cd13618dec6c28a7e4d40266a8b1a9fe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): app/Http/Controllers/V2/Admin/GiftCardController.php:159-182 | app/Http/Controllers/V2/Admin/GiftCardController.php:561-583 \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":"app/Http/Controllers/V2/Admin/GiftCardController.php"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"340b0a9cfa88997e93cd40b89a97d9645997fc4c63b5102cf33a474921757d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): app/Protocols/ClashMeta.php:374-396 | app/Protocols/ClashMeta.php:469-491 | app/Protocols/ClashMeta.php:558-580 \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":"app/Protocols/ClashMeta.php"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"d709e3663137af910d7dbf8242a0fbd637af6f918128a556e5b47b87a60a30ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201322 lines \u00D7 4): app/Protocols/Loon.php:66-86 | app/Protocols/QuantumultX.php:49-64 | app/Protocols/Surfboard.php:96-117 | app/Protocols/Surge.php:110-129 \u2014 before extracting anything, compare \u0060app/Protocols/Loon.php\u0060 and \u0060app/Protocols/Surfboard.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 \u0060app/Protocols/Loon.php:66\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/Protocols/Loon.php:64\u0060 calls \u0060data_get\u0060 and \u0060app/Protocols/Surfboard.php:95\u0060 does not \u2014 after which the two agree again for 4 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":"app/Protocols/Loon.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6c5e4c8f88e77c7da142c4494672a90fb41665ef59634bb375a1a5be08684d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): app/Http/Controllers/V2/Admin/CouponController.php:18-38 | app/Http/Controllers/V2/Admin/TicketController.php:16-36 \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":"app/Http/Controllers/V2/Admin/CouponController.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14a262ec00f66f0b9654b2cb5ba453942ad03d55663302fafd2ccfd65b868b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): app/Protocols/Stash.php:522-541 | app/Protocols/Stash.php:546-564 \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":"app/Protocols/Stash.php"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"8816221b00f270801daa2c4a3e0d90609c453c757ddfb2817a215a244691f53b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/Console/Commands/XboardInstall.php:299-317 | app/Console/Commands/XboardInstall.php:345-363 \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 \u0060app/Console/Commands/XboardInstall.php:299\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":"app/Console/Commands/XboardInstall.php"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"44785e319c2da5971c6f9801fcec55e6ae9b2846b14d8c3121a0fb9eebd94f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/Protocols/Loon.php:369-387 | app/Protocols/Surfboard.php:206-227 \u2014 before extracting anything, compare \u0060app/Protocols/Loon.php\u0060 and \u0060app/Protocols/Surfboard.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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 \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":"app/Protocols/Loon.php"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"e109ba2531de4d7ff3af4fa43e0281eea48ecd293a6d35e440f5ec6db7b081f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/Protocols/Clash.php:271-288 | app/Protocols/ClashMeta.php:711-728 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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 \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":"app/Protocols/Clash.php"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d961b775fd8668978c70f0fc933cff72d6b46fa11893cb18e714e80c078f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/Protocols/Loon.php:155-172 | app/Protocols/Loon.php:221-238 \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":"app/Protocols/Loon.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"0595e0eba6b2735bcc875fcbb711848cd8eabd95365bacd7e46395e990e92ada"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/Protocols/Surge.php:266-283 | app/Protocols/Surge.php:295-312 \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":"app/Protocols/Surge.php"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"81aca5967b99839abcbe38585ea349516c6df01f14233951838cc403c243292e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): app/Protocols/Clash.php:200-214 | app/Protocols/ClashMeta.php:354-370 | app/Protocols/Stash.php:335-351 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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":"app/Protocols/Clash.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ebf025305d9095909d5dcd70b72dffd06ad465bf7fe6f0ad4c3306a82c6a394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): app/Protocols/Clash.php:205-218 | app/Protocols/ClashMeta.php:359-374 | app/Protocols/ClashMeta.php:454-469 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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 \u0060app/Protocols/Clash.php:205\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":"app/Protocols/Clash.php"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"d328a5ae8595eecae3d69d03d2e451432346dcfa16db3430bce2e75dd94467ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/Console/Commands/ResetTraffic.php:66-81 | app/Console/Commands/ResetTraffic.php:88-103 \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":"app/Console/Commands/ResetTraffic.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1862c589d5aded6b9119056e8fe458b1810695fe050f23755f4d27c36d5050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/Console/Commands/XboardInstall.php:320-335 | app/Console/Commands/XboardInstall.php:368-383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Console/Commands/XboardInstall.php:320\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"app/Console/Commands/XboardInstall.php"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"690237ea81006ba74bc6c092a7281630695f2aa4c592da59fda6592225238a22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/Protocols/Clash.php:294-309 | app/Protocols/ClashMeta.php:734-749 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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 \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":"app/Protocols/Clash.php"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6150d2e4cf9d78df0a471c0a6486781260d2df52b533167e93442640774a6800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/Protocols/ClashMeta.php:147-162 | app/Protocols/Stash.php:92-107 \u2014 before extracting anything, compare \u0060app/Protocols/ClashMeta.php\u0060 and \u0060app/Protocols/Stash.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 189 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 \u0060app/Protocols/ClashMeta.php:147\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":"app/Protocols/ClashMeta.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"13305362a6ac18aad1a2d3ef56d446928835db9aa7cffcce34943f35eaa13f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): app/Protocols/Shadowrocket.php:153-167 | app/Protocols/Shadowrocket.php:264-279 \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 \u0060app/Protocols/Shadowrocket.php:153\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":"app/Protocols/Shadowrocket.php"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b66b78c29cbd8ad1b9449854d6f1ccf5a73999199b1482be1129061cf507de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 3): app/Protocols/Clash.php:25-39 | app/Protocols/ClashMeta.php:146-156 | app/Protocols/Stash.php:91-101 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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 \u0060app/Protocols/Clash.php:25\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Clash.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9329ec216879b0c7a43aa3bae529d476a0b79da83f8a10a7d40d062b15df0942"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): app/Protocols/General.php:111-124 | app/Protocols/General.php:277-291 \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 \u0060app/Protocols/General.php:111\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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/Protocols/General.php:276\u0060 calls \u0060data_get\u0060 and \u0060app/Protocols/General.php:110\u0060 does not \u2014 after which the two agree again for 2 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":"app/Protocols/General.php"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9298307f0381d5e314901ca0d1b6336fba842658b66d87cc2611e7d70f6b4ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/Protocols/Shadowrocket.php:134-148 | app/Protocols/Shadowrocket.php:246-260 \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":"app/Protocols/Shadowrocket.php"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"400790d493adb145ed821c4662135e08eb767fb2b330396d06aa03e6abda6fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): plugins-core/Btcpay/Plugin.php:134-148 | plugins-core/Coinbase/Plugin.php:122-136 \u2014 \u0060plugins-core/Btcpay/Plugin.php\u0060 and \u0060plugins-core/Coinbase/Plugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"plugins-core/Btcpay/Plugin.php"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb366a34fb0c913caad4875562f56b520c0e1392b96db31687a3c37b7ab3d96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): app/Protocols/Loon.php:367-385 | app/Protocols/Surfboard.php:204-225 | app/Protocols/Surge.php:214-227 \u2014 before extracting anything, compare \u0060app/Protocols/Loon.php\u0060 and \u0060app/Protocols/Surfboard.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 88 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":"app/Protocols/Loon.php"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa023b0ff00440ff4cc47e3a5f0012adf8466b55fa00e0137c8ecd7e837adde0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/Protocols/Shadowrocket.php:126-139 | app/Protocols/Shadowrocket.php:231-244 \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":"app/Protocols/Shadowrocket.php"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c93332631e1187961e0c2732da1f699d35448730c2cf9beee9e0337cb2afc2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/Protocols/Surfboard.php:124-137 | app/Protocols/Surge.php:136-148 \u2014 before extracting anything, compare \u0060app/Protocols/Surfboard.php\u0060 and \u0060app/Protocols/Surge.php\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 150 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 \u0060app/Protocols/Surfboard.php:124\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":"app/Protocols/Surfboard.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6d89e687d9ac4900d6a0d8e7becd7341dff2c2d41c40e5ebc0687607c0d209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): plugins-core/Epay/Plugin.php:82-95 | plugins-core/Mgate/Plugin.php:109-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"plugins-core/Epay/Plugin.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48b1e5cbb5f806d219b3b7e24fe6d8fe64b7cc19330b9db5f4be7409a83abac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): app/Protocols/Clash.php:212-224 | app/Protocols/Clash.php:249-261 | app/Protocols/ClashMeta.php:368-380 | app/Protocols/ClashMeta.php:463-475 | app/Protocols/ClashMeta.php:552-564 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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":"app/Protocols/Clash.php"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40824d3546be8713e8b6f1678992cd480a83fb9a1cc0231a52906afc8cd494e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/Services/Plugin/HookManager.php:229-242 | app/Services/Plugin/HookManager.php:246-259 \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 \u0060app/Services/Plugin/HookManager.php:229\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":"app/Services/Plugin/HookManager.php"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efb4411d37d9cb616b3496a138b0038a382ba1469344f91b6647838713a0be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 5): app/Protocols/Clash.php:142-153 | app/Protocols/Loon.php:82-91 | app/Protocols/Stash.php:200-211 | app/Protocols/Surfboard.php:113-122 | app/Protocols/Surge.php:125-134 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/Stash.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 212 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 \u0060app/Protocols/Clash.php:142\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":"app/Protocols/Clash.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"829df052f6019b3804cedfdcbc811112de807df229f064d4ba3095fe66bc1e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Http/Controllers/V2/Admin/OrderController.php:185-196 | app/Http/Controllers/V2/Admin/PlanController.php:97-108 \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":"app/Http/Controllers/V2/Admin/OrderController.php"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aef97a83535f3a87c6d2389f86d94beec3370edde6e9f6fbfc6d896b9b9be01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Http/Controllers/V2/Admin/UserController.php:614-625 | app/Http/Controllers/V2/Admin/UserController.php:684-695 \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":"app/Http/Controllers/V2/Admin/UserController.php"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c16c79279890ce0f5d1d63823827aff68f4948d74993274a4e560fea07fc8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Protocols/ClashMeta.php:175-186 | app/Protocols/Stash.php:120-131 \u2014 before extracting anything, compare \u0060app/Protocols/ClashMeta.php\u0060 and \u0060app/Protocols/Stash.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 189 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 \u0060app/Protocols/ClashMeta.php:175\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":"app/Protocols/ClashMeta.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c962f79d025cef9ad20f45b478f466c15bfe29d18cd9cfb774739ada62297e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Protocols/General.php:140-151 | app/Protocols/General.php:304-315 \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 \u0060app/Protocols/General.php:140\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":"app/Protocols/General.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7c8db201b6354c9af08ef7940bb7d4c9f86e017f348758d606ac0e08a6891d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): app/Services/StatisticalService.php:325-336 | app/Services/StatisticalService.php:349-359 \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 \u0060app/Services/StatisticalService.php:325\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/Services/StatisticalService.php:324\u0060 calls \u0060whereNotNull\u0060 and \u0060app/Services/StatisticalService.php:348\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":"app/Services/StatisticalService.php"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"6adcccd126c003055f6f5fe5c7ce4ba5da03879fb9139d7e18c37f3b1cfbdf29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/Protocols/Clash.php:133-143 | app/Protocols/ClashMeta.php:267-277 | app/Protocols/Stash.php:191-201 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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 \u0060app/Protocols/Clash.php:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/Clash.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8519f223265ccb25da65377085c3e358378d3bd9b69d7789837b55650a00fd56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/Http/Controllers/V1/Server/ShadowsocksTidalabController.php:52-63 | app/Http/Controllers/V1/Server/TrojanTidalabController.php:60-70 \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":"app/Http/Controllers/V1/Server/ShadowsocksTidalabController.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"34383b3ef377cd53398a995caf32e437113d6b190807299fc0e49a37b0e211ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/Protocols/General.php:249-259 | app/Protocols/Shadowrocket.php:287-297 \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 \u0060app/Protocols/General.php:249\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/Protocols/General.php:260\u0060 calls \u0060getTlsFingerprint\u0060, \u0060data_get\u0060 and \u0060app/Protocols/Shadowrocket.php:298\u0060 does not \u2014 after which the two agree again for 2 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":"app/Protocols/General.php"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f52956d281c61daf358a8757ab7de145160f0e1350251e4a1723fb75fc0302d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): app/Protocols/Clash.php:140-149 | app/Protocols/Loon.php:80-89 | app/Protocols/QuantumultX.php:58-67 | app/Protocols/Stash.php:198-207 | app/Protocols/Surfboard.php:111-120 | app/Protocols/Surge.php:123-132 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/Stash.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 212 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":"app/Protocols/Clash.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d5df75004b90b38268b4ae3cf09f87c58fd8e42c31893a556fa23c6aaf21f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): app/Http/Controllers/V2/Admin/GiftCardController.php:30-39 | app/Http/Controllers/V2/Admin/GiftCardController.php:356-364 | app/Http/Controllers/V2/Admin/GiftCardController.php:456-464 \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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/Http/Controllers/V2/Admin/GiftCardController.php:352\u0060 calls \u0060has\u0060, \u0060where\u0060, \u0060input\u0060 and \u0060app/Http/Controllers/V2/Admin/GiftCardController.php:454\u0060 does not \u2014 after which the two agree again for 2 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":"app/Http/Controllers/V2/Admin/GiftCardController.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0d4c27c72c983a525a375ceffc24f47127a61d51a986128e5b00bcab4f4a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/Protocols/Clash.php:56-65 | app/Protocols/ClashMeta.php:183-192 | app/Protocols/Stash.php:128-137 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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 \u0060app/Protocols/Clash.php:56\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":"app/Protocols/Clash.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d21d5bb670cec5e381c5d34c6fc781f0d89ec64fdbc8f6ada87acd3b870465"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/Protocols/Stash.php:269-278 | app/Protocols/Stash.php:349-358 | app/Protocols/Stash.php:414-423 \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":"app/Protocols/Stash.php"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc528372c6b36ad48c74dd669f1eea0842bb1a957b2dfe9eb184b9f1aed3531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Http/Controllers/V2/Admin/StatController.php:296-305 | app/Http/Controllers/V2/Admin/StatController.php:308-317 \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":"app/Http/Controllers/V2/Admin/StatController.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"28240ee3220b6c615581515662d75ddf8ea09edd9f7f6d63201a1809503b67fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Protocols/General.php:209-218 | app/Protocols/General.php:287-296 \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":"app/Protocols/General.php"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67c1dd211894bf466bc128a432d66cb3c9cadba0ee2655d4d2bd16834bf9520"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Protocols/General.php:255-264 | app/Protocols/Shadowrocket.php:205-214 \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 \u0060app/Protocols/General.php:255\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":"app/Protocols/General.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39929804e6f71af1eff322e11905fef7f2ca8f609946b78cad6a1bfa6a9580e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Protocols/Shadowrocket.php:115-124 | app/Protocols/Shadowrocket.php:217-226 \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 \u0060app/Protocols/Shadowrocket.php:115\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"app/Protocols/Shadowrocket.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4fee94f9b248d332c351bbcd925b9d363d2edd416ddc3200269db8b8f9e679"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): database/migrations/2023_09_04_190923_add_column_excludes_to_server_table.php:40-49 | database/migrations/2023_09_06_195956_add_column_ips_to_server_table.php:40-49 \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 \u0060database/migrations/2023_09_04_190923_add_column_excludes_to_server_table.php:40\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":"database/migrations/2023_09_04_190923_add_column_excludes_to_server_table.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07f09321afebe8662e9743dbef0c256bf9c9da074d0ce417cba7096b9a6b334"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Http/Controllers/V1/User/TicketController.php:61-69 | app/Http/Controllers/V1/User/TicketController.php:93-101 \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 before the matched lines, \u0060app/Http/Controllers/V1/User/TicketController.php:59\u0060 calls \u0060fail\u0060, \u0060__\u0060, \u0060empty\u0060 and \u0060app/Http/Controllers/V1/User/TicketController.php:93\u0060 does not \u2014 after which the two agree again for 2 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":"app/Http/Controllers/V1/User/TicketController.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebd802b9ba98ad84a759ef543438f3250d1b1261a413cf1c16786954ef77f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Http/Controllers/V2/Admin/OrderController.php:132-140 | app/Http/Controllers/V2/Admin/UserController.php:149-157 \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":"app/Http/Controllers/V2/Admin/OrderController.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd39c8892eb375e81a36b051ad7723fd617c0694391a0982dd0d73dfcfc8511e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Http/Controllers/V2/Admin/OrderController.php:145-153 | app/Http/Controllers/V2/Admin/OrderController.php:162-170 \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":"app/Http/Controllers/V2/Admin/OrderController.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b89db0d2687cabbf53f513abd0ec3a81ed6d20c8d0a1bc4e910b52b7869fb8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/Http/Controllers/V2/Admin/StatController.php:27-34 | app/Http/Controllers/V2/Admin/StatController.php:269-277 \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, \u0060app/Http/Controllers/V2/Admin/StatController.php:37\u0060 calls \u0060strtotime\u0060 and \u0060app/Http/Controllers/V2/Admin/StatController.php:280\u0060 does not \u2014 after which the two agree again for 4 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":"app/Http/Controllers/V2/Admin/StatController.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e716ebcea07c8bd997c702866c87b45722c338c63d952af22a59904b30b3ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Http/Controllers/V2/Admin/StatController.php:314-322 | app/Http/Controllers/V2/Admin/StatController.php:344-352 \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":"app/Http/Controllers/V2/Admin/StatController.php"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4372e5453df858ea0402b7974117c22cff40f5abc730ad08986cae8367468e5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Protocols/Clash.php:182-190 | app/Protocols/Stash.php:243-251 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/Stash.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 212 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":"app/Protocols/Clash.php"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61e8f5b6b3016fd986c0d2606e892a747aabc9fb715d79b97202209d6367f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Protocols/General.php:58-66 | app/Protocols/Shadowrocket.php:77-85 \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":"app/Protocols/General.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6020363a50c050631798ee3c92323c35590636da521f93e0cf5edf1b74db7786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): app/Protocols/Loon.php:33-41 | app/Protocols/Shadowrocket.php:44-50 \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 \u0060app/Protocols/Loon.php:33\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":"app/Protocols/Loon.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1bc733ea539f27ee0e43e79c998b34de6202dba23dc04a4493a45cf62c36e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Services/Plugin/HookManager.php:163-171 | app/Services/Plugin/HookManager.php:188-196 \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":"app/Services/Plugin/HookManager.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50ebfcec5e93a1aecbe8b3581e7141b0c7e627b754b2bb389ac27eaedc70c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): plugins-core/Btcpay/Plugin.php:116-124 | plugins-core/Coinbase/Plugin.php:104-112 \u2014 \u0060plugins-core/Btcpay/Plugin.php\u0060 and \u0060plugins-core/Coinbase/Plugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugins-core/Btcpay/Plugin.php:116\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":"plugins-core/Btcpay/Plugin.php"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a81bea4853daebb95d56e33dfa973a472e7ddffb674a4752808b7b62e31d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): app/Protocols/Clash.php:46-53 | app/Protocols/ClashMeta.php:158-164 | app/Protocols/Stash.php:103-109 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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 \u0060app/Protocols/Clash.php:46\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":"app/Protocols/Clash.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee97514c6735d214d4019f36ede45a6d0da7a86794eb06032c1f34921878e0a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/Protocols/General.php:141-148 | app/Protocols/General.php:230-237 | app/Protocols/General.php:305-312 \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 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":"app/Protocols/General.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bb1c32fb807c923b45438e54f8ed4c79d664eef6572f19f49fc12747e9c66b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/Http/Routes/V1/ServerRoute.php:21-31 | app/Http/Routes/V2/ServerRoute.php:21-31 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Http/Routes/V1/ServerRoute.php:21\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Http/Routes/V1/ServerRoute.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b67563ea0c603a3ff49624c14401e5e62ed78cebcd37c9fc35fecc1b45d5149"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/Protocols/Surfboard.php:74-88 | app/Protocols/Surge.php:87-101 \u2014 before extracting anything, compare \u0060app/Protocols/Surfboard.php\u0060 and \u0060app/Protocols/Surge.php\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 150 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 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/Protocols/Surge.php:102\u0060 calls \u0060header\u0060 and \u0060app/Protocols/Surfboard.php:89\u0060 does not \u2014 after which the two agree again for 4 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":"app/Protocols/Surfboard.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad43d469a1f9e42648ce094372a71322230a207bda4dffbd77d6a14974a97319"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/Services/Plugin/PluginManager.php:364-376 | app/Services/Plugin/PluginManager.php:618-625 \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 \u0060app/Services/Plugin/PluginManager.php:364\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":"app/Services/Plugin/PluginManager.php"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b109edd31fb7c1656943d0663bf45b2014d834692b7ad38d0a10974f2d62d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): app/Protocols/Clash.php:181-187 | app/Protocols/Clash.php:233-239 | app/Protocols/Clash.php:293-300 | app/Protocols/ClashMeta.php:733-740 | app/Protocols/Stash.php:242-248 | app/Protocols/Stash.php:299-305 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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":"app/Protocols/Clash.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"74703e4b662a9b127ff4c6541a7a252c993fecb9eb1ee8a9803719522e1281a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): app/Protocols/ClashMeta.php:380-386 | app/Protocols/ClashMeta.php:475-481 | app/Protocols/ClashMeta.php:564-570 | app/Protocols/Stash.php:360-366 \u2014 before extracting anything, compare \u0060app/Protocols/ClashMeta.php\u0060 and \u0060app/Protocols/Stash.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 189 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":"app/Protocols/ClashMeta.php"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98cc7d605c1e0631fd5d14da4d7b2cd07d099b08eaa708dcafde301603caaf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/Http/Controllers/V2/Admin/CouponController.php:177-184 | app/Http/Controllers/V2/Admin/KnowledgeController.php:104-111 | app/Http/Controllers/V2/Admin/NoticeController.php:72-78 \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 all 3 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":"app/Http/Controllers/V2/Admin/CouponController.php"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c43311036e1dbf2ad8cf93c4828681cfbc4281d6851a61737f5a3de79abe99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): app/Protocols/Clash.php:99-105 | app/Protocols/ClashMeta.php:227-232 | app/Protocols/Stash.php:172-177 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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. 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":"app/Protocols/Clash.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd06a1a340a6a574f0a9dc8b9f2ccaa04e89acb723697a3d33a799f62bd8d81b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/Protocols/General.php:125-131 | app/Protocols/General.php:213-219 | app/Protocols/General.php:291-297 \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 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. 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":"app/Protocols/General.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40ff93fed5f1da87e2eb07880aecb8ba5a9bcdea87badb99a14f813cb3483a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/Http/Routes/V1/PassportRoute.php:12-25 | app/Http/Routes/V2/PassportRoute.php:12-25 \u2014 \u0060app/Http/Routes/V1/PassportRoute.php\u0060 and \u0060app/Http/Routes/V2/PassportRoute.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 14 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Http/Routes/V1/PassportRoute.php"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11f4069e733f3cb2e65419ad52561212222dde50f307df71f3536f220c230b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): app/Protocols/ClashMeta.php:383-388 | app/Protocols/ClashMeta.php:478-483 | app/Protocols/ClashMeta.php:567-572 | app/Protocols/Stash.php:285-290 | app/Protocols/Stash.php:363-368 \u2014 before extracting anything, compare \u0060app/Protocols/ClashMeta.php\u0060 and \u0060app/Protocols/Stash.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 189 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":"app/Protocols/ClashMeta.php"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc5c1301b4da130cdbce7de3c2e8c08c45d87e5e69ff51a9badd875f0054308"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/Protocols/Clash.php:52-57 | app/Protocols/ClashMeta.php:163-168 | app/Protocols/Stash.php:116-121 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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 \u0060app/Protocols/Clash.php:52\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":"app/Protocols/Clash.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae9da13e0c134053be941b00a0bd4acb12476b048a79ad7b0b82c4b553ca807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/Protocols/Clash.php:126-131 | app/Protocols/SingBox.php:531-536 | app/Protocols/Stash.php:184-189 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/Stash.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 212 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":"app/Protocols/Clash.php"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e259b5c77ed693ca4efc7f193ca52400508fcd7f33489987a71bdf78e308e814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Protocols/Stash.php:259-264 | app/Protocols/Stash.php:407-412 \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 \u0060app/Protocols/Stash.php:259\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/Protocols/Stash.php:265\u0060 calls \u0060data_get\u0060 and \u0060app/Protocols/Stash.php:413\u0060 does not \u2014 after which the two agree again for 2 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":"app/Protocols/Stash.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"575b3a340b76f55ccf7f44569da841b33f8b2cfcde018a88427ecbc1d8611fcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/Jobs/StatServerJob.php:43-47 | app/Jobs/StatUserJob.php:41-45 \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":"app/Jobs/StatServerJob.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"595113a613b7a2f6646051dbdb5dfc90da4a0ac0f72d905888bd86f09df1fc80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Protocols/Clash.php:115-120 | app/Protocols/ClashMeta.php:242-254 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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":"app/Protocols/Clash.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"e661a1f760510b2c0aa61117ecac5a65743a51018d09f993e6d7b97d6e2cb4b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/Protocols/Clash.php:323-330 | app/Protocols/ClashMeta.php:763-770 | app/Protocols/Stash.php:569-576 \u2014 before extracting anything, compare \u0060app/Protocols/Clash.php\u0060 and \u0060app/Protocols/ClashMeta.php\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 196 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":"app/Protocols/Clash.php"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"1874315c7759ebcf6912b429034c569c75265dffd971402f3ece358492d9423f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/Protocols/ClashMeta.php:808-814 | app/Protocols/SingBox.php:926-933 \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":"app/Protocols/ClashMeta.php"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"037c5b4f238bd1f857e1e492287d0938b8e7eeb94c986f2789c45a938def8248"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/Protocols/General.php:428-438 | app/Protocols/Shadowrocket.php:438-448 \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":"app/Protocols/General.php"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"600fecf06099673a886210307a7f86cea6dbee03b8aee809d071a64ab1bcf5f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/Protocols/Surfboard.php:183-199 | app/Protocols/Surge.php:192-208 \u2014 before extracting anything, compare \u0060app/Protocols/Surfboard.php\u0060 and \u0060app/Protocols/Surge.php\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 150 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 \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":"app/Protocols/Surfboard.php"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e0b21852f3e1701a20a8bef6342fca6b5090a5459e3a846c684867526554fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): plugins-core/AlipayF2f/Plugin.php:15-25 | plugins-core/Btcpay/Plugin.php:13-23 | plugins-core/CoinPayments/Plugin.php:13-23 | plugins-core/Coinbase/Plugin.php:13-23 | plugins-core/Epay/Plugin.php:12-22 | plugins-core/Mgate/Plugin.php:14-24 \u2014 \u0060plugins-core/Btcpay/Plugin.php\u0060 and \u0060plugins-core/Coinbase/Plugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins-core/AlipayF2f/Plugin.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef9ae1b164b86c24676d2c7403bebf9c7924847c84e83097fa16d02bde35ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/Jobs/StatServerJob.php:83-90 | app/Jobs/StatUserJob.php:66-73 \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":"app/Jobs/StatServerJob.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11cbd9822bfea5de62242ef1ba6764c43fe7eeba66e050870d818f4d31ea8c6"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: app: app: abstractness 0.02, instability 0.00, distance 0.98 \u2014 zone of pain \u2014 concrete and depended on by 5 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5e0f60b3606606576d352382c01585315580eb22091539bb25766ad99343eb7f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NodeWorker (LCOM4 6): NodeWorker\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeWorker.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"31131f7b3357054fd9aa517319209b160b9bcecc6acbadc0856a2fefa81e86c6"}},{"ruleId":"D13","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":"60adc34d6e9a021be840c3e98acc162b70c9133d406dd1b156ea5836c606c25d"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D13","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":"35d2eba40df186f5938c4acc46f78b8db687da7ae17bcce986db0e922693e8fa"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO:: \u517C\u5BB9 \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":"routes/web.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"799a99b8bf0c87d124921421fc64a7b671e166f72d70430cde3a355f766bd587"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove on 1.8.0 \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":"app/Http/Controllers/V2/Admin/Server/RouteController.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b897524d6ea489ba8a6060dd2e31da2a10ea2b58713d8e516861d8f95f8b0b8e"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060artisan\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"artisan"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"383ce5c2f50513c0081d7db0c42bffed032ba5dd9fc27a6e7129843a032f1c1f"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 49 % of calls cross a namespace and only 18 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"ruleId":"D28","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":"2a70f53a60c66fb8c0c60ec82a141c02814cb1af3fa46c6438bb538dd0e572d4"},"properties":{"commitSha":"a9516400c66d26e2c2f690d9041a5e5860664a6a"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"906c008a93fc25599fe9abc842b7e7e080948097aa1b2addee2e32255bd5985a"},"properties":{"commitSha":"4ab8a9cb3ce877f402f729fbcb3d76a8b0319847"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"848d8d3cf33dd87fac885003a974a7ebfe35e4c9a1558d2e45a748cfd0a1e9d0"},"properties":{"commitSha":"4ab8a9cb3ce877f402f729fbcb3d76a8b0319847"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"33c23d1027b0456279ca064bde166a34eb645e9d63be1d04410584c75510da87"},"properties":{"commitSha":"4ab8a9cb3ce877f402f729fbcb3d76a8b0319847"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"e1e4d2c3803b4226b8d8107414bacb46aa79eb2b848c067413607927c9381573"},"properties":{"commitSha":"4ab8a9cb3ce877f402f729fbcb3d76a8b0319847"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"3840997ba7eb13cf45e554de008744a5a2271db247119de3e3269231b2a5a4d6"},"properties":{"commitSha":"4ab8a9cb3ce877f402f729fbcb3d76a8b0319847"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"adc29d50220771b4b9b06efb7ba196fc045a06cf2512f2110e560960189e9ccf"},"properties":{"commitSha":"891d00c5a4df1a2a05f01f4e952535a98e6daf89"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","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":"6b7172c8063b13f0aa47b9acb6b8a47202f05bf216aec41fa126446716b50b19"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"5465d9bc5ff1081a5cb512b304912541652710f9d94ae524cdc744873991a0fa"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"5b096d2568a0acbf2c1b40ddf829ef956e888f9590b2ba8039ed195938cf55e5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"34214ac18d9b4be3a2bd8f2e680e3b9be4a761147db3b9e45a4daec05b3b2412"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"a7f47de4f74fcd506feb43313b67fefc8b97e4084721918231d99e1d0767a1a6"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","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":"a5aa347203e9264846fa1d57326a3b6e4db8b24c5cc5c40538a2c98c34909069"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"607edacc2948e636528b66d42999c6ec0282c8bace8a6cdfc30b45fab8045360"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"0d9ab68eb7ea560fcb99d3e7897cd7430ea0183a8b8814cc9f67f58385d8db88"},"properties":{"dependency":{"package":"laravel/framework","version":"v12.54.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"critical","fixedVersion":"10.50.4","relation":"separate-copy","declaredRange":"^12.0","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":"bd81fb13ab0f73b6bca42dac7f31148a26ec29dc06bf0b9ce5d4d777993964c6"},"properties":{"dependency":{"package":"google/protobuf","version":"v4.31.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.33.6","relation":"transitive","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":"be8325c655de3173a89bc1893b2bb956d695b5a9ac5c2de641516800babe5d55"},"properties":{"dependency":{"package":"guzzlehttp/guzzle","version":"7.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"7.15.2","relation":"direct","declaredRange":"^7.8","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":"82486b6f47c4dc4fff62368ea0bb1702c8ce3c94a94e6561655999bbad7ab7aa"},"properties":{"dependency":{"package":"league/commonmark","version":"2.8.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.9.0","relation":"transitive","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":"b48d693e5710bb1129eb7b67db403c4eb858db1c7a468c910cf196754444156d"},"properties":{"dependency":{"package":"symfony/http-foundation","version":"v7.4.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"5.4.54","relation":"transitive","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":"ffe88c69dd92316f6b12ca1ff877a0e5589b6105556ffebfeb837ccbdb0b294b"},"properties":{"dependency":{"package":"symfony/http-kernel","version":"v7.4.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"7.4.12","relation":"transitive","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":"de0b511632cd5ff9d46aa32ec4be0f945765b0242684a03d607c497e51fa90d5"},"properties":{"dependency":{"package":"symfony/mime","version":"v7.4.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"5.4.52","relation":"transitive","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":"6739ac03026dd536b8090045a2f8444eecab8b4e035e7da96e349f844eee3648"},"properties":{"dependency":{"package":"symfony/yaml","version":"v7.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"5.4.54","relation":"direct","declaredRange":"*","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":"2a21de9955647fb0613808181e5012345666ae8621b2fd0d4b8660d47a5c4134"},"properties":{"dependency":{"package":"phpunit/phpunit","version":"11.5.27","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"11.5.50","relation":"direct","declaredRange":"^11.0","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"1d1bd45efa851b0c277b1b84fa75b7f00f3ecfe68fdef0b298e2b23dfe86ebda"},"properties":{"dependency":{"package":"guzzlehttp/psr7","version":"2.9.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"2.10.2","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"3001fb80b6b2c2e6b7cc48e518eb3227208bb05a43db4f99a17bda8e4dc434d4"},"properties":{"dependency":{"package":"symfony/mailer","version":"v7.4.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"5.4.52","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"45805a3a83ab82e4f5db8c7992893a443e4f188d6b79267f0d21dcbf9cf2ebc5"},"properties":{"dependency":{"package":"symfony/routing","version":"v7.4.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"5.4.52","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25921fcc4c3f275b4d3d27edefaea0bfe9229bd25575ce2db9d610b20b2c9d5c"},"properties":{"dependency":{"package":"firebase/php-jwt","version":"v6.11.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"7.0.0","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a47214ee9f6d1ef2d831f831d47c8602d941e9b09c835f692ee4c3b45e9fca23"},"properties":{"dependency":{"package":"league/flysystem","version":"3.32.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"3.35.3","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e0318e7748bcf9ff78916b34f41373a24a9eb1242f5f347c6ac3f6cbc0c46d05"},"properties":{"dependency":{"package":"symfony/polyfill-intl-idn","version":"v1.33.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","fixedVersion":"1.38.1","relation":"transitive","reachability":{"kind":"unknown"}}}},{"ruleId":"D31","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":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","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":"756c390fe86ff5761a67a96912ba0afcc02f4ee2d4d2054cb2557917631ed627"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"b1192ba03fef6505bfa63373e06e5f608f2999cb6a11b816d1ddd183614bdc6c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"a9a90156d58b934e1bec527f8084404907880c3971ff395dfb9d6113d986f099"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-653","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"6a55a4948dabe27ec3fb5e2958bd5f64d86801f1f8c6e1ce46bfce2f7b709f9c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"df06e019d2d1e2b50845c9ea5e82afb6fbb6e6b980ce492cc2a37f749ceeded2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"b89927758193483a07e0526a47bafe02cf5ba5f047230984ac8c5413d580a417"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"f93418912ae37a9e0f90c389c5ca995fcd661aac2f1d803feb234a2eea39ffe3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"9e0f3459b79638a37e60cbd02c38023fe12af07a9f4389344a1f2c17a05fb726"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D31","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":"2038721330b6c4f0b64672ab6e777f4c0cbfc3085006eca5e09aad25020518f4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","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":"4bd50227513bd14f2755e160103c9a610e3067db8d14df838f8c309ba5332931"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f51a163f26d94ce6b6f473117dde579d091c8cbf9e59810475c94d9fc921120"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","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":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/client/subscribe.blade.php"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c9e4a716af6bf2220674b8b6d484b4e6304bac881820ae39c9563d86ddf661"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/admin.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5744d6f58a4c4eec8df1a36f8b9f5ba25121481a9c40fb0a4ed9f62b58ebb7b"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/client/subscribe.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d8a5cd6412d2d4407504eaf010dd0992ef492342de2bc4f3ad6c32fc5bf5a6"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/classic/mailLogin.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e01caef274bf115b1f1ecc9b6301f66d5819035b4a93016e5724f60b75f8418"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/classic/mailLogin.blade.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d12ae2bd774221b5916a1579bbc9a2611f30be873f299e2d3561ae14b33e62"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/classic/notify.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba38926548154ea2b1fb1d5c16729a7ee977971698fbd3569cc4a8c3df8cbe9"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/classic/notify.blade.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d414eeb80fe6fd202acaaa2844bd603ac753e5eadcac77935c3b36ffa7fc424d"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/classic/remindExpire.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16abc68c9a600c69453a7a631404b052c7807b3e2773dc28f2967d07c7aae31"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/classic/remindExpire.blade.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"045dd44d1ddaecd180794ad049e96eb95282b4e66858c98cc5bef46d855967d1"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/classic/remindTraffic.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c1493b314176e70a0567bbecc81de96a8defcde9463e03e482e9572721bc44"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/classic/remindTraffic.blade.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c42785de7c2375273bfe77c1f9da56c28c36bb23f0050deac80f49cca77ed1"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/classic/verify.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b54947dcaa1fc2f78980a53fb0bb4842027b417f1c48d7be1ea5089c3a27ee"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/classic/verify.blade.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc91c5d04fb5b722c0419428e2e8e044291780dadac18471fbf1fb75e4fc8760"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/default/mailLogin.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c734be6688d4e6f52ea58d3677d7937848a1fdee20e1f865d7a9003738b81cec"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/default/notify.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"794994f7c39b865b431bc28d1d08183e6eff4d6863845bdc5da8e5981fb00cb7"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/default/remindExpire.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c60dd57e4cf45fa8b9ef6283ef7af412c0983dde31bf71c11f675e6c4b339655"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/default/remindTraffic.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffa18da1df669c0734705df6e5fd402e47186ad02ab300ffa328c6668d3c83b"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/mail/default/verify.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b39b1c7d7428607167578659021b197da4db2821777ddeb69ba9ecfdded1cd"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"theme/Xboard/dashboard.blade.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d8b270228b08e3a81555d134fc563aa215d3e1bfb222213934c0ba28f62338"}},{"ruleId":"AC3","level":"error","message":{"text":"Viewport restricts zoom: user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"theme/Xboard/dashboard.blade.php"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22803466f0bbf13ccb25ed3258305f4981a7077498895ca15672ab8b45103c2"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. This document\u0027s body is only the mount point \u003Cdiv id=\u0022app\u0022\u003E, so there is no content here to wrap \u2014 render the \u003Cmain\u003E from the component mounted into it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"theme/Xboard/index.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d715559f005348327f87477c5c3af3e33bb52cfee228ce49585178331fa816"}},{"ruleId":"AC3","level":"error","message":{"text":"Viewport restricts zoom: user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"theme/Xboard/index.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"816a4ba5f9c68408ee408950176cf4fe80a57ac84202c6c8c2d834db52760b77"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.8:1): \u0060.status.active\u0060 sets color: white on background-color: #4caf50 \u2014 2.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/client/subscribe.blade.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"943660382f066e5ece8832a6ac1afa6d6647b68d830334b1110bab3ef44b083e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.7:1): \u0060.status.inactive\u0060 sets color: white on background-color: #f44336 \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":"resources/views/client/subscribe.blade.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"539055133803472eb1dceb3d28c529a8d437c4477bca600713ade438af49f6b7"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.1:1): \u0060.link-input\u0060 sets color: #ffffff on background-color: #f5f5f5 \u2014 1.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"resources/views/client/subscribe.blade.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b1dccf7ba32481ed88dd0d78e6828d5e9bb1ae0587cac2c7715af1da9246f2"}},{"ruleId":"C2","level":"note","message":{"text":"Thin authorization enforcement: Only 2 place(s) refuse an unauthorized caller \u2014 too few to demonstrate default-deny across handlers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1240e406e864a89e38d5e3fa370dee11971db94808c3db2fda9b41bf2e5b8efb"}},{"ruleId":"C3","level":"note","message":{"text":"Partial audit-trail evidence: An audit mechanism is present, but the trail is not yet complete \u2014 missing: a write-side hook every change flows through (a change-history library\u0027s model trait, an Eloquent model event or observer, or a Doctrine lifecycle listener recording each change), per-model coverage (LogsActivity / Auditable / RevisionableTrait or #[Gedmo\\Loggable] on each model that needs a who-changed-what trail)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"274a04e524f3228d241c99316455563739cb06cfd10a01e446d00b8a14956083"}},{"ruleId":"C4","level":"note","message":{"text":"Partial data-retention evidence: A retention mechanism is present, but the data-lifecycle is not yet complete \u2014 missing: an expiry limit \u2014 a declared maximum age / TTL after which the data is no longer kept, a documented retention period / data-expiry."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e6c843eccaff7ffcfe5241125b74768c2364055ab6678b12b10d47f44086afa4"}},{"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":"P1","level":"note","message":{"text":"CI test execution not evidenced: A CI pipeline exists but no test-runner invocation (your stack\u0027s test command, or a test job) was found \u2014 changes may merge without the suite running. No test command is declared for CI to run: package.json declares no \u0060test\u0060 script, and no task runner declares a test task. A test runner and a test script have to be added before a pipeline can run the suite."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"860902100b1c048f49c648730bdf23459de2d8ca6af82ef0ec593ecb3995a80c"}},{"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) as a CI step. What was searched, so you can tell an absence from a miss: the 1 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: \u0060package.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":"package.json"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/docker-publish.yml"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060file_get_contents(\u0027https://\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":"app/Utils/Helper.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d1d143d5d3aa91314904af18fb61c00bfcbb611fc5a4820e83eebebcdea1ac"}},{"ruleId":"SC1","level":"warning","message":{"text":"JavaScript dependencies are not locked: package.json declares dependencies that no committed lockfile resolves \u2014 there is no package-lock.json / yarn.lock / pnpm-lock.yaml / bun.lock beside it, and no locked workspace above it names it \u2014 so its installs aren\u0027t reproducible (SSDF PW.4.4). Commit its package manager\u0027s lockfile (or add it to the locked workspace) and install from it (\u0060npm ci\u0060, \u0060yarn --immutable\u0060, \u0060pnpm i --frozen-lockfile\u0060 or \u0060bun i --frozen-lockfile\u0060). Advisory \u2014 never scored."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd699919aa591b262d8f4a07a70eed2e90d52ddb856cc6e42aa98540126b06b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!is_string($secret) || trim($secret) === \u0027\u0027 || !is_array($params)\u0060 appears character-identically in 2 files \u2014 plugins-core/Epay/Plugin.php, plugins-core/Mgate/Plugin.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":"plugins-core/Epay/Plugin.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"628c98e2d474ad70abd399013e903db0cd0b0dd1b3d42025c0b7fee937268ec9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!is_string($value) || !str_contains($value, \u0027:\u0027)\u0060 appears character-identically in 2 files \u2014 app/Http/Controllers/V2/Admin/OrderController.php, app/Http/Controllers/V2/Admin/UserController.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":"app/Http/Controllers/V2/Admin/OrderController.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"deec17d474b6c3c35e6395c2d1ef0653905d803cced3f2d07ff59ccb5b334ccf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data_get($protocol_settings, \u0027plugin\u0027) \u0026\u0026 data_get($protocol_settings, \u0027plugin_opts\u0027)\u0060 appears character-identically in 8 files \u2014 app/Protocols/Clash.php, app/Protocols/ClashMeta.php, app/Protocols/Loon.php, app/Protocols/QuantumultX.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":"app/Protocols/Clash.php"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5a1f6afe55e1c042721e54946282efb419b392a564b4fa0ccef2aac2140d80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset($parsedOpts[\u0027tls\u0027]) \u0026\u0026 $parsedOpts[\u0027tls\u0027] == \u0027true\u0027\u0060 appears character-identically in 2 files \u2014 app/Protocols/Clash.php, app/Protocols/Stash.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":"app/Protocols/Clash.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b32ee8be0484956b6394eb9e7e1c1f3528e1be3354787e61c16d0f933b4e99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strpos($request-\u003Eheader(\u0027user-agent\u0027), \u0027tidalab/4.0.0\u0027) !== false || strpos($request-\u003Eheader(\u0027user-agent\u0027), \u0027tunnelab/4.0.0\u0027) !== false\u0060 appears character-identically in 2 files \u2014 app/Http/Controllers/V1/Client/AppController.php, app/Http/Controllers/V2/Client/AppController.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":"app/Http/Controllers/V1/Client/AppController.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ebc9a52ba20eee73ace037d84c51ff5336b355a882660c173b4e316ce7f8d0"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 243 is called with an argument built by \u0060implode(\u0027,\u0027, $nodeIds)\u0060 (line 243), whose cost grows with the collection it walks. PHP evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isHandling\u0060 test, no debug flag, and no placeholder context array that lets the logger build the text only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeWorker.php"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2258fffbb4b5494fa62956487e70301eea07b4ee6e17cffd0b8e59e83ea546"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\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":"plugins-core/AlipayF2f/Plugin.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5763770ce15ec574c3ae65f2deac0c1ba06f5f7484bab71676cb59ed20d27e"}},{"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":"database/seeders/OriginV2bMigrationsTableSeeder.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a841dbd183321c17719704245fdfa750b84600da65f3a2732e91aea3bb36432f"}},{"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":"app/Support/Setting.php"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f822cc94e3cce3a6306d34af22be2baff61deaca391e1ac8b1f520cb3c7d7e32"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\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":"app/Protocols/Clash.php"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"735029e982b0540e789d46b9a810fb33ad280822a9fe564342936a996e11b524"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\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":"app/Protocols/Clash.php"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e85648b4ef88afc79b118c20c46e98deebbb85f46a12ced770ab2a07b9508b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\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":"app/Protocols/ClashMeta.php"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"40cbffca16949e82c3bd4e91d12f88e09fafa7e698b98de1919c0481272ad105"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\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":"app/Protocols/ClashMeta.php"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0c725e1201d1e789849d88eb1cfdf262ee5dbbffb7382a340908d1a8cfd39c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\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":"app/Protocols/Stash.php"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09c2a3ed06fcb46d3dc69482c90edf1d5870c53be344e0e1b10781de600e9a0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\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":"app/Protocols/Stash.php"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2a6183228d9dc80628369795440daa34d1af901319cb3166abb2f85c33e37a"}},{"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":"app/Http/Controllers/V2/Admin/MailTemplateController.php"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1e6ae568f6470a5ac028e681e46460f8d1834c38f06628215aa689650d6ec0"}},{"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":"app/Console/Kernel.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"441be485cd7abd900e47723b1c4a049d62e44f74d42edbd2183448ead6965466"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 40 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Ewarning(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::warning(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"database/migrations/2025_01_13_000000_convert_order_period_fields.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d9cb80987c557be6ef63ff9e93ba7e197ff2b1e255a9bd1212f0e96c326e53"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 36 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Edebug(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::debug(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeEventHandlers.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b547d9338cb053754176303f9432cbbd9b3a5269abcd74557b92d28f7f71eae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 141 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Einfo(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::info(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeEventHandlers.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fbe55acdfca34417ab555fe399fe04a62c4afbae18e55a2f4e45bc09198e56"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 70 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Einfo(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::info(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeWorker.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7e8c1c73b6e943a2e7e908f682462da3c55be628033281b3b5066526d35bd3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 191 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Edebug(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::debug(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeWorker.php"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95ced59e12dc0dd046197837519022463edc9e848610c49b60b9d9c9ce1cb38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 321 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Edebug(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::debug(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeWorker.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"099a86f90b7577fdb835aa7852a491fe8c4d1109277db085620bf8ae07e8bfff"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 340 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Edebug(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::debug(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeWorker.php"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ccdd7c35b6ecc7797a58a33dfd61735c30538e3229cb193f5360bcaf923c0e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 388 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Edebug(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::debug(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeWorker.php"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db3e84aecb940a6537affca3da4ff1af5626075e1a790e5a04e2ebd8b7f734c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 401 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Edebug(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::debug(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeWorker.php"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"214a2ba7a73145c04cdfe609e7451cc5c283e0ae0b7cb6527399d3c65e48230c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 405 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Einfo(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::info(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/WebSocket/NodeWorker.php"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf9718e719689f6c37fd4a10c521d884ca3a6cf7ddf6df2301cff28cdb236d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 50 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Ewarning(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::warning(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Utils/CacheKey.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f808fe39114a43f45ca9b013dee5d95bd64e03a5620d65bd4afff2db52232f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 159 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Ewarning(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::warning(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Services/NodeSyncService.php"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d027d0dcbbc1081ed23e08f9d3ebfe172aeed42d8f6018145af6b127b4f8dcc1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 178 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Ewarning(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::warning(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Services/NodeSyncService.php"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1740f48ebba326ae1ccca2ed3025f5da3c9c97851dfd2d730ce0b4755e16b6f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 88 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Ewarning(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::warning(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Services/Plugin/PluginManager.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa476426acb988456721789f0904a4729eac756b44305caf4f5f37752e0fc0a7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 96 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Eerror(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::error(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Services/Plugin/PluginManager.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"649d67fba633f1815b49a9e722c0c441d198ee0bc94d9250d6102992445ede17"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 735 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Einfo(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::info(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Services/Plugin/PluginManager.php"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"348bb1c4ded325f1e3930346cd49620a26eae89391c49c65bcd80c6e890fef7f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 256 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Ewarning(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::warning(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/SingBox.php"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a96a3da5b641f9d92231bf264b4f040454a7b6699cb43d51fbd51910797f04"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 301 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Ewarning(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::warning(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Protocols/SingBox.php"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"77325af690ca92c2838b46388101a8499282ba7c3fd4df2604bb6705fd5f5278"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 180 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Einfo(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::info(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Http/Controllers/V2/Admin/Server/ManageController.php"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5bcb9b83826bbdfcff4e16b8f0df472995a2c53be0b85b639f5c9b8bfbb2e3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 90 is handed a double-quoted string with variables interpolated into it as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values in the PSR-3 context array instead: \u0060$logger-\u003Einfo(\u0027Order {order_id} moved to {status}\u0027, [\u0027order_id\u0027 =\u003E $orderId, \u0027status\u0027 =\u003E $status])\u0060, which Monolog and every PSR-3 handler keep as fields beside the message (Monolog\u0027s PsrLogMessageProcessor fills the placeholders), or \u0060Log::info(\u0027order moved\u0027, [\u0027order_id\u0027 =\u003E $orderId])\u0060 with Laravel\u0027s facade."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Console/Commands/BackupDatabase.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae3f0bd0699811d0c207146e2c99c7aa820d13cd2f96ebe5697a30905a1ab4f"}},{"ruleId":"X5","level":"note","message":{"text":"PHP static analysis does not check null everywhere: 0/1 of this repository\u0027s PHPStan/Psalm configuration(s) run at a level that checks null \u2014 PHPStan level 8 or above (\u0060max\u0060 included), or Psalm \u0060errorLevel\u0060 3 or below (Psalm\u0027s default, with none stated, is 1). A PHPStan level written neither in the file nor in an include inside the repository is 0, PHPStan\u0027s own default. Below those levels the checker removes \u0060null\u0060 from a union before any rule looks, so \u0060$order-\u003Ecustomer()-\u003Ename()\u0060 on a \u0060?Customer\u0060 passes, and the first null reaching it is an \u0060Error: Call to a member function name() on null\u0060 in production."},"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.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-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-653","guid":"aa3e371b-590e-225d-a56c-cd490a1dca63","name":"Insufficient Compartmentalization","shortDescription":{"text":"Insufficient Compartmentalization"},"helpUri":"https://cwe.mitre.org/data/definitions/653.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"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/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":50,"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."]}]}