{"$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":"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":"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":"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":"AXA1","name":"Runtime unauthenticated reachability","shortDescription":{"text":"Runtime unauthenticated reachability"},"helpUri":"https://codehealth.canine.dev/dimensions/AXA1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXH1","name":"Runtime security headers","shortDescription":{"text":"Runtime security headers"},"helpUri":"https://codehealth.canine.dev/dimensions/AXH1"},{"id":"AXI1","name":"Runtime container hardening","shortDescription":{"text":"Runtime container hardening"},"helpUri":"https://codehealth.canine.dev/dimensions/AXI1"},{"id":"AXR1","name":"Runtime accessibility (rendered)","shortDescription":{"text":"Runtime accessibility (rendered)"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"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":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"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":"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":"ValidationMiddleware.validateType (cyclomatic 59): ValidationMiddleware.validateType has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":6028}}}],"partialFingerprints":{"codehealthFindingId/v1":"f824d4f2f460ac94ebe1a6c62b6071c017c4d38cc68cd499e365fc78b97a8188"}},{"ruleId":"D1","level":"warning","message":{"text":"ValidationMiddleware.validateType (cyclomatic 59): ValidationMiddleware.validateType has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":6028}}}],"partialFingerprints":{"codehealthFindingId/v1":"533a3d8c84373d34a08019b05177a1d718f105e3c15760775ee9c84e288de5c1"}},{"ruleId":"D1","level":"warning","message":{"text":"ValidationMiddleware.validateType (cyclomatic 59): ValidationMiddleware.validateType has cyclomatic complexity 59 (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":"src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc3259081cf2702f0824ebd2789e004a2435f5b44a655558d2d69d48f0cc960"}},{"ruleId":"D1","level":"warning","message":{"text":"DbAuthMiddleware.process (cyclomatic 46): DbAuthMiddleware.process has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":4727}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a55e3831bb80789fc1bf46a40c4945cdbeabc93f16e7129a2850bb8ce1dcba"}},{"ruleId":"D1","level":"warning","message":{"text":"DbAuthMiddleware.process (cyclomatic 46): DbAuthMiddleware.process has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":4727}}}],"partialFingerprints":{"codehealthFindingId/v1":"1565cfaa8c0a60f01b65292e1a724d099dbb3136910310f2de579d3c3d3f691b"}},{"ruleId":"D1","level":"warning","message":{"text":"DbAuthMiddleware.process (cyclomatic 46): DbAuthMiddleware.process has cyclomatic complexity 46 (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":"src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a61405d509bcd1d4ed7e95157fdb9ce671d8799f67518c70f6bd8809473ed41"}},{"ruleId":"D1","level":"warning","message":{"text":"PharAutoloader.loadClass (cyclomatic 34): PharAutoloader.loadClass has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"05dbbc9d248be4e59fdd436a7bb071db2e7088f72636084a0ca63e27fbdb7c36"}},{"ruleId":"D1","level":"warning","message":{"text":"PharAutoloader.loadClass (cyclomatic 34): PharAutoloader.loadClass has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b16b40f582d8360439fb146ab34129a04dab40ea5b9cd08bcf78e62d431c458"}},{"ruleId":"D1","level":"warning","message":{"text":"Api.__construct (cyclomatic 33): Api.__construct has cyclomatic complexity 33 (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":"api.include.php"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1cb5d3720276a0928ac64eb2827228d79091f383be39ed9f412e2beb1bc45c"}},{"ruleId":"D1","level":"warning","message":{"text":"Api.__construct (cyclomatic 33): Api.__construct has cyclomatic complexity 33 (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":"api.php"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"548d16896b378c4633726b9aee0f36ad1230ff8ec91bd945b2987730d7e2d197"}},{"ruleId":"D1","level":"warning","message":{"text":"Api.__construct (cyclomatic 33): Api.__construct has cyclomatic complexity 33 (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":"src/Tqdev/PhpCrudApi/Api.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6b3fcdda6a010085db31c54d2ddabfff21f426d58b3e080453e8843b6c3623"}},{"ruleId":"D1","level":"warning","message":{"text":"SanitationMiddleware.sanitizeType (cyclomatic 32): SanitationMiddleware.sanitizeType has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":5797}}}],"partialFingerprints":{"codehealthFindingId/v1":"8688f0b098ccca016a2dfbe123a5886eaebe4aaabffb2cb3a5109596418b3884"}},{"ruleId":"D1","level":"warning","message":{"text":"SanitationMiddleware.sanitizeType (cyclomatic 32): SanitationMiddleware.sanitizeType has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":5797}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8d55a7a7eb882a853c966cd510b1b7f8ef12c19d39921b1af2f80a974d3b18"}},{"ruleId":"D1","level":"warning","message":{"text":"SanitationMiddleware.sanitizeType (cyclomatic 32): SanitationMiddleware.sanitizeType has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1f394c92e49fb3ed6c0b1c3350df7d88091f2d173af7671ee202d329ec00a8"}},{"ruleId":"D1","level":"warning","message":{"text":"JwtAuthMiddleware.getVerifiedClaims (cyclomatic 29): JwtAuthMiddleware.getVerifiedClaims has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":5217}}}],"partialFingerprints":{"codehealthFindingId/v1":"9874a7b0ef8e4ff137c831e94144142cc5c69f305fd96036cec7144df4dbeadb"}},{"ruleId":"D1","level":"warning","message":{"text":"JwtAuthMiddleware.getVerifiedClaims (cyclomatic 29): JwtAuthMiddleware.getVerifiedClaims has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":5217}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c7a3dfe12cf4e642c8ef22712be2abc1b19998f1d7f74f36b0501b8fc95c85"}},{"ruleId":"D1","level":"warning","message":{"text":"JwtAuthMiddleware.getVerifiedClaims (cyclomatic 29): JwtAuthMiddleware.getVerifiedClaims has cyclomatic complexity 29 (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":"src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd467cbe6c63adc7f3f29d591c16bf64f8ade9df805705ee9e81137b51114f74"}},{"ruleId":"D1","level":"warning","message":{"text":"DefinitionService.updateColumn (cyclomatic 24): DefinitionService.updateColumn 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":"api.include.php"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"25829705fd21116393acff5b314018676c9420708c1b1289a7ad2b2b9c3666d5"}},{"ruleId":"D1","level":"warning","message":{"text":"DefinitionService.updateColumn (cyclomatic 24): DefinitionService.updateColumn 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":"api.php"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c3609da4878c5f0532182b6e9428715a8a8965165d0fb1018eb89eec360663"}},{"ruleId":"D1","level":"warning","message":{"text":"DefinitionService.updateColumn (cyclomatic 24): DefinitionService.updateColumn 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":"src/Tqdev/PhpCrudApi/Column/DefinitionService.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"837f68ff700c27b20f0bda1b9258af5ca91fb2d64b529bc2341e43ab205d5c67"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenApiRecordsBuilder.setComponentSchema (cyclomatic 23): OpenApiRecordsBuilder.setComponentSchema has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":7902}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f71c48dbe0095956ff23a853c669ca4ae22c3afc559969d4a5a6eb8570182e"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenApiRecordsBuilder.setComponentSchema (cyclomatic 23): OpenApiRecordsBuilder.setComponentSchema has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":7902}}}],"partialFingerprints":{"codehealthFindingId/v1":"4268fe55bd847b1d6742505729fe11a8a0cded9bd1f4fd804b3aa98c52725223"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenApiRecordsBuilder.setComponentSchema (cyclomatic 23): OpenApiRecordsBuilder.setComponentSchema has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"2388260a12fcdd900a9655a5c607f3802ab7fd8c7feef5ce212fec45892d7186"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenApiRecordsBuilder.setPath (cyclomatic 21): OpenApiRecordsBuilder.setPath has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":7833}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89d92131c8f87275989f90ed73c9dba00832e95e7bf9db5509850010522e257"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenApiRecordsBuilder.setPath (cyclomatic 21): OpenApiRecordsBuilder.setPath has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":7833}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eef106dd60b33f22c81dc06dc63cf7ce9834eac93ff3657d2d92084b59096d9"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenApiRecordsBuilder.setPath (cyclomatic 21): OpenApiRecordsBuilder.setPath 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":"src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"373e9467b5e95a350aec672229dd3afdb020e0c6922883f7ed966f2b21ee4e04"}},{"ruleId":"D1","level":"warning","message":{"text":"XmlMiddleware.json2xml (cyclomatic 19): XmlMiddleware.json2xml has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":6273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1fd3c8f3b43c3056ef7ce991dd6ead7c16443be0a36d228b9368ca5b44d16d"}},{"ruleId":"D1","level":"warning","message":{"text":"XmlMiddleware.json2xml (cyclomatic 19): XmlMiddleware.json2xml has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":6273}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b09670c927e4e48ab77ba3c06226748a7e506120c8b8874d043a117f3bcf47d"}},{"ruleId":"D1","level":"warning","message":{"text":"XmlMiddleware.json2xml (cyclomatic 19): XmlMiddleware.json2xml 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":"src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08848c8ebf2da319c6eb49c9e03263047bfd76ad87fa72116870c61fd568c02"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenApiColumnsBuilder.setPaths (cyclomatic 18): OpenApiColumnsBuilder.setPaths 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":"api.include.php"},"region":{"startLine":6821}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef8cad63abeecaf909098150e94c7637aec2bd50a315d00451cb60cf92f0c05"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenApiColumnsBuilder.setPaths (cyclomatic 18): OpenApiColumnsBuilder.setPaths 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":"api.php"},"region":{"startLine":6821}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9fe9bf4041957e021d7c99947c2b327cd676edf9b4f8afa394ac22153ab14b"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenApiColumnsBuilder.setPaths (cyclomatic 18): OpenApiColumnsBuilder.setPaths 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":"src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9d16e72b298e1e7dadeb3bbad476293fd41ec01c8af5e16fa7766d48ca88bb"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicAuthMiddleware.process (cyclomatic 16): BasicAuthMiddleware.process 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":"api.include.php"},"region":{"startLine":4499}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66fa0b5f79e8736538e5fdc8cd43b2641e0c89634d1f864319f1640ba2b18d2"}},{"ruleId":"D1","level":"warning","message":{"text":"CorsMiddleware.process (cyclomatic 16): CorsMiddleware.process 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":"api.include.php"},"region":{"startLine":4605}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1e708c68186bad8dbefdd21575de9d24367fcf23a2edfa6e3851a281fc5038"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicAuthMiddleware.process (cyclomatic 16): BasicAuthMiddleware.process 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":"api.php"},"region":{"startLine":4499}}}],"partialFingerprints":{"codehealthFindingId/v1":"33873d988e6f269d707719713e2c67f421348adf5d06bea83946cbc6214ee56a"}},{"ruleId":"D1","level":"warning","message":{"text":"CorsMiddleware.process (cyclomatic 16): CorsMiddleware.process 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":"api.php"},"region":{"startLine":4605}}}],"partialFingerprints":{"codehealthFindingId/v1":"144d5c79669c64b7cdb7949d444e031d913f10661c607927510cb3b63845d710"}},{"ruleId":"D1","level":"warning","message":{"text":"BasicAuthMiddleware.process (cyclomatic 16): BasicAuthMiddleware.process 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":"src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9ee2ae8f68041dddf2cc1b9081c8d6a17f75598f7e5d151347d58b466dff62"}},{"ruleId":"D1","level":"warning","message":{"text":"CorsMiddleware.process (cyclomatic 16): CorsMiddleware.process 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":"src/Tqdev/PhpCrudApi/Middleware/CorsMiddleware.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6a02c50d5ec707eed80fc09ba273e3a027810d2fab78ed6ae82fbe7b3fdcee"}},{"ruleId":"D2","level":"warning","message":{"text":"DbAuthMiddleware.process (cognitive 115): DbAuthMiddleware.process has cognitive complexity 115 (threshold 15). Drivers by points: if/else 35 (91 pts), loops 3 (9 pts), ternaries 4 (9 pts), boolean chains 6 (nesting depth added 67). 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":"api.include.php"},"region":{"startLine":4727}}}],"partialFingerprints":{"codehealthFindingId/v1":"5977939e66d9b5ddd32ffa32de3d2e23decadedc0ad6ec9ee65aeec218b9040c"}},{"ruleId":"D2","level":"warning","message":{"text":"DbAuthMiddleware.process (cognitive 115): DbAuthMiddleware.process has cognitive complexity 115 (threshold 15). Drivers by points: if/else 35 (91 pts), loops 3 (9 pts), ternaries 4 (9 pts), boolean chains 6 (nesting depth added 67). 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":"api.php"},"region":{"startLine":4727}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1bc6b29c7bd0b1e638e6a0d1a2a03ea058e03f3cb651df677e990b5e034af6"}},{"ruleId":"D2","level":"warning","message":{"text":"DbAuthMiddleware.process (cognitive 115): DbAuthMiddleware.process has cognitive complexity 115 (threshold 15). Drivers by points: if/else 35 (91 pts), loops 3 (9 pts), ternaries 4 (9 pts), boolean chains 6 (nesting depth added 67). 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":"src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaddc093166b36c761a164faf946c5455df0140d335b80e2722ed16a5fec9719"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidationMiddleware.validateType (cognitive 109): ValidationMiddleware.validateType has cognitive complexity 109 (threshold 15). Drivers by points: if/else 24 (82 pts), boolean chains 13, match/switch 4 (11 pts), ternaries 1 (3 pts) (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":6028}}}],"partialFingerprints":{"codehealthFindingId/v1":"6648da2330ac2712caf682793ba8e37365f775d0de556758bf9bb3490e35bcc5"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidationMiddleware.validateType (cognitive 109): ValidationMiddleware.validateType has cognitive complexity 109 (threshold 15). Drivers by points: if/else 24 (82 pts), boolean chains 13, match/switch 4 (11 pts), ternaries 1 (3 pts) (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":6028}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eabd79d9ff9de773608708c5cdae834f6f4fff2aba2699c8cb0b76cd879d659"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidationMiddleware.validateType (cognitive 109): ValidationMiddleware.validateType has cognitive complexity 109 (threshold 15). Drivers by points: if/else 24 (82 pts), boolean chains 13, match/switch 4 (11 pts), ternaries 1 (3 pts) (nesting depth added 67). 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":"src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6432c9f92b8e9f59910d13ed1e85b2e794a6d014cd3441d514ec6a06e27d32e7"}},{"ruleId":"D2","level":"warning","message":{"text":"XmlMiddleware.json2xml (cognitive 66): XmlMiddleware.json2xml has cognitive complexity 66 (threshold 15). Drivers by points: if/else 14 (34 pts), ternaries 5 (27 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 43). 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":"api.include.php"},"region":{"startLine":6273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5a0f3b65137fb1e5a7b09c860f91732d5164fe99723417bd513e7f6f265983"}},{"ruleId":"D2","level":"warning","message":{"text":"XmlMiddleware.json2xml (cognitive 66): XmlMiddleware.json2xml has cognitive complexity 66 (threshold 15). Drivers by points: if/else 14 (34 pts), ternaries 5 (27 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 43). 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":"api.php"},"region":{"startLine":6273}}}],"partialFingerprints":{"codehealthFindingId/v1":"774e0e29c06ee4e6b8391d65fbf37440996e012d407c194c0829828f03f15990"}},{"ruleId":"D2","level":"warning","message":{"text":"XmlMiddleware.json2xml (cognitive 66): XmlMiddleware.json2xml has cognitive complexity 66 (threshold 15). Drivers by points: if/else 14 (34 pts), ternaries 5 (27 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 43). 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":"src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa7a08791febf47e4589c7ca1a48ee0afbe4e28f41fae5e649ddb1e87268a2e"}},{"ruleId":"D2","level":"warning","message":{"text":"JwtAuthMiddleware.getVerifiedClaims (cognitive 48): JwtAuthMiddleware.getVerifiedClaims has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (41 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":5217}}}],"partialFingerprints":{"codehealthFindingId/v1":"aece64b5572240ee7ebd18f8f85a4106491a2f7f80fab0fbe600427233e302ec"}},{"ruleId":"D2","level":"warning","message":{"text":"XmlMiddleware.xml2json (cognitive 48): XmlMiddleware.xml2json has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 2 (13 pts), ternaries 2 (nesting depth added 31). 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":"api.include.php"},"region":{"startLine":6330}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd6736def7f206fe1d5391eb063eb45073c456676e9b9ce9f64702f952781dc"}},{"ruleId":"D2","level":"warning","message":{"text":"JwtAuthMiddleware.getVerifiedClaims (cognitive 48): JwtAuthMiddleware.getVerifiedClaims has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (41 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":5217}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2ae909e8a6a50087b6aee6693f6243069d14a5c518b671967676877f6573e4"}},{"ruleId":"D2","level":"warning","message":{"text":"XmlMiddleware.xml2json (cognitive 48): XmlMiddleware.xml2json has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 2 (13 pts), ternaries 2 (nesting depth added 31). 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":"api.php"},"region":{"startLine":6330}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f26a3c60dfd5130f96ae1207ca1a842efb3df8d4d1576150a4b53ee5fc16894"}},{"ruleId":"D2","level":"warning","message":{"text":"JwtAuthMiddleware.getVerifiedClaims (cognitive 48): JwtAuthMiddleware.getVerifiedClaims has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (41 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3325e8b1a49fb41c3444abf4cc0003ba7bdb6cb3a17d25a375eaa0181e2abca9"}},{"ruleId":"D2","level":"warning","message":{"text":"XmlMiddleware.xml2json (cognitive 48): XmlMiddleware.xml2json has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 2 (13 pts), ternaries 2 (nesting depth added 31). 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":"src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5621a42b5fce14b760838d25b0fe93dc078148ba3de8428727f633e7b07eb4"}},{"ruleId":"D2","level":"warning","message":{"text":"PharAutoloader.loadClass (cognitive 44): PharAutoloader.loadClass has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 16 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04be59437f317dc9a4f7798e620709a5041f4498f9e6bccafc9f1345afa3be0"}},{"ruleId":"D2","level":"warning","message":{"text":"PharAutoloader.loadClass (cognitive 44): PharAutoloader.loadClass has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 16 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b405d3aa17fffdccbd8d7df3cebba739d10e912afbd4ae978c40e6f34787aa6"}},{"ruleId":"D2","level":"warning","message":{"text":"SanitationMiddleware.sanitizeType (cognitive 43): SanitationMiddleware.sanitizeType has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (33 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":5797}}}],"partialFingerprints":{"codehealthFindingId/v1":"510ae21366a4a5b3db6913988f1c16ecea0e7fba12073121c01154e7816fa69f"}},{"ruleId":"D2","level":"warning","message":{"text":"SanitationMiddleware.sanitizeType (cognitive 43): SanitationMiddleware.sanitizeType has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (33 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":5797}}}],"partialFingerprints":{"codehealthFindingId/v1":"6120b546dc5b2a0dd6dcadbf58a48cd96bdf611bb72c25019617a8fb07b874f7"}},{"ruleId":"D2","level":"warning","message":{"text":"SanitationMiddleware.sanitizeType (cognitive 43): SanitationMiddleware.sanitizeType has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (33 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6275f705a9689465017733643c23072ea2d7146a55a233d0b91d26633e7dfa95"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiRecordsBuilder.setComponentSchema (cognitive 42): OpenApiRecordsBuilder.setComponentSchema has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 7, loops 3 (6 pts), ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":7902}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3933cfc3cd4f2376d78a39796b58c5eb40753eef091604412265c2ab8513ac"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiRecordsBuilder.setComponentSchema (cognitive 42): OpenApiRecordsBuilder.setComponentSchema has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 7, loops 3 (6 pts), ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":7902}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de9d42240f1f1a60b6b46d1e2955ff8a32d863ea0ad74b855ab701990dc950c"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiRecordsBuilder.setComponentSchema (cognitive 42): OpenApiRecordsBuilder.setComponentSchema has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 7, loops 3 (6 pts), ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c37c5ecf1d8a42b40c3b04a11dc009681cf9198d26096aaffeb8c3f03ff028"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiColumnsBuilder.setPaths (cognitive 36): OpenApiColumnsBuilder.setPaths has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (9 pts), ternaries 2 (8 pts), match/switch 2 (6 pts) (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":"api.include.php"},"region":{"startLine":6821}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6437f81a94971680d0874107fb25b0b4e18ff797dba6254912d5c33540972f0"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiColumnsBuilder.setPaths (cognitive 36): OpenApiColumnsBuilder.setPaths has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (9 pts), ternaries 2 (8 pts), match/switch 2 (6 pts) (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":"api.php"},"region":{"startLine":6821}}}],"partialFingerprints":{"codehealthFindingId/v1":"17adae7272ff4e21b7f332f7ef394e31da12f56d8597a4ca8ed4f6c652f55bf0"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiColumnsBuilder.setPaths (cognitive 36): OpenApiColumnsBuilder.setPaths has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (9 pts), ternaries 2 (8 pts), match/switch 2 (6 pts) (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":"src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6e013d96013f02fcc450176a8d9f69ec927253772fb4e6b7e1476018680124"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidationMiddleware.process (cognitive 35): ValidationMiddleware.process has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (29 pts), loops 1 (6 pts) (nesting depth added 26). 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":"api.include.php"},"region":{"startLine":6157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fa24dfb3e67b13d13afc02dbe9e9e2444b4f6a5336df29c1f8dbfe5165a109"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidationMiddleware.process (cognitive 35): ValidationMiddleware.process has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (29 pts), loops 1 (6 pts) (nesting depth added 26). 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":"api.php"},"region":{"startLine":6157}}}],"partialFingerprints":{"codehealthFindingId/v1":"0437897f3beebfea6e6b89a30eee9bb87548b5545c5e66c339840a8046544504"}},{"ruleId":"D2","level":"warning","message":{"text":"ValidationMiddleware.process (cognitive 35): ValidationMiddleware.process has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (29 pts), loops 1 (6 pts) (nesting depth added 26). 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":"src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55c7f735986e8bfa1adec2a738f24b8b7f633d3cfb0d16a5c31cdcc4cd7d1d8"}},{"ruleId":"D2","level":"warning","message":{"text":"DefinitionService.updateColumn (cognitive 33): DefinitionService.updateColumn has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c0190ae417a8f3600bbc389c441c31082380f0246b0c1f4f2c62c194f759c5"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericReflection.getTableColumns (cognitive 33): GenericReflection.getTableColumns has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (7 pts) (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":"api.include.php"},"region":{"startLine":3576}}}],"partialFingerprints":{"codehealthFindingId/v1":"943ee05c29a376f53d3116381ce62f6a629cbc3b6f9d39c84c83261b17f16da9"}},{"ruleId":"D2","level":"warning","message":{"text":"DefinitionService.updateColumn (cognitive 33): DefinitionService.updateColumn has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"66adc2274e2b5105430e14805eb85bf85be16a272e92648a362c007560e94e05"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericReflection.getTableColumns (cognitive 33): GenericReflection.getTableColumns has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (7 pts) (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":"api.php"},"region":{"startLine":3576}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af6d28a7cf7e669c28156ff505d16d4e4ae9467973067adef92c2d7d8e8e5e6"}},{"ruleId":"D2","level":"warning","message":{"text":"DefinitionService.updateColumn (cognitive 33): DefinitionService.updateColumn has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Column/DefinitionService.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9274a6c36000b6387631501f83df9add4f0666bb92b4accee62d579d85d53ce"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericReflection.getTableColumns (cognitive 33): GenericReflection.getTableColumns has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (7 pts) (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":"src/Tqdev/PhpCrudApi/Database/GenericReflection.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80e636c6b46f7468ad2f27f9f5cd696e823d6f000614762e8aa082e30e8e727"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiRecordsBuilder.setPath (cognitive 32): OpenApiRecordsBuilder.setPath has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":7833}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c34665bf772eb32c0038a205bb2a81f885ef6441572c4a4d5f1c57ee422675"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiRecordsBuilder.setPath (cognitive 32): OpenApiRecordsBuilder.setPath has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":7833}}}],"partialFingerprints":{"codehealthFindingId/v1":"142d9cc70de017d922ceffa3c3c03a5100335fdf5a39e04df33f79116e18fd60"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiRecordsBuilder.setPath (cognitive 32): OpenApiRecordsBuilder.setPath has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed33c7436a8720d38ec56cbf7828e3a2a4947882a2a6df868743a5d59d01477"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicAuthMiddleware.process (cognitive 28): BasicAuthMiddleware.process has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 3 (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":"api.include.php"},"region":{"startLine":4499}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cde6cb23310c110d4bc57e303e38d3b9014fb4fa52fdc7aa95ce746c835380"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicAuthMiddleware.process (cognitive 28): BasicAuthMiddleware.process has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 3 (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":"api.php"},"region":{"startLine":4499}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cb00f4f2d8a2c60f303bce3b8ee97bf464e77b7781f4381cc011620b3739c9"}},{"ruleId":"D2","level":"warning","message":{"text":"BasicAuthMiddleware.process (cognitive 28): BasicAuthMiddleware.process has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 3 (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":"src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70850fcdfaba7697beadb5b0029e65a64ecf626cce923dfe793dcfc3843c49d"}},{"ruleId":"D2","level":"warning","message":{"text":"TempFileCache.clean (cognitive 26): TempFileCache.clean has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 4, loops 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":"api.include.php"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d064dffed7f2a96e70547fc1d1f4628ad1772174b36a9c84133d2dcfb4c955"}},{"ruleId":"D2","level":"warning","message":{"text":"CorsMiddleware.process (cognitive 26): CorsMiddleware.process has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), error handling 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":4605}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69bc96680f154dc26b13a689defedb2dc0e7250e049e6c7fdd668e0eb9647a9"}},{"ruleId":"D2","level":"warning","message":{"text":"TempFileCache.clean (cognitive 26): TempFileCache.clean has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 4, loops 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":"api.php"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ceed9ed8e226d0c4e3a9ded1c4af7a93ab0819ef71db314668378ee0c16b4b"}},{"ruleId":"D2","level":"warning","message":{"text":"CorsMiddleware.process (cognitive 26): CorsMiddleware.process has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), error handling 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":4605}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0b787079401a6dba40634f1702430fb90dee39b6050dc77497e615d84396bb"}},{"ruleId":"D2","level":"warning","message":{"text":"TempFileCache.clean (cognitive 26): TempFileCache.clean has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 4, loops 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":"src/Tqdev/PhpCrudApi/Cache/TempFileCache.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea206027afff251fab0a1fec8baaa4633cd779085056db96e7dab5495968db1"}},{"ruleId":"D2","level":"warning","message":{"text":"CorsMiddleware.process (cognitive 26): CorsMiddleware.process has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), error handling 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Middleware/CorsMiddleware.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b6ee3404058223ec4dac0ca3c1b16298a22e2321be0a04bc872d0bbd9a5799"}},{"ruleId":"D2","level":"warning","message":{"text":"ReflectedTable.fromReflection (cognitive 25): ReflectedTable.fromReflection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4981ccbc4dfaed217b7ed2597949fd44e7a1431d2323d41718f05d1ef5c7401"}},{"ruleId":"D2","level":"warning","message":{"text":"JwtAuthMiddleware.process (cognitive 25): JwtAuthMiddleware.process has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2 (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":"api.include.php"},"region":{"startLine":5322}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d101a12b7e7d46ca9eb0f4c774361c5b18962f2de73b363454450da238fee3c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReflectedTable.fromReflection (cognitive 25): ReflectedTable.fromReflection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"570649eb1f1ea79c3a1a8600376b1c8a5c70634e82f4880c81ad271f1ef28636"}},{"ruleId":"D2","level":"warning","message":{"text":"JwtAuthMiddleware.process (cognitive 25): JwtAuthMiddleware.process has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2 (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":"api.php"},"region":{"startLine":5322}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe738461a794de05c751bd00d13c59a51d0e2df803c40da2064ef3db5abc386e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReflectedTable.fromReflection (cognitive 25): ReflectedTable.fromReflection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8855643657483a21e49f514863551b7fe30170b9fb98f44844560942ae1c8bf"}},{"ruleId":"D2","level":"warning","message":{"text":"JwtAuthMiddleware.process (cognitive 25): JwtAuthMiddleware.process has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2 (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":"src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e5567c49ebe1af9dce1aaf1d4b0806f97a8107474b0272d5d06b2b26c1f52c"}},{"ruleId":"D2","level":"warning","message":{"text":"IpAddressMiddleware.process (cognitive 23): IpAddressMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts), boolean chains 1 (nesting depth added 15). 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":"api.include.php"},"region":{"startLine":4992}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c3488ccb6357535da7cbf4aa8fd476c124f784cd78442631d9d1b5b26d1f84"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinLimitsMiddleware.process (cognitive 23): JoinLimitsMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (7 pts), boolean chains 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":"api.include.php"},"region":{"startLine":5073}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb933613cdca1be61f98a06b71d554576b4c4f1ce7314e9b9a60679f9457f6cb"}},{"ruleId":"D2","level":"warning","message":{"text":"IpAddressMiddleware.process (cognitive 23): IpAddressMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts), boolean chains 1 (nesting depth added 15). 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":"api.php"},"region":{"startLine":4992}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f327a281b636c41acdaaa3f0421af7fb3a06242015bf40af17017b1b676baf9"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinLimitsMiddleware.process (cognitive 23): JoinLimitsMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (7 pts), boolean chains 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":"api.php"},"region":{"startLine":5073}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96bc94a0b44389d2b858d3ef99bd28ad56f656fcf5b45d0fa4e110a5a8f40d2"}},{"ruleId":"D2","level":"warning","message":{"text":"IpAddressMiddleware.process (cognitive 23): IpAddressMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts), boolean chains 1 (nesting depth added 15). 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":"src/Tqdev/PhpCrudApi/Middleware/IpAddressMiddleware.php"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d1ea6ed676281f9a1487e8b80aa5f9608596df53c13227613528795a129b08"}},{"ruleId":"D2","level":"warning","message":{"text":"JoinLimitsMiddleware.process (cognitive 23): JoinLimitsMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (7 pts), boolean chains 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":"src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3206ec4534f3755ee147a9aefc8f9600cb96cb35636a741aa51d122fab6827"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonMiddleware.convertJsonRequest (cognitive 22): JsonMiddleware.convertJsonRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (8 pts), boolean chains 2 (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":"api.include.php"},"region":{"startLine":5131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cfa97a7c66fd5b7cd2fe34d72cb020471700c59df48130c1aa14386a8ce1b35"}},{"ruleId":"D2","level":"warning","message":{"text":"SanitationMiddleware.process (cognitive 22): SanitationMiddleware.process has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts) (nesting depth added 15). 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":"api.include.php"},"region":{"startLine":5878}}}],"partialFingerprints":{"codehealthFindingId/v1":"47304706a038730ef5531d910cd9145d374133761baae9f41d1f5a13528d6a13"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationJoiner.addMandatoryColumns (cognitive 22): RelationJoiner.addMandatoryColumns has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (9 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":9129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1371daa2ecf138d15a157399bb2556226ed8d8a93378af0870085252177ce5ce"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonMiddleware.convertJsonRequest (cognitive 22): JsonMiddleware.convertJsonRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (8 pts), boolean chains 2 (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":"api.php"},"region":{"startLine":5131}}}],"partialFingerprints":{"codehealthFindingId/v1":"940888623cea0a1504b0cbe985987d1e666239ec15be8bbe4023e29b43c1a3c8"}},{"ruleId":"D2","level":"warning","message":{"text":"SanitationMiddleware.process (cognitive 22): SanitationMiddleware.process has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts) (nesting depth added 15). 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":"api.php"},"region":{"startLine":5878}}}],"partialFingerprints":{"codehealthFindingId/v1":"967dbe121f3c713f08e035fc03ce13a1c928e25dca179efa6d36a3dffa3377cf"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationJoiner.addMandatoryColumns (cognitive 22): RelationJoiner.addMandatoryColumns has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (9 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":9129}}}],"partialFingerprints":{"codehealthFindingId/v1":"01bb1505e995f3caddc703ff7a9b8a2910e12bcc7288f6db2a448308448d73f8"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonMiddleware.convertJsonRequest (cognitive 22): JsonMiddleware.convertJsonRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (8 pts), boolean chains 2 (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":"src/Tqdev/PhpCrudApi/Middleware/JsonMiddleware.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d5656eb28c201c41c030b667fce6d96795d2ca27415e02bce6def3707a33f6"}},{"ruleId":"D2","level":"warning","message":{"text":"SanitationMiddleware.process (cognitive 22): SanitationMiddleware.process has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts) (nesting depth added 15). 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":"src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd9f995e2990b228d9cb7d500cc098ace42ae6104183031c9b0d120ea4b1fd1"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationJoiner.addMandatoryColumns (cognitive 22): RelationJoiner.addMandatoryColumns has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (9 pts), boolean chains 3 (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":"src/Tqdev/PhpCrudApi/Record/RelationJoiner.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b4b6503fe5c0a219364185136ff701487265f2048039f5346896da8d313a28"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnIncluder.select (cognitive 21): ColumnIncluder.select has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":8154}}}],"partialFingerprints":{"codehealthFindingId/v1":"554554cc3c80d4944192cba40626155fbdfd1cd025bcb35f2e389ef317f183ab"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnIncluder.select (cognitive 21): ColumnIncluder.select has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":8154}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca41f2f43dab1ec62342e89e6a9a94d4a2d16d30c8e22f176f0a4e44c56d4273"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnIncluder.select (cognitive 21): ColumnIncluder.select has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Record/ColumnIncluder.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe88ab4b219fdf209b2bb00a850b88882740f4c188f79f4ce4d3292ac3620ffb"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiTenancyMiddleware.process (cognitive 20): MultiTenancyMiddleware.process has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":5427}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d64dbf7d863b7729773de6af442ea0b847e7de1c4153a28c894d2258613df8"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiTenancyMiddleware.process (cognitive 20): MultiTenancyMiddleware.process has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":5427}}}],"partialFingerprints":{"codehealthFindingId/v1":"84faf4e0292ac3158dc7df3e99a4bdd87e7213d79cdd1a3296113548e8ad5462"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiTenancyMiddleware.process (cognitive 20): MultiTenancyMiddleware.process has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab29297746ff25c89d791fc455f750e362dea1a34113960fe2e058bcc5d14910"}},{"ruleId":"D2","level":"warning","message":{"text":"WpAuthMiddleware.process (cognitive 19): WpAuthMiddleware.process has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 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":"api.include.php"},"region":{"startLine":6207}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fc5757c41e1afc31021ee46a3e43d2592c0c0a7752ba7ca3d94aa2af3b209a"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiColumnsBuilder.setComponentSchema (cognitive 19): OpenApiColumnsBuilder.setComponentSchema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), match/switch 1 (3 pts) (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":"api.include.php"},"region":{"startLine":6877}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb83b91cc58fcaf4f83763438a5089a6e630cf4b7c23541ec9ad4716b69742b"}},{"ruleId":"D2","level":"warning","message":{"text":"WpAuthMiddleware.process (cognitive 19): WpAuthMiddleware.process has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 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":"api.php"},"region":{"startLine":6207}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3a469096e2da9c614b371b800f6f99e35642c96ff21104882735e7b6ab4798"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiColumnsBuilder.setComponentSchema (cognitive 19): OpenApiColumnsBuilder.setComponentSchema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), match/switch 1 (3 pts) (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":"api.php"},"region":{"startLine":6877}}}],"partialFingerprints":{"codehealthFindingId/v1":"711e49e5e053fd99a49056b44136ec60cb6261fe91564730f17013dbfd5edfc1"}},{"ruleId":"D2","level":"warning","message":{"text":"WpAuthMiddleware.process (cognitive 19): WpAuthMiddleware.process has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 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":"src/Tqdev/PhpCrudApi/Middleware/WpAuthMiddleware.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb92b6d33a1c40fd50b873453a23a14c0652b361886e11900b776cfa55873d6e"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenApiColumnsBuilder.setComponentSchema (cognitive 19): OpenApiColumnsBuilder.setComponentSchema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), match/switch 1 (3 pts) (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":"src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cdb89b42665b38a9024bf993d5777bad85ed12d5095c3dc4ddcc61bdbe29fca"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonMiddleware.convertJsonResponse (cognitive 18): JsonMiddleware.convertJsonResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":5160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25a16bd7866b18906ccfbd2185f5e23f658348225eacac7cd500edc7da2b6a7"}},{"ruleId":"D2","level":"warning","message":{"text":"TextSearchMiddleware.process (cognitive 18): TextSearchMiddleware.process has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (7 pts) (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":"api.include.php"},"region":{"startLine":5951}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39b7f9cfd7e8e2c299539fb726b976a367bd7feb58f24ef3ce96f19b69acd0c"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonMiddleware.convertJsonResponse (cognitive 18): JsonMiddleware.convertJsonResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":5160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e28abd27e06af759f4c4699dffb4a94eb204643b36d0f9c3a861f403ba81c9a"}},{"ruleId":"D2","level":"warning","message":{"text":"TextSearchMiddleware.process (cognitive 18): TextSearchMiddleware.process has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (7 pts) (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":"api.php"},"region":{"startLine":5951}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb28f7f70d1c2f63579f1499de34fa4b0ea4487337b257a45e3cd2b9c0683534"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonMiddleware.convertJsonResponse (cognitive 18): JsonMiddleware.convertJsonResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Middleware/JsonMiddleware.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"867a08690ef861c071e5a1821af07434bdb4f8568b43480b12fa005c029a2292"}},{"ruleId":"D2","level":"warning","message":{"text":"TextSearchMiddleware.process (cognitive 18): TextSearchMiddleware.process has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (7 pts) (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":"src/Tqdev/PhpCrudApi/Middleware/TextSearchMiddleware.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3086e25e56cade98bfcc1ffd2a1e47a40c5b559eb96e5362a1bfed58ff831e34"}},{"ruleId":"D2","level":"warning","message":{"text":"PageLimitsMiddleware.process (cognitive 17): PageLimitsMiddleware.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (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":"api.include.php"},"region":{"startLine":5472}}}],"partialFingerprints":{"codehealthFindingId/v1":"2334831fcc8af4411ea8f280c41ba3564a6075e6a6b4aa34cb8df24068ae0c2d"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationJoiner.addJoinsForTables (cognitive 17): RelationJoiner.addJoinsForTables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), 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":"api.include.php"},"region":{"startLine":9196}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d10037071a3204066032c3f7510c5a38925d744e29a803adc519cc6f29d0b78"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadedFile.moveTo (cognitive 17): UploadedFile.moveTo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":12135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c913a4ec4a35a69b6172bef92522fdc79135dc38ae3f4848f2cb9f7b8daf25e7"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.__construct (cognitive 17): Uri.__construct has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 3 (5 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":"api.include.php"},"region":{"startLine":12525}}}],"partialFingerprints":{"codehealthFindingId/v1":"1915e3e54321e670579335afa865d53e0a6fbf087441e10e80a587ef46165d69"}},{"ruleId":"D2","level":"warning","message":{"text":"PageLimitsMiddleware.process (cognitive 17): PageLimitsMiddleware.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (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":"api.php"},"region":{"startLine":5472}}}],"partialFingerprints":{"codehealthFindingId/v1":"798a1b3ccef101e4f9f48fd13bd90bcab04d28739d30f250d8ee652cefb53d3b"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationJoiner.addJoinsForTables (cognitive 17): RelationJoiner.addJoinsForTables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), 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":"api.php"},"region":{"startLine":9196}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91779e129b8c3c156866428f295b1a915a7a41befd0d9cea9f6dc143ca344f6"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadedFile.moveTo (cognitive 17): UploadedFile.moveTo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":12135}}}],"partialFingerprints":{"codehealthFindingId/v1":"62fda6da5689366385d39f2b016b8a8e7da7a4a9cb5893e134ab9d5d70252403"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.__construct (cognitive 17): Uri.__construct has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 3 (5 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":"api.php"},"region":{"startLine":12525}}}],"partialFingerprints":{"codehealthFindingId/v1":"908e381d7e812b805d87ff1b41b816fb2b1002917106b428c467ac097b3a3432"}},{"ruleId":"D2","level":"warning","message":{"text":"PageLimitsMiddleware.process (cognitive 17): PageLimitsMiddleware.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (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":"src/Tqdev/PhpCrudApi/Middleware/PageLimitsMiddleware.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a10c555509cec68e612149ada8e12783c05d9f000d9e25932fff63527f2451d"}},{"ruleId":"D2","level":"warning","message":{"text":"RelationJoiner.addJoinsForTables (cognitive 17): RelationJoiner.addJoinsForTables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), 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":"src/Tqdev/PhpCrudApi/Record/RelationJoiner.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"a363f075ba29f3a47a46914d161a93b5453c0cc61d9a7836f2989ea5b074d1be"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericDefinition.getAddTableSQL (cognitive 16): GenericDefinition.getAddTableSQL has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":3284}}}],"partialFingerprints":{"codehealthFindingId/v1":"c966888d35add4654fb23d6ed1c7385f6f54eb14069ddc408df296c72bff5f7a"}},{"ruleId":"D2","level":"warning","message":{"text":"Condition.fromString (cognitive 16): Condition.fromString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":8233}}}],"partialFingerprints":{"codehealthFindingId/v1":"21cd714efb109d182687e839ec3c33db445a634eedde452c7bebd39bde4e16b9"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestUtils.getFilterTables (cognitive 16): RequestUtils.getFilterTables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":9580}}}],"partialFingerprints":{"codehealthFindingId/v1":"0853191626e973dc5f0df06781e14eff427fc42df09c84d7723ee2b8a5b37099"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericDefinition.getAddTableSQL (cognitive 16): GenericDefinition.getAddTableSQL has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":3284}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0689440dc32e42817f4d2cc52f2ad0109304db90f215d8f9efa9e2b4d500cad"}},{"ruleId":"D2","level":"warning","message":{"text":"Condition.fromString (cognitive 16): Condition.fromString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":8233}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6401f730182d5de1b2bb12e26a7958e3fe83ced19b26cab31f1ed8e78cd2fb"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestUtils.getFilterTables (cognitive 16): RequestUtils.getFilterTables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":9580}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4e0a8142c4a48c545641296ffc5fa23dfef38d1633fca3e5abec3e4d35735e"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericDefinition.getAddTableSQL (cognitive 16): GenericDefinition.getAddTableSQL has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Database/GenericDefinition.php"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2592e6c4d7a44a8a5849cc52de7e06b8821d83f6db6add2c04191f0fba0568"}},{"ruleId":"D2","level":"warning","message":{"text":"Condition.fromString (cognitive 16): Condition.fromString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Record/Condition/Condition.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3435f567cbb1a36477bf4d7a50c9e971db89f64ca32cec12b4cd3e720034fac7"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestUtils.getFilterTables (cognitive 16): RequestUtils.getFilterTables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/RequestUtils.php"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a1f5630d4d71cf4ca5988e254ffb02ef0aad85efd7f5975b86980407dde330"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./api.php: FileTooLong \u2014 7540 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 7040 over it, 15.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6929925500a19aa01ffd5c3fa9ef6f10d52c0d906a5a663c4033ae2b33245740"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./api.include.php: FileTooLong \u2014 7527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 7027 over it, 15.05\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd11013eabd98c488a174230504728f76537ffa1ddb22e80d2a0fd704c40482b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DbAuthMiddleware.process: MethodTooLong \u2014 process runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fa468122d0b8e8698abfe795c21f7f35d094173d2ff29ff3f15dbe1cfd280f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Api.__construct: MethodTooLong \u2014 __construct runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"src/Tqdev/PhpCrudApi/Api.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76974fe405bb374bcc33c66517d730637b1a3bd4a440950528024500c711670"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GenericDefinition: 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":"api.include.php"},"region":{"startLine":3047}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf89461ae0c9dcc4c1a2a14b31346f76faebb167fd6ef728b125c9b71e930610"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GenericDefinition: 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":"api.php"},"region":{"startLine":3047}}}],"partialFingerprints":{"codehealthFindingId/v1":"7572dd1f2746877255dc7bfbd880a369bbe9e261fadd349c31141b9837d80230"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Config: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"api.include.php"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83993d58d12ebf4da491242d558ff57a8920a1e915ab652d42f5b1f8a9c9f55"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Config: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"api.php"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd0a699293137523e5bf2c0b5548b0c4fc58f1aec7b98033b5e89d07ec948a8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Config: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\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":"src/Tqdev/PhpCrudApi/Config/Config.php"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0f17e3fe9c5a6fe563e49f41bc5fd96408a9f79abbb53851428ef6c9e65c54"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ValidationMiddleware.validateType: MethodTooLong \u2014 validateType runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"684b3f44c7ea711780af5ade90540021718fda1a21288d5bf8fffe6bddafc43c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (6 members, 15 shared lines): api.include.php:7394-7410 | api.include.php:7689-7735 | api.php:7394-7410 | api.php:7689-7735 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:250-268 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:143-197 \u2014 These 6 members are variants of one another: a block of 15 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 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":"api.include.php"},"region":{"startLine":7394}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee87c43aab0c3236d502ee908130afb496e33a5fb38674f1af934c8faf925d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 23 shared lines): api.include.php:8235-8266 | api.php:8235-8266 | src/Tqdev/PhpCrudApi/Record/Condition/Condition.php:32-65 \u2014 These 3 members are variants of one another: a block of 23 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":"api.include.php"},"region":{"startLine":8235}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0506ab8c76f1375156af78d86fb7bfbf9865c6c3822162e0648b4189fd6939"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 15 shared lines): api.include.php:9483-9500 | api.php:9483-9500 | src/Tqdev/PhpCrudApi/RequestFactory.php:23-41 \u2014 These 3 members are variants of one another: a block of 15 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":"api.include.php"},"region":{"startLine":9483}}}],"partialFingerprints":{"codehealthFindingId/v1":"358edfffb77ded3ce20221d0372d3d878006762e48ad7caaee29d312e235c991"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): api.include.php:8156-8180 | api.php:8156-8180 \u2014 These two members are one piece of code written twice and then edited apart: 25 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":"api.include.php"},"region":{"startLine":8156}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53d5a5e3ccba6ead19acffc3c350eb85048cc30dd3ba500ca1a8454cdf5a5d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): api.include.php:5299-5307 | api.php:5299-5307 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":5299}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9cd50b74835b3bd6c9363fa00809837b7906f445a3482c05cceced260cf580"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (15 members, 50\u002B identical tokens): api.include.php:1949-1971 | api.include.php:1995-2018 | api.include.php:2022-2053 | api.include.php:2057-2078 | api.include.php:2082-2113 | api.php:1949-1971 | api.php:1995-2018 | api.php:2022-2053 | api.php:2057-2078 | api.php:2082-2113 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:41-63 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:89-112 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:117-148 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:153-174 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:179-210 \u2014 These 15 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 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"569687f3caeec01c3b21c49106eabb521c2c89fbaa7a64dfc0c0593be7a7dbc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): api.include.php:1653-1663 | api.include.php:1680-1694 | api.include.php:1740-1754 | api.php:1653-1663 | api.php:1680-1694 | api.php:1740-1754 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:57-67 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:86-100 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:150-164 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9d76d087db68a55cceb7ca34f66c312af1ee7b3f848f2bf59fca92bb284726"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): api.include.php:4501-4544 | api.include.php:4729-4881 | api.include.php:5324-5359 | api.php:4501-4544 | api.php:4729-4881 | api.php:5324-5359 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:83-126 | src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:35-187 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:137-172 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":4501}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67a844e5dc153b66b1975d1226ea5b53dafb480297ef113401092e22048caf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): api.include.php:6579-6596 | api.include.php:6879-6920 | api.include.php:8081-8095 | api.php:6579-6596 | api.php:6879-6920 | api.php:8081-8095 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:123-140 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:113-154 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:57-71 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":6579}}}],"partialFingerprints":{"codehealthFindingId/v1":"322f412f517a5af743c01d4ffd2d3ff2a46a31ee2ca4ec82239c6e73a0c90b26"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): api.include.php:6669-6683 | api.include.php:7564-7578 | api.include.php:8060-8077 | api.php:6669-6683 | api.php:7564-7578 | api.php:8060-8077 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiCacheBuilder.php:32-46 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiOpenApiBuilder.php:34-48 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:35-52 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":6669}}}],"partialFingerprints":{"codehealthFindingId/v1":"195bb26175526f175e0b0b93a4e137be570e0c4fef48e26d430b601b1d9b0658"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): api.include.php:695-748 | api.include.php:767-781 | api.php:695-748 | api.php:767-781 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:32-93 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:107-121 \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":"api.include.php"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7a1f1f16682d543886f76ddb3436a5313c220adc481e968297356e861813e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): api.include.php:1780-1785 | api.include.php:1940-1945 | api.php:1780-1785 | api.php:1940-1945 | src/Tqdev/PhpCrudApi/Controller/GeoJsonController.php:27-32 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:31-36 \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":"api.include.php"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b08d44e14042a305efaeeee39a5824c93c8f3a3211c9313f563ecf864ed21d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): api.include.php:2977-2990 | api.include.php:3006-3019 | api.php:2977-2990 | api.php:3006-3019 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:338-351 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:369-382 \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":"api.include.php"},"region":{"startLine":2977}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d9628600d1edfc7332cd35f28c6eb0d6f5630174387eaa445b1a75971392e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): api.include.php:5799-5876 | api.include.php:6030-6155 | api.php:5799-5876 | api.php:6030-6155 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:43-123 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:53-185 \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":"api.include.php"},"region":{"startLine":5799}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0155e15354a4c4120eef8eb3323adec170fe0e2088b49ca2e80dccb9f9d6588"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): api.include.php:6948-6957 | api.include.php:7287-7295 | api.php:6948-6957 | api.php:7287-7295 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:185-195 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:137-146 \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":"api.include.php"},"region":{"startLine":6948}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe08d462b2de4bfda7c65a5a8b4b95ff815abb322e36c9d3e091bc24e763d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): api.include.php:9188-9194 | api.include.php:9397-9403 | api.php:9188-9194 | api.php:9397-9403 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:87-93 | src/Tqdev/PhpCrudApi/Record/RelationResolver.php:27-33 \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":"api.include.php"},"region":{"startLine":9188}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aaa65d02e70b241f2f82e12fe437adc39dfb045740f41fd223075ddbdbfc88"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): api.include.php:9631-9646 | api.include.php:9731-9745 | api.php:9631-9646 | api.php:9731-9745 | src/Tqdev/PhpCrudApi/RequestUtils.php:137-153 | src/Tqdev/PhpCrudApi/ResponseUtils.php:34-49 \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":"api.include.php"},"region":{"startLine":9631}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6fff3e8d1919b6e601b9fd7b3b6d6d6722c718848fdbd54a0e3fa62fc47ded"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 77\u002B corresponding lines): api.include.php:5219-5295 | api.php:5219-5295 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:16-101 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 77 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":"api.include.php"},"region":{"startLine":5219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d3973dab7a2cfd930628ce868ec72de7661ec6ac4273995286d09072904bdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 54\u002B corresponding lines): api.include.php:6275-6328 | api.php:6275-6328 | src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:24-79 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 54 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":"api.include.php"},"region":{"startLine":6275}}}],"partialFingerprints":{"codehealthFindingId/v1":"af36f704aa5bc66013c75628cdc3f4015f65b6443b295d9575d47d7c63692539"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): api.include.php:6209-6251 | api.php:6209-6251 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"api.include.php"},"region":{"startLine":6209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6686c12c7cc249faf69b74daad5962604af20e0ffb24642bc560d88519034399"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): api.include.php:9198-9237 | api.php:9198-9237 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:98-142 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 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":"api.include.php"},"region":{"startLine":9198}}}],"partialFingerprints":{"codehealthFindingId/v1":"0283962290c1e7e4c567d44657f9658773960deaf270e3865d14dcdee3e83d46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): api.include.php:9430-9460 | src/Tqdev/PhpCrudApi/Record/RelationResolver.php:62-96 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":9430}}}],"partialFingerprints":{"codehealthFindingId/v1":"33d5975fba66b67a12f779fdd96da17db5fc0f6a691ff3372736a772f833befa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): api.include.php:5179-5202 | api.php:5179-5202 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"api.include.php"},"region":{"startLine":5179}}}],"partialFingerprints":{"codehealthFindingId/v1":"381454524f6cd7974050744a28f05720bff2f871ea1f972f792d4ca24ae29bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): api.include.php:4140-4161 | api.php:4140-4161 | src/Tqdev/PhpCrudApi/GeoJson/Geometry.php:28-49 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 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":"api.include.php"},"region":{"startLine":4140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19a27ca2bdfb1a1d1296c4ae6fe20fcc2ea3e653c1fbce90806e318e65b3cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 27\u002B corresponding lines): api.include.php:6159-6185 | api.php:6159-6185 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:190-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 27 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":"api.include.php"},"region":{"startLine":6159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e46040683cc4d0a3b5c74b79b2905074b13d885ca2a4010b370d1ffdb7d44a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): api.include.php:4994-5015 | api.php:4994-5015 | src/Tqdev/PhpCrudApi/Middleware/IpAddressMiddleware.php:59-80 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 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":"api.include.php"},"region":{"startLine":4994}}}],"partialFingerprints":{"codehealthFindingId/v1":"139503ff5ba26b1ea2ea2b5b2746d9f72422dd425e35c74a026b969785b07819"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): api.include.php:5880-5901 | api.php:5880-5901 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:128-149 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 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":"api.include.php"},"region":{"startLine":5880}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a05edb253439205e68f26c31506bcfab47dba521cdaa04d7bb495c5221d1d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): api.include.php:1620-1631 | api.php:1620-1631 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:21-32 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"api.include.php"},"region":{"startLine":1620}}}],"partialFingerprints":{"codehealthFindingId/v1":"b343499a0cfebb1948264f0fce7d233ee65305f02d241ffe3a73f4c736b7db88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): api.include.php:7370-7390 | api.php:7370-7390 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:225-245 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 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":"api.include.php"},"region":{"startLine":7370}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a9ec4d27b22ebed11f2f19f1c6d2aa284237beaf9e099ce3aea10ffcccca92"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): api.include.php:7349-7366 | api.php:7349-7366 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:203-220 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"api.include.php"},"region":{"startLine":7349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3315f1f65b5477ff48a9417d854c1bd6310b183f422e4798dea8e190c2f7a679"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): api.include.php:8987-9001 | src/Tqdev/PhpCrudApi/Record/RecordService.php:32-46 \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":"api.include.php"},"region":{"startLine":8987}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed14a514ad8b8aed0efd6e510a22da6daa0add9443b2be4393996906eaa1d276"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): api.include.php:1929-1936 | api.php:1929-1936 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:19-26 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 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":"api.include.php"},"region":{"startLine":1929}}}],"partialFingerprints":{"codehealthFindingId/v1":"c129bf13c064a306241478e11600070d1fe704e1dfbcbc1acf0130e59c27acb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): api.include.php:5162-5175 | api.php:5162-5175 \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":"api.include.php"},"region":{"startLine":5162}}}],"partialFingerprints":{"codehealthFindingId/v1":"79aa0c6d8e2434b900d54b9b91da01fbcf07f0870eac7d361f00c4c5a06bf538"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): api.include.php:8723-8736 | api.php:8723-8736 \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":"api.include.php"},"region":{"startLine":8723}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9a962c355f22193e3d3230e1eea8393d11cf2d3fe0e8b1b8645505b10645b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): api.include.php:2994-3002 | api.php:2994-3002 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:356-364 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":2994}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e208a1bb2926e5adb6178e25365c1dbe32b0f6402bd5aafc0fc9eb232bc6fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): api.include.php:9980-9985 | api.php:9980-9985 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"api.include.php"},"region":{"startLine":9980}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf9d3fc6156c664f5208796e8808c34fb0a39f159d6a271007995a47aeaec23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): api.include.php:6998-7001 | api.php:6998-7001 \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":"api.include.php"},"region":{"startLine":6998}}}],"partialFingerprints":{"codehealthFindingId/v1":"1651d407b37e50e2e82f6ef557c83db3850459d28570c9b5491d0221b57139ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): api.include.php:995-996 | api.php:995-996 \u2014 These two members are one piece of code written twice and then edited apart: 2 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":"api.include.php"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcf343faf8f4da4e7878cabcb78a5eb15d9e4d15ff4670887397b4658a2c2fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:9724-9727 | api.php:9724-9727 | src/Tqdev/PhpCrudApi/ResponseUtils.php:26-29 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":9724}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fb41b1d96259b59647d91f00d2737185d09fc682a2ae138270d32c10db3acd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:1492-1495 | api.php:1492-1495 | src/Tqdev/PhpCrudApi/Config/Config.php:203-206 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"a499de8355ddb1c32eace1612d6f0dc10c52e15cfde978c8653c86768944b492"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): api.include.php:913-915 | api.php:913-915 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:109-111 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"api.include.php"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8261ca85b2f4f27365bb0e607c897b4fbad47c97de675eecffc3dd762b6000"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:9060-9063 | api.php:9060-9063 | src/Tqdev/PhpCrudApi/Record/RecordService.php:103-106 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":9060}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a97b9f7a043a3e6ec712f5126323143a463ad281422f3b28805c9883d9756a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:9078-9081 | api.php:9078-9081 | src/Tqdev/PhpCrudApi/Record/RecordService.php:117-120 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":9078}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb5906a2deb3bd5810563cee1473c300d552c7683f5c6e80368be938b00f53a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:4068-4071 | api.php:4068-4071 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:76-79 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":4068}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e62ed7e670f07fb0f3d0aa724c2bf08c8b28dc2270f95fa5d5a9b7602c22359"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:9034-9037 | api.php:9034-9037 | src/Tqdev/PhpCrudApi/Record/RecordService.php:81-84 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":9034}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40808daf22b114090d829020eb119111f444e3cdd7bedfc64ecc5a182df7c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): api.include.php:1229-1230 | api.php:1229-1230 \u2014 These two members are one piece of code written twice and then edited apart: 2 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":"api.include.php"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ed45621a1fb7a0e18085ccfca4af35b71cb13a69cdc7ccd13e525d7f4da21c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:1773-1776 | api.php:1773-1776 | src/Tqdev/PhpCrudApi/Controller/GeoJsonController.php:19-22 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec74ae2947f5aff14fe97a2761ee9ccd10558134da2c3273f8c179eed1c3b547"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): api.include.php:12757-12760 | api.php:12757-12760 \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":"api.include.php"},"region":{"startLine":12757}}}],"partialFingerprints":{"codehealthFindingId/v1":"046836071c1f41a71322afbb333934ea72280801f936f6c1dbb2149cd34dc8bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): api.include.php:12764-12767 | api.php:12764-12767 \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":"api.include.php"},"region":{"startLine":12764}}}],"partialFingerprints":{"codehealthFindingId/v1":"450a2cd162d5e13d5fc2b18c8f2a87faa25045b08d09d2533ac448f0b0ac03a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:3055-3058 | api.php:3055-3058 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:18-21 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":3055}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb08815adb393a02afde9802c73e8c2e2996e440c5700d79a192a27e2428647"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:1315-1318 | api.php:1315-1318 | src/Tqdev/PhpCrudApi/Column/ReflectionService.php:88-91 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ed1d0d9bf362cca1d03e9cfd524d5548515b540332ee9b4e9f48e8da578b94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:3030-3033 | api.php:3030-3033 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:395-398 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":3030}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c1238681b8c924ba91fa8098ea142bf91ce6d3b1d05a1bcb3425cb0e7d0161"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:4451-4454 | api.php:4451-4454 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:29-32 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":4451}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e41d3e250a6990f5a90528576c2b36a7a9b060a5f2148ea997616cf3127f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): api.include.php:3037-3037 | api.php:3037-3037 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"api.include.php"},"region":{"startLine":3037}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1d49ace6a9cebedec2dee667777b6cb4bce898ea7aab9a768e1de70f8ee3b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:8910-8913 | api.php:8910-8913 | src/Tqdev/PhpCrudApi/Record/PathTree.php:37-40 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":8910}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3dac3ce44a56f3e07b917fa123332b2d898927eea97d3f0ae0c738eb3bd1f4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): api.include.php:1846-1847 | api.php:1846-1847 | src/Tqdev/PhpCrudApi/Controller/JsonResponder.php:24-25 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 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":"api.include.php"},"region":{"startLine":1846}}}],"partialFingerprints":{"codehealthFindingId/v1":"8031246e16ea1bf841bc293f17b1b2f3cdca3f9243744e0b2d6b4e894fb037f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:2132-2135 | api.php:2132-2135 | src/Tqdev/PhpCrudApi/Controller/StatusController.php:19-22 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":2132}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0633b5e7d3aa8888a42ed57b23b68488ac93ca86908e9592a615d757e1dd5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): api.include.php:2139-2140 | api.php:2139-2140 \u2014 These two members are one piece of code written twice and then edited apart: 2 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":"api.include.php"},"region":{"startLine":2139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4b4d69a3ddd52a5a3c8be3d4b05087407bf6423fd6d6bf42c0a8fac10c3b38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:2400-2403 | api.php:2400-2403 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:82-85 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":2400}}}],"partialFingerprints":{"codehealthFindingId/v1":"149458ab72710efeb720e2b2428ca0d6fc0eaa26d074e4320e271bbbbccf11e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 4\u002B corresponding lines): api.include.php:4297-4300 | api.php:4297-4300 | src/Tqdev/PhpCrudApi/Middleware/ApiKeyDbAuthMiddleware.php:27-30 | src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:27-30 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":4297}}}],"partialFingerprints":{"codehealthFindingId/v1":"748b5211e8d6f17193129ef7cdba9c2d9596f3505084cf742b7843ddfbbb10d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): api.include.php:4722-4725 | api.php:4722-4725 \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":"api.include.php"},"region":{"startLine":4722}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3f1d2dfb78b19fb66f4342df55482a8d6387bf4a231131f21a7e00f55143e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): api.include.php:7613-7616 | api.php:7613-7616 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:52-55 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 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":"api.include.php"},"region":{"startLine":7613}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69a58da576d48cd9efe6ccc6dc0d61132da200e21ef34ae70a35cb434b60900"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 2\u002B corresponding lines): api.include.php:9513-9514 | api.php:9513-9514 | src/Tqdev/PhpCrudApi/RequestUtils.php:12-13 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 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":"api.include.php"},"region":{"startLine":9513}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a79394ddfc972c0f1e9c586e12ebd4cacb7cc6362dde23209b8de200db135c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): api.include.php:10222-10225 | api.php:10222-10225 \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":"api.include.php"},"region":{"startLine":10222}}}],"partialFingerprints":{"codehealthFindingId/v1":"69499e6b30449a07ce7e5f2ead1c008d5f12c59e091c89c1fb9d40467dafa05b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): api.include.php:1392-1394 | api.php:1392-1394 | src/Tqdev/PhpCrudApi/Config/Config.php:89-91 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"api.include.php"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b21e6b4bf648b70469ee403f76d3d4632db5c9a28004c3270ec4ecf74399e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (123 lines \u00D7 3): api.include.php:4759-4881 | api.php:4759-4881 | src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:65-187 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:4759\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":"api.include.php"},"region":{"startLine":4759}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa6b9e56bb8ec62c55a83749a3ac9e1a7ecfba660a288630e4845e0a6d63584e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (111 lines \u00D7 3): api.include.php:181-291 | api.php:181-291 | src/Tqdev/PhpCrudApi/Api.php:66-176 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"474b8d593617553ed3d9d7c914b868f3c50fb001362393a9d79ddabe28ffa631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (100\u2013105 lines \u00D7 3): api.include.php:6036-6135 | api.php:6036-6135 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:62-166 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6036\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":6036}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cbeecae06dab806696d0d916b18650eced991989efe3a1b90b1f46125e693c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (79 lines \u00D7 2): api.include.php:11845-11923 | api.php:11845-11923 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:11845\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":"api.include.php"},"region":{"startLine":11845}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b244ba624c33daf4325df09f359da2c6090056cc1db82f434f2410271f0c97d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): api.include.php:27-104 | api.php:27-104 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"53304a414dbfd7a208a7dbad21691f57c21adf644ada5727b6a63a6ee3ceda57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201377 lines \u00D7 6): api.include.php:5802-5876 | api.include.php:6032-6033 | api.php:5802-5876 | api.php:6032-6033 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:47-123 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:55-59 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:5802\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, \u0060api.include.php:5802\u0060 calls \u0060is_null\u0060 and \u0060api.include.php:6032\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":"api.include.php"},"region":{"startLine":5802}}}],"partialFingerprints":{"codehealthFindingId/v1":"9046f91ab4e4e3fa8746630f530997d8abe5299187c0f71c28bd64f38daa23b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 3): api.include.php:7837-7899 | api.php:7837-7899 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:121-183 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:7837\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":"api.include.php"},"region":{"startLine":7837}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4949c9790808ab5ddd83340382e147bddc370d62d1388c292a085c2114265c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 3): api.include.php:2446-2507 | api.php:2446-2507 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:132-193 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ce58acd168db3a3dd1f82e369a7285c675471b665a0e89879907e6f921cbe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55\u201356 lines \u00D7 3): api.include.php:5220-5274 | api.php:5220-5274 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:23-78 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:5220\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":"api.include.php"},"region":{"startLine":5220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ffc5e57347e9bae2d94cfc723ab5977f69fe3d1c92111642ab2c80ab558fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 3): api.include.php:7906-7960 | api.php:7906-7960 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:191-245 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7906}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce9b8e9d202dcb5c735b802ff650c040c766d1ffd50c553da928ff92829ad4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 3): api.include.php:6823-6875 | api.php:6823-6875 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:56-108 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6823}}}],"partialFingerprints":{"codehealthFindingId/v1":"b634ef9483b0f4dbd3e5137aef8bf058215aabf7d3602e296d6ffde61f559c9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 3): api.include.php:4607-4658 | api.php:4607-4658 | src/Tqdev/PhpCrudApi/Middleware/CorsMiddleware.php:42-93 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4607}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1f161592af28edadf1ced71f97d255153f2ee25c56b6435565eb621afea9e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 3): api.include.php:3578-3622 | api.php:3578-3622 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:141-185 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3578}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bd5055fad494692aa78fae259c9528b4636068f28ef69efad1b343b440f54f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 3): api.include.php:6332-6373 | api.php:6332-6373 | src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:84-125 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b666fb3344475d82ca0de1769b0a7e2f7fb4780715f1a733ce567e815e4df6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3): api.include.php:8666-8706 | api.php:8666-8706 | src/Tqdev/PhpCrudApi/Record/FilterInfo.php:30-70 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8666}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b614ccd8e0795a5320b841def27ec09cc07e13a4514e275cb204fb465fcdde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 3): api.include.php:1120-1159 | api.php:1120-1159 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:48-87 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4fbd7f7664a8d9112d9494dafb3f1487dfa3fe609368cfc5a3b2abfb3afbcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 3): api.include.php:6600-6639 | api.php:6600-6639 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:145-184 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6600}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cefc58bc2e2a1399b62576ea11f068a2e45f58bf492aa8b79aa86f01e8c2ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): api.include.php:4510-4544 | api.php:4510-4544 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:92-126 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:4510\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":"api.include.php"},"region":{"startLine":4510}}}],"partialFingerprints":{"codehealthFindingId/v1":"463745523cee88ea11098b83eb85e8c2a67ed405607e26d69f1337ae790f1971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): api.include.php:5075-5109 | api.php:5075-5109 | src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php:62-96 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5075}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df6aa2694fe565b20d691855924ee804205bf6652b05ed396e32fe7ba09f48a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201333 lines \u00D7 3): api.include.php:9208-9237 | api.php:9208-9237 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:110-142 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:9208\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":"api.include.php"},"region":{"startLine":9208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ebbe9c07636e81b7026c051a50c03fb0dbd1289dc7c6aea2883eee70b26759"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201334 lines \u00D7 3): api.include.php:695-725 | api.php:695-725 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:32-65 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060src/Tqdev/PhpCrudApi/Column/DefinitionService.php:32\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":"api.include.php"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"57136b97ae72857c6ebaaa29c787ffff023fd234726bb4f584a9639034f5b575"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): api.include.php:2159-2189 | api.php:2159-2189 | src/Tqdev/PhpCrudApi/Database/ColumnConverter.php:20-50 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2159}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a43d1b644d625baee41f251670405e1f0687edaa5ba30a82531b25fa663dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): api.include.php:2794-2824 | api.php:2794-2824 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:141-171 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2794}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38e8970cbf1200561d385715570f5270d18b3642f8c3d7802499a173fde6163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 3): api.include.php:6222-6251 | api.php:6222-6251 | src/Tqdev/PhpCrudApi/Middleware/WpAuthMiddleware.php:39-69 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6222\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":"api.include.php"},"region":{"startLine":6222}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa86450ba3b68f6d2b84e286989616d80f7bfc1414b6581588ab852997fb7de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): api.include.php:6275-6305 | api.php:6275-6305 | src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:24-54 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6275\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":"api.include.php"},"region":{"startLine":6275}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb707c0db4322109b122433a52b0bf8cadb408e46257d89c9d33fba6fbb187a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201331 lines \u00D7 3): api.include.php:9430-9457 | api.php:9430-9457 | src/Tqdev/PhpCrudApi/Record/RelationResolver.php:62-92 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:9430\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":"api.include.php"},"region":{"startLine":9430}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abd5b45960d86febc735f1493d2a34fb693c613423cdf928bba4112b0a0ee4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): api.include.php:6879-6908 | api.php:6879-6908 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:113-142 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6879\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":6879}}}],"partialFingerprints":{"codehealthFindingId/v1":"121c9e957d4a6eea1f4da0373290afac70f01acae667d0892cf5d07c8f9a4175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 3): api.include.php:7246-7276 | api.php:7246-7276 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:95-125 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:7246\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":"api.include.php"},"region":{"startLine":7246}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38de22702edc1dbdf4eb01ad940cbffe8e8c8ecfb9cf2704eea32395d16aff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): api.include.php:9131-9159 | api.php:9131-9159 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:27-55 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1140936a8f97335c91f5fb9edccf993ee73f7943e25cc55eadb34405d011a46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): api.include.php:9994-10022 | api.php:9994-10022 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9994}}}],"partialFingerprints":{"codehealthFindingId/v1":"469cd5f441d56901ee42d0f7ad594979038d31c6c11e279f2089a1237883d2e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): api.include.php:12707-12735 | api.php:12707-12735 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12707}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc29cc561d41f6ece9d0cc788ed4a44cf344b244eac2ed563e244cb276246144"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): api.include.php:2864-2891 | api.php:2864-2891 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:219-246 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2864}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d863504facaeae806d2ec7811bc576141a6bb5d33eae99fa8bd5c52ff9ae1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 3): api.include.php:3546-3574 | api.php:3546-3574 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:108-136 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3546}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49bc555cf04dfe88fc1310b08dbc56bc0ef04c301ba5e6186d9711fe8c87f21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201328 lines \u00D7 3): api.include.php:9336-9357 | api.php:9336-9357 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:252-279 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9336}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb81dd1b7576842f508c9806de17ee2117338546b63f9c4e1ed5bdba7e671fe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): api.include.php:12083-12110 | api.php:12083-12110 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12083}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06728b22852ac2ea97741819acb0ad5fbb558623ebde80740577b984a0ca306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): api.include.php:5333-5359 | api.php:5333-5359 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:146-172 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:5333\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":"api.include.php"},"region":{"startLine":5333}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0ea79f10db515066d2da735472d0514114a1064038f7f0f03bdb12916c2d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): api.include.php:5953-5979 | api.php:5953-5979 | src/Tqdev/PhpCrudApi/Middleware/TextSearchMiddleware.php:27-53 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5953}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31d997498904f87f70820b98ec5ccc00e8077abe0f7f4c7a6e58d60fc9ce379"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 3): api.include.php:3236-3260 | api.php:3236-3260 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:220-245 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3236}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e034573cc4153aac9835831cc0c12ec1e7a99ebe7b2323cd9f586d68e5c7cbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): api.include.php:6732-6757 | api.php:6732-6757 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnTypes.php:37-62 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6732\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":6732}}}],"partialFingerprints":{"codehealthFindingId/v1":"07734c6f26805f93f1d3cfa68d890c97fe6a7644e5c2bb41413bd77feb173efb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): api.include.php:624-648 | api.php:624-648 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:116-140 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"0773e13f84b256e52c8fe1d95370494ee0cf2c1f7089de59623ae916d80af630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): api.include.php:1091-1115 | api.php:1091-1115 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:18-42 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb39576b575335ac3d4bf2b945c628137cb964bd7a614e642e99a941c6e2cac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): api.include.php:2511-2535 | api.php:2511-2535 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:198-222 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2511}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeff8b2a907bbe20db6ee9c28ced94005e37a9a9234218fb6c30577c2fd7c9be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): api.include.php:7964-7988 | api.php:7964-7988 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:250-274 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7964}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba456a0272c307e44a27c6daa4379c4e407fb348d51c770f03947b60f66a0bd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): api.include.php:12137-12161 | api.php:12137-12161 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a3e8e9e9a45f52f133fb8a41ae77f7a4f18b9fef10eff05c97373993b3caa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): api.include.php:1864-1887 | api.php:1864-1887 | src/Tqdev/PhpCrudApi/Controller/JsonResponder.php:45-68 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee69302562de459f34cc534c8d38774a6dadfc33599b9d99b3362e40641d6b21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): api.include.php:4304-4327 | api.php:4304-4327 | src/Tqdev/PhpCrudApi/Middleware/ApiKeyDbAuthMiddleware.php:35-58 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f0f397d277353923520fbcce8099558d18db212e2c96f5af156fff31d068e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): api.include.php:7064-7087 | api.php:7064-7087 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDbAuthBuilder.php:122-145 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7064}}}],"partialFingerprints":{"codehealthFindingId/v1":"e18522709eeed302c8648a28c304024bbfead8d31ffbcfc220010899a17bd8fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): api.include.php:9541-9564 | api.php:9541-9564 | src/Tqdev/PhpCrudApi/RequestUtils.php:44-67 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9541}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfe6f28384c6a0e1f7ae1d383cd6856f0ad5b1fe4aa1c54b97e1af7f6c735cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): api.include.php:9879-9902 | api.php:9879-9902 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9879}}}],"partialFingerprints":{"codehealthFindingId/v1":"74315b464c2eb4c0d2fab8b4a64650a780360fd594137996a8c6be989696d1db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): api.include.php:2277-2299 | api.php:2277-2299 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:70-92 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2277}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f53bb0a6ad8fb69b3dfad18dc72984d945b5ce1d3b5f29dbfffe3996f2f73d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): api.include.php:6163-6185 | api.php:6163-6185 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:194-216 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6163\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":"api.include.php"},"region":{"startLine":6163}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b6878403fe94a15aa564ba98f98c4ad92f332b978cf8b0a9d6ce72f0f51700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): api.include.php:6377-6399 | api.php:6377-6399 | src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:130-152 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6377}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c2b787a856c94c4ccea76b6d50e790cb83fb9636939a1eac58b6811d47e847"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 3): api.include.php:7664-7685 | api.php:7664-7685 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:116-138 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7664}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbfdd2cf8060c3edba9eb678816feb39f50511b9895fd3cd1857b92ef78e018"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): api.include.php:8235-8257 | api.php:8235-8257 | src/Tqdev/PhpCrudApi/Record/Condition/Condition.php:32-54 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:8235\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":"api.include.php"},"region":{"startLine":8235}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f593b7667f1fa801f5453da17d83b5c80df37caebde9e7a5d1e68f8ef9f7340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): api.include.php:1950-1971 | api.php:1950-1971 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:42-63 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1950}}}],"partialFingerprints":{"codehealthFindingId/v1":"6906e5b3ea232c9e3dd9787661bd51d1b4099e08c5e5f5c93dae13be1e965793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 3): api.include.php:3286-3318 | api.php:3286-3318 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:276-309 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3286}}}],"partialFingerprints":{"codehealthFindingId/v1":"78067a8fb60657bda4f59e9becded1e511ae770a8cacccde7f933e42a604d403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): api.include.php:5429-5450 | api.php:5429-5450 | src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php:76-97 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5429}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68c16eabaa6e98ebbf0f0daa9b2e50ed43a44e6405a78efb917a2550e92a9ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): api.include.php:9606-9627 | api.php:9606-9627 | src/Tqdev/PhpCrudApi/RequestUtils.php:111-132 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9606}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74e347b3e1f1cedfbdd9ae151311352ef459fc4961dc5c07da6680b535babcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): api.include.php:9849-9872 | api.php:9849-9872 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9849}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d56920d3f82808c2fb182bef4a75a8afbbbb818c8a812b9ae41b717b0c7616b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): api.include.php:10406-10427 | api.php:10406-10427 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10406}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25e8f90c5e5db1d53545363d642464c35f987d4cc79df788af730161937ff82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): api.include.php:8777-8797 | api.php:8777-8797 | src/Tqdev/PhpCrudApi/Record/OrderingInfo.php:11-31 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8777}}}],"partialFingerprints":{"codehealthFindingId/v1":"b180094f54c1ebe1821bcc8978cc3cc7d4325fb073a0047a564685b39e0f4a97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 3): api.include.php:9582-9602 | api.php:9582-9602 | src/Tqdev/PhpCrudApi/RequestUtils.php:87-106 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9582}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c4d5005fcb7108c571b5aa99946a0bea78607a7ac53a7461c903ce17e8df7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): api.include.php:316-335 | api.php:316-335 | src/Tqdev/PhpCrudApi/Api.php:203-222 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0b918e1fa94bbb0c91d4837a77f00d3c9417964e25cfd4900abed366cf3089"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): api.include.php:2193-2212 | api.php:2193-2212 | src/Tqdev/PhpCrudApi/Database/ColumnConverter.php:55-74 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2193}}}],"partialFingerprints":{"codehealthFindingId/v1":"3986a5576cd2b71a6ea87351144822c406eaae90cc0b48b6e238a1e360e83241"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): api.include.php:7299-7324 | api.php:7299-7324 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:151-176 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7299}}}],"partialFingerprints":{"codehealthFindingId/v1":"188bdd34713441f06294fe42cdf598749e86104790a5300e2bc089c0fac96ca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): api.include.php:8156-8175 | api.php:8156-8175 | src/Tqdev/PhpCrudApi/Record/ColumnIncluder.php:22-41 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:8156\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":"api.include.php"},"region":{"startLine":8156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b133f30e4240cf7bba40b685906a08d3e6c0f5233d8063cb670add3daaf77d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 3): api.include.php:727-743 | api.php:727-743 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:70-88 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:727\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":"api.include.php"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cf2d061c897d59a63346009d1bd03015effd8eda286797a38ffcdde8a9576b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): api.include.php:844-862 | api.php:844-862 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:39-57 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54e612826fd5a1d3c4c38f55609629e02f1b85ccda2387c5c78af2d5c603031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): api.include.php:2357-2375 | api.php:2357-2375 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:35-53 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4d2b7ba5d2afa53af41fe2e07214da34f8cb6c7f156a5cb737515e1dc3d686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): api.include.php:4046-4064 | api.php:4046-4064 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:53-71 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4046}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bef9e505954a3ef8e08bbe1bf53682e48e7e69580f80bde56a9e23ccac0154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 3): api.include.php:4406-4422 | api.php:4406-4422 | src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php:84-102 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4406}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd244963c30669b5d49c0915d4a6ef79f034253afe241ffc8884f2983484939"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): api.include.php:5053-5071 | api.php:5053-5071 | src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php:39-57 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5053}}}],"partialFingerprints":{"codehealthFindingId/v1":"01213ac691a810bc8b267ce717356c582a25748047f5b215c8a67389b5ab298c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): api.include.php:6008-6026 | api.php:6008-6026 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:30-48 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6008}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80f0a45659d4d1600a65615ef1439815def416ef608b22492948594e34f63c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): api.include.php:6307-6325 | api.php:6307-6325 | src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:57-76 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6307\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":"api.include.php"},"region":{"startLine":6307}}}],"partialFingerprints":{"codehealthFindingId/v1":"b598a9ed23b0834e560b9b3a3c332d6c737ab3692aea500e5cd9620d9be87ee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): api.include.php:6557-6575 | api.php:6557-6575 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:100-118 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6557}}}],"partialFingerprints":{"codehealthFindingId/v1":"df080a97e7895ac60313ec8e7849473fff96eca30fde3f21dcc24948a563576d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): api.include.php:6761-6779 | api.php:6761-6779 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnTypes.php:67-85 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6761}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1825306dfd4df8c55d0c44f082666513932461868cc8012137a0b98e6d9406e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): api.include.php:2720-2738 | api.php:2720-2738 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2720}}}],"partialFingerprints":{"codehealthFindingId/v1":"7011747de702502073216b0ba89b69cf8aa5e51536cab2a81cdee50bfa7d626d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 9): api.include.php:4501-4518 | api.include.php:4729-4746 | api.include.php:5324-5341 | api.php:4501-4518 | api.php:4729-4746 | api.php:5324-5341 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:83-100 | src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:35-52 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:137-154 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4501}}}],"partialFingerprints":{"codehealthFindingId/v1":"71346fb87d85851b7ffe38965cbd52d22189c597aff093226110368ceced146b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): api.include.php:295-312 | api.php:295-312 | src/Tqdev/PhpCrudApi/Api.php:181-198 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"278d152f19bd268e31bfa295958bb680387cc654ba78279b11f84121e40e3ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): api.include.php:1999-2018 | api.php:1999-2018 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:93-112 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eadd0d5df9b663c9a1365a937ba4f2a97173c7c9b29cb85cc507de450cb0684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): api.include.php:5186-5202 | api.php:5186-5202 | src/Tqdev/PhpCrudApi/Middleware/JsonMiddleware.php:84-101 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:5186\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":"api.include.php"},"region":{"startLine":5186}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b87572e86c3005cab23a51b8a314dcca7f15ebcf83879ed5cb5a89d25eda29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): api.include.php:5474-5496 | api.php:5474-5496 | src/Tqdev/PhpCrudApi/Middleware/PageLimitsMiddleware.php:24-46 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5474}}}],"partialFingerprints":{"codehealthFindingId/v1":"27dc029a2c958358bfec38ff45c6ce5079dc13870127843a5d650a633690ca51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): api.include.php:6579-6596 | api.php:6579-6596 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:123-140 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6579}}}],"partialFingerprints":{"codehealthFindingId/v1":"35557909e9354454d4577865ef58f2fe82cae3196bfc8505cb28e09750c91c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): api.include.php:7373-7390 | api.php:7373-7390 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:228-245 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7373}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df034795b332720dae4579e0e7735576f9a06fd03fb2a2b96c6370385be660c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): api.include.php:8060-8077 | api.php:8060-8077 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:35-52 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8060}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f043cec6aef3e017767e61a1c4d35d5c647ae5a2c70fc04f00544c206717988"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): api.include.php:9825-9842 | api.php:9825-9842 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:9825\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":"api.include.php"},"region":{"startLine":9825}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cf7eaca5ca45860f7b0a90e30b4b3753e2da59138adde6562aee6840d5bb04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:401-417 | api.php:401-417 | src/Tqdev/PhpCrudApi/Cache/CacheFactory.php:9-25 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac790df1498cb36461c3a04a802f7566ab0c6eefc72bbbb2e9d84db5aa539bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:1975-1991 | api.php:1975-1991 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:68-84 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1975}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16a10cf18b1c7f231adf00dd3e459134b8effea562a5bd84c9d71ac0190318d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:2087-2103 | api.php:2087-2103 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:184-200 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"df28a39ae86e920e736ec7f48390c7167bdb24293c2daa51a3e6603f25d714b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:2895-2911 | api.php:2895-2911 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:251-267 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2895}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bb18a855da7ce160cb58238b6c2e009f5eec17842fd364baf17e40c70da116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): api.include.php:3136-3151 | api.php:3136-3151 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:108-124 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3136}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fc5d6357268ccedeb262c047e0ddc705a1ed8ab27c067def4cd2d930640aaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:4026-4042 | api.php:4026-4042 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:32-48 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4026}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fb2a233f0cd7b7220387b7f9f5ab0f3baf6a321b8e2c2ba19bb3a30fab0752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): api.include.php:5744-5758 | api.php:5744-5758 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:126-142 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5744}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c07eaa045c20544014d4de2e97fc27796677402556bd697fe113fcc46acc47a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:6137-6154 | api.php:6137-6154 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:168-184 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6137\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":"api.include.php"},"region":{"startLine":6137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a07fb740b894fd5fca0029c85a0ee4f9e6579532d7a4a87085a3cad80a0b175"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:9163-9179 | api.php:9163-9179 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:60-76 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9163}}}],"partialFingerprints":{"codehealthFindingId/v1":"4facd6d6bf39a7d7ce6fdf267bc04e1d7c93412d0161a4ff5fd983d3fb43e0cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): api.include.php:11668-11684 | api.php:11668-11684 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:11668\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":11668}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba19d3439094d31a75ea81bc1567769f32c2686be98e764d1f93473db667b59f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): api.include.php:578-593 | api.php:578-593 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:67-82 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5307b5bb1f466f61c3d024a002250dad0ce846fa916a75b3c9e4bacefb4d325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): api.include.php:792-807 | api.php:792-807 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:134-149 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb974db4658470f85c8ee3e63ce69da4ceed3b655cdc1c7f9827af86b2ce2eb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): api.include.php:2915-2930 | api.php:2915-2930 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:272-287 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2915}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaf7d22a1bcd56d768161ecb95afcfab07f3931e18f7fd4aaebc200bafba72e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): api.include.php:3784-3806 | api.php:3784-3806 | src/Tqdev/PhpCrudApi/Database/RealNameMapper.php:14-36 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3784}}}],"partialFingerprints":{"codehealthFindingId/v1":"840e48b6373649ffa708ea2b2c46191b5d4f92b0462233112cd9fd8ae31f903f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): api.include.php:7992-8007 | api.php:7992-8007 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:279-294 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7992}}}],"partialFingerprints":{"codehealthFindingId/v1":"2016c52610d54e2294330d3ce11563fe1b8f20874ada4c9abb7b112072bc824a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): api.include.php:9295-9310 | api.php:9295-9310 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:207-222 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9295}}}],"partialFingerprints":{"codehealthFindingId/v1":"def253a7c4ac660ab315daaedf71c9f07b38b54b7a5c894953a1af9db90a5d69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 3): api.include.php:9486-9500 | api.php:9486-9500 | src/Tqdev/PhpCrudApi/RequestFactory.php:26-41 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9486}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61213dc739ed26d0b0a6397eaed34049e98d16252cda2d2580178f6463171f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): api.include.php:5133-5148 | api.php:5133-5148 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5133}}}],"partialFingerprints":{"codehealthFindingId/v1":"af17ec20e2dc2012b82ee00dc3dbd941808e339f7c00ccb73fd8e6aaa36137fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): api.include.php:10369-10384 | api.php:10369-10384 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10369}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ab136969c2c71ac804aef47c5627aa1bb096eed6ca8be23d5b06722b1ad6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): api.include.php:11298-11313 | api.php:11298-11313 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54e553d3a411c9e3ed238da56b38ba540398e8432d559b77060b5f00bd0635b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): api.include.php:11722-11737 | api.php:11722-11737 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11722}}}],"partialFingerprints":{"codehealthFindingId/v1":"caca27da9113ab04c007c36f42deec9ae2b01cec400812e81d3d6de56e645cc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): api.include.php:12622-12637 | api.php:12622-12637 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:12622\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":"api.include.php"},"region":{"startLine":12622}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f21272114e47cc0701fe5c5d7f01902b336abdbdaafd2917433bcf18535dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): api.include.php:9633-9646 | api.include.php:9732-9745 | api.php:9633-9646 | api.php:9732-9745 | src/Tqdev/PhpCrudApi/RequestUtils.php:139-153 | src/Tqdev/PhpCrudApi/ResponseUtils.php:35-49 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9633}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad245af6f180df7ba03307a4358215f2bd680d5bf19de38142d2a1d04fbe7ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:531-545 | api.php:531-545 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:16-30 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28e71c58fa959846be19a22c37f4a3959df81e6a371df16c88530a9a4d51047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): api.include.php:1436-1456 | api.php:1436-1456 | src/Tqdev/PhpCrudApi/Config/Config.php:137-157 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1436}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3d1da187eed18aa5f8f3cc6940e2c4808d52dbaea2cf9f47b0e12f15549d4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:2029-2043 | api.php:2029-2043 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:124-138 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2029}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d0844906be3c02d0ea3e358c990c2cf92d12468c3ab5ed1fca5ef32de536c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:2543-2557 | api.php:2543-2557 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:232-246 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2543}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b74b281abeaedb2f3e40ccd83ab8ded29e4b8cd46368b8891e3334fe78d9ed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): api.include.php:3171-3184 | api.php:3171-3184 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:147-161 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b4a0bfff2da1536abda772ab6d9c006bd5700280f6866201a2bf5cf83d11878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): api.include.php:3219-3232 | api.php:3219-3232 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:201-215 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3219}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc5867dd7c64abaf48af1193e70d0e633d2a6cb71d679ca68d37f5e5b8c2237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:3925-3939 | api.php:3925-3939 | src/Tqdev/PhpCrudApi/Database/TypeConverter.php:198-212 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3925}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead849b3889e0fef46f7e7df2bc8aa892e8fb37250e9e2a70eb833ae4332a315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:4256-4270 | api.php:4256-4270 | src/Tqdev/PhpCrudApi/Middleware/ApiKeyAuthMiddleware.php:17-31 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7748bae30a7cf0ebfac0ae9f22f726271e87ca996f23368ad8497cdd52804e5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:4681-4695 | api.php:4681-4695 | src/Tqdev/PhpCrudApi/Middleware/CustomizationMiddleware.php:23-37 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4681}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b889befff6e13bc84838b461857bc8c617891626a1af819880f5febf3e35cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:5281-5295 | api.php:5281-5295 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:87-101 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5281}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c40bedf7118c12fca80f67b5396f0c1a49bf83774b46d063bf978eef42f818a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:6539-6553 | api.php:6539-6553 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:81-95 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6539}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9c1c96b4f973c0addf4bee428fda9ebb939005672632656574cb96ef11f8c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:7046-7060 | api.php:7046-7060 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDbAuthBuilder.php:103-117 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7046}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3ed621936541dc6809e4b11f833cafc7c6517cc4ffc67bb3e66a4f823cd374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:7352-7366 | api.php:7352-7366 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:206-220 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7352}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a87d1b181499ab1ceea33000c3564d5038f4e909dd1b90835eb35c8119d212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): api.include.php:7495-7518 | api.php:7495-7518 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiMiddlewares.php:91-114 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7495}}}],"partialFingerprints":{"codehealthFindingId/v1":"350c860a5d4d73b70d268a1cb1b3cccf8d3965075a00b6f3c89b72e3f468cad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:7772-7786 | api.php:7772-7786 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:52-66 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7772}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bea548752d215d0e9f1e033ffcedb4cb5867bc8a8ead0a3a4fada6f99771e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:8081-8095 | api.php:8081-8095 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:57-71 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8081}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72ccff1be2dccd11fbcbd8b9e54cd03c7bb27f8065b97e246c7f1361e3ce54c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): api.include.php:2742-2756 | api.php:2742-2756 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2742}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa919a3e84d31fea6fa8344b015579549c5cac7b9c8e9f93b97b31492a7eec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): api.include.php:4144-4158 | api.php:4144-4158 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:4144\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":"api.include.php"},"region":{"startLine":4144}}}],"partialFingerprints":{"codehealthFindingId/v1":"37cd94b6d75bdc237422fda621b1dd3e86229b947eecd285764ef413d22941b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): api.include.php:5411-5425 | api.php:5411-5425 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5411}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa1aa668ab4650599710eb53f7bd8520e0b070f9f3fc6fb361c718103f92a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201315 lines \u00D7 3): api.include.php:8987-9001 | api.php:8987-9001 | src/Tqdev/PhpCrudApi/Record/RecordService.php:38-41 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060src/Tqdev/PhpCrudApi/Record/RecordService.php:38\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/Tqdev/PhpCrudApi/Record/RecordService.php:41\u0060 calls \u0060getTable\u0060, \u0060getColumn\u0060, \u0060getName\u0060 and \u0060api.include.php:9001\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":"api.include.php"},"region":{"startLine":8987}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f6736332326e5ce825d48a626764a40c18eee68e7722656cc96e9c325e3d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): api.include.php:2038-2051 | api.include.php:2098-2111 | api.php:2038-2051 | api.php:2098-2111 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:133-146 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:195-208 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde179564524261b3d88736f00eb97a2da62c44f96036daffac470d481650624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): api.include.php:5002-5015 | api.include.php:5888-5901 | api.php:5002-5015 | api.php:5888-5901 | src/Tqdev/PhpCrudApi/Middleware/IpAddressMiddleware.php:67-80 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:136-149 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:5002\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060api.include.php:5886\u0060 calls \u0060getProperty\u0060 and \u0060api.include.php:5001\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":5002}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8ab4f8d6b1114f68a9ba510705a24e87dc89244c76da504880610ff2779a0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): api.include.php:1710-1723 | api.php:1710-1723 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:118-131 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"263af61a3ff48476afab9b2d5c538d7f1715a0ef0f4a742c7b436f1ca5771c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): api.include.php:3155-3167 | api.php:3155-3167 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:129-142 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8515936d5ceb6e19dc9f8b5dd14dcd56c7643cfe86de935e907c828d57d4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): api.include.php:3188-3200 | api.php:3188-3200 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:166-179 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3188}}}],"partialFingerprints":{"codehealthFindingId/v1":"00152e271c8316ba82f373bc98c015413408ea24922cfbc8307c5ff68d9aefa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): api.include.php:3322-3334 | api.php:3322-3334 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:314-327 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b167242a32e21abb0ea7828ecb0ee40daeda4a117aa16be60af28d8fa62d1a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): api.include.php:4965-4978 | api.php:4965-4978 | src/Tqdev/PhpCrudApi/Middleware/IpAddressMiddleware.php:28-41 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4965}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30d9afc0fddefff37afbb6ce52e15b5fd597d1dc71f2a538b81c90ebc04b1fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): api.include.php:7229-7242 | api.php:7229-7242 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:77-90 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7229}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2a9fdba640ac07f877e39063b4fbbc11096392295605453f970ad743fe83e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201355 lines \u00D7 3): api.include.php:7689-7735 | api.php:7689-7735 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:143-197 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7689}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c9659c13b2d343572b6c776183e5675426a6ed2fa9ca08bcc2fc039627071b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): api.include.php:10817-10830 | api.php:10817-10830 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10817}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ee04bbd0b116986a7299324bac59da8dbc163873c32be57c2f5dcd61d8595a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): api.include.php:10857-10870 | api.php:10857-10870 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10857}}}],"partialFingerprints":{"codehealthFindingId/v1":"e292a9059e71351d3be732e63f49f3e021926cf7885ad2f2aeb339612a88b2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): api.include.php:10995-11008 | api.php:10995-11008 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10995}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7d9236000ab78dc0167834927d93cf0f4e7ab53f4a82c9bf0c27ac37621bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): api.include.php:11811-11824 | api.php:11811-11824 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11811}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7179ea3b67242b2f6711b6728ccac83889caef54fc5a400f2acb4c46eb1c073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): api.include.php:880-893 | api.php:880-893 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:77-90 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"8988105574011a55d04ca10dddbd321f2de281278010d96da1b67a8d48ae959d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:2596-2608 | api.php:2596-2608 | src/Tqdev/PhpCrudApi/Database/DataConverter.php:19-31 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2596}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd0bc9fad2d37bf04fa77b079599c1a222de379d1583559ee62c713cca98f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:2612-2624 | api.php:2612-2624 | src/Tqdev/PhpCrudApi/Database/DataConverter.php:36-48 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2612}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c694c4599d2cff7a32fb92c2d9be0084828f27ff5a561c36c70887752e26aac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:2628-2640 | api.php:2628-2640 | src/Tqdev/PhpCrudApi/Database/DataConverter.php:53-65 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef15d6f3c3eb19629b63c1c108b77fc4f0dec1e6211b2efcee226cfd9e28f98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:3097-3109 | api.php:3097-3109 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:65-77 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3097}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03634e4706937bafd39ad2a385fb10948e74069946aacc7183a8e9fea92b7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): api.include.php:3204-3215 | api.php:3204-3215 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:184-196 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3204}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c881782853a0ef6c45c7d495a961c364e08adccac73add696fb43b7a4664f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:4140-4152 | api.php:4140-4152 | src/Tqdev/PhpCrudApi/GeoJson/Geometry.php:28-40 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c457ac0ea12c6457c1f8adb701b23a6f2c624bcae9153306bf306f61aa73d001"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:4369-4381 | api.php:4369-4381 | src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php:44-56 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4369}}}],"partialFingerprints":{"codehealthFindingId/v1":"393de92d4c943a595bbffd29283dfa6564ef583cffbc5f75f95949482bc9465e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:4385-4397 | api.php:4385-4397 | src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php:61-73 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:4385\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":"api.include.php"},"region":{"startLine":4385}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea9f2d1e0110d5f60f0b3d33b8ab117f88c7fd5f0c0ed5b3e89161510bfb8f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:4485-4497 | api.php:4485-4497 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:66-78 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4485}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a02e75f67d97c8ccc42f67e9e2de873edf4dd393c73f51da494fa525c8909c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:7107-7119 | api.php:7107-7119 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDefinition.php:16-28 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c924caeba9ec50c27361b8af8a1a2e218955bd64cdc8e524e490ec984bb015b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:7145-7157 | api.php:7145-7157 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDefinition.php:57-69 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7145}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9b8da74c4f84e4fa35599e87bcbd0a05355f7601f9a95bb3d8c0121758e5ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:8128-8140 | api.php:8128-8140 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiTableNames.php:19-31 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:8128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":8128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa378454926defe409b2c214e87796dfe1c8052719c2df215db73c60bace143"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:8862-8874 | api.php:8862-8874 | src/Tqdev/PhpCrudApi/Record/PaginationInfo.php:55-67 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8862}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ac27b05f4b3e18d393569d58c7a61e6ee53b535e6546051616ef021f2de637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:9085-9101 | api.php:9085-9101 | src/Tqdev/PhpCrudApi/Record/RecordService.php:125-141 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9085}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6ad3876b3345ee4f79fec8337dc93183bdbba9bd21ff9362f160ec129e602c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): api.include.php:9930-9942 | api.php:9930-9942 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9930}}}],"partialFingerprints":{"codehealthFindingId/v1":"140da800d6cd64616390fba8a785dcd90db39efa2ad579090f713f78455e7113"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): api.include.php:9956-9968 | api.php:9956-9968 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9956}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c42d2a8faf5cbc4326548ea82f3ec30d4de7d608f7c83214c0663fbdee15c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): api.include.php:6669-6680 | api.include.php:7564-7575 | api.php:6669-6680 | api.php:7564-7575 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiCacheBuilder.php:32-43 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiOpenApiBuilder.php:34-45 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6669\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":"api.include.php"},"region":{"startLine":6669}}}],"partialFingerprints":{"codehealthFindingId/v1":"b589946bdc21f7498a9c4db8f678a3e2585a35505ac155e99400802e963c8db3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): api.include.php:7375-7386 | api.include.php:7974-7985 | api.php:7375-7386 | api.php:7974-7985 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:230-241 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:260-271 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:7375\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":"api.include.php"},"region":{"startLine":7375}}}],"partialFingerprints":{"codehealthFindingId/v1":"2700b8370825718ee32f3b38770ed41613df5663a31c8b53f2b88c52c7749eef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): api.include.php:431-442 | api.php:431-442 | src/Tqdev/PhpCrudApi/Cache/MemcacheCache.php:14-25 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fefc192feee28e784c956c093ca7eac9210b4c9fa70ffd6522db198ec53b325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): api.include.php:597-608 | api.php:597-608 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:87-98 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ed4ac110d2077c461024639447e70fa5878aff84fcdbfff135acb1774e60f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): api.include.php:1789-1811 | api.php:1789-1811 | src/Tqdev/PhpCrudApi/Controller/GeoJsonController.php:37-59 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1789}}}],"partialFingerprints":{"codehealthFindingId/v1":"424b910c290da824c19fd66e1029f76a5b22824bd3e72e9fd4c6065dc38cd961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): api.include.php:4458-4469 | api.php:4458-4469 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:37-48 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4458}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f20bcb430d29a28d5f98b4f912d29a944ec11cfc5281b5f6f3c4832fa0e095"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): api.include.php:5603-5614 | api.php:5603-5614 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:118-129 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5603}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aae017b591a2f6e18b9a3fac8983710b766932a1ad3d9f58bbdc42eff357278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): api.include.php:5666-5679 | api.php:5666-5679 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:39-52 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5666}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a090b911704cd975e29c5ef0510264d59db87ec41dd4153721d0d318506bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): api.include.php:6416-6427 | api.php:6416-6427 | src/Tqdev/PhpCrudApi/Middleware/XsrfMiddleware.php:16-27 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6416}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4166b1457f4674e73e23a2a1648fa6c518dbae4f316d3f29b32d1f7d96e95d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:7333-7345 | api.php:7333-7345 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:186-198 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7333}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bad6b4cc78505a7b773f5946431c954347b47ac84192847d0ab7e3b9f3f1aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): api.include.php:9241-9252 | api.php:9241-9252 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:147-158 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9241}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8318054f6df59f0e05aeed8335b3e1318ae58fdb5b8e923505ebad6c925e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): api.include.php:5164-5175 | api.php:5164-5175 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:5164\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":"api.include.php"},"region":{"startLine":5164}}}],"partialFingerprints":{"codehealthFindingId/v1":"26bd204539a51200c4f38b6160ee69d8b898f5a4bddd087b69a0cec756adee2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): api.include.php:8725-8736 | api.php:8725-8736 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:8725\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":8725}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a697aaabc06c20b114917c4ecadb079a681c40d875a20ea34cec78f1433d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): api.include.php:8928-8939 | api.php:8928-8939 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8928}}}],"partialFingerprints":{"codehealthFindingId/v1":"05045e30bac4b4c06fd29f836218b497565557020c768f8745f3f80a0346f176"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): api.include.php:11779-11790 | api.php:11779-11790 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11779}}}],"partialFingerprints":{"codehealthFindingId/v1":"8027ec102ef3fd3b22ea8eb9a556abab886d1d78478f7751ea13801ca0dc1f1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): api.include.php:12580-12591 | api.php:12580-12591 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12580}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3bda9d2f802ed0da92de0bb3d8dbf7d81846386d50afa4c7003c1cfc2ad4a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): api.include.php:738-748 | api.include.php:771-781 | api.php:738-748 | api.php:771-781 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:83-93 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:111-121 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060api.include.php:737\u0060 calls \u0060fromJson\u0060, \u0060array_merge\u0060, \u0060jsonSerialize\u0060 and \u0060api.include.php:770\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":"api.include.php"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"456e287becf50f6d7d3f519e57dc7c6820d009a17b5687a15bca6c660a13f80f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:1020-1030 | api.php:1020-1030 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedDatabase.php:20-30 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de7d70dee0bf470dc2232ef09afffc0c58a49982009cd43e6f7b6ea47ee27ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:2064-2078 | api.php:2064-2078 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:160-174 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba68ffb3a69fcf3e277c7767f2e84520eec8c11e553cacc84a83be23d2b542c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:2314-2324 | api.php:2314-2324 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:109-119 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2314}}}],"partialFingerprints":{"codehealthFindingId/v1":"342fe439a3873d1c9059ffcf064bdef957d47f9e7ecf6d9ba277388e0bb00540"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:2664-2674 | api.php:2664-2674 | src/Tqdev/PhpCrudApi/Database/DataConverter.php:92-102 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2664}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ec2e502ae27481c3065c28a3f30814ac1bb7e5c078cda11454d459f78d2e7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:2780-2790 | api.php:2780-2790 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:126-136 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2780}}}],"partialFingerprints":{"codehealthFindingId/v1":"445f6670321d42126e262c8538cbac92bbd80b36c9313000e6e329f4f4c37bb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:3387-3397 | api.php:3387-3397 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:389-399 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3387}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb82b0702c9957eb56be89c6420dfaef5613003f5a1607170f59bc467aea52a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:4224-4234 | api.php:4224-4234 | src/Tqdev/PhpCrudApi/Middleware/Base/Middleware.php:32-42 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4224}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6354d184bba2f5b40222f24bb41b2a0976a814a78cda1456f39ea91c72e898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:5039-5049 | api.php:5039-5049 | src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php:24-34 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5039}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ccb83600ab2634834a317173f061ecda8b33015688b48d857d7f743e98fedb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:5694-5704 | api.php:5694-5704 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:69-79 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5694}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb827b2e5b7ebf76df39c8a585a2a57a9d7b0a139e013960452c5e36bc44350"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:5917-5927 | api.php:5917-5927 | src/Tqdev/PhpCrudApi/Middleware/SslRedirectMiddleware.php:15-25 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5917}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bbfa72aba168cd9ebbd63c0de6174bea40effbf82fde3db5095cdc8a0212f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): api.include.php:7024-7037 | api.php:7024-7037 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDbAuthBuilder.php:79-92 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7024}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e74b6d8bcad849cefdebc26118c58781317ba196f83528acdb92040d0af3aa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:9361-9371 | api.php:9361-9371 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:284-294 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9361}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f15fd99c25e3d53edeb7bf669ae6d91449fb3d46319c14be2b2613f03d64ed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:9568-9578 | api.php:9568-9578 | src/Tqdev/PhpCrudApi/RequestUtils.php:72-82 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9568}}}],"partialFingerprints":{"codehealthFindingId/v1":"4776acc276acfafbf4036d9798e354f2f0b30c862974b3286ae0fc37434c3394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): api.include.php:6209-6224 | api.php:6209-6224 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6209\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":"api.include.php"},"region":{"startLine":6209}}}],"partialFingerprints":{"codehealthFindingId/v1":"00348ea580f9766e253c38f7722719183d4a4e8a6f278cbb1a4e9e257d83e757"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): api.include.php:10336-10346 | api.php:10336-10346 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10336}}}],"partialFingerprints":{"codehealthFindingId/v1":"201e5739c3be23a6053502ddfd21d413b05b98dfdeedc64707bf90f583e33a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): api.include.php:10970-10980 | api.php:10970-10980 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10970}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1bf97a567c6e8be159e0acdc288b678f34439fc37af19f5129acd36e5c66e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): api.include.php:11831-11841 | api.php:11831-11841 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11831}}}],"partialFingerprints":{"codehealthFindingId/v1":"c473e08ded403d46772a3b00654e8be86e3dadf02f80e720d3a03c4419bb8992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): api.include.php:12554-12564 | api.php:12554-12564 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12554}}}],"partialFingerprints":{"codehealthFindingId/v1":"e535fcfbaad71282627fff13e651d8c85bcab63ca41b6365a408f6cb5dcb1bbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 9): api.include.php:1653-1662 | api.include.php:1680-1689 | api.include.php:1740-1749 | api.php:1653-1662 | api.php:1680-1689 | api.php:1740-1749 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:57-66 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:86-95 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:150-159 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5c5a8785953bc2aeeb9579fb855f4311659469513120ec0291b8e85bcd7b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): api.include.php:5880-5889 | api.include.php:6159-6168 | api.php:5880-5889 | api.php:6159-6168 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:128-137 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:190-199 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:5880\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":"api.include.php"},"region":{"startLine":5880}}}],"partialFingerprints":{"codehealthFindingId/v1":"765c7a8b216532c6e25455fc9bf2fbb90b8f4e75106591829745858a5b67602a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): api.include.php:7349-7359 | api.include.php:7370-7380 | api.php:7349-7359 | api.php:7370-7380 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:203-213 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:225-235 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:7349\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":"api.include.php"},"region":{"startLine":7349}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb3cab56676b210ea6169d74d6e5c9650a663b4ae398050299e22de9dbdc912"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:495-504 | api.php:495-504 | src/Tqdev/PhpCrudApi/Cache/RedisCache.php:14-23 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a4e3c06d39186417e00bf103b461a1507504494731b3ebb8b5a791d9a081df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:549-558 | api.php:549-558 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:35-44 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"afda9954f30b7144bf593dba77fb6d02b9151096418ae0c91d7182ceba817c54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:831-840 | api.php:831-840 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:25-34 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3a9e00ba17c7b4001a307015dffa959a5bbaa69ddbb366cc0e2731db87a408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:1166-1175 | api.php:1166-1175 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:92-101 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8ba61301132b3abdaa9ce7f591fbfa0341c4b0e841218e64c34565a63c12c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:1271-1280 | api.php:1271-1280 | src/Tqdev/PhpCrudApi/Column/ReflectionService.php:38-47 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68e175755861b9ba30088668e731936cb2a11acaaa73c0fa32f2c8cec34847d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:1423-1432 | api.php:1423-1432 | src/Tqdev/PhpCrudApi/Config/Config.php:123-132 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d311e38ab31c82ccd6f35093cf11b56036215fd2d74f2fec12f804d2b2db69a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:1667-1676 | api.php:1667-1676 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:72-81 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1915e7e215d75912a87751f8687b958a65f9fc1c9d02a713f2f2e5ae9caf1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:1727-1736 | api.php:1727-1736 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:136-145 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1727}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5df19716166f9b26e68ce9d937d69132988455a30da5d09594d0780785390cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:2253-2262 | api.php:2253-2262 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:44-53 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2253}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb074d23db46f97f2ad99c5bb1b6f25a85d20285090f9d1185eabb4fd4e1eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:2561-2570 | api.php:2561-2570 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:251-260 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"373e0e329c47a4cfdc072214be75c6646f7f52c00b2c8c11c26f3422d30e39a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:2760-2776 | api.php:2760-2776 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:105-121 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2760}}}],"partialFingerprints":{"codehealthFindingId/v1":"1812f44eca33d29ddd6aac1bc116cc50981541cd0b8bc49c5d79e47d5ff43940"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:2957-2973 | api.php:2957-2973 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:317-333 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2957}}}],"partialFingerprints":{"codehealthFindingId/v1":"022019507a875a4c4a05ef5de0de54504b212fa40ea297e0362bebea8c6b05d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:2977-2986 | api.php:2977-2986 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:338-347 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2977}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcfdd8858916a0e2ccc60e76e9d26e9ac0bce1eabc18c12fbbf95c204244be0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:3006-3015 | api.php:3006-3015 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:369-378 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3006}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcefd314de05c168c4bbfa701c14317e4c64727874ef8ef4874770b94488212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): api.include.php:3066-3081 | api.php:3066-3081 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:31-46 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3066}}}],"partialFingerprints":{"codehealthFindingId/v1":"db04a3f47c6ce9639af3018c09bfce8e468c66f3e01ff1a350c089dee837d2dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:3637-3646 | api.php:3637-3646 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:202-211 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3637}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e9638f2182314b61d34e907906e0f2b1ff75a84487e44ee15924c045e54f3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:4080-4089 | api.php:4080-4089 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:84-93 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4080}}}],"partialFingerprints":{"codehealthFindingId/v1":"2869c52e512c4da61089d226b8b9d0759b58d964e5c8ec65dbab2bb005e82cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:4356-4365 | api.php:4356-4365 | src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php:30-39 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4356}}}],"partialFingerprints":{"codehealthFindingId/v1":"345e3322a7551b7d53b9278da44de333182a22a6c2c5dc968b603716de4a02ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:4594-4603 | api.php:4594-4603 | src/Tqdev/PhpCrudApi/Middleware/CorsMiddleware.php:28-37 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4594}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9fe0f0e674bb8cafea734d5520add95b917743cbeea7a50e450060fe287f61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:5311-5320 | api.php:5311-5320 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:123-132 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5311}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2928ed7d862c246ea431c7fb249e26c3c781e5fcd057b323689f9c518484ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:5786-5795 | api.php:5786-5795 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:29-38 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5786}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43b6bba994f08ed116d45c04f990f1aa75291e0896bd4335420899233765114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:6431-6440 | api.php:6431-6440 | src/Tqdev/PhpCrudApi/Middleware/XsrfMiddleware.php:32-41 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1466fb372066ab1bcaae2859edfe27aaae21d38115fd970c778e6360f75f36ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:6810-6819 | api.php:6810-6819 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:42-51 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6810}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cded6c5b52d2b222e161a317da36bcb19dc3203d2a7c140d44ae0152901dece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): api.include.php:6949-6957 | api.php:6949-6957 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:186-195 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6949}}}],"partialFingerprints":{"codehealthFindingId/v1":"328b597d61e636d304490817643335b465c2309168b4f6f780e42e2e0d2f6a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:7123-7132 | api.php:7123-7132 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDefinition.php:33-42 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d33c63f10f940fb7d2c85bb2f079239e68dde684e9a211916687226afaf8478"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): api.include.php:7790-7806 | api.php:7790-7806 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:71-87 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7790}}}],"partialFingerprints":{"codehealthFindingId/v1":"623f00ea24a9e68b3c37ba07dbd5620f3257cbf9cf6c5127d1064a29de5a5238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:8801-8810 | api.php:8801-8810 | src/Tqdev/PhpCrudApi/Record/OrderingInfo.php:36-45 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8801}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffed61bcef3c0e020c497ce557b555753478f6398166719bd9614e6cbceefe3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:8826-8835 | api.php:8826-8835 | src/Tqdev/PhpCrudApi/Record/PaginationInfo.php:16-25 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8826}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb08c406854aa6bb029a2e6833b87934e25a1c57de01570e3e59b534c046222"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:8839-8848 | api.php:8839-8848 | src/Tqdev/PhpCrudApi/Record/PaginationInfo.php:30-39 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8839}}}],"partialFingerprints":{"codehealthFindingId/v1":"826d6c657d03518cb66dea29458e7c7832e9e3fc6eee6b780e22ecf367fd0aa8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:9041-9050 | api.php:9041-9050 | src/Tqdev/PhpCrudApi/Record/RecordService.php:89-98 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9041}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a248b0a22fa100c7ea6b781e9854128bab1bfa0a46e7ab4f8354c3e3b719074"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:9272-9281 | api.php:9272-9281 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:182-191 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9272}}}],"partialFingerprints":{"codehealthFindingId/v1":"921ee6017e1f6803cfb3134d8de5d1982beff51301f3afffc1011bf472e56b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:9314-9323 | api.php:9314-9323 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:227-236 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9314}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7aa843edf327b712a273886ef0a0ffd66ad6fd3294d9de438231866297c934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): api.include.php:9412-9421 | api.php:9412-9421 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:9412\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":"api.include.php"},"region":{"startLine":9412}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a58d07a958337db2249b7a578d2877bcf36016a90f32edff64089a6544c48d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): api.include.php:10754-10763 | api.php:10754-10763 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10754}}}],"partialFingerprints":{"codehealthFindingId/v1":"18697fdc580da33b4beb1075fbb4b985dd6ace358b66f1ece27908e22a63fb53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): api.include.php:11798-11807 | api.php:11798-11807 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11798}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82004a029644c0382f151f87c160e9987fb191e6489219ae784ef6429c98de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): api.include.php:12606-12615 | api.php:12606-12615 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12606}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3afe1a401fc14ff80e4063a55b47412ddc6a5c4bea7b1e70552457202d4ff99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 12): api.include.php:1996-2004 | api.include.php:2023-2031 | api.include.php:2058-2066 | api.include.php:2083-2091 | api.php:1996-2004 | api.php:2023-2031 | api.php:2058-2066 | api.php:2083-2091 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:90-98 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:118-126 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:154-162 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:180-188 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d25b7a165458ee45811c33758615ddc8b14304ae8b9f8dc200a8e0f7af9dbf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): api.include.php:2982-2990 | api.include.php:3011-3019 | api.php:2982-2990 | api.php:3011-3019 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:343-351 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:374-382 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2982}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f1d57bbe14974d4a47c463e586f2bf12706db95450155211d2d9d400975a67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): api.include.php:7835-7843 | api.include.php:7904-7912 | api.php:7835-7843 | api.php:7904-7912 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:119-127 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:189-197 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:7835\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":"api.include.php"},"region":{"startLine":7835}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d4676873ccbb9c5cd2b416600e0586582749418269785df87bb44673c1ebf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:562-570 | api.php:562-570 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:49-57 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d0fbf78f6e18af2ae2027c801616baaec106c1eab4ffe45f4c72552cada5aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:1698-1706 | api.php:1698-1706 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:105-113 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1698}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c439383c357472d22e3f0ae438e0c8b3b39e62991bd7835b6e230020ee54e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:3401-3409 | api.php:3401-3409 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:404-412 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3401}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12d563bf8373328bb8bcfdeb3e4634d509dd9111ec53494336090572b514d9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:4103-4111 | api.php:4103-4111 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:109-117 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b909fc0d4948ae27c3abc61974e29764b5d0511c3fae58ef3955a035413245"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:5398-5406 | api.php:5398-5406 | src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php:41-49 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5398}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5aef4731118618892175723cbac677761a57511308b3f1dc6eaf2c408a9161"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:5410-5418 | api.php:5410-5418 | src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php:54-62 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:5410\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":"api.include.php"},"region":{"startLine":5410}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d32ff1c8f43d9af08831427cae0011c7337d46c122dd2fecec7f87349ae072f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:6912-6920 | api.php:6912-6920 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:146-154 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6912\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":"api.include.php"},"region":{"startLine":6912}}}],"partialFingerprints":{"codehealthFindingId/v1":"167a2ce688ec598dde94084325c1099afdf1fd635c7e171284668ee869937dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:6924-6932 | api.php:6924-6932 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:159-167 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6924}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f6deb5fe47dc6cdae4be932f5f3a32063c8d2d9ad99e65b944f247018f30ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:6936-6944 | api.php:6936-6944 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:172-180 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6936}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6457b942e13bab94a622662506afd9439451a67f4ffd74e4e05c970d648483"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api.include.php:10290-10298 | api.php:10290-10298 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc354e9aaab7c6a21c4b08a0c67f887b8c2cc21fa7bad6d03fc58ebb03e5b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api.include.php:10309-10317 | api.php:10309-10317 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10309}}}],"partialFingerprints":{"codehealthFindingId/v1":"630afb48fed832d1408f8582b5b48b2ef10fada5660aa4326f643ccdc0e8e99f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api.include.php:11759-11767 | api.php:11759-11767 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11759}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ca67248ccd180ceff8d58ee0f6aec36e8b0f9108a00e670dae129ba189f3b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): api.include.php:6676-6683 | api.include.php:7571-7578 | api.include.php:8068-8075 | api.php:6676-6683 | api.php:7571-7578 | api.php:8068-8075 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiCacheBuilder.php:39-46 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiOpenApiBuilder.php:41-48 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:43-50 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6676}}}],"partialFingerprints":{"codehealthFindingId/v1":"0045017b2bbf1fc6db679426b24de8a3e464e37d3d7d29e49467ef36dc5a4eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:2303-2310 | api.php:2303-2310 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:97-104 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2303}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba342e5c8188c9d392891427f54a2aa62b76c3cb977f7a56a2a55c9d2d0b1bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:2934-2941 | api.php:2934-2941 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:292-299 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2934}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2599ffc68847c339423096969f754d524f10b266a2f0f7c5e9927c88946e94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:3626-3633 | api.php:3626-3633 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:190-197 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3626}}}],"partialFingerprints":{"codehealthFindingId/v1":"77faa8fd7e11e3dc7895e7350a954ba34624554a3c3d3c5b11247497793e5718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:4154-4161 | api.php:4154-4161 | src/Tqdev/PhpCrudApi/GeoJson/Geometry.php:42-49 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:4154\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":4154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a65048f11336ab488c3a2dcbdf725fe67dd8caf2a84d1342f520699d829e533"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:4931-4938 | api.php:4931-4938 | src/Tqdev/PhpCrudApi/Middleware/FirewallMiddleware.php:54-61 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"3614dcea40229452089e2955e4710b29ed6e01156c6c6ddb86318a2695405764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): api.include.php:5299-5305 | api.php:5299-5305 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:106-113 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:106\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":"api.include.php"},"region":{"startLine":5299}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de90169a046edf61e32e61b0bd09cec180c254b591ede895e46b394f478fca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:5720-5727 | api.php:5720-5727 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:99-106 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5720}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2280c3e52d3e0119e05950e46cfb8a128f2aa2058eb9ed71b4d29f04c1048b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): api.include.php:6499-6520 | api.php:6499-6520 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:39-60 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6499}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98c308cb1a3583df4b2c272a09315dcae3c4a93847956586185e864c98bf5a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:7484-7491 | api.php:7484-7491 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiMiddlewares.php:79-86 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7484}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf3ba040477332b59676881486d262e6a161d2cb18afaf5ce362fea1f34c937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:7627-7634 | api.php:7627-7634 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:67-74 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7627}}}],"partialFingerprints":{"codehealthFindingId/v1":"9061cb6dd8e4584bed3b50bd64ad7489910f639d38b8b2e3f965e243738743d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:8740-8747 | api.php:8740-8747 | src/Tqdev/PhpCrudApi/Record/FilterInfo.php:107-114 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8740}}}],"partialFingerprints":{"codehealthFindingId/v1":"940728225c172abd9dcbf125f7625a00f689f7e7ca9eb7c91329cdcdbaba45d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:9687-9694 | api.php:9687-9694 | src/Tqdev/PhpCrudApi/ResponseFactory.php:45-52 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9687}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec2836ae58020ec84ed443d2640fc42fa8c26d52abe70a154d835b4703291e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): api.include.php:5655-5662 | api.php:5655-5662 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5655}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7284a471371d5078e0318c403aa496f1155c5f9fb21a6009a3a34a0e933cf38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api.include.php:7652-7660 | api.php:7652-7660 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7652}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9632e4b9ac4f0321d720b02f8071f714889dc0549d5d20fa3f43389f1ffbeea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): api.include.php:8917-8924 | api.php:8917-8924 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8917}}}],"partialFingerprints":{"codehealthFindingId/v1":"021f069b44e882e83232d81d62fb76ebaa3012c83018a25cf612fe8e08bed0a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): api.include.php:12126-12133 | api.php:12126-12133 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb81065ebc5537c332a0fb0fccece40802526e87e0de0f1491565c91037211c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 15): api.include.php:1949-1955 | api.include.php:1995-2001 | api.include.php:2022-2028 | api.include.php:2057-2063 | api.include.php:2082-2088 | api.php:1949-1955 | api.php:1995-2001 | api.php:2022-2028 | api.php:2057-2063 | api.php:2082-2088 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:41-47 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:89-95 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:117-123 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:153-159 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:179-185 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1949}}}],"partialFingerprints":{"codehealthFindingId/v1":"272b1b50b3baded27598abebc57665f7bd3357a0ff046c0a5771c699b71810c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): api.include.php:7271-7277 | api.include.php:7894-7900 | api.php:7271-7277 | api.php:7894-7900 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:120-126 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:178-184 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:7271\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":"api.include.php"},"region":{"startLine":7271}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c77e4c23d9138880df25f1947f96bee9d23bdd3bff80c360b1d6914221547c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): api.include.php:1284-1295 | api.php:1284-1295 | src/Tqdev/PhpCrudApi/Column/ReflectionService.php:52-63 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"437125ef4795623063ba6b29b2e069a635412ec7f37678b10a4d947772a901a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:2996-3002 | api.php:2996-3002 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:358-364 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2996}}}],"partialFingerprints":{"codehealthFindingId/v1":"052495378e17a21a227cf2f28610ba9c72eeb68658e2019b6b7a93457202c2fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:4115-4121 | api.php:4115-4121 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:122-128 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4115}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7cd68596138d21367c75acbe3060efde2d7d984fba6024c102b906452d02fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:5162-5168 | api.php:5162-5168 | src/Tqdev/PhpCrudApi/Middleware/JsonMiddleware.php:56-62 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:5162\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":"api.include.php"},"region":{"startLine":5162}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd56eeebae05b3881acc42f69be51392d682c33fc2c33605cbf28c6c7d98ed2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): api.include.php:7288-7293 | api.php:7288-7293 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:138-144 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7288}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ea7f17ed47398c626edc13d582ca7e5e1a0dda6f16ef7c6ad173e479f09fe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): api.include.php:8529-8546 | api.php:8529-8546 | src/Tqdev/PhpCrudApi/Record/Document/ErrorDocument.php:52-69 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8529}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53afa849b9c3c88ad759369e2d3a3b84c1aa92b6b74363c8f7f02c07106d91b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:8723-8729 | api.php:8723-8729 | src/Tqdev/PhpCrudApi/Record/FilterInfo.php:89-95 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:8723\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":"api.include.php"},"region":{"startLine":8723}}}],"partialFingerprints":{"codehealthFindingId/v1":"81fcea3b9406b72a93e1fc515afe35475975b4fe86fede762b01bd41bc5616ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:8972-8978 | api.php:8972-8978 | src/Tqdev/PhpCrudApi/Record/RecordService.php:21-27 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8972}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff83769cdfbb280902d8d4c4bc65da65f96d526bd222e281d6db4bd95df944d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:9200-9206 | api.php:9200-9206 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:101-107 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9200}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a0e2b59c2df6471b25f6c12ddf5d9cffee6881343d8e37c5e5e372b549589c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api.include.php:4898-4906 | api.php:4898-4906 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4898}}}],"partialFingerprints":{"codehealthFindingId/v1":"e214e6cc74cbe620fabc5f1cadbd7b52ffcce6f2f91ce44c48da87fee38ca00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): api.include.php:12527-12542 | api.php:12527-12542 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:12527\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":"api.include.php"},"region":{"startLine":12527}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ecfe98850deff6c89f9a30eb4a2ec7dbd7fb850ee539af1616d3882355608c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): api.include.php:1780-1785 | api.include.php:1940-1945 | api.php:1780-1785 | api.php:1940-1945 | src/Tqdev/PhpCrudApi/Controller/GeoJsonController.php:27-32 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:31-36 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d49b5a192df8a942c423f83d2e11695f8187aff21268a1c82b4ad4fdf521f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): api.include.php:2896-2901 | api.include.php:2994-2999 | api.php:2896-2901 | api.php:2994-2999 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:252-257 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:356-361 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2896}}}],"partialFingerprints":{"codehealthFindingId/v1":"86312191a730a59e6c40b6266da64f5ecb4816c128a0b0533294421a2cdd5ad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): api.include.php:6904-6909 | api.include.php:8086-8091 | api.php:6904-6909 | api.php:8086-8091 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:138-143 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:62-67 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6904\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":"api.include.php"},"region":{"startLine":6904}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65c4786c40f59d326993a2d83f1e47197d5ceea4c02b0d48895be1a4562d7c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): api.include.php:9188-9194 | api.include.php:9397-9403 | api.php:9188-9194 | api.php:9397-9403 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:87-93 | src/Tqdev/PhpCrudApi/Record/RelationResolver.php:27-33 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8acc9745bbe8a41c994f3b78ed76b2034d7f9de8dfb24d40ced4040084b1181d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:679-685 | api.php:679-685 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:20-26 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"1972905f3e47391e5839c0692bc8f5c7d1b0e797bcdeef851f17fbff31a6ab86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:900-909 | api.php:900-909 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:95-104 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"f553fc7428e87e415d393f561fc21d488a84d7fcda860cb8e1ed376dca091df4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:1626-1631 | api.php:1626-1631 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:27-32 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1626}}}],"partialFingerprints":{"codehealthFindingId/v1":"102b5ff9e09d47e409cd8936c0ec20bbb2a220bc52a4bd05d5d947706e820628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:1644-1649 | api.php:1644-1649 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:47-52 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"6813066f8a13e012b6ad086952bfe053d0dde8bbea75d50c84d7e6a7d16d7901"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): api.include.php:2407-2421 | api.php:2407-2421 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:90-104 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:90\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":"api.include.php"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"69236ee8288a2d7954f70375d1499cd46b7292c4659d2834fafdb051d3833b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:6213-6218 | api.php:6213-6218 | src/Tqdev/PhpCrudApi/Middleware/WpAuthMiddleware.php:27-32 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6213\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":"api.include.php"},"region":{"startLine":6213}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1a8dbfc455d9983fec387be6e022e2daf90096c61cf4d16169eae464c5063c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:9411-9416 | api.php:9411-9416 | src/Tqdev/PhpCrudApi/Record/RelationResolver.php:42-47 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9411}}}],"partialFingerprints":{"codehealthFindingId/v1":"71299336dbe99f1e2d4aa47e33212682a2e15aa0afd119113b9a58b022cd6a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): api.include.php:5179-5189 | api.php:5179-5189 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:5179\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":"api.include.php"},"region":{"startLine":5179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d362f11cfa14f36d6ae3cab8756ce32e7926a7ec8b88dced45008397928542a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): api.include.php:8256-8266 | api.php:8256-8266 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0de35cca010433db8989489020685c0136b442d271f0d7537d7221dbf8c56a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): api.include.php:11650-11657 | api.php:11650-11657 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11650}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c626ecba5668ad53e213d81a59e011b7d5f60ce32d55fd6bc2ea945b22f971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 15): api.include.php:7400-7404 | api.include.php:7406-7410 | api.include.php:7706-7710 | api.include.php:7717-7721 | api.include.php:7723-7727 | api.php:7400-7404 | api.php:7406-7410 | api.php:7706-7710 | api.php:7717-7721 | api.php:7723-7727 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:257-261 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:264-268 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:164-168 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:177-181 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:184-188 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060api.include.php:7728\u0060 calls \u0060getTextSearchParameter\u0060, \u0060set\u0060 and \u0060api.include.php:7405\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":"api.include.php"},"region":{"startLine":7400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e89d2320443aa3de3f6760bd1ce9f5214cd6b8963e3d3f724e54741b6e49c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 15): api.include.php:7394-7398 | api.include.php:7400-7404 | api.include.php:7695-7699 | api.include.php:7706-7710 | api.include.php:7717-7721 | api.php:7394-7398 | api.php:7400-7404 | api.php:7695-7699 | api.php:7706-7710 | api.php:7717-7721 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:250-254 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:257-261 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:151-155 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:164-168 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:177-181 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7394}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b010507cca738a5c2bebb31e26cb155ffada701bc6ae8dc0d4b31f0232753fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): api.include.php:1960-1965 | api.include.php:2071-2076 | api.php:1960-1965 | api.php:2071-2076 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:52-57 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:167-172 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1960}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8fdb536f71e534648362b5f7a4578ae59985bd93db18c4f7fd5ea875945d107"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): api.include.php:2899-2903 | api.include.php:2922-2926 | api.php:2899-2903 | api.php:2922-2926 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:255-259 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:279-283 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2899}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d03e57b67d55d1f1c5e5e6dfffefdf6540f020ea3a11d66e1085bc01effb99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): api.include.php:6569-6573 | api.include.php:7729-7733 | api.php:6569-6573 | api.php:7729-7733 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:112-116 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:191-195 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:6569\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":"api.include.php"},"region":{"startLine":6569}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a6f206fe5a359c91a6635388202a218222558081bdb0611a686bd1a6f3d814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): api.include.php:6580-6584 | api.include.php:6905-6909 | api.php:6580-6584 | api.php:6905-6909 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:124-128 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:139-143 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6580}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2ee6bb05bb319be8213b6c02b314faff0be71d639a059c984a73bea81151fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): api.include.php:6948-6952 | api.include.php:7287-7291 | api.php:6948-6952 | api.php:7287-7291 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:185-189 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:137-142 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6948}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb9fced36063eac3470b7f4281374e7bb07948a4ad52869a3a237b0f3f24a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): api.include.php:7700-7704 | api.include.php:7711-7715 | api.php:7700-7704 | api.php:7711-7715 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:157-161 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:170-174 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7700}}}],"partialFingerprints":{"codehealthFindingId/v1":"2099da1d291c2e884ddfb2e9b2fd017fdfa7af25077ae02dc856c38c6681cd30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:1932-1936 | api.php:1932-1936 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:22-26 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:1932\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":"api.include.php"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"df44940a42238b91a8327f0f4962fd0cef0decaabfdd739112901a6ee15a8df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): api.include.php:3264-3269 | api.php:3264-3269 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:250-256 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3264}}}],"partialFingerprints":{"codehealthFindingId/v1":"903a848d6015c91fe48b75222bfa53debbe882ad0c823edc1d799120804c8f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:5731-5736 | api.php:5731-5736 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:111-116 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5731}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2749d407c3081b127f27182a8f5e6f1a1ebde8f7dc867e3402368aa2643c368"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): api.include.php:4750-4754 | api.php:4750-4754 | src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:53-56 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:53\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060api.include.php:4748\u0060 calls \u0060getMethod\u0060, \u0060in_array\u0060, \u0060getParsedBody\u0060 and \u0060src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:53\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":4750}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f63d543df968ac86a581d422058a0900cbce932af3aff48f24f95c2f375637f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): api.include.php:10205-10214 | api.php:10205-10214 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10205}}}],"partialFingerprints":{"codehealthFindingId/v1":"4956b5edc5c8a97f1ed82bc1faa2f0800de51c93ec9b25f37d7aceb76401bf6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:339-346 | api.php:339-346 | src/Tqdev/PhpCrudApi/Api.php:227-233 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"778d4cf58cf60e709ac9f690ef361a57e7c70439fd83642f7f2138d9659857db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:612-620 | api.php:612-620 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:103-111 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"9663067d20b36b4df890fc93a0d978fa63ffb3196d9ad0dac438e56f487e8795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:652-656 | api.php:652-656 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:145-149 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"7872a9b28c184c619a592b46db7f40d0ed5796bd5d0e265da101ca859540bb7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:755-759 | api.php:755-759 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:98-102 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1f744ac5396fe79bc826f7a8efeaba90b9b31e7848532a3ca5f57d207fa8ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:866-876 | api.php:866-876 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:62-72 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b8e2c775a97696e5092638c0ced94820cfa978b212755e5512bd81834323f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:1059-1064 | api.php:1059-1064 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedDatabase.php:62-67 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"832f38a1d7f6585c8fbd249e0b05a0bee6b6610f073b8c9738dc840f98359a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:1211-1217 | api.php:1211-1217 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:146-152 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd542c04d8cd478fed6952b4fdf22b26f2f60e6ea468e082f040c5da3dd7d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:1221-1225 | api.php:1221-1225 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:157-161 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1221}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d83c155bd6942a145b5331e982d743413749c7606ed9b4ccf4981c1f6a220e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:1255-1259 | api.php:1255-1259 | src/Tqdev/PhpCrudApi/Column/ReflectionService.php:20-24 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aab1888c636bd5e4332f5950a04facbf6a8840a32217af72f98af9cb1b29159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): api.include.php:1360-1370 | api.include.php:1374-1384 | api.php:1360-1370 | api.php:1374-1384 | src/Tqdev/PhpCrudApi/Config/Config.php:50-60 | src/Tqdev/PhpCrudApi/Config/Config.php:65-75 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fee4971c5a4a8fbb37e4348dd40ce6ce127aea8af74399745f2fd54ab9772ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): api.include.php:1398-1402 | api.php:1398-1402 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db71181e523b310bec3a6db6a2825058d35ad899742567f54a3f62aacb356f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:1635-1640 | api.php:1635-1640 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:37-42 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1c982ea1d5d30b710b7666cd36f9a32054aca19211d11271acb4cb247407c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:1855-1860 | api.php:1855-1860 | src/Tqdev/PhpCrudApi/Controller/JsonResponder.php:35-40 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ecad7cd8242b39d91d43f2ff64306122d341a0a54ef95f44ca4a4e10b64c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): api.include.php:2232-2245 | api.php:2232-2245 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:21-34 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2232}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec6f13a219dccdcb2e30feab0ecbf2c211512a535b56f6ac61efed86f270073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:2266-2273 | api.php:2266-2273 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:58-65 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c3de75aa2a91c40807f95b199c298ec18e9fc41537a62b82a2a2700c0f1530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): api.include.php:2379-2383 | api.include.php:2387-2391 | api.php:2379-2383 | api.php:2387-2391 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:58-62 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:67-71 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2379}}}],"partialFingerprints":{"codehealthFindingId/v1":"386bb60b02154f68e05de7e2ad57e41d4554be7c32ef664c6867a389c826fbab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:2574-2578 | api.php:2574-2578 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:265-269 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2574}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc1f55f4cc2671d65a6ceb6edbce44532f595671327a014b85a831c0b49d17e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:2644-2650 | api.php:2644-2650 | src/Tqdev/PhpCrudApi/Database/DataConverter.php:70-76 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85c9772d2836981e8d3ab4608a4388e6a4dff8afebaa061ac1dd4c19dafed6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 15): api.include.php:2706-2716 | api.include.php:3486-3496 | api.include.php:3500-3510 | api.include.php:3514-3524 | api.include.php:3528-3538 | api.php:2706-2716 | api.php:3486-3496 | api.php:3500-3510 | api.php:3514-3524 | api.php:3528-3538 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:32-42 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:43-53 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:58-68 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:73-83 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:88-98 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060src/Tqdev/PhpCrudApi/Database/GenericReflection.php:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":2706}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f21f550f63823ffd5bc6f690ae246891431ebaafe71a5c6d3f00d7bdebbbf6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:2852-2860 | api.php:2852-2860 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:206-214 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2852}}}],"partialFingerprints":{"codehealthFindingId/v1":"824b85066eb3a48f72de1bcd9a3882731b5aec20aa3025f710aa946383073413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:2945-2953 | api.php:2945-2953 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:304-312 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":2945}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e59b0b5395668e59b62aa3fae4f6790e6e80f32a48b8b3ed5d27c0ae598fd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:3085-3089 | api.php:3085-3089 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:51-55 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3085}}}],"partialFingerprints":{"codehealthFindingId/v1":"922d4585556aa1c704872273d914f192314002b16fa150e53cc3f059fa569cda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): api.include.php:3120-3132 | api.php:3120-3132 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:90-103 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0218f48d647cd2c9ce63b2e5a8ad49ce0d271202e4c5815d563465e8e9b07b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:3273-3282 | api.php:3273-3282 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:261-271 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3273}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7e92c87f4b11082cedaae9e5e302a3f4eca30ab44764bd8ce7d37c54e583bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:3338-3348 | api.php:3338-3348 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:332-343 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3338}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e85a3a23358fe6229439f1e63dd5fd01974fdaa97cf6a409a4dabcaa88156f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): api.include.php:3352-3363 | api.php:3352-3363 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:348-360 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3352}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ff479297cd669990faf46d9f44ba1ddfb496c450b0cd57d3813ae0f3ee2ef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:3463-3468 | api.php:3463-3468 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:18-23 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3463}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ca6d0911aea2857e3a95b9fe4b2e2740bd3d342a01af639392b51968eb1d31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): api.include.php:3472-3482 | api.php:3472-3482 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:28-38 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3472}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fde52d8c5845a91ea214f3fa5ee52f27a77b2f4b8097c9fc6b75e9817a6829"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:3674-3678 | api.php:3674-3678 | src/Tqdev/PhpCrudApi/Database/LazyPdo.php:17-21 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3674}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be50853b285ec788a955064381fcd14401a022866df4f9caed9d23eb05e1757"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:3687-3693 | api.php:3687-3693 | src/Tqdev/PhpCrudApi/Database/LazyPdo.php:32-38 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3687}}}],"partialFingerprints":{"codehealthFindingId/v1":"7319a5e573e0363f7264c8ff41830735dbb08e63f4448f5535b848a540c2325c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:3697-3706 | api.php:3697-3706 | src/Tqdev/PhpCrudApi/Database/LazyPdo.php:43-52 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3697}}}],"partialFingerprints":{"codehealthFindingId/v1":"5947d413975e178a3f35fdb18156984b69e69e3717c03fe2b45b5d07bc58efc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:3715-3719 | api.php:3715-3719 | src/Tqdev/PhpCrudApi/Database/LazyPdo.php:63-67 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3715}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb852e45c4b63b3c150337b5fe3878651150130b42a04b0aa242afc240a694d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:3943-3947 | api.php:3943-3947 | src/Tqdev/PhpCrudApi/Database/TypeConverter.php:217-221 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":3943}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac20dee8028a076c0afedb9c0357ebe0280d4743a014a878c2bf5494e671cdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:4093-4099 | api.php:4093-4099 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:98-104 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4093}}}],"partialFingerprints":{"codehealthFindingId/v1":"59729d99a103a3a60df0f3f4d88e02513065d0ff3ca1c3f6e7724b880a83e0e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:4440-4447 | api.php:4440-4447 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:17-24 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4440}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6addd74c27cee1f9a5ef5d29aa3a07faccdb680b39095371f164aaccbff4443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:4473-4481 | api.php:4473-4481 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:53-61 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4473}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56e89f0b322e00b3bec59f42b15d3b2cb1ed0faffba6823359687066cf001b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:4910-4915 | api.php:4910-4915 | src/Tqdev/PhpCrudApi/Middleware/FirewallMiddleware.php:31-36 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4910}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b7ef8b5c0f027aa4fc33e5f5115f7ccd1ebed60f15cb9e3dc73b215221f8d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): api.include.php:4919-4927 | api.include.php:4982-4990 | api.php:4919-4927 | api.php:4982-4990 | src/Tqdev/PhpCrudApi/Middleware/FirewallMiddleware.php:41-49 | src/Tqdev/PhpCrudApi/Middleware/IpAddressMiddleware.php:46-54 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":4919}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafbb1d370d10a44a2762c0c9f98154cf224521517fe45f630e9f57863a7312b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:5152-5158 | api.php:5152-5158 | src/Tqdev/PhpCrudApi/Middleware/JsonMiddleware.php:44-50 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6282e34b438a0cb83c15b8ddb031a772d1fb95e4ea3c4cadb78bd4762342c62e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:5389-5394 | api.php:5389-5394 | src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php:31-36 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5389}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4c1cb4d46ac68e57386f98b4d207f96327279755fc60372d1b96dad9200993f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5523-5527 | api.php:5523-5527 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:28-32 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5523}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ffc1cead853eca8bf4c515a56d3cd89d2a12cca77d9dedf39c39ff6a28ae4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5531-5535 | api.php:5531-5535 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:37-41 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5531}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbbcdfd9880cd00028f1515542e4e8a4d002fba615845d6c965adde8d922619"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5539-5543 | api.php:5539-5543 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:46-50 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5539}}}],"partialFingerprints":{"codehealthFindingId/v1":"883994b2043aba1e330dde5792b2b1c8d2df9ed214229c7ac5d846bcca419e99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5547-5551 | api.php:5547-5551 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:55-59 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5547}}}],"partialFingerprints":{"codehealthFindingId/v1":"de21c608eeaa1fc664bc65f3e9529e193be5d3d5c88fbae0b34d25725fc24884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5555-5559 | api.php:5555-5559 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:64-68 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5555}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1d1a3259da3a194fb39ce10c6aa6dd2997ec44a9e47415ee6a8367487c5d97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5563-5567 | api.php:5563-5567 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:73-77 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5563}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea862cfff90249215285656d55feab4b9906bac065ce13f636a523e3f32ef2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5571-5575 | api.php:5571-5575 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:82-86 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5571}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e7e9823679566d14f93cda6bd7db83a25ddce879041b3a469661fb4ef33f99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5579-5583 | api.php:5579-5583 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:91-95 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5579}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c8ccc600fdd6e5ee11d16f56bb809da83122bb37da20af76e1e88996031362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5587-5591 | api.php:5587-5591 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:100-104 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5587}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c961e5c4084723d126f6dd5562660c795f07ac24b3455cee4818b993b3857a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5595-5599 | api.php:5595-5599 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:109-113 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5595}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd42d2484cc592bae50cf11223adbd1b0e3978c84a531ca1b597f77ea8d542a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:5683-5690 | api.php:5683-5690 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:57-64 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5683}}}],"partialFingerprints":{"codehealthFindingId/v1":"57293aa576a2747aa9e5343ca26da2e3ac0ac3efc4e279540288cade064d5404"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:5712-5716 | api.php:5712-5716 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:89-94 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":5712}}}],"partialFingerprints":{"codehealthFindingId/v1":"7837006c117d54ec8a58f4f5ef89af32c8da7bbdb57aedaa3dddcfeca1b5a34c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:6458-6462 | api.php:6458-6462 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiAuthorization.php:17-21 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6458}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b87740393abb07ddeac3440543a055ff07a23435b994ebd2e64b845ad9b770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:6466-6470 | api.php:6466-6470 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiAuthorization.php:26-30 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6466}}}],"partialFingerprints":{"codehealthFindingId/v1":"666d1bf76e82fe6f0bf6023023e4540da213bcaa5980ecfb13ae04626ac2bd4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): api.include.php:7012-7020 | api.php:7012-7020 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDbAuthBuilder.php:66-74 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7012}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb2fcf177a05fe11965908f96e4732d7acfd84357fb5e89f40e6325ca8d6f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): api.include.php:7199-7205 | api.include.php:7762-7768 | api.php:7199-7205 | api.php:7762-7768 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:44-50 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:41-47 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7199}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad92bb22a0520640aab5f9ac6ee81cfbb34f7e6416cb711fdb06dda4ec3bfba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:7209-7215 | api.php:7209-7215 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:55-61 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4254ca13f510a6e486ead3b9e0fe5d45b3a3309c9b9aa6b0b273a62b47354b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:7219-7225 | api.php:7219-7225 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:66-72 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a264edfc8b6d8c2b10806d6ecea538bd0091a7e6ff7ce2c7ef78f55fea4a647c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:7469-7476 | api.php:7469-7476 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiMiddlewares.php:63-70 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7469}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe85ef359396d2bf337c41da49e97ddbb76ef6e7b94d7604aeda3ae2a2d10ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:7527-7532 | api.php:7527-7532 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiMiddlewares.php:124-129 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7527}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08bd85020d6823cad4f1a17f7a977399a07382fff772def31cb99da38b56ddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:7644-7648 | api.php:7644-7648 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:85-89 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7644}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ec3cdf4702f9d12343dd1cedb160521751b5a3d562d1be1412cea88aea3897"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:7825-7831 | api.php:7825-7831 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:108-114 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":7825}}}],"partialFingerprints":{"codehealthFindingId/v1":"40b8639a7dfe489ab871e4ed8f95fc773079dc746eff0aebc9dccf1b145a1659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:8051-8056 | api.php:8051-8056 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:25-30 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8051}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1ed1cb1692dbe8de8123ba64197c1d8e86d23b2b12994668143d4b2fe504dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:8099-8104 | api.php:8099-8104 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:76-81 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8099}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe715e15949d77b44346f432f8a553dfd3f659d1354f8575785b2b2a1cf36fbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:8184-8188 | api.php:8184-8188 | src/Tqdev/PhpCrudApi/Record/ColumnIncluder.php:53-57 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8184}}}],"partialFingerprints":{"codehealthFindingId/v1":"733be776ae8185e9ce2fde94a9b5e632fcc2465e186dc76f6440e2b383df28ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): api.include.php:8198-8205 | api.php:8198-8205 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8198}}}],"partialFingerprints":{"codehealthFindingId/v1":"171a179e90325e81c9e08d660275a0d7e8d16ac0ab70c967351b577559fc9093"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): api.include.php:8427-8434 | api.php:8427-8434 | src/Tqdev/PhpCrudApi/Record/Condition/RelatedCondition.php:41-48 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8427}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b525a1bd2de005328a3241596919267862558006503b54ee83c17956b7f1d60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:8620-8625 | api.php:8620-8625 | src/Tqdev/PhpCrudApi/Record/ErrorCode.php:70-75 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8620}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7e6f3a6ba5f77bdf68eb7a42b270af42b1adfbfcadb163e633941dee6b16ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:8710-8719 | api.php:8710-8719 | src/Tqdev/PhpCrudApi/Record/FilterInfo.php:75-84 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8710}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd53811add55f7d0e4db0dec01cf49fc9b4ac8e8b32796817137febd1d033963"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:8852-8858 | api.php:8852-8858 | src/Tqdev/PhpCrudApi/Record/PaginationInfo.php:44-50 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":8852}}}],"partialFingerprints":{"codehealthFindingId/v1":"608022cef29f20aef268d5f44f018af19dea0564a8929ea5b031a4d4de963435"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:9256-9260 | api.php:9256-9260 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:163-168 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9256}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6874aee2eaa55821997501fb4c7a7fedd1ed8451475985539f2e335c03f06bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): api.include.php:9264-9268 | api.php:9264-9268 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:173-177 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9264}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1ee8bad7c2f4ac01f1ade16fb0625c49fca9f2f8393be0389691e333110315"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:9285-9291 | api.php:9285-9291 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:196-202 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9285}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa73dba65dbd1215022d862ef12c75dd669a71f1b5d060890ef01117d668e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:9327-9332 | api.php:9327-9332 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:241-247 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcc917e3e1e198eeaaba0d6b1a0e609052c9a0bd4e41d792612748dcf706dfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:9474-9479 | api.php:9474-9479 | src/Tqdev/PhpCrudApi/RequestFactory.php:13-18 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:9474\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":9474}}}],"partialFingerprints":{"codehealthFindingId/v1":"00334329c36fcc580b8c7c0d03b483842bdb07a443d5d9cd71a93ec2e4e07fdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:9523-9528 | api.php:9523-9528 | src/Tqdev/PhpCrudApi/RequestUtils.php:24-29 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9523}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dcdb995ad8f2d5a4fa39edee4678b59e0c9af62503fbe0f8956ede4ca4e465c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): api.include.php:9532-9537 | api.php:9532-9537 | src/Tqdev/PhpCrudApi/RequestUtils.php:34-39 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9532}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4a33fa1742b8e57daae8a1e24b04a7e61d74fc5aadbc0607ce49abcc40806c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): api.include.php:9711-9720 | api.php:9711-9720 | src/Tqdev/PhpCrudApi/ResponseUtils.php:11-21 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9711}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b31e56b7a8f25e5e375d45b8501730e927161df4a8fa5222492dc7edf7cedd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): api.include.php:9913-9917 | api.php:9913-9917 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":9913}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bed53d35c6c4cd1a240b914453827b9ccb3d9b6b4c98b428d8f990468a06a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): api.include.php:10193-10197 | api.php:10193-10197 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10193}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a74c1419e257301bb8147d7a794fb4195160bc877bfc3dc5a64e0f47cf222ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api.include.php:10270-10278 | api.php:10270-10278 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10270}}}],"partialFingerprints":{"codehealthFindingId/v1":"003275b11913104b7a7ed18d122ae74016b68b23eb4168460845f95e7d221029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api.include.php:10324-10329 | api.php:10324-10329 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10324}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13950c98c30121fda8a24091ef97f5e5e7236ced711b9ea82502a4b20d9530f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api.include.php:10770-10778 | api.php:10770-10778 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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 \u0060api.include.php:10770\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":10770}}}],"partialFingerprints":{"codehealthFindingId/v1":"4779cf18adcf685cd240b08547236e7f516dfe154a0564d659d46784c0ee14f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api.include.php:10789-10794 | api.php:10789-10794 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13981e9ec8e94d9afd3f9e9037fa2c3b65465f55bb987bb23769ad08283895c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api.include.php:10805-10813 | api.php:10805-10813 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":10805}}}],"partialFingerprints":{"codehealthFindingId/v1":"15666b096a1f06cabc94746218998815705e244ffe3247ad89d1d470b2b4ea02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api.include.php:11370-11375 | api.php:11370-11375 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11370}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e553a5f71c0821eb1cfc008de9d4a56f8351596475cac6099774f31353b7fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): api.include.php:11386-11392 | api.php:11386-11392 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11386}}}],"partialFingerprints":{"codehealthFindingId/v1":"8763ec9011a51c082024ed3a56379d6890d92055ffb55db1e07bf43cf9c62601"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api.include.php:11399-11404 | api.php:11399-11404 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11399}}}],"partialFingerprints":{"codehealthFindingId/v1":"6242a008e7dc8e2a0a2537452d373990d0101e0d4b28f17a5a00f24d6ab1e649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api.include.php:11411-11419 | api.php:11411-11419 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11411}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f41ac41a277f420d5d8f94d4302ef405f642ad5037203a6b1814b554c28a9d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api.include.php:11695-11700 | api.php:11695-11700 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11695}}}],"partialFingerprints":{"codehealthFindingId/v1":"74024b752485fc15d2087dbc222dd04b138cccf695cf905fecb348846744551a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): api.include.php:11704-11711 | api.php:11704-11711 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11704}}}],"partialFingerprints":{"codehealthFindingId/v1":"8576e8dd808f9e19eeb019992283dfda1cf02cb02299355bcfebc8a24de97a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): api.include.php:11741-11747 | api.php:11741-11747 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":11741}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4f5664bdcf8929062c2d34b4a8f054ccc584e11496d03eb67a4dabe32a74d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api.include.php:12117-12122 | api.php:12117-12122 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecffb4a14ce837455711aaad8a82911d66570c1ab0cf028975393f237d5f6c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): api.include.php:12644-12652 | api.php:12644-12652 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12644}}}],"partialFingerprints":{"codehealthFindingId/v1":"d320aa7d0d69b174dc54f5d3406a8053a3cf1497bd3413602708276ac5813602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api.include.php:12659-12664 | api.php:12659-12664 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12659}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67730f77828cc58b4974308699ba1e5da2fe3df48e637193d2c110bb66ce836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api.include.php:12671-12676 | api.php:12671-12676 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12671}}}],"partialFingerprints":{"codehealthFindingId/v1":"3379aa10087f85f52e0f0aa4408cbcdd5fc83c63bcec4d05acf100f7ccb8722f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api.include.php:12683-12688 | api.php:12683-12688 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12683}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a24bb30874d88285c0fdea5d038cfc770b840626c47da96ccd9f0767ca6a768"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): api.include.php:12695-12700 | api.php:12695-12700 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12695}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d047a788c3d5817c831d45b61c10f4393e30735478004efca2ffa65cefbff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): api.include.php:12746-12753 | api.php:12746-12753 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":12746}}}],"partialFingerprints":{"codehealthFindingId/v1":"232ffbbffe0e77a49c48e804c6efefc6bd4924b14c18f2a6757132e7d40af8f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): api.include.php:6529-6535 | api.php:6529-6535 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:70-76 \u2014 before extracting anything, compare \u0060api.include.php\u0060 and \u0060api.php\u0060 as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 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":"api.include.php"},"region":{"startLine":6529}}}],"partialFingerprints":{"codehealthFindingId/v1":"951918a11baaf7268249e8fad8a59975c7f360188f2724976804cb3986638ba2"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: (root): (root): abstractness 0.17, instability 0.00, distance 0.83 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"51ca5f5bba3ac7cbb4b8e1f651f219f376cded51fec13491755cad3ccdd7168a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ServerRequest (LCOM4 12): ServerRequest\u0027s methods fall into 12 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 12 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":"api.include.php"},"region":{"startLine":11272}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0c61fc5092ec24d14ae3bb144f50cd793d407c3841fff7ff6e70d2472d0122"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ServerRequest (LCOM4 12): ServerRequest\u0027s methods fall into 12 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 12 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":"api.php"},"region":{"startLine":11272}}}],"partialFingerprints":{"codehealthFindingId/v1":"728474c8d4c4bed456bf184a22cd7d2ca0161e45a28daeb90a4d7252f7b42f43"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Request (LCOM4 6): Request\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":"api.include.php"},"region":{"startLine":10844}}}],"partialFingerprints":{"codehealthFindingId/v1":"45161b700816b5f218e2c96d791ed8456ef3e93cf5a150207b9fd51db8e21a0c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Request (LCOM4 6): Request\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":"api.php"},"region":{"startLine":10844}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e4b3ed7fec416d38f5d9a5b27af9e7ae0aaffb63230308078a9b0f72ed8a33"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Response (LCOM4 5): Response\u0027s methods fall into 5 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 5 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":"api.include.php"},"region":{"startLine":10951}}}],"partialFingerprints":{"codehealthFindingId/v1":"635e285f08c27d6f285a3d700aba16b03625bb30fccf1bd5f99f02c4b9e7f75a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Response (LCOM4 5): Response\u0027s methods fall into 5 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 5 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":"api.php"},"region":{"startLine":10951}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fc75e0ffe96fa778973c52f00d8f4b41dc774c57f2b4fc4331383c089f3480"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: api.include.php: api.include.php changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Api.__construct at line 178. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 07:51:57 \u002B01:00\u0027 --until=\u00272026-11-12 07:51:57 \u002B01:00\u0027 --full-history --no-merges -- api.include.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6530f24656e2e1a00ae58a5cf9c4d7897389fd1c961ccc92f72841cd70063fdb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: api.php: api.php changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Api.__construct at line 178. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 07:51:57 \u002B01:00\u0027 --until=\u00272026-11-12 07:51:57 \u002B01:00\u0027 --full-history --no-merges -- api.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30c2491d94ea2875554c255d7412420551f71487d8150b301b03062d7103336"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php: src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in OpenApiRecordsBuilder.setComponentSchema at line 187. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 07:51:57 \u002B01:00\u0027 --until=\u00272026-11-12 07:51:57 \u002B01:00\u0027 --full-history --no-merges -- src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"30773fb52d736883660a2266cde3e3f3a9c64e533c18708868d806b5c7d932d3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Tqdev/PhpCrudApi/Api.php: src/Tqdev/PhpCrudApi/Api.php changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Api.__construct at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 07:51:57 \u002B01:00\u0027 --until=\u00272026-11-12 07:51:57 \u002B01:00\u0027 --full-history --no-merges -- src/Tqdev/PhpCrudApi/Api.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Tqdev/PhpCrudApi/Api.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edd80393f39aaf7de9c816d1c7ce7a811779c8a01e2451f3040ca264c8b4b7d"}},{"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":"3856716c62999a17f52ace21409620ecae7e08ad576eecddd8358bb9ca728d5e"},"properties":{"commitSha":"7bd9919591ea49e4a3afe0781d962bb34d5aa8a3"},"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":"ee8713903f005f146e60ee57faf14d814bbddf1c577a55ae01b53ffded63a68b"},"properties":{"commitSha":"f4c144fffd404eb7c27e06c4c0700a16d2709390"},"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":"a5d38c8f5b05c0eeb663ce17c5737ee70eb5d8d1c377b79191ade70effaa4830"},"properties":{"commitSha":"7bd9919591ea49e4a3afe0781d962bb34d5aa8a3"},"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":"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":"1e0a739fef7392dc9d195014e3f6f260f7de77c71be2f62776e38eda686b5381"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04: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":"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":"6c9bd328f1425e4185802e2cb388fc5dec17b2da92bc5227fa43622d89e747d7"}},{"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":"a7d9ffa4c51ab9f3a4995289ad5253a20dd3cb95d469a85ae8cad5ea4613e161"}},{"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":"ada757cc51f410940c2c00d5ff074b34289fe6931e5404c0d7e498bc735cf4c5"}},{"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":"730f753458ed905896eaa9f930434c30dcfbbecadb610efde1421ffddca97e68"}},{"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":"7d3f0c8c3020c72f2e6eedd712ae42cf9e3a90350a87a0c17d50fdbc70961db7"}},{"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":"17a2d304dc19e5e116c26b2b51fac7f000d505b31423dc6754888ce167d421f7"}},{"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":"936ed692f5abc5ad3725caf7da26ea3a2e1ebe5c8d698ec407ab92516e148933"}},{"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":"4cbf7f58827852e1750340d66156a833b5a21a4999bc06adde2fe6e95fd1fd78"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08: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":"a831dae941426d2ffe79880b2088a9868a2f617bd3aff19dcd6b3591d7e55025"}},{"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":"79b34c4da612d92294bbd0735afda1adb38851f96cdbc9901ae64ee335192275"}},{"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":"4d6e7c030ed6f530a49c6f71625c50d5fa17569baf8a5ec587bac25fe9480086"}},{"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":"70b5d3be87de8488fd266e02ebcc395154ca3885dfad2425424cc2d61cb41bfd"}},{"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":"476176a40f7dde5968156df41a3ad51fabec36db7b9ad2c78af7fdee298fccfb"},"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":"9f94a0b76838a27eecd4ce105eb07100458dacf004083458f14709347dd2bb36"},"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":"9e7d2ca62fc31dbbc668ce23438c98e93cedcc2035c2b1790c0c6aaf1ddf20c9"},"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":"d2af1dd018c005766a6e6609b28b6eeda2d9f5946204ce50147829c6d02dfe21"},"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":"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":"3f5ec6fbf4c7ec778c978f17a2d4ffab01f2624318d424e50d2875724184990b"}},{"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":"9469ce2e0a6c74ceb0a4634a8a137b87e943e1ddae0bae0fa76687b1945c0798"}},{"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":"3211ca12ebbc0c89bb1f3dd763049826eb0b7d0642f05c453eb8d5131d4b5b25"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: UriInterface (16 methods): \u0060UriInterface\u0060 declares 16 methods: \u0060getScheme\u0060, \u0060getAuthority\u0060, \u0060getUserInfo\u0060, \u0060getHost\u0060, \u0060getPort\u0060, \u0060getPath\u0060, \u0060getQuery\u0060, \u0060getFragment\u0060, \u0060withScheme\u0060, \u0060withUserInfo\u0060, \u0060withHost\u0060, \u0060withPort\u0060, \u0060withPath\u0060, \u0060withQuery\u0060, \u0060withFragment\u0060, \u0060__toString\u0060. Counted over its public instance methods, once per name; constants and static methods are not counted. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.include.php"},"region":{"startLine":12204}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b51f29ec0102da77361db4722bd1a262b99019210807f9fa6b369ea3b2d17f"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: UriInterface (16 methods): \u0060UriInterface\u0060 declares 16 methods: \u0060getScheme\u0060, \u0060getAuthority\u0060, \u0060getUserInfo\u0060, \u0060getHost\u0060, \u0060getPort\u0060, \u0060getPath\u0060, \u0060getQuery\u0060, \u0060getFragment\u0060, \u0060withScheme\u0060, \u0060withUserInfo\u0060, \u0060withHost\u0060, \u0060withPort\u0060, \u0060withPath\u0060, \u0060withQuery\u0060, \u0060withFragment\u0060, \u0060__toString\u0060. Counted over its public instance methods, once per name; constants and static methods are not counted. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api.php"},"region":{"startLine":12204}}}],"partialFingerprints":{"codehealthFindingId/v1":"398987024a76e16ef27518ca2ee0ac652109c64d709943d0b90985d30899ddfa"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: content-security-policy: The live app\u0027s responses did not include content-security-policy (restricts the sources a page may load \u2014 mitigates XSS/injection). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b142e47096a32517bde0bb9b78f7e564119c7f87e22fba4dccc0d1e3645d74c5"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: cross-origin-embedder-policy: The live app\u0027s responses did not include cross-origin-embedder-policy (recommended by the OWASP Secure Headers Project (value: require-corp)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"153214bb9c80f7d66cba8eb6a7715e9609e84c3979c9b641cd6bedaa8be6930b"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: cross-origin-opener-policy: The live app\u0027s responses did not include cross-origin-opener-policy (recommended by the OWASP Secure Headers Project (value: same-origin)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8cdbe5cdec6a55c732bf9a9975c0e40f81ddfa4ad583a4a50bfb0895531607f7"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: cross-origin-resource-policy: The live app\u0027s responses did not include cross-origin-resource-policy (recommended by the OWASP Secure Headers Project (value: same-origin)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3ba35c34991db9965777a53477c2d497c4c6606f78d133bbaa3bc99c71648c2a"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: permissions-policy: The live app\u0027s responses did not include permissions-policy (restricts powerful browser features (camera, geolocation, \u2026)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac8a111f0bb913829dc090833718dca5ab8e5fba7350f9dcf68f1971010745"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: referrer-policy: The live app\u0027s responses did not include referrer-policy (limits referrer leakage to third parties). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"364ee3f006b552b8fee33710a1fbfb0c4fac59e927af9c4396e51940d9069f01"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: strict-transport-security: The live app\u0027s responses did not include strict-transport-security (forces HTTPS on subsequent requests \u2014 mitigates downgrade/MITM). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"567d3eeb50a5678c0139a1d316c614c44cd4c4fb5db6fffa7795bc73d035966f"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-content-type-options: The live app\u0027s responses did not include x-content-type-options (stops MIME-sniffing (expects \u0027nosniff\u0027)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e7f2638203ac91f5b64c739d090b339c00a90f1007c83652152b402a6eb0cdeb"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-dns-prefetch-control: The live app\u0027s responses did not include x-dns-prefetch-control (recommended by the OWASP Secure Headers Project (value: off)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"50e54b8511264dd930857e4620bda8ba4053661b439218ed047812bcab0e3a44"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-frame-options: The live app\u0027s responses did not include x-frame-options (blocks clickjacking via framing (or use CSP frame-ancestors)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0e84499d19780ca121fad65e0f3bd2fc17b1268ce3079a5f40495749c54dc87e"}},{"ruleId":"AXH1","level":"warning","message":{"text":"Runtime security header not set: x-permitted-cross-domain-policies: The live app\u0027s responses did not include x-permitted-cross-domain-policies (recommended by the OWASP Secure Headers Project (value: none)). Observed by booting the app in-sandbox \u2014 advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"55366a3d9fb1c5952ebc54aab272eb775bf2c1b056d6d399652365c26cc2375b"}},{"ruleId":"AXI1","level":"warning","message":{"text":"Container process runs as root: database: \u0027database\u0027 (mysql:8.0) runs as uid 0 \u2014 no user was specified, or one resolving to root was. Observed on the running container, which is the only place the answer is settled: an image\u0027s own USER, a base image\u0027s inherited one and a compose override are all invisible to a Dockerfile reader. Advisory evidence for CRA Annex I (2)(b)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"41fa942b4fd0ed8df9f7de648b4ed544efc6d9a3b895070870e3ad6d024ddaf3"}},{"ruleId":"AXI1","level":"warning","message":{"text":"Container process runs as root: webserver: \u0027webserver\u0027 (.-webserver) runs as uid 0 \u2014 no user was specified, or one resolving to root was. Observed on the running container, which is the only place the answer is settled: an image\u0027s own USER, a base image\u0027s inherited one and a compose override are all invisible to a Dockerfile reader. Advisory evidence for CRA Annex I (2)(b)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e3d7918a2e80dd43ddbc407f25bc1f5cfd0161f3cc1e17c3bfdf630cc9f2ecfa"}},{"ruleId":"AXR1","level":"warning","message":{"text":"WCAG 2.4.2 reproducibly failed in a rendered surface: axe-core rule(s) document-title failed on: html. Runtime evidence (advisory \u2014 not scored); fix and re-scan to verify it clears."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a152f745c16f064aeb9932e5d52584f548c37c248ac45bacf96a1a6ffc2e49e7"}},{"ruleId":"AXR1","level":"warning","message":{"text":"WCAG 3.1.1 reproducibly failed in a rendered surface: axe-core rule(s) html-has-lang failed on: html. Runtime evidence (advisory \u2014 not scored); fix and re-scan to verify it clears."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e2d0e1d2bf07ce04d82230fe7847e003479b78cd188efe60cc79686fb8ba8420"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 112 PHP production file(s) this check read across 1 module(s). Each was searched for its ecosystem\u0027s logging libraries (PHP: PSR-3 loggers (Monolog), Laravel\u0027s Log facade, error_log()) and for a call on a receiver named \u0060log\u0060/\u0060logger\u0060 (or ending in \u0060Logger\u0060/\u0060_logger\u0060) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read \u2014 this is \u0027no logging found by this walk\u0027, not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"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":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"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":"install.php"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa9148a08084510498f77c6cb23576f92775faf2dff08e87721bc16c95db9c6"}},{"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":"update.php"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6e878bc5e1cefe1b795d3dce126830b232583ca222dcc18d07e70c6527d884"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is configured \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060Dockerfile\u0060 builds the web-server image that serves this application, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Dockerfile"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"492ca1d6f5d0681a926974ffb9ccbfa860bf2c5054f8c38c75af498b86c2a710"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!ini_get(\u0027session.cookie_secure\u0027) \u0026\u0026 isset($_SERVER[\u0027HTTPS\u0027]) \u0026\u0026 $_SERVER[\u0027HTTPS\u0027] != \u0027off\u0027\u0060 appears character-identically in 3 files \u2014 src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php, src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php, src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.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":"src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1694cadbdae2210cea8e9b87555d61bc391368da1cde51f08e1e2da090636ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$path == \u0027records\u0027 || $path == \u0027geojson\u0027\u0060 appears character-identically in 2 files \u2014 src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php, src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.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":"src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de6614f33aaa3cadc5e2cefd7f9b49120721fa73619738f4785479371de38e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(in_array(\u0027all\u0027, $tables) || in_array($table-\u003EgetName(), $tables)) \u0026\u0026 (in_array(\u0027all\u0027, $types) || in_array($column-\u003EgetType(), $types))\u0060 appears character-identically in 2 files \u2014 src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php, src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.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":"src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"581953dc6e9026a3a298d34ef00494feda64633d61ad1c94739a7469024caf0d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060count($t3-\u003EgetFksTo($t1-\u003EgetName())) \u003E 0 \u0026\u0026 count($t3-\u003EgetFksTo($t2-\u003EgetName())) \u003E 0\u0060 appears character-identically in 2 files \u2014 src/Tqdev/PhpCrudApi/Record/RelationJoiner.php, src/Tqdev/PhpCrudApi/Record/RelationResolver.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":"src/Tqdev/PhpCrudApi/Record/RelationJoiner.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a475f7db37470e4ff867e5188640936b8907f9d10a50506936443cd00d292366"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060substr($key, 0, 6) != \u0027filter\u0027 || !is_array($values)\u0060 appears character-identically in 2 files \u2014 src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php, src/Tqdev/PhpCrudApi/RequestUtils.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":"src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b9b0d0694430e1bc4aa844b101ec29ddc1c1ed5af0935cc7c50d87070d3fa4"}},{"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-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-345","guid":"d80d4b65-bbbe-b65d-958e-7ac466af18f9","name":"Insufficient Verification of Data Authenticity","shortDescription":{"text":"Insufficient Verification of Data Authenticity"},"helpUri":"https://cwe.mitre.org/data/definitions/345.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-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-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-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":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":27,"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."]}]}