{"$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":"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":"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":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","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-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"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":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"JwsVerifier.verifyNode (cyclomatic 24): JwsVerifier.verifyNode has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Crypto/Apple/JwsVerifier.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eac8b2537749294b219aee7c4c89813f9b2fcb18948f4134db1ca143956362c"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenVerifier.parsePkcs7Signer (cyclomatic 24): TokenVerifier.parsePkcs7Signer 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/Crypto/Apple/TokenVerifier.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f295dc04d56602b11f3529e81f0cc3f3ef7a6080d0cb6984efe61d97a14d5b"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenVerifier.verifySignedAttrs (cyclomatic 21): TokenVerifier.verifySignedAttrs 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/Crypto/Apple/TokenVerifier.php"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6b58d7dafab567bc564d9ebc0ec8c8157bfc672f6200644da5f07434accf45"}},{"ruleId":"D1","level":"warning","message":{"text":"TokenVerifier.verify (cyclomatic 19): TokenVerifier.verify has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Crypto/Apple/TokenVerifier.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9dc1c0fdccf4a438f0d76c85bb6fb9b1f52ac2f22666da531aa0fbd3a86fdd"}},{"ruleId":"D2","level":"warning","message":{"text":"JwsVerifier.verifyNode (cognitive 27): JwsVerifier.verifyNode has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 6, loops 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Crypto/Apple/JwsVerifier.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"282b05f29194c473b0c1ccc6b7d46084fce7c20709af79911a628f9b97e3f132"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenVerifier.parsePkcs7Signer (cognitive 27): TokenVerifier.parsePkcs7Signer has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 10, loops 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Crypto/Apple/TokenVerifier.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79f45b7c8453f674079694aa9ea91e4b7cb00d8fed04d6bc4223c82d7a7b718"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenVerifier.verifySignedAttrs (cognitive 26): TokenVerifier.verifySignedAttrs has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 6, ternaries 2 (3 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Crypto/Apple/TokenVerifier.php"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"41191740b85566e101fddd64400297fbc3fc348a16f481894728f28bb3b5f35c"}},{"ruleId":"D2","level":"warning","message":{"text":"TokenVerifier.verify (cognitive 18): TokenVerifier.verify has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 8. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Crypto/Apple/TokenVerifier.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0e8376784c7a1ce57a3c96bc733b301ecb30a1d30214fcd5ba6a8739740f9f7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WechatConfig: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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/Config/WechatConfig.php"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7259c053208418b56db9e48e55952481015317292b998c6828664d9c63af98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 16 shared lines): src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:41-68 | src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php:41-68 | src/Plugin/Wechat/V3/Extend/ProfitSharing/DeleteReceiverPlugin.php:37-64 \u2014 These 3 members are variants of one another: a block of 16 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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd22719187e4e203d2fa8618432c41b75ece64230ef85b58e9776c5c89bba867"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (16 members, 50\u002B identical tokens): src/Plugin/Wechat/V3/Extend/Complaints/QueryPlugin.php:27-45 | src/Plugin/Wechat/V3/Extend/ProfitSharing/GetBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/App/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/App/GetTradeBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Bill/GetFundPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Bill/GetTradePlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Combine/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Combine/GetTradeBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/H5/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/H5/GetTradeBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Jsapi/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Jsapi/GetTradeBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Mini/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Mini/GetTradeBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Native/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Native/GetTradeBillPlugin.php:27-45 \u2014 These 16 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 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/Complaints/QueryPlugin.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca71b1529ff4789552366a66c59dcd00c07746a9e5d619b75ceeee5ba3cc260"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): src/Plugin/Unipay/Open/Pay/QrCode/CancelPlugin.php:31-57 | src/Plugin/Unipay/Open/Pay/QrCode/PosPlugin.php:31-58 | src/Plugin/Unipay/Open/Pay/QrCode/PosPreAuthPlugin.php:31-58 | src/Plugin/Unipay/Open/Pay/QrCode/QueryPlugin.php:31-56 | src/Plugin/Unipay/Open/Pay/QrCode/RefundPlugin.php:31-57 | src/Plugin/Unipay/Open/Pay/QrCode/ScanFeePlugin.php:31-58 | src/Plugin/Unipay/Open/Pay/QrCode/ScanPlugin.php:31-58 | src/Plugin/Unipay/Open/Pay/QrCode/ScanPreAuthPlugin.php:31-58 | src/Plugin/Unipay/Open/Pay/QrCode/ScanPreOrderPlugin.php:31-59 | src/Plugin/Unipay/Open/Pay/Web/CancelPlugin.php:31-57 | src/Plugin/Unipay/Open/Pay/Web/QueryPlugin.php:31-55 | src/Plugin/Unipay/Open/Pay/Web/RefundPlugin.php:31-57 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Unipay/Open/Pay/QrCode/CancelPlugin.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b167d80ccbb584b8ea7dcb24582e95d83e7c059cbc02766d56a97b8f4f3a880"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php:41-64 | src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php:41-64 | src/Plugin/Wechat/V2/Pay/Mp/InvokePlugin.php:41-64 | src/Plugin/Wechat/V3/Marketing/Transfer/InvokeAndroidPlugin.php:39-65 | src/Plugin/Wechat/V3/Marketing/Transfer/InvokeIosPlugin.php:39-65 | src/Plugin/Wechat/V3/Marketing/Transfer/InvokeJsapiPlugin.php:39-65 | src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php:42-65 | src/Plugin/Wechat/V3/Pay/Combine/AppInvokePlugin.php:42-65 | src/Plugin/Wechat/V3/Pay/Combine/JsapiInvokePlugin.php:43-66 | src/Plugin/Wechat/V3/Pay/Combine/MiniInvokePlugin.php:42-65 | src/Plugin/Wechat/V3/Pay/Jsapi/InvokePlugin.php:43-66 | src/Plugin/Wechat/V3/Pay/Mini/InvokePlugin.php:42-65 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa5705bfefec87ebd499e50022856b47553d8669413ad4b280175d0b3f63d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (11 members, 50\u002B identical tokens): src/Plugin/Wechat/V3/Extend/ProfitSharing/ReturnPlugin.php:35-62 | src/Plugin/Wechat/V3/Extend/ProfitSharing/UnfreezePlugin.php:35-62 | src/Plugin/Wechat/V3/Pay/App/PayPlugin.php:35-63 | src/Plugin/Wechat/V3/Pay/App/RefundPlugin.php:35-63 | src/Plugin/Wechat/V3/Pay/Combine/RefundPlugin.php:35-63 | src/Plugin/Wechat/V3/Pay/H5/RefundPlugin.php:35-63 | src/Plugin/Wechat/V3/Pay/Jsapi/RefundPlugin.php:35-63 | src/Plugin/Wechat/V3/Pay/Mini/PayPlugin.php:35-63 | src/Plugin/Wechat/V3/Pay/Mini/RefundPlugin.php:35-63 | src/Plugin/Wechat/V3/Pay/Native/RefundPlugin.php:35-63 | src/Plugin/Wechat/V3/Pay/Refund/RefundPlugin.php:35-63 \u2014 These 11 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 11 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 11 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/ProfitSharing/ReturnPlugin.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67ce58e29b34435d720ad602e21fb3fee601b5497a936b9bc718ab4082ae3d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): src/Plugin/Unipay/Qra/Pos/CancelPlugin.php:26-45 | src/Plugin/Unipay/Qra/Pos/PayPlugin.php:26-45 | src/Plugin/Unipay/Qra/Pos/QueryOpenIdPlugin.php:26-45 | src/Plugin/Unipay/Qra/Pos/QueryPlugin.php:26-45 | src/Plugin/Unipay/Qra/Pos/QueryRefundPlugin.php:26-45 | src/Plugin/Unipay/Qra/Pos/RefundPlugin.php:26-45 | src/Plugin/Unipay/Qra/Scan/ClosePlugin.php:26-45 | src/Plugin/Unipay/Qra/Scan/QueryPlugin.php:26-45 | src/Plugin/Unipay/Qra/Scan/QueryRefundPlugin.php:26-45 | src/Plugin/Unipay/Qra/Scan/RefundPlugin.php:26-45 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Unipay/Qra/Pos/CancelPlugin.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"553b3a76868100d86938d77eb55a63af28f5740c8711720cad55ef1770be8cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): src/Plugin/Wechat/V3/Extend/ProfitSharing/DownloadBillPlugin.php:26-43 | src/Plugin/Wechat/V3/Marketing/Fapiao/Blockchain/DownloadPlugin.php:27-44 | src/Plugin/Wechat/V3/Pay/App/DownloadBillPlugin.php:26-43 | src/Plugin/Wechat/V3/Pay/Bill/DownloadPlugin.php:26-43 | src/Plugin/Wechat/V3/Pay/Combine/DownloadBillPlugin.php:26-43 | src/Plugin/Wechat/V3/Pay/H5/DownloadBillPlugin.php:26-43 | src/Plugin/Wechat/V3/Pay/Jsapi/DownloadBillPlugin.php:26-43 | src/Plugin/Wechat/V3/Pay/Mini/DownloadBillPlugin.php:26-43 | src/Plugin/Wechat/V3/Pay/Native/DownloadBillPlugin.php:26-43 \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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/DownloadBillPlugin.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9210960ebb50c252b25cda9340b254da1da4517804057916d438c292b351d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): src/Plugin/Airwallex/V1/Pay/CallbackPlugin.php:66-75 | src/Plugin/Apple/Pay/CallbackPlugin.php:72-81 | src/Plugin/Paypal/V2/Pay/CallbackPlugin.php:62-71 | src/Plugin/Stripe/V1/Pay/CallbackPlugin.php:63-72 | src/Plugin/Wechat/V3/CallbackPlugin.php:71-80 | src/Plugin/Wechat/Virtual/CallbackPlugin.php:82-91 \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":"src/Plugin/Airwallex/V1/Pay/CallbackPlugin.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"f842c821e5a60acabe27796f750b40ca0cb8435a97dd04b864b4a7ba27221a04"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/Plugin/Wechat/V3/Extend/Complaints/QueryDetailPlugin.php:37-74 | src/Plugin/Wechat/V3/Extend/Complaints/QueryImagePlugin.php:25-41 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryRefundFlowPlugin.php:25-41 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryUseFlowPlugin.php:25-41 | src/Plugin/Wechat/V3/Pay/Combine/QueryPlugin.php:25-41 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/Complaints/QueryDetailPlugin.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c4ccddc04dea627deaa08a2e3730f19bc61d75805fb207378eaf6e77772874"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/Plugin/Wechat/V3/Pay/Combine/AppPayPlugin.php:34-57 | src/Plugin/Wechat/V3/Pay/Combine/H5PayPlugin.php:34-57 | src/Plugin/Wechat/V3/Pay/Combine/JsapiPayPlugin.php:34-57 | src/Plugin/Wechat/V3/Pay/Combine/MiniPayPlugin.php:34-57 | src/Plugin/Wechat/V3/Pay/Combine/NativePayPlugin.php:34-57 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/Combine/AppPayPlugin.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c043c62733f21d9b4292a115db6a0665765d10f610b03943e2289c5902a560"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): src/Provider/Airwallex.php:132-144 | src/Provider/Apple.php:132-144 | src/Provider/Paypal.php:128-140 | src/Provider/Stripe.php:133-145 | src/Provider/Wechat.php:195-207 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Provider/Airwallex.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f339ae90581194219c07ab7373570e2207d1e0a446f95a25caa192e1d31d3d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/Plugin/Airwallex/V1/Pay/CancelPlugin.php:27-45 | src/Plugin/Airwallex/V1/Pay/QueryPlugin.php:24-40 | src/Plugin/Airwallex/V1/Pay/QueryRefundPlugin.php:24-40 | src/Plugin/Airwallex/V1/Pay/RefundPlugin.php:27-48 \u2014 These 4 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 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Airwallex/V1/Pay/CancelPlugin.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc6db5436dc6ce4c551f63467780448a1ab20ee9ca60a649cffc6298d8fd5ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/Plugin/Allinpay/Tranx/ClosePlugin.php:24-41 | src/Plugin/Allinpay/Tranx/QueryConfirmPlugin.php:24-41 | src/Plugin/Allinpay/Tranx/QueryPlugin.php:24-41 | src/Plugin/Allinpay/UnitOrder/NativeClosePlugin.php:24-41 \u2014 These 4 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 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Allinpay/Tranx/ClosePlugin.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"02695c0999dd1849d64bd0a9826906edc915ae7abed5c05553b7c691d2080d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/Plugin/Wechat/V3/Marketing/Coupon/Coupons/DetailPlugin.php:35-58 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/PausePlugin.php:34-57 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryDetailPlugin.php:34-56 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/RestartPlugin.php:34-57 \u2014 These 4 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 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Marketing/Coupon/Coupons/DetailPlugin.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1fa71e2c6a5df3c2f923d43f05eb9a5a77ae6120260f5dde15123621e585d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryByWxPlugin.php:33-57 | src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryPlugin.php:33-57 | src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryReturnAdvancePlugin.php:33-57 | src/Plugin/Wechat/V3/Marketing/ECommerceRefund/ReturnAdvancePlugin.php:33-58 \u2014 These 4 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 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryByWxPlugin.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ef0fe045be7ecb08433e6d2db811b49bc972b1eea26e21cdbb7e253f5a2be1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): src/Plugin/Wechat/V3/PayScore/CreatePlugin.php:34-72 | src/Plugin/Wechat/V3/PayScore/Permissions/CreatePlugin.php:34-72 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"src/Plugin/Wechat/V3/PayScore/CreatePlugin.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9b841ee47d0d9fe27d9b13255e8c9075b4ba16e2f7df8958b8d8feb64d5fdaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 30\u002B corresponding lines): src/Plugin/Wechat/V3/Pay/App/ClosePlugin.php:36-65 | src/Plugin/Wechat/V3/Pay/H5/ClosePlugin.php:36-65 | src/Plugin/Wechat/V3/Pay/Jsapi/ClosePlugin.php:36-65 | src/Plugin/Wechat/V3/Pay/Mini/ClosePlugin.php:36-65 | src/Plugin/Wechat/V3/Pay/Native/ClosePlugin.php:36-65 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/App/ClosePlugin.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4b5f6e1734584211510008496e2e2a0beb814d3aa984ae9627d6f5509cfd38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): src/Traits/AirwallexTrait.php:64-90 | src/Traits/PaypalTrait.php:59-88 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Traits/AirwallexTrait.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e020d45d76f6700243206356cf3a33f755098ead52fcaf75225edf98f4c89a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 28\u002B corresponding lines): src/Plugin/Wechat/V3/Pay/H5/PayPlugin.php:36-64 | src/Plugin/Wechat/V3/Pay/Jsapi/PayPlugin.php:36-64 | src/Plugin/Wechat/V3/Pay/Native/PayPlugin.php:36-64 | src/Plugin/Wechat/V3/Pay/Pos/CancelPlugin.php:37-66 | src/Plugin/Wechat/V3/Pay/Pos/PayPlugin.php:37-64 | src/Plugin/Wechat/V3/Pay/Refund/RefundAbnormalPlugin.php:39-67 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 28 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/H5/PayPlugin.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eee3379f97ffb7d54c342601c981ccfbabbee250350d0d52e5ece200d1bf58b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 24\u002B corresponding lines): src/Plugin/Wechat/V3/Pay/App/QueryRefundPlugin.php:34-57 | src/Plugin/Wechat/V3/Pay/Combine/QueryRefundPlugin.php:34-57 | src/Plugin/Wechat/V3/Pay/H5/QueryRefundPlugin.php:34-57 | src/Plugin/Wechat/V3/Pay/Jsapi/QueryRefundPlugin.php:34-57 | src/Plugin/Wechat/V3/Pay/Mini/QueryRefundPlugin.php:34-57 | src/Plugin/Wechat/V3/Pay/Native/QueryRefundPlugin.php:34-57 | src/Plugin/Wechat/V3/Pay/Refund/QueryPlugin.php:34-57 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/App/QueryRefundPlugin.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d95cf8ba31b7f27a1bb3ce620e9d43a917f9ab2e6e884c1642875907acd8dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/Plugin/Airwallex/V1/Pay/CallbackPlugin.php:38-58 | src/Plugin/Paypal/V2/Pay/CallbackPlugin.php:35-54 | src/Plugin/Stripe/V1/Pay/CallbackPlugin.php:35-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 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Airwallex/V1/Pay/CallbackPlugin.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8983b175fe8352482350faaf83b7da230843a0300036882f160599833396cb61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 27\u002B corresponding lines): src/Plugin/Wechat/Openapi/Oauth/Code2SessionPlugin.php:35-63 | src/Plugin/Wechat/Openapi/Oauth/RefreshTokenPlugin.php:35-64 | src/Plugin/Wechat/Openapi/Oauth/UserInfoPlugin.php:27-53 | src/Plugin/Wechat/Openapi/Oauth/WebAccessTokenPlugin.php:35-67 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/Openapi/Oauth/Code2SessionPlugin.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd137eff0490880fd537d23c79c87ef0415f822e6c16308580effdcd2b095fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): src/Plugin/Alipay/CallbackPlugin.php:37-54 | src/Plugin/Alipay/V2/AppCallbackPlugin.php:37-58 | src/Plugin/Unipay/Open/CallbackPlugin.php:34-52 \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":"src/Plugin/Alipay/CallbackPlugin.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9180244149e303cf7a52a370c7fbd1a910edb2b91d893281de2ca0792ab37980"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/Plugin/Alipay/V2/AddRadarPlugin.php:32-53 | src/Plugin/Allinpay/AddRadarPlugin.php:35-55 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Alipay/V2/AddRadarPlugin.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5917cc27f0b03eea730c928ba017df7c0dd2f3e3517355819166b80a54e01b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/Traits/AllinpayTrait.php:90-114 | src/Traits/JsbTrait.php:36-54 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Traits/AllinpayTrait.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d3487cde8e5e0236728d60ce2754434a5de32ad37cc43fd5fd28b1b33ed2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): src/Plugin/Wechat/V3/Extend/ProfitSharing/QueryMerchantConfigsPlugin.php:33-52 | src/Plugin/Wechat/V3/Marketing/ECommerceBalance/QueryDayEndPlugin.php:36-58 | src/Plugin/Wechat/V3/Marketing/ECommerceBalance/QueryPlugin.php:33-54 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/ProfitSharing/QueryMerchantConfigsPlugin.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"42933c36ac6c727585d136fba3ac8580ab5e3bea6f4f47073affa4278f4940a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/Plugin/Alipay/V3/AddRadarPlugin.php:32-48 | src/Plugin/Apple/AddRadarPlugin.php:35-52 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Alipay/V3/AddRadarPlugin.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"392f5d7e87e8777ac67ff1d58bd3ba7f494e4d4a88f08f2b8cf098a2711438ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): src/Plugin/Allinpay/AddPayloadSignPlugin.php:36-60 | src/Plugin/Allinpay/Pay/ScanPlugin.php:35-59 | src/Plugin/Allinpay/Tranx/CancelPlugin.php:24-47 | src/Plugin/Allinpay/Tranx/RefundPlugin.php:35-62 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Allinpay/AddPayloadSignPlugin.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70756e77a3fa1a639eee7e4137a20c04f3e367e36749ad68376a76ba53c5c69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/Plugin/Unipay/Qra/VerifySignaturePlugin.php:34-49 | src/Plugin/Wechat/V2/VerifySignaturePlugin.php:34-49 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Unipay/Qra/VerifySignaturePlugin.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b150feae0bc87de9385745ee28356dd4fe6ab5a34c14d49c7f9c98799f812d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/Traits/UnipayTrait.php:87-101 | src/Traits/WechatTrait.php:112-128 \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":"src/Traits/UnipayTrait.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4406c576ca438aa041ce09885429e5f12b674878f53e7d26256d05decea02473"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 18\u002B corresponding lines): src/Plugin/Airwallex/V1/AddRadarPlugin.php:36-53 | src/Plugin/Douyin/V1/AddRadarPlugin.php:33-50 | src/Plugin/Jsb/AddRadarPlugin.php:29-46 | src/Plugin/Paypal/V2/AddRadarPlugin.php:33-50 | src/Plugin/Stripe/V1/AddRadarPlugin.php:35-52 | src/Plugin/Unipay/AddRadarPlugin.php:32-49 | src/Plugin/Wechat/AddRadarPlugin.php:31-48 \u2014 These 7 members are one piece of code written 7 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Airwallex/V1/AddRadarPlugin.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"16030e078b0a17bc0579716b4dc248428179801a70b2b8b7ad3377633bfc3aa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): src/Plugin/Allinpay/VerifySignaturePlugin.php:37-52 | src/Plugin/Bestpay/V1/VerifySignaturePlugin.php:42-59 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Allinpay/VerifySignaturePlugin.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb8bd2a1fcd809b5b07d24a2644d13f7af667058b2f3c04faf6c7157cf4aa30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/Plugin/Douyin/V1/ObtainClientTokenPlugin.php:29-43 | src/Plugin/Paypal/V2/ObtainAccessTokenPlugin.php:29-43 \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":"src/Plugin/Douyin/V1/ObtainClientTokenPlugin.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7041e89a5bb20eb2ce80f2cd06e35a6fb127c314df622d4743a5562c57b24f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): src/Plugin/Unipay/Open/Pay/H5/PayPlugin.php:31-59 | src/Plugin/Unipay/Open/Pay/Web/PayPlugin.php:32-61 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Unipay/Open/Pay/H5/PayPlugin.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c525e9607a78f0ce2f9523aba11a5f05a2340724c1a90ecf9dd6eee852fe9e3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:108-121 | src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php:108-121 \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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ddfe08a35dba2e7914683b9b86b4544d349564dac9d30626b076fe3a2ca80a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): src/Plugin/Airwallex/V1/Pay/ConfirmPlugin.php:27-51 | src/Plugin/Airwallex/V1/Pay/PayPlugin.php:30-57 \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":"src/Plugin/Airwallex/V1/Pay/ConfirmPlugin.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8a8936664c52de3c66bee41116f605aaceee5dc8c0abaa85c1a108542f2a4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/Shortcut/Unipay/CancelShortcut.php:35-45 | src/Shortcut/Unipay/RefundShortcut.php:35-45 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Shortcut/Unipay/CancelShortcut.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5080aa863fc2830e3bbad2a9c3e70a97d89db4154103fbbb84889262e94b88bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): src/Plugin/Alipay/V3/VerifySignaturePlugin.php:37-49 | src/Plugin/Wechat/V3/VerifySignaturePlugin.php:39-51 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Alipay/V3/VerifySignaturePlugin.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"80197bbc6023048fd0dd159cc6c5998d8ecf03af8325f6212a6d50f2b12d8b2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): src/Shortcut/Airwallex/QueryShortcut.php:31-40 | src/Shortcut/Douyin/QueryShortcut.php:35-45 | src/Shortcut/Paypal/QueryShortcut.php:31-40 | src/Shortcut/Stripe/QueryShortcut.php:29-38 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 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":"src/Shortcut/Airwallex/QueryShortcut.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bdb4e3bb7c018b496551633d08e92f115242cfbcd9b858bb0fd7577642dd08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/Plugin/Wechat/V3/Pay/Combine/JsapiInvokePlugin.php:108-112 | src/Plugin/Wechat/V3/Pay/Jsapi/InvokePlugin.php:108-112 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/Combine/JsapiInvokePlugin.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5ad75036a5afa08d0af9dbbbf7eb08a31ddd7e3a11c61bae1b2cfb5b8ad8aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/Shortcut/Wechat/CancelShortcut.php:31-40 | src/Shortcut/Wechat/TransferShortcut.php:31-40 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"src/Shortcut/Wechat/CancelShortcut.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1959b322056c9fed10c16e0a084c6c99878e23662149d2f662c8310a7963e3b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 11\u002B corresponding lines): src/Traits/AirwallexTrait.php:35-45 | src/Traits/AllinpayTrait.php:25-35 | src/Traits/AppleTrait.php:42-52 | src/Traits/DouyinTrait.php:37-47 | src/Traits/PaypalTrait.php:35-45 | src/Traits/StripeTrait.php:28-38 | src/Traits/UnipayTrait.php:27-37 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Traits/AirwallexTrait.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"101ba6eb4e3efaa0c4ed948b2fcef0d771e45a254e16573fcf0cf7171ab417ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): src/Plugin/Alipay/V2/ResponseHtmlPlugin.php:61-69 | src/Plugin/Unipay/Open/ResponseHtmlPlugin.php:39-46 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"src/Plugin/Alipay/V2/ResponseHtmlPlugin.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b49a97702df7c204ab4a8ee7ddf2f9f9410cd2a217c1fe48c3682c9af6ffa9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): src/Plugin/Apple/AddRadarPlugin.php:62-78 | src/Plugin/Stripe/V1/AddRadarPlugin.php:60-81 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Apple/AddRadarPlugin.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3692c64bcfabc8a34a1f6c39b6803f355a480193c294f887524e039313983da"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/Plugin/Wechat/V3/Marketing/Transfer/CreatePlugin.php:103-111 | src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:137-143 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Marketing/Transfer/CreatePlugin.php"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea31cf463fc10bd126be5c60bd07d11bf4980c2be253af9324377fcea8a48a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): src/Plugin/Wechat/V3/Extend/ProfitSharing/DeleteReceiverPlugin.php:86-95 | src/Plugin/Wechat/V3/Pay/Jsapi/PayPlugin.php:87-97 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/DeleteReceiverPlugin.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4b54ea79eed8d8cf976ece120fec68457753bd9cce94e64328eaf6abbe9852"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/Plugin/Alipay/V3/VerifySignaturePlugin.php:116-118 | src/Traits/WechatTrait.php:481-483 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"src/Plugin/Alipay/V3/VerifySignaturePlugin.php"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de10c0c0de4269c394721a193efdf11fab02c1a2d65b3f4f95c879e3293e1fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:84-92 | src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php:84-92 \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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e2edf3259ac0c731ec26d3bc82741ca692a8e2df6bb33977886ec91b6dc0bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/Plugin/Alipay/V2/StartPlugin.php:113-119 | src/Traits/AlipayTrait.php:100-106 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Alipay/V2/StartPlugin.php"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0c3bcc46bf2dd7337dc19e5b99185ea06a47a1b720cd8057d67f297a3a1f0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/Enum/PayMode.php:33-37 | src/Enum/Wechat/VirtualPayEnv.php:25-29 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Enum/PayMode.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30568c17603ed260d17be41488ec036d184ad76ffae029624acba53c4566df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 5): src/Plugin/Wechat/V3/PayScore/CancelPlugin.php:35-74 | src/Plugin/Wechat/V3/PayScore/CompletePlugin.php:35-74 | src/Plugin/Wechat/V3/PayScore/ModifyPlugin.php:34-73 | src/Plugin/Wechat/V3/PayScore/PayPlugin.php:34-73 | src/Plugin/Wechat/V3/PayScore/SyncPlugin.php:35-74 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/PayScore/CancelPlugin.php:35\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/PayScore/CancelPlugin.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f82f5c3b357b4e066cc85e2dcc734b61e3a05efb49a81fce4feee586a5bf915"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 12): src/Plugin/Unipay/Open/Pay/QrCode/CancelPlugin.php:31-57 | src/Plugin/Unipay/Open/Pay/QrCode/PosPlugin.php:31-58 | src/Plugin/Unipay/Open/Pay/QrCode/PosPreAuthPlugin.php:31-58 | src/Plugin/Unipay/Open/Pay/QrCode/QueryPlugin.php:31-56 | src/Plugin/Unipay/Open/Pay/QrCode/RefundPlugin.php:31-57 | src/Plugin/Unipay/Open/Pay/QrCode/ScanFeePlugin.php:31-58 | src/Plugin/Unipay/Open/Pay/QrCode/ScanPlugin.php:31-58 | src/Plugin/Unipay/Open/Pay/QrCode/ScanPreAuthPlugin.php:31-58 | src/Plugin/Unipay/Open/Pay/QrCode/ScanPreOrderPlugin.php:31-59 | src/Plugin/Unipay/Open/Pay/Web/CancelPlugin.php:31-57 | src/Plugin/Unipay/Open/Pay/Web/QueryPlugin.php:31-55 | src/Plugin/Unipay/Open/Pay/Web/RefundPlugin.php:31-57 \u2014 before extracting anything, compare \u0060src/Plugin/Unipay/Open/Pay/QrCode/CancelPlugin.php\u0060 and \u0060src/Plugin/Unipay/Open/Pay/QrCode/RefundPlugin.php\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other 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/Plugin/Unipay/Open/Pay/QrCode/CancelPlugin.php:31\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Unipay/Open/Pay/QrCode/CancelPlugin.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22a122426013783418facb53a25b20a054424d8e9e9a1341371afbcf5a0f416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 4): src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryByWxPlugin.php:33-57 | src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryPlugin.php:33-57 | src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryReturnAdvancePlugin.php:33-57 | src/Plugin/Wechat/V3/Marketing/ECommerceRefund/ReturnAdvancePlugin.php:33-58 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryByWxPlugin.php:33\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Marketing/ECommerceRefund/QueryByWxPlugin.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e32695b38e5ee036d94dda798e272da13bad2ce56961473e02d00a31b479a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): src/Plugin/Wechat/V2/Papay/Direct/ApplyPlugin.php:36-57 | src/Plugin/Wechat/V2/Papay/Direct/ContractOrderPlugin.php:36-60 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V2/Papay/Direct/ApplyPlugin.php\u0060 and \u0060src/Plugin/Wechat/V2/Papay/Direct/ContractOrderPlugin.php\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other 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/Plugin/Wechat/V2/Papay/Direct/ApplyPlugin.php:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V2/Papay/Direct/ApplyPlugin.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3ed836e45d228ac3bf889f5f298eaa83ccbc7885069a5ccae6295acf3230ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 5): src/Plugin/Wechat/V3/Pay/App/ClosePlugin.php:43-65 | src/Plugin/Wechat/V3/Pay/H5/ClosePlugin.php:43-65 | src/Plugin/Wechat/V3/Pay/Jsapi/ClosePlugin.php:43-65 | src/Plugin/Wechat/V3/Pay/Mini/ClosePlugin.php:43-65 | src/Plugin/Wechat/V3/Pay/Native/ClosePlugin.php:43-65 \u2014 \u0060src/Plugin/Wechat/V3/Pay/H5/ClosePlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Pay/Jsapi/ClosePlugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Pay/App/ClosePlugin.php:43\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/App/ClosePlugin.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f70359fd6ddc376aaa1e9585b0f3dd1f68aa402c77c720519c91ee1b02b5ee5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 4): src/Plugin/Wechat/V3/Pay/H5/PayPlugin.php:42-64 | src/Plugin/Wechat/V3/Pay/Jsapi/PayPlugin.php:42-64 | src/Plugin/Wechat/V3/Pay/Native/PayPlugin.php:42-64 | src/Plugin/Wechat/V3/Pay/Pos/PayPlugin.php:43-64 \u2014 \u0060src/Plugin/Wechat/V3/Pay/H5/PayPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Pay/Jsapi/PayPlugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Pay/H5/PayPlugin.php:42\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/H5/PayPlugin.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0528c5e71baacfa7c467c1d4565fc567c80dc376eeee2393145f95242ff5bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/Plugin/Wechat/V3/Marketing/Transfer/CancelPlugin.php:33-55 | src/Plugin/Wechat/V3/Marketing/Transfer/QueryByWxPlugin.php:33-55 | src/Plugin/Wechat/V3/Marketing/Transfer/QueryPlugin.php:33-55 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Marketing/Transfer/CancelPlugin.php:33\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Marketing/Transfer/CancelPlugin.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"305e7fcc3e51c57bab40b69505b73834171133bcb994403399d0e94de0207119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/Plugin/Wechat/V3/Pay/App/PayPlugin.php:41-63 | src/Plugin/Wechat/V3/Pay/Mini/PayPlugin.php:41-63 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Pay/App/PayPlugin.php:41\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/App/PayPlugin.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd099db4b1821da4d86caa572cd2fc35eadb160750a20450c44301ed0a5995e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): src/Plugin/Wechat/V3/PayScore/CreatePlugin.php:50-72 | src/Plugin/Wechat/V3/PayScore/Permissions/CreatePlugin.php:50-72 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/PayScore/CreatePlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/PayScore/Permissions/CreatePlugin.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Plugin/Wechat/V3/PayScore/CreatePlugin.php:50\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/PayScore/CreatePlugin.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f3a98d4e42ed876e1e720c0ee5ff0aa066ea557f3e65d2b5b1bcb379fd50ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): src/Plugin/Wechat/V3/Pay/Combine/AppPayPlugin.php:36-57 | src/Plugin/Wechat/V3/Pay/Combine/H5PayPlugin.php:36-57 | src/Plugin/Wechat/V3/Pay/Combine/JsapiPayPlugin.php:36-57 | src/Plugin/Wechat/V3/Pay/Combine/MiniPayPlugin.php:36-57 | src/Plugin/Wechat/V3/Pay/Combine/NativePayPlugin.php:36-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Pay/Combine/AppPayPlugin.php:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/Combine/AppPayPlugin.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c10ca01d671329f2c3719b4f27d5fd5890fbe39eb1bb644bdf6b60dd4875ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 3): src/Plugin/Wechat/V3/Marketing/Coupon/Stock/PausePlugin.php:36-57 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryDetailPlugin.php:36-56 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/RestartPlugin.php:36-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Marketing/Coupon/Stock/PausePlugin.php:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Marketing/Coupon/Stock/PausePlugin.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75d23cf795ebdd078e70258c6cc09813ead2194829a2163c9c25c0b7038aedd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/Plugin/Wechat/V3/Extend/ProfitSharing/QueryPlugin.php:34-55 | src/Plugin/Wechat/V3/Extend/ProfitSharing/QueryReturnPlugin.php:34-55 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/QueryPlugin.php:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/ProfitSharing/QueryPlugin.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c46575094564707d5004f2cf622850be51cb2e55a6fbb1e3fb29a53e70da678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/Plugin/Allinpay/Pay/NativePlugin.php:35-55 | src/Plugin/Allinpay/Pay/PayPlugin.php:35-55 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Allinpay/Pay/NativePlugin.php:35\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":"src/Plugin/Allinpay/Pay/NativePlugin.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da8e6473762777a1454ec69134066c6a306d1044ed282ce8d93554d77700cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/Plugin/Allinpay/Tranx/CancelPlugin.php:28-47 | src/Plugin/Allinpay/Tranx/RefundPlugin.php:42-62 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Allinpay/Tranx/CancelPlugin.php:28\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/Plugin/Allinpay/Tranx/RefundPlugin.php:40\u0060 calls \u0060getProviderConfig\u0060 and \u0060src/Plugin/Allinpay/Tranx/CancelPlugin.php:26\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":"src/Plugin/Allinpay/Tranx/CancelPlugin.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdbb85a34d48f947fe1f89f91d5cc3d4f57fa4f489070ca68add10fab95a1b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 10): src/Plugin/Unipay/Qra/Pos/CancelPlugin.php:26-45 | src/Plugin/Unipay/Qra/Pos/PayPlugin.php:26-45 | src/Plugin/Unipay/Qra/Pos/QueryOpenIdPlugin.php:26-45 | src/Plugin/Unipay/Qra/Pos/QueryPlugin.php:26-45 | src/Plugin/Unipay/Qra/Pos/QueryRefundPlugin.php:26-45 | src/Plugin/Unipay/Qra/Pos/RefundPlugin.php:26-45 | src/Plugin/Unipay/Qra/Scan/ClosePlugin.php:26-45 | src/Plugin/Unipay/Qra/Scan/QueryPlugin.php:26-45 | src/Plugin/Unipay/Qra/Scan/QueryRefundPlugin.php:26-45 | src/Plugin/Unipay/Qra/Scan/RefundPlugin.php:26-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Unipay/Qra/Pos/CancelPlugin.php:26\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Unipay/Qra/Pos/CancelPlugin.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bce2e96f0927c20f691e36dbd61b51eae0cdb9ed691f84a257118021e1f9e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 7): src/Plugin/Wechat/V3/Pay/App/RefundPlugin.php:44-63 | src/Plugin/Wechat/V3/Pay/Combine/RefundPlugin.php:44-63 | src/Plugin/Wechat/V3/Pay/H5/RefundPlugin.php:44-63 | src/Plugin/Wechat/V3/Pay/Jsapi/RefundPlugin.php:44-63 | src/Plugin/Wechat/V3/Pay/Mini/RefundPlugin.php:44-63 | src/Plugin/Wechat/V3/Pay/Native/RefundPlugin.php:44-63 | src/Plugin/Wechat/V3/Pay/Refund/RefundPlugin.php:44-63 \u2014 \u0060src/Plugin/Wechat/V3/Pay/App/RefundPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Pay/Combine/RefundPlugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Pay/App/RefundPlugin.php:44\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/App/RefundPlugin.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cab989a513a238b31594812ac5e8c7df387425781f4d30e7f0a916bdedd90d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/Plugin/Apple/Pay/QueryHistoryPlugin.php:24-43 | src/Plugin/Apple/Pay/QueryPlugin.php:24-43 | src/Plugin/Apple/Pay/RefundPlugin.php:24-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Apple/Pay/QueryHistoryPlugin.php:24\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Apple/Pay/QueryHistoryPlugin.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc41b61cdb4cfd7a5ad20f0b1679f050a24e5760ad9438966b5b3e74747467c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/Plugin/Stripe/V1/Pay/CancelPlugin.php:24-43 | src/Plugin/Stripe/V1/Pay/QueryPlugin.php:24-43 | src/Plugin/Stripe/V1/Pay/QueryRefundPlugin.php:24-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Stripe/V1/Pay/CancelPlugin.php:24\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Stripe/V1/Pay/CancelPlugin.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2234d530661f522ea17423b724b9e0f2bbd37421d82d517c4b9abe0f67c012eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): src/Plugin/Wechat/V2/Pay/Pos/CancelPlugin.php:35-54 | src/Plugin/Wechat/V2/Pay/Pos/PayPlugin.php:35-54 | src/Plugin/Wechat/V2/Pay/Pos/QueryPlugin.php:35-54 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V2/Pay/Pos/CancelPlugin.php\u0060 and \u0060src/Plugin/Wechat/V2/Pay/Pos/PayPlugin.php\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other 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/Plugin/Wechat/V2/Pay/Pos/CancelPlugin.php:35\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V2/Pay/Pos/CancelPlugin.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"000f88eebba80df560bfe7ffe500f95e661800d9a0e6323fbd0cfa7872a72a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/Plugin/Alipay/V3/Pay/PosPlugin.php:35-54 | src/Plugin/Alipay/V3/Pay/PrecreatePlugin.php:35-54 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Alipay/V3/Pay/PosPlugin.php:35\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Alipay/V3/Pay/PosPlugin.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69aff79927e2235ee875f05dd05d523ec664c2131196b62176b133abe35b425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 16): src/Plugin/Wechat/V3/Extend/Complaints/QueryPlugin.php:27-45 | src/Plugin/Wechat/V3/Extend/ProfitSharing/GetBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/App/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/App/GetTradeBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Bill/GetFundPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Bill/GetTradePlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Combine/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Combine/GetTradeBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/H5/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/H5/GetTradeBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Jsapi/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Jsapi/GetTradeBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Mini/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Mini/GetTradeBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Native/GetFundBillPlugin.php:27-45 | src/Plugin/Wechat/V3/Pay/Native/GetTradeBillPlugin.php:27-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 16 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 16 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/Complaints/QueryPlugin.php:27\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/Complaints/QueryPlugin.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"77445b0d667ad4d56960f2588edcf90387232a59db0b89fa685f77cf0f369a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 7): src/Plugin/Wechat/V3/Pay/App/QueryRefundPlugin.php:39-57 | src/Plugin/Wechat/V3/Pay/Combine/QueryRefundPlugin.php:39-57 | src/Plugin/Wechat/V3/Pay/H5/QueryRefundPlugin.php:39-57 | src/Plugin/Wechat/V3/Pay/Jsapi/QueryRefundPlugin.php:39-57 | src/Plugin/Wechat/V3/Pay/Mini/QueryRefundPlugin.php:39-57 | src/Plugin/Wechat/V3/Pay/Native/QueryRefundPlugin.php:39-57 | src/Plugin/Wechat/V3/Pay/Refund/QueryPlugin.php:39-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Pay/App/QueryRefundPlugin.php:39\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/App/QueryRefundPlugin.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1268268904b2ecf29af8ffde80eb3418fc77cce60f1946ade640ea65a79087d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 3): src/Plugin/Bestpay/V1/Pay/H5/PayPlugin.php:30-48 | src/Plugin/Bestpay/V1/Pay/Scan/PayPlugin.php:30-44 | src/Plugin/Bestpay/V1/Pay/Web/PayPlugin.php:30-48 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Bestpay/V1/Pay/H5/PayPlugin.php:30\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Bestpay/V1/Pay/H5/PayPlugin.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdaaa1d42a25faffe596a046a2dcdc593fdd38f68b60e95eb1f50293261282a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/Plugin/Wechat/V3/PayScore/CreatePlugin.php:36-54 | src/Plugin/Wechat/V3/PayScore/Permissions/CreatePlugin.php:36-54 | src/Plugin/Wechat/V3/PayScore/Permissions/TerminatePlugin.php:41-59 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/PayScore/CreatePlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/PayScore/Permissions/CreatePlugin.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/PayScore/CreatePlugin.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bdfef54285b9ffe4167c92e9bcbbf7a707671b2f4c3916209816b83efbd8a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): src/Plugin/Allinpay/Tranx/ClosePlugin.php:24-41 | src/Plugin/Allinpay/Tranx/QueryConfirmPlugin.php:24-41 | src/Plugin/Allinpay/Tranx/QueryPlugin.php:24-41 | src/Plugin/Allinpay/UnitOrder/NativeClosePlugin.php:24-41 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Allinpay/Tranx/ClosePlugin.php:24\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Allinpay/Tranx/ClosePlugin.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc5da37f27d33ea1d597c122374c560ba613fd024f5b6fd3a4770997c7f0832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/Plugin/Wechat/V3/Marketing/Fapiao/Blockchain/GetDownloadInfoPlugin.php:24-41 | src/Plugin/Wechat/V3/Marketing/Fapiao/QueryPlugin.php:24-41 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Marketing/Fapiao/Blockchain/GetDownloadInfoPlugin.php:24\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Marketing/Fapiao/Blockchain/GetDownloadInfoPlugin.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e47d1f1f286101ee0dad319761b5236ef2dbe2db28b2c115cc4dcda2ed19aae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 15): src/Plugin/Wechat/V3/Extend/Complaints/CompletePlugin.php:38-54 | src/Plugin/Wechat/V3/Marketing/Coupon/Coupons/QueryUserPlugin.php:44-59 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryItemsPlugin.php:43-58 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryMerchantsPlugin.php:43-58 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/StartPlugin.php:40-56 | src/Plugin/Wechat/V3/Pay/App/QueryByWxPlugin.php:41-56 | src/Plugin/Wechat/V3/Pay/App/QueryPlugin.php:41-56 | src/Plugin/Wechat/V3/Pay/H5/QueryByWxPlugin.php:41-56 | src/Plugin/Wechat/V3/Pay/H5/QueryPlugin.php:41-56 | src/Plugin/Wechat/V3/Pay/Jsapi/QueryByWxPlugin.php:41-56 | src/Plugin/Wechat/V3/Pay/Jsapi/QueryPlugin.php:41-56 | src/Plugin/Wechat/V3/Pay/Mini/QueryByWxPlugin.php:41-56 | src/Plugin/Wechat/V3/Pay/Mini/QueryPlugin.php:41-56 | src/Plugin/Wechat/V3/Pay/Native/QueryByWxPlugin.php:41-56 | src/Plugin/Wechat/V3/Pay/Native/QueryPlugin.php:41-56 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryItemsPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryMerchantsPlugin.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/Plugin/Wechat/V3/Extend/Complaints/CompletePlugin.php:38\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/Complaints/CompletePlugin.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"275567abe737131543285d9ae647c6b95df204de922d7ce2acabfec0a063a572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 9): src/Plugin/Wechat/V3/Extend/ProfitSharing/ReturnPlugin.php:41-56 | src/Plugin/Wechat/V3/Extend/ProfitSharing/UnfreezePlugin.php:41-56 | src/Plugin/Wechat/V3/Pay/App/RefundPlugin.php:41-57 | src/Plugin/Wechat/V3/Pay/Combine/RefundPlugin.php:41-57 | src/Plugin/Wechat/V3/Pay/H5/RefundPlugin.php:41-57 | src/Plugin/Wechat/V3/Pay/Jsapi/RefundPlugin.php:41-57 | src/Plugin/Wechat/V3/Pay/Mini/RefundPlugin.php:41-57 | src/Plugin/Wechat/V3/Pay/Native/RefundPlugin.php:41-57 | src/Plugin/Wechat/V3/Pay/Refund/RefundPlugin.php:41-57 \u2014 \u0060src/Plugin/Wechat/V3/Pay/App/RefundPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Pay/Combine/RefundPlugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/ReturnPlugin.php:41\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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/ReturnPlugin.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f8d0e78288d8bda2451c8111bdb00b6069c8047f38530d596ade7cd52bb7c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): src/Plugin/Paypal/V2/Pay/CapturePlugin.php:24-40 | src/Plugin/Paypal/V2/Pay/QueryPlugin.php:24-40 | src/Plugin/Paypal/V2/Pay/QueryRefundPlugin.php:24-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Paypal/V2/Pay/CapturePlugin.php:24\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Paypal/V2/Pay/CapturePlugin.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"4613e2f0919e6f87b1953e8ea3d653254b71deb54fae7d3ebeb4aa0c0d045cea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 8): src/Plugin/Wechat/V3/Extend/ProfitSharing/DownloadBillPlugin.php:26-41 | src/Plugin/Wechat/V3/Pay/App/DownloadBillPlugin.php:26-41 | src/Plugin/Wechat/V3/Pay/Bill/DownloadPlugin.php:26-41 | src/Plugin/Wechat/V3/Pay/Combine/DownloadBillPlugin.php:26-41 | src/Plugin/Wechat/V3/Pay/H5/DownloadBillPlugin.php:26-41 | src/Plugin/Wechat/V3/Pay/Jsapi/DownloadBillPlugin.php:26-41 | src/Plugin/Wechat/V3/Pay/Mini/DownloadBillPlugin.php:26-41 | src/Plugin/Wechat/V3/Pay/Native/DownloadBillPlugin.php:26-41 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/DownloadBillPlugin.php:26\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. 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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/DownloadBillPlugin.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db5f57755865930c8f0944780a292b91a6c28b06681f929d47853af7eb70bda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 7): src/Plugin/Wechat/V3/PayScore/CancelPlugin.php:54-68 | src/Plugin/Wechat/V3/PayScore/CompletePlugin.php:54-68 | src/Plugin/Wechat/V3/PayScore/CreatePlugin.php:53-68 | src/Plugin/Wechat/V3/PayScore/ModifyPlugin.php:53-67 | src/Plugin/Wechat/V3/PayScore/PayPlugin.php:53-67 | src/Plugin/Wechat/V3/PayScore/Permissions/CreatePlugin.php:53-68 | src/Plugin/Wechat/V3/PayScore/SyncPlugin.php:54-68 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/PayScore/CreatePlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/PayScore/Permissions/CreatePlugin.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Plugin/Wechat/V3/PayScore/CancelPlugin.php:54\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/Plugin/Wechat/V3/PayScore/CancelPlugin.php:70\u0060 calls \u0060getPayload\u0060, \u0060forget\u0060 and \u0060src/Plugin/Wechat/V3/PayScore/CreatePlugin.php:70\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":"src/Plugin/Wechat/V3/PayScore/CancelPlugin.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f988f62a7afc0e72bbf150882b1f3139d0875ed4fe98895d0be1ec14b8d22312"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:47-62 | src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php:47-62 | src/Plugin/Wechat/V3/Extend/ProfitSharing/DeleteReceiverPlugin.php:43-58 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:47\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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bbcf0bc3493d62999f2c5e8ad31caeec7d32d450ca18d41d995327e066250f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): src/Plugin/Douyin/V1/GetClientTokenPlugin.php:70-84 | src/Plugin/Douyin/V1/ResponsePlugin.php:42-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Douyin/V1/GetClientTokenPlugin.php:70\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":"src/Plugin/Douyin/V1/GetClientTokenPlugin.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f64313be3dc5ee51edd1c2a512667ab2a0ef8b74970f099885a92aa44bab359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Plugin/Douyin/V1/Refund/AuditPlugin.php:28-43 | src/Plugin/Douyin/V1/Refund/QueryPlugin.php:28-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Douyin/V1/Refund/AuditPlugin.php:28\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Douyin/V1/Refund/AuditPlugin.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e08e3e6e2c67f37179f86184a849fc5dec806cfe07510d864e726d168765d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Plugin/Wechat/V3/Marketing/ECommerceBalance/QueryDayEndPlugin.php:43-58 | src/Plugin/Wechat/V3/Marketing/ECommerceBalance/QueryPlugin.php:39-54 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Marketing/ECommerceBalance/QueryDayEndPlugin.php:43\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Marketing/ECommerceBalance/QueryDayEndPlugin.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a055d14a26bf241950454e980397a98ee1abbd56ee251a0c6d419eefbab9fb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5): src/Plugin/Wechat/V3/Extend/Complaints/QueryDetailPlugin.php:37-51 | src/Plugin/Wechat/V3/Extend/Complaints/QueryImagePlugin.php:25-39 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryRefundFlowPlugin.php:25-39 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryUseFlowPlugin.php:25-39 | src/Plugin/Wechat/V3/Pay/Combine/QueryPlugin.php:25-39 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/Complaints/QueryDetailPlugin.php:37\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. 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":"src/Plugin/Wechat/V3/Extend/Complaints/QueryDetailPlugin.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbdcb28a4d060f5631364fe899ba7a0f8cf1d3a73ac96d951208e56524bf8ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/Plugin/Allinpay/Pay/NativePlugin.php:43-57 | src/Plugin/Allinpay/Pay/PayPlugin.php:43-57 | src/Plugin/Allinpay/Pay/ScanPlugin.php:43-59 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Allinpay/Pay/NativePlugin.php:43\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Allinpay/Pay/NativePlugin.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24daa5081ffaa79012ae9f52e64d670efa26627b74785510949b59e7aee2ae7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Plugin/Airwallex/V1/Pay/QueryPlugin.php:26-40 | src/Plugin/Airwallex/V1/Pay/QueryRefundPlugin.php:26-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Airwallex/V1/Pay/QueryPlugin.php:26\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Airwallex/V1/Pay/QueryPlugin.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f58b1854a9d2ac47f19931502f6155765b88da9af3c0a2ff675a85827d9c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 11): src/Plugin/Wechat/V3/Extend/ProfitSharing/ReturnPlugin.php:43-56 | src/Plugin/Wechat/V3/Extend/ProfitSharing/UnfreezePlugin.php:43-56 | src/Plugin/Wechat/V3/Pay/App/PayPlugin.php:43-57 | src/Plugin/Wechat/V3/Pay/App/RefundPlugin.php:43-57 | src/Plugin/Wechat/V3/Pay/Combine/RefundPlugin.php:43-57 | src/Plugin/Wechat/V3/Pay/H5/RefundPlugin.php:43-57 | src/Plugin/Wechat/V3/Pay/Jsapi/RefundPlugin.php:43-57 | src/Plugin/Wechat/V3/Pay/Mini/PayPlugin.php:43-57 | src/Plugin/Wechat/V3/Pay/Mini/RefundPlugin.php:43-57 | src/Plugin/Wechat/V3/Pay/Native/RefundPlugin.php:43-57 | src/Plugin/Wechat/V3/Pay/Refund/RefundPlugin.php:43-57 \u2014 \u0060src/Plugin/Wechat/V3/Pay/App/RefundPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Pay/Combine/RefundPlugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 52 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/ReturnPlugin.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/ReturnPlugin.php:41\u0060 calls \u0060getPayload\u0060 and \u0060src/Plugin/Wechat/V3/Pay/App/PayPlugin.php:41\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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/ReturnPlugin.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4cb63a18dcf29bf395bbdee94e10228923c3abc0ff560661553416e4a41e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:49-62 | src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php:49-62 | src/Plugin/Wechat/V3/Extend/ProfitSharing/DeleteReceiverPlugin.php:45-58 | src/Plugin/Wechat/V3/Pay/H5/PayPlugin.php:44-58 | src/Plugin/Wechat/V3/Pay/Jsapi/PayPlugin.php:44-58 | src/Plugin/Wechat/V3/Pay/Native/PayPlugin.php:44-58 | src/Plugin/Wechat/V3/Pay/Pos/PayPlugin.php:45-58 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:49\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:47\u0060 calls \u0060getPayload\u0060 and \u0060src/Plugin/Wechat/V3/Pay/H5/PayPlugin.php:42\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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"af30a035c90055f3bec3da1a186390986cf919a0555b4b8f8f183d924e54a654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 6): src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php:42-55 | src/Plugin/Wechat/V3/Pay/Combine/AppInvokePlugin.php:42-55 | src/Plugin/Wechat/V3/Pay/Combine/JsapiInvokePlugin.php:43-56 | src/Plugin/Wechat/V3/Pay/Combine/MiniInvokePlugin.php:42-55 | src/Plugin/Wechat/V3/Pay/Jsapi/InvokePlugin.php:43-56 | src/Plugin/Wechat/V3/Pay/Mini/InvokePlugin.php:42-55 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Pay/Combine/AppInvokePlugin.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Plugin/Wechat/V3/Pay/App/InvokePlugin.php:42\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f21324462bd3671cf4a29f34fcb86386ad66ecf123913f601ed9dca0c0a1a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php:41-54 | src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php:41-54 | src/Plugin/Wechat/V2/Pay/Mp/InvokePlugin.php:41-54 \u2014 \u0060src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php\u0060 and \u0060src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php:41\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b057279d7f2de6f371c0c9dfe1274114c2d794dee07499098fcf2a6f5ac4bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 3): src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:50-62 | src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php:50-62 | src/Plugin/Wechat/V3/Pay/Refund/RefundAbnormalPlugin.php:49-62 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:50\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e464c99bd9ccc844bfaa247572e8f51bf7fa6d663b933bfd269e07dd1532c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 29): src/Plugin/Wechat/V3/Marketing/Coupon/Coupons/QueryUserPlugin.php:38-49 | src/Plugin/Wechat/V3/Marketing/Coupon/Coupons/SendPlugin.php:36-47 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryItemsPlugin.php:37-48 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryMerchantsPlugin.php:37-48 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/StartPlugin.php:34-45 | src/Plugin/Wechat/V3/Pay/App/ClosePlugin.php:36-47 | src/Plugin/Wechat/V3/Pay/App/QueryByWxPlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/App/QueryPlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/App/QueryRefundPlugin.php:34-45 | src/Plugin/Wechat/V3/Pay/Combine/ClosePlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/Combine/QueryRefundPlugin.php:34-45 | src/Plugin/Wechat/V3/Pay/H5/ClosePlugin.php:36-47 | src/Plugin/Wechat/V3/Pay/H5/QueryByWxPlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/H5/QueryPlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/H5/QueryRefundPlugin.php:34-45 | src/Plugin/Wechat/V3/Pay/Jsapi/ClosePlugin.php:36-47 | src/Plugin/Wechat/V3/Pay/Jsapi/QueryByWxPlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/Jsapi/QueryPlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/Jsapi/QueryRefundPlugin.php:34-45 | src/Plugin/Wechat/V3/Pay/Mini/ClosePlugin.php:36-47 | src/Plugin/Wechat/V3/Pay/Mini/QueryByWxPlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/Mini/QueryPlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/Mini/QueryRefundPlugin.php:34-45 | src/Plugin/Wechat/V3/Pay/Native/ClosePlugin.php:36-47 | src/Plugin/Wechat/V3/Pay/Native/QueryByWxPlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/Native/QueryPlugin.php:35-46 | src/Plugin/Wechat/V3/Pay/Native/QueryRefundPlugin.php:34-45 | src/Plugin/Wechat/V3/Pay/Pos/CancelPlugin.php:37-49 | src/Plugin/Wechat/V3/Pay/Refund/QueryPlugin.php:34-45 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryItemsPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryMerchantsPlugin.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/Plugin/Wechat/V3/Marketing/Coupon/Coupons/QueryUserPlugin.php:38\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060src/Plugin/Wechat/V3/Pay/App/QueryRefundPlugin.php:47\u0060 calls \u0060get\u0060, \u0060getSubMchId\u0060 and \u0060src/Plugin/Wechat/V3/Marketing/Coupon/Coupons/QueryUserPlugin.php:51\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":"src/Plugin/Wechat/V3/Marketing/Coupon/Coupons/QueryUserPlugin.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efd3eafa9e8198a45414e3018e33525352bb3ccc3acfc14e714312567b92bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 9): src/Plugin/Wechat/V3/Extend/ProfitSharing/DownloadBillPlugin.php:30-43 | src/Plugin/Wechat/V3/Marketing/Fapiao/Blockchain/DownloadPlugin.php:32-44 | src/Plugin/Wechat/V3/Pay/App/DownloadBillPlugin.php:30-43 | src/Plugin/Wechat/V3/Pay/Bill/DownloadPlugin.php:30-43 | src/Plugin/Wechat/V3/Pay/Combine/DownloadBillPlugin.php:30-43 | src/Plugin/Wechat/V3/Pay/H5/DownloadBillPlugin.php:30-43 | src/Plugin/Wechat/V3/Pay/Jsapi/DownloadBillPlugin.php:30-43 | src/Plugin/Wechat/V3/Pay/Mini/DownloadBillPlugin.php:30-43 | src/Plugin/Wechat/V3/Pay/Native/DownloadBillPlugin.php:30-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 9 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/DownloadBillPlugin.php:30\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/ProfitSharing/DownloadBillPlugin.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c63031298a2580a1de416dea6503e25253a610584dbd6138485e1aa0697a612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:50-62 | src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php:50-62 | src/Plugin/Wechat/V3/Extend/ProfitSharing/DeleteReceiverPlugin.php:46-58 | src/Plugin/Wechat/V3/Pay/H5/PayPlugin.php:45-58 | src/Plugin/Wechat/V3/Pay/Jsapi/PayPlugin.php:45-58 | src/Plugin/Wechat/V3/Pay/Native/PayPlugin.php:45-58 | src/Plugin/Wechat/V3/Pay/Pos/PayPlugin.php:46-58 | src/Plugin/Wechat/V3/Pay/Refund/RefundAbnormalPlugin.php:49-61 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:50\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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f23e04382af63da3c6f4fc8a5372a864b561fdd8087844a4c9ce2d0700ae605"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): src/Provider/Airwallex.php:132-144 | src/Provider/Apple.php:132-144 | src/Provider/Paypal.php:128-140 | src/Provider/Stripe.php:133-145 | src/Provider/Wechat.php:195-207 \u2014 before extracting anything, compare \u0060src/Provider/Airwallex.php\u0060 and \u0060src/Provider/Paypal.php\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other 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/Provider/Airwallex.php:132\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":"src/Provider/Airwallex.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"27283ea3759fc13515e4c88e57f0ee77865743b82af13dca040bf0723fd280e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): src/Plugin/Unipay/Open/AddPayloadSignaturePlugin.php:34-46 | src/Plugin/Unipay/Qra/AddPayloadSignaturePlugin.php:34-44 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Unipay/Open/AddPayloadSignaturePlugin.php:34\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. 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":"src/Plugin/Unipay/Open/AddPayloadSignaturePlugin.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d42d8f7bf91bee27bf7a79903959c6d56323aa107d88b8a5eb01b1231a1bf99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Plugin/Wechat/V3/Extend/Complaints/ResponsePlugin.php:41-54 | src/Plugin/Wechat/V3/Extend/Complaints/UpdateRefundPlugin.php:29-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/Complaints/ResponsePlugin.php:41\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/Complaints/ResponsePlugin.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7339fcc0f85e0f8354de4026e61f03f68355018d2fe381543b2f594b0f228e6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php:108-119 | src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php:108-119 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Extend/ProfitSharing/CreatePlugin.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"src/Plugin/Wechat/V3/Extend/ProfitSharing/AddReceiverPlugin.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cb5d461f546fdde8dae2729f3df95a9f5e17bda787ea34529b2182f0619de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php:48-58 | src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php:48-58 | src/Plugin/Wechat/V2/Pay/Mp/InvokePlugin.php:48-58 | src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php:49-59 | src/Plugin/Wechat/V3/Pay/Combine/AppInvokePlugin.php:49-59 | src/Plugin/Wechat/V3/Pay/Combine/JsapiInvokePlugin.php:50-60 | src/Plugin/Wechat/V3/Pay/Combine/MiniInvokePlugin.php:49-59 | src/Plugin/Wechat/V3/Pay/Jsapi/InvokePlugin.php:50-60 | src/Plugin/Wechat/V3/Pay/Mini/InvokePlugin.php:49-59 \u2014 \u0060src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php\u0060 and \u0060src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"870b75bba3b2468ef3d9afe3fcac77acf8b1fa58d3bb71e4f8b42247266bbb11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): src/Plugin/Airwallex/V1/Pay/CallbackPlugin.php:66-75 | src/Plugin/Apple/Pay/CallbackPlugin.php:72-81 | src/Plugin/Paypal/V2/Pay/CallbackPlugin.php:62-71 | src/Plugin/Stripe/V1/Pay/CallbackPlugin.php:63-72 | src/Plugin/Wechat/V3/CallbackPlugin.php:71-80 | src/Plugin/Wechat/Virtual/CallbackPlugin.php:82-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Airwallex/V1/Pay/CallbackPlugin.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"757291de0de4e2379cf6cd963b9a640d840fd6d50e2bbe0a7a6ba8be464276f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/Plugin/Wechat/V3/Extend/Complaints/CompletePlugin.php:34-43 | src/Plugin/Wechat/V3/Extend/Complaints/ResponsePlugin.php:34-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/Complaints/CompletePlugin.php:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/Complaints/CompletePlugin.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5829a6ec937a58c27d5d73b7d58b69bb6016b0ff96297b6e9576425b8667e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Plugin/Wechat/V3/Pay/Pos/CancelPlugin.php:45-53 | src/Plugin/Wechat/V3/Pay/Refund/RefundAbnormalPlugin.php:46-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Pay/Pos/CancelPlugin.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"383a953d102618f67d669ddfb345e27ab36ba40ab682259644f3fad2a4a75874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/Plugin/Airwallex/V1/Pay/CancelPlugin.php:27-34 | src/Plugin/Airwallex/V1/Pay/QueryPlugin.php:24-31 | src/Plugin/Airwallex/V1/Pay/QueryRefundPlugin.php:24-31 | src/Plugin/Airwallex/V1/Pay/RefundPlugin.php:27-34 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Airwallex/V1/Pay/CancelPlugin.php:27\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Airwallex/V1/Pay/CancelPlugin.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c91e917a394f0dae1c02e1ba47d5da5307a9c3b68063b75bab13d44061bcf79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/Plugin/Wechat/V3/Marketing/Coupon/Coupons/DetailPlugin.php:35-42 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/PausePlugin.php:34-41 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryDetailPlugin.php:34-41 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/RestartPlugin.php:34-41 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Marketing/Coupon/Coupons/DetailPlugin.php:35\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Marketing/Coupon/Coupons/DetailPlugin.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b790b0e464856f38f1cf5943de5725444653789dda481d62df4b7fb013a16a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): src/Plugin/Douyin/V1/GetClientTokenPlugin.php:68-79 | src/Plugin/Douyin/V1/ResponsePlugin.php:40-52 | src/Plugin/Wechat/Openapi/ResponsePlugin.php:43-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/Plugin/Douyin/V1/GetClientTokenPlugin.php:66\u0060 calls \u0060validateResponse\u0060 and \u0060src/Plugin/Wechat/Openapi/ResponsePlugin.php:41\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":"src/Plugin/Douyin/V1/GetClientTokenPlugin.php"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3a50747a321f27664092a5b3486b10f042d377b9ee230fc11ff90c107f6a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 12): src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php:48-54 | src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php:48-54 | src/Plugin/Wechat/V2/Pay/Mp/InvokePlugin.php:48-54 | src/Plugin/Wechat/V3/Marketing/Transfer/InvokeAndroidPlugin.php:52-58 | src/Plugin/Wechat/V3/Marketing/Transfer/InvokeIosPlugin.php:52-58 | src/Plugin/Wechat/V3/Marketing/Transfer/InvokeJsapiPlugin.php:52-58 | src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php:49-55 | src/Plugin/Wechat/V3/Pay/Combine/AppInvokePlugin.php:49-55 | src/Plugin/Wechat/V3/Pay/Combine/JsapiInvokePlugin.php:50-56 | src/Plugin/Wechat/V3/Pay/Combine/MiniInvokePlugin.php:49-55 | src/Plugin/Wechat/V3/Pay/Jsapi/InvokePlugin.php:50-56 | src/Plugin/Wechat/V3/Pay/Mini/InvokePlugin.php:49-55 \u2014 \u0060src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php\u0060 and \u0060src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/Plugin/Wechat/V3/Marketing/Transfer/InvokeAndroidPlugin.php:48\u0060 calls \u0060getMode\u0060, \u0060isService\u0060, \u0060InvalidParamsException\u0060 and \u0060src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php:47\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":"src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"90898a5b24e6ffd7e3166cd7d3a75406a32fabc831a27b16ed2af91d228dd9b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/Traits/AirwallexTrait.php:66-70 | src/Traits/PaypalTrait.php:61-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Traits/AirwallexTrait.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c1549b768411eed89ba1ebfa3a04f071fee5f16f76ce59a7188e43769f0a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 121): src/Plugin/Airwallex/V1/GetAccessTokenPlugin.php:19-29 | src/Plugin/Airwallex/V1/ObtainAccessTokenPlugin.php:32-40 | src/Plugin/Alipay/V2/Fund/Royalty/Query/OnsettlePlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Royalty/Query/RatePlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Royalty/Query/SettlePlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Royalty/Relation/BindPlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Royalty/Relation/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Royalty/Relation/UnbindPlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Royalty/Request/SettleOrderPlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Transfer/ApplyReceiptPlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Transfer/Bill/QueryUrlPlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Transfer/Fund/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Transfer/Fund/TransferPlugin.php:21-36 | src/Plugin/Alipay/V2/Fund/Transfer/QueryAccountPlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Transfer/QueryReceiptPlugin.php:19-28 | src/Plugin/Alipay/V2/Fund/Transfer/RefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Member/Authorization/AuthPlugin.php:19-28 | src/Plugin/Alipay/V2/Member/Authorization/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Member/Certification/CertifyPlugin.php:19-28 | src/Plugin/Alipay/V2/Member/Certification/InitPlugin.php:20-34 | src/Plugin/Alipay/V2/Member/Certification/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Member/FaceCheck/AppInitPlugin.php:20-34 | src/Plugin/Alipay/V2/Member/FaceCheck/AppQueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Member/FaceVerification/AppInitPlugin.php:20-35 | src/Plugin/Alipay/V2/Member/FaceVerification/AppQueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Member/FaceVerification/H5InitPlugin.php:20-34 | src/Plugin/Alipay/V2/Member/FaceVerification/H5QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Member/FaceVerification/H5VerifyPlugin.php:19-28 | src/Plugin/Alipay/V2/Member/FaceVerification/ServerVerifyPlugin.php:19-33 | src/Plugin/Alipay/V2/Member/Ocr/AppInitPlugin.php:20-34 | src/Plugin/Alipay/V2/Member/Ocr/DetectPlugin.php:19-28 | src/Plugin/Alipay/V2/Member/Ocr/ServerDetectPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Agreement/Bill/QueryUrlPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Agreement/Pay/CancelPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Agreement/Pay/ClosePlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Agreement/Pay/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Agreement/Pay/RefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Agreement/Sign/ModifyPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Agreement/Sign/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Agreement/Sign/UnsignPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/App/ClosePlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/App/QueryBillUrlPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/App/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/App/QueryRefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/App/RefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Authorization/Auth/CancelPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Authorization/Auth/PosFreezePlugin.php:20-35 | src/Plugin/Alipay/V2/Pay/Authorization/Auth/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Authorization/Auth/ScanFreezePlugin.php:20-34 | src/Plugin/Alipay/V2/Pay/Authorization/Auth/UnfreezePlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Authorization/Bill/QueryUrlPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Authorization/Pay/ClosePlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Authorization/Pay/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Authorization/Pay/QueryRefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Authorization/Pay/RefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Authorization/Pay/SyncPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Face/InitPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Face/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/H5/ClosePlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/H5/QueryBillUrlPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/H5/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/H5/QueryRefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/H5/RefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Mini/CancelPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Mini/ClosePlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Mini/QueryBillUrlPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Mini/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Mini/QueryRefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Mini/RefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Pos/CancelPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Pos/ClosePlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Pos/QueryBillUrlPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Pos/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Pos/QueryRefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Pos/RefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Scan/CancelPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Scan/ClosePlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Scan/QueryBillUrlPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Scan/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Scan/QueryRefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Scan/RefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Web/ClosePlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Web/QueryBillUrlPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Web/QueryPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Web/QueryRefundPlugin.php:19-28 | src/Plugin/Alipay/V2/Pay/Web/RefundPlugin.php:19-28 | src/Plugin/Alipay/V3/Pay/CancelPlugin.php:23-32 | src/Plugin/Alipay/V3/Pay/QueryPlugin.php:23-32 | src/Plugin/Alipay/V3/Pay/RefundPlugin.php:24-33 | src/Plugin/Bestpay/V1/Pay/AggregateQueryPlugin.php:25-33 | src/Plugin/Bestpay/V1/Pay/ClosePlugin.php:25-33 | src/Plugin/Bestpay/V1/Pay/QueryPlugin.php:25-33 | src/Plugin/Bestpay/V1/Pay/RefundPlugin.php:25-33 | src/Plugin/Douyin/V1/Pay/QueryCpsPlugin.php:29-38 | src/Plugin/Douyin/V1/Pay/QueryPlugin.php:29-38 | src/Plugin/Jsb/Pay/Scan/QueryPlugin.php:19-28 | src/Plugin/Jsb/Pay/Scan/RefundPlugin.php:19-28 | src/Plugin/Paypal/V2/GetAccessTokenPlugin.php:22-32 | src/Plugin/Wechat/Openapi/GetStableTokenPlugin.php:22-31 | src/Plugin/Wechat/V3/Marketing/Fapiao/UpdateConfigPlugin.php:19-28 | src/Plugin/Wechat/Virtual/Currency/CancelCurrencyPayPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Currency/CurrencyPayPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Currency/PresentCurrencyPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Currency/QueryBalancePlugin.php:27-36 | src/Plugin/Wechat/Virtual/Goods/QueryPublishGoodsPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Goods/QueryUploadGoodsPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Goods/StartPublishGoodsPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Goods/StartUploadGoodsPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Order/DownloadBillPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Order/NotifyProvideGoodsPlugin.php:19-28 | src/Plugin/Wechat/Virtual/Order/QueryDownloadOrderPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Order/QueryOrderPlugin.php:19-28 | src/Plugin/Wechat/Virtual/Order/RefundOrderPlugin.php:19-28 | src/Plugin/Wechat/Virtual/Order/StartDownloadOrderPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Subscribe/CancelSubscribeContractPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Subscribe/QuerySubscribeContractPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Subscribe/SendSubscribePrePaymentPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Subscribe/SubmitSubscribePayOrderPlugin.php:27-36 | src/Plugin/Wechat/Virtual/Withdraw/CreateWithdrawOrderPlugin.php:19-28 | src/Plugin/Wechat/Virtual/Withdraw/QueryBizBalancePlugin.php:27-36 | src/Plugin/Wechat/Virtual/Withdraw/QueryWithdrawOrderPlugin.php:19-28 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 121 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 121 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Airwallex/V1/GetAccessTokenPlugin.php:19\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Airwallex/V1/GetAccessTokenPlugin.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3905f6820bf840caea3342411046f9c4c8a423183018185de8ff70aba821a9c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): src/Plugin/Alipay/V2/Fund/PCreditPayInstallment/AppPayPlugin.php:20-30 | src/Plugin/Alipay/V2/Marketing/Redpack/AppPayPlugin.php:21-37 | src/Plugin/Alipay/V2/Marketing/Redpack/WebPayPlugin.php:21-36 | src/Plugin/Alipay/V2/Pay/Agreement/Pay/AppPayPlugin.php:20-30 | src/Plugin/Alipay/V2/Pay/Agreement/Sign/SignPlugin.php:20-30 | src/Plugin/Alipay/V2/Pay/Authorization/Auth/AppFreezePlugin.php:21-36 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Alipay/V2/Fund/PCreditPayInstallment/AppPayPlugin.php:20\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Alipay/V2/Fund/PCreditPayInstallment/AppPayPlugin.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a16365a955771eb2a61b652c29488106a4114897ca7001ff9107759c0c1088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): src/Plugin/Alipay/V2/Fund/PCreditPayInstallment/H5PayPlugin.php:30-47 | src/Plugin/Alipay/V2/Pay/App/PayPlugin.php:29-41 | src/Plugin/Alipay/V2/Pay/H5/PayPlugin.php:29-41 | src/Plugin/Alipay/V2/Pay/Web/PayPlugin.php:30-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Alipay/V2/Fund/PCreditPayInstallment/H5PayPlugin.php:30\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Alipay/V2/Fund/PCreditPayInstallment/H5PayPlugin.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"56314ced13ae3fab7e0aa54a9dbe113355e5b36171457b35de4e298c25dbed77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 8): src/Plugin/Alipay/V2/Fund/PCreditPayInstallment/PosPayPlugin.php:29-46 | src/Plugin/Alipay/V2/Fund/PCreditPayInstallment/ScanPayPlugin.php:28-39 | src/Plugin/Alipay/V2/Pay/Agreement/Pay/PayPlugin.php:29-45 | src/Plugin/Alipay/V2/Pay/Authorization/Pay/PayPlugin.php:29-45 | src/Plugin/Alipay/V2/Pay/Mini/PayPlugin.php:29-45 | src/Plugin/Alipay/V2/Pay/Pos/PayPlugin.php:28-44 | src/Plugin/Alipay/V2/Pay/Scan/CreatePlugin.php:28-39 | src/Plugin/Alipay/V2/Pay/Scan/PayPlugin.php:28-39 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 8 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Alipay/V2/Fund/PCreditPayInstallment/PosPayPlugin.php:29\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Alipay/V2/Fund/PCreditPayInstallment/PosPayPlugin.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42db9d638a8f4e55731ba0552c54a2dd5ca3ab6c542d9e866e205aafe2b8e74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Plugin/Alipay/V2/Open/Authorization/TokenAppPlugin.php:21-32 | src/Plugin/Alipay/V2/Open/Authorization/TokenAppQueryPlugin.php:21-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Alipay/V2/Open/Authorization/TokenAppPlugin.php:21\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Alipay/V2/Open/Authorization/TokenAppPlugin.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"84683fb49162f127093dc1f9e8efc24191dd50e9252697a69fa3622227cb4331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/Plugin/Allinpay/CallbackPlugin.php:63-69 | src/Plugin/Bestpay/V1/CallbackPlugin.php:67-73 | src/Plugin/Jsb/CallbackPlugin.php:66-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Allinpay/CallbackPlugin.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdad0bf7c7cf5f3b522b646ecaaad7171d04e5eba52e05cbcff273ac9e02d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php:73-84 | src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php:73-83 | src/Plugin/Wechat/V2/Pay/Mp/InvokePlugin.php:73-83 \u2014 \u0060src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php\u0060 and \u0060src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 44 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee67d8d239c8fe291bc1b041462b94b7d85085013a6a79e220946e6d23c4fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php:89-93 | src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php:103-107 | src/Plugin/Wechat/V3/Pay/Combine/AppInvokePlugin.php:103-107 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Pay/Combine/AppInvokePlugin.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V2/Pay/App/InvokePlugin.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c322a1a1001a182e39485db5e1a80b036aba5aefce27dce6c1a171aef5d60e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php:88-92 | src/Plugin/Wechat/V3/Pay/Combine/MiniInvokePlugin.php:102-106 | src/Plugin/Wechat/V3/Pay/Mini/InvokePlugin.php:102-106 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Pay/Combine/MiniInvokePlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Pay/Mini/InvokePlugin.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V2/Pay/Mini/InvokePlugin.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf472607400929cb6d5a871a5ea4c7adf4de1160c0abda5cee41a6c96d906a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): src/Plugin/Wechat/V3/Extend/Complaints/DeleteCallbackPlugin.php:20-30 | src/Plugin/Wechat/V3/Extend/Complaints/QueryCallbackPlugin.php:20-30 | src/Plugin/Wechat/V3/Marketing/Fapiao/Blockchain/GetBaseInformationPlugin.php:19-28 | src/Plugin/Wechat/V3/Marketing/Fapiao/QueryConfigPlugin.php:19-28 | src/Plugin/Wechat/V3/WechatPublicCertsPlugin.php:16-25 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/Complaints/DeleteCallbackPlugin.php:20\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/Complaints/DeleteCallbackPlugin.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b155017129d7fefa6d04f07b502532bfe8afd3b77925d1e7f9a9adc1a35b880"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Plugin/Wechat/V3/Extend/Complaints/SetCallbackPlugin.php:20-33 | src/Plugin/Wechat/V3/Extend/Complaints/UpdateCallbackPlugin.php:20-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Plugin/Wechat/V3/Extend/Complaints/SetCallbackPlugin.php:20\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Plugin/Wechat/V3/Extend/Complaints/SetCallbackPlugin.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f163185ab92e1f5c8eccfde6a8b348222b0f76a266151fff082d94b553fff3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryItemsPlugin.php:63-69 | src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryMerchantsPlugin.php:63-69 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryItemsPlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryMerchantsPlugin.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"src/Plugin/Wechat/V3/Marketing/Coupon/Stock/QueryItemsPlugin.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edb86f803a6f16343f77553e0f0a4966f5c776d70839109d4d055fc283985c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php:93-98 | src/Plugin/Wechat/V3/Pay/Combine/AppInvokePlugin.php:93-98 | src/Plugin/Wechat/V3/Pay/Combine/JsapiInvokePlugin.php:95-100 | src/Plugin/Wechat/V3/Pay/Combine/MiniInvokePlugin.php:92-97 | src/Plugin/Wechat/V3/Pay/Jsapi/InvokePlugin.php:95-100 | src/Plugin/Wechat/V3/Pay/Mini/InvokePlugin.php:92-97 \u2014 before extracting anything, compare \u0060src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php\u0060 and \u0060src/Plugin/Wechat/V3/Pay/Combine/AppInvokePlugin.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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":"src/Plugin/Wechat/V3/Pay/App/InvokePlugin.php"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b60c090f18d9b0f26fdba7f3b46660dd7e1745a44bf2829bf79b27120afcb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/Provider/Allinpay.php:145-155 | src/Provider/Jsb.php:131-141 | src/Provider/Unipay.php:135-145 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Provider/Allinpay.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4d010ce0ec6a98c4a3dc3b8edcae67f7c06f96171df4207a8136bedff05c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): src/Provider/Airwallex.php:112-119 | src/Provider/Apple.php:109-116 | src/Provider/Paypal.php:108-115 | src/Provider/Stripe.php:113-120 \u2014 before extracting anything, compare \u0060src/Provider/Airwallex.php\u0060 and \u0060src/Provider/Paypal.php\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: \u0060CallbackPlugin\u0060 names \u0060Yansongda\\Pay\\Plugin\\Airwallex\\V1\\Pay\\CallbackPlugin\u0060 in one and \u0060Yansongda\\Pay\\Plugin\\Apple\\Pay\\CallbackPlugin\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Provider/Airwallex.php"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5065727badc453e58c1304eb0360e7e919fde95caf8d1274b0f95e0ae7a2da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Provider/Allinpay.php:121-128 | src/Provider/Jsb.php:95-102 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: \u0060CallbackPlugin\u0060 names \u0060Yansongda\\Pay\\Plugin\\Allinpay\\CallbackPlugin\u0060 in one and \u0060Yansongda\\Pay\\Plugin\\Jsb\\CallbackPlugin\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Provider/Allinpay.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"160d105b4f3b122800ff44bb36c5589c9c5587a7b4bbecc582af58e2e905c84e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Traits/UnipayTrait.php:45-51 | src/Traits/WechatTrait.php:78-84 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \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":"src/Traits/UnipayTrait.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9fa74e7c0bad06d7116875683e6c066d144ebcfaf0ed3c8a0e29213039e371"}},{"ruleId":"D5","level":"error","message":{"text":"Circular dependency: src \u2192 src/Config \u2192 src (one cycle inside a mutually-dependent group of 8 modules)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Config.php"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"033f63a0fdc6c497e041701290344600bb18240cc0a7704c91eb2ff94bc48b8c"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: src/Action: src/Action: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"001b954cfeec62156b428e02cf663212e888cae5500c7ffa56c693aca0e98044"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: src/Event: src/Event: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"855ea0f459c080b7ea3d39a14d5809d4f8255d613d6fd941d590f24b83ae010f"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: src/Exception: src/Exception: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 7 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b18806232d9759260cd9ea73753db8f3c37a73b5dd474236ccd8af1027ca0b05"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(\u8054\u8C03\u786E\u8BA4\u540E\u6536\u655B)\uFF1A\u6C99\u7BB1/\u751F\u4EA7\u786E\u8BA4\u54CD\u5E94\u4E0E\u56DE\u8C03\u7684\u5B9E\u9645\u54C8\u5E0C\u7B97\u6CD5\u540E\uFF0C\u6536\u655B\u4E3A\u5355\u4E00\u7B97\u6CD5\u5E76\u79FB\u9664\u53E6\u4E00\u5206\u652F\u3002 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Traits/BestpayTrait.php"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcdb1c610a298ef07f4eb573b01ad4ed3500c2470e2b601bb69e150b6d13bb26"}},{"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":"37545a0289c7dd25308ae0387bee7ea10f221839ea16683def3f162c3c864fb2"},"properties":{"commitSha":"0178a3be94a2731e71f81e94f6a298654892e127"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8575d0d26d600ee14844ca189843e9933696bf03e5392221b48bfb9434a11df6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4635c91bc991367b3f6d8a411971e585b27181997546a9a7b3d34414fe55086d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b53edd3ffe456b3414ec4b73ab23cd56cbd460b29f570e5a953862fea809eaa3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db8098748428bcb97066a640331fd59db47332698f020dc5b802537917287ece"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e38cc280f0982dae102888db83c6427a73269b088dcdd72384c610b125d23e71"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db38e22acb49a2292bcef7f01106f52dc027f7a59c032f6161344e0aeb5f7322"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa0a4e73ac438827ed4c142fa0be5a66c49c4e52519998a1fc72d5e56886384d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c514a1eee91047f4be61113bb034fe768a99657b979fc7760ea468226d5e81a4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1362228977723130619f838b541eeff1f16f6ac32f715e7b5226748beb2691b2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"64d991793be3aa39da860b8fc2a34a93ed2ea2044a2d335cdb238e54c99a5fdd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b7b75fa35dee56e000b8082c75442e1d011d5aa738c01b60c4aedc1f758da24"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Alipay.php \u2194 Wechat.php: \u0060src/Provider/Alipay.php\u0060 and \u0060src/Provider/Wechat.php\u0060 change together 51% of the time (18 of the 35 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 18 shared commits counted here, the most recent 3 are \u00601cbe8d86\u0060 fix: \u5FAE\u4FE1\u5173\u95ED\u8BA2\u5355\u62A5\u89E3\u5305\u9519\u8BEF\u7684\u95EE\u9898 (#1000); \u006063de1841\u0060 docs: \u4F18\u5316\u6CE8\u91CA \u0026\u0026 \u589E\u52A0\u5355\u6D4B (#916); \u0060381591c0\u0060 change: close \u7684 API \u53C2\u6570\u53EA\u652F\u6301 array\uFF0C\u4E0D\u518D\u652F\u6301 string (#901) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Provider/Alipay.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae30aeb908b1be6909b3bd4b25bb43e5c3e5945f004753f4c48fa0089f238b41"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e56dfec40b1209928a012cb96846873cd3fbf774a83192b809423fd05310593a"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b34ab7ce8692ede42953d70ae9011854689c34e8ac68703ff417fca134d8c6d"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2601fcdf16acba3371b91e59df7a675cff577d09df3959f4a10cbcac32d9317d"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.8:1): \u0060\u0026.primary\u0060 sets color: #fff on background-color: #3eaf7c \u2014 2.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/.vitepress/theme/components/Home/Primary.vue"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e15acf291da3800c568f85022e5034c9fe6811e97e7aabd62b6bed04478db5"}},{"ruleId":"AX3","level":"error","message":{"text":"Project dependency cycle: The projects src \u2192 src/Config \u2192 src (one cycle inside a mutually-dependent group of 8 projects) form a reference cycle. Cyclic dependencies prevent independent build/test/deploy, blur ownership, and tend to grow into a big ball of mud. Break the cycle by extracting the shared types into a separate project both can reference."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Config.php"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33e0649b5d6130d5924334e9de7af8fb112680db6bcf0c7600d9bc07c938c16"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch github-actions/npm: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060github-actions\u0060, \u0060npm\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entries to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a00aca6c51dc7dd9f9511adaff07cf5cdec087572c061f741bf7ada0b3ebbe41"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!empty($config-\u003EgetAccessToken()) \u0026\u0026 !empty($config-\u003EgetAccessTokenExpiry()) \u0026\u0026 time() \u003C $config\u0060 appears character-identically in 2 files \u2014 src/Traits/AirwallexTrait.php, src/Traits/PaypalTrait.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/Traits/AirwallexTrait.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2a4bf362805380dce54b8b324cd3f38f5f6ecd1a186363b046ee07c7a3cc7e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!should_do_http_request($rocket-\u003EgetDirection()) || is_null($rocket-\u003EgetDestinationOrigin())\u0060 appears character-identically in 3 files \u2014 src/Plugin/Alipay/V3/VerifySignaturePlugin.php, src/Plugin/Wechat/Openapi/ResponsePlugin.php, src/Plugin/Wechat/V3/VerifySignaturePlugin.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/Plugin/Alipay/V3/VerifySignaturePlugin.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c870e56c989d932dc56c04c191b5321427c98c8a0a7c13d515b239319f55b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$destination instanceof Collection \u0026\u0026 0 !== $destination\u0060 appears character-identically in 2 files \u2014 src/Plugin/Douyin/V1/GetClientTokenPlugin.php, src/Plugin/Douyin/V1/ResponsePlugin.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/Plugin/Douyin/V1/GetClientTokenPlugin.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4bf65404946c084071dd0c9d7c9cd0f1d4c8e50b925b9caf0116ebc821a452"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$destinationOrigin instanceof ResponseInterface \u0026\u0026 ($destinationOrigin-\u003EgetStatusCode() \u003C 200 || $destinationOrigin-\u003EgetStatusCode() \u003E= 300)\u0060 appears character-identically in 3 files \u2014 src/Plugin/Allinpay/ResponsePlugin.php, src/Plugin/Bestpay/V1/ResponsePlugin.php, src/Plugin/Jsb/ResponsePlugin.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/Plugin/Allinpay/ResponsePlugin.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c090fb0a1627c1fb0a8355f6b4d652821259927926205238df0b6b320e29360"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$response instanceof ResponseInterface \u0026\u0026 ($response-\u003EgetStatusCode() \u003C 200 || $response-\u003EgetStatusCode() \u003E= 300)\u0060 appears character-identically in 8 files \u2014 src/Plugin/Airwallex/V1/ResponsePlugin.php, src/Plugin/Apple/ResponsePlugin.php, src/Plugin/Douyin/V1/GetClientTokenPlugin.php, src/Plugin/Douyin/V1/ResponsePlugin.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/Plugin/Airwallex/V1/ResponsePlugin.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bed483d4b71e69966298da4263142fdf7fcae67b64b96834ade6a0a6035540"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027sign\u0027 != $k \u0026\u0026 \u0027\u0027 != $v \u0026\u0026 !is_array($v)\u0060 appears character-identically in 2 files \u2014 src/Traits/UnipayTrait.php, src/Traits/WechatTrait.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/Traits/UnipayTrait.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfac88550fab89ab98189aff28155402ba59329e01982e5bff13527c6c92feb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty($params[\u0027oldreqsn\u0027]) \u0026\u0026 empty($params[\u0027oldtrxid\u0027])\u0060 appears character-identically in 4 files \u2014 src/Plugin/Allinpay/Tranx/CancelPlugin.php, src/Plugin/Allinpay/Tranx/ClosePlugin.php, src/Plugin/Allinpay/Tranx/RefundPlugin.php, src/Plugin/Allinpay/UnitOrder/NativeClosePlugin.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/Plugin/Allinpay/Tranx/CancelPlugin.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"943dc7b84d6dccf2843da0a423b438ca1f9ea4747925f41fb074224f84135696"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty($params[\u0027reqsn\u0027]) \u0026\u0026 empty($params[\u0027trxid\u0027])\u0060 appears character-identically in 2 files \u2014 src/Plugin/Allinpay/Tranx/QueryConfirmPlugin.php, src/Plugin/Allinpay/Tranx/QueryPlugin.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/Plugin/Allinpay/Tranx/QueryConfirmPlugin.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5d3ba3c0c979cc744028bdd4036b66cf9486230d5351e5a12b83cb2f18f658"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty($params[\u0027reqsn\u0027]) || empty($params[\u0027trxamt\u0027])\u0060 appears character-identically in 2 files \u2014 src/Plugin/Allinpay/Tranx/CancelPlugin.php, src/Plugin/Allinpay/Tranx/RefundPlugin.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/Plugin/Allinpay/Tranx/CancelPlugin.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b4470d8539ef53ed7eda08dcf4fb8745ccd9dcfb7f748d8c8572f9fbc167e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array($contents) \u0026\u0026 isset($contents[\u0027body\u0027], $contents[\u0027headers\u0027])\u0060 appears character-identically in 6 files \u2014 src/Provider/Airwallex.php, src/Provider/Alipay.php, src/Provider/Apple.php, src/Provider/Paypal.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/Provider/Airwallex.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"038c7cc47766114864b231f87609e1bc2d721b73088a0a971278d214238d690b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_null($payload) || empty($outOrderNo = $payload-\u003Eget(\u0027out_order_no\u0027))\u0060 appears character-identically in 5 files \u2014 src/Plugin/Wechat/V3/PayScore/CancelPlugin.php, src/Plugin/Wechat/V3/PayScore/CompletePlugin.php, src/Plugin/Wechat/V3/PayScore/ModifyPlugin.php, src/Plugin/Wechat/V3/PayScore/PayPlugin.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/Plugin/Wechat/V3/PayScore/CancelPlugin.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3122e1bba47e5d9bfd67b5c0a99754622f7bfaedbfb048e188facd9f101c71de"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_null($payload) || filter_params($payload)\u0060 appears character-identically in 3 files \u2014 src/Plugin/Douyin/V1/Refund/AuditPlugin.php, src/Plugin/Douyin/V1/Refund/QueryPlugin.php, src/Plugin/Douyin/V1/Refund/RefundPlugin.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/Plugin/Douyin/V1/Refund/AuditPlugin.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee46f1a792432897948e95029fd8a78558f70752b221e72a9aef7126075eab85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_null($serviceId) || \u0027\u0027 === $serviceId\u0060 appears character-identically in 5 files \u2014 src/Plugin/Wechat/V3/PayScore/CreatePlugin.php, src/Plugin/Wechat/V3/PayScore/Permissions/CreatePlugin.php, src/Plugin/Wechat/V3/PayScore/Permissions/QueryPlugin.php, src/Plugin/Wechat/V3/PayScore/Permissions/TerminatePlugin.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/Plugin/Wechat/V3/PayScore/CreatePlugin.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4cd172d393f623cb173f1569373f6bc203434e4c14627efc843722999c8cb7"}},{"ruleId":"X5","level":"note","message":{"text":"PHP static analysis does not check null everywhere: This repository commits no PHPStan or Psalm configuration (\u0060phpstan.neon[.dist]\u0060, \u0060phpstan.dist.neon\u0060, \u0060psalm.xml[.dist]\u0060, or one a composer.json script names with \u0060--configuration\u0060), so nothing checks null: a \u0060?Customer\u0060 reaches \u0060-\u003Ename()\u0060 silently and throws \u0060Error: Call to a member function name() on null\u0060 the first time it is null. If the build passes a level on a command line instead, put it in a committed configuration \u2014 this check reads configuration, and configuration is all it can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4ee877508ebc333ebff2765634874753d7fd67f71ea749a6c333792a59b461d7"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.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-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"}]}],"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":17,"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."]}]}