{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"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":"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":"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":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"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":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"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":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ApiRequestor._specificV2APIError (cyclomatic 31): ApiRequestor._specificV2APIError has cyclomatic complexity 31 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ApiRequestor.php"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"2189890713291e4274ad5e5299c655ca0e011a26d7afda4811f8d3d678687600"}},{"ruleId":"D1","level":"warning","message":{"text":"Int64.coerceResponseValues (cyclomatic 31): Int64.coerceResponseValues has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Util/Int64.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ab0c8746262521581bc1e6045fce187072e8d57a539ae3653bbd686e2ef950"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseStripeClient.validateConfig (cyclomatic 25): BaseStripeClient.validateConfig has cyclomatic complexity 25 (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":"lib/BaseStripeClient.php"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"e952063f27c5333ba1d33e6b813b02608b6482ddd3bb45d9b86255013f4f8421"}},{"ruleId":"D1","level":"warning","message":{"text":"Int64.coerceRequestParams (cyclomatic 24): Int64.coerceRequestParams 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":"lib/Util/Int64.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c25b0b485dedc6a986fb7eb3da7db644bb15bc599119c710d5f111b534db9e6"}},{"ruleId":"D1","level":"warning","message":{"text":"ApiRequestor._prepareRequest (cyclomatic 20): ApiRequestor._prepareRequest has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ApiRequestor.php"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4aeaf8fc27fab5342cd8ad43ab3c5548cb1111bacd39021443fa9c9f9d6d84"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestOptions.parse (cyclomatic 20): RequestOptions.parse has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Util/RequestOptions.php"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a4f5bd40787bcfcd6f82a43c659f6e1c71aaf18ea7dc39ae44e7df27dd54d3"}},{"ruleId":"D1","level":"warning","message":{"text":"CurlClient.constructCurlOptions (cyclomatic 16): CurlClient.constructCurlOptions has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/HttpClient/CurlClient.php"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0700d466b300d9e85f6de9cf86bf7300e2224227c58e7ab22209826f9818db"}},{"ruleId":"D2","level":"warning","message":{"text":"Int64.coerceResponseValues (cognitive 62): Int64.coerceResponseValues has cognitive complexity 62 (threshold 15). Drivers by points: if/else 14 (48 pts), boolean chains 9, loops 2 (5 pts) (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/Util/Int64.php holds 2 of the 11 methods over the threshold \u2014 including the worst \u2014 and 69 of the 126 points over it (55%), 3.1\u00D7 the next-largest file (lib/Util/RequestOptions.php at 22). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Util/Int64.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c8c7f6727135840c7f98e2d3cc44cd494771a0c2b1070c01aabe0f243ccb30"}},{"ruleId":"D2","level":"warning","message":{"text":"Int64.coerceRequestParams (cognitive 37): Int64.coerceRequestParams has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (26 pts), loops 2 (6 pts), boolean chains 5 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: lib/Util/Int64.php holds 2 of the 11 methods over the threshold \u2014 including the worst \u2014 and 69 of the 126 points over it (55%), 3.1\u00D7 the next-largest file (lib/Util/RequestOptions.php at 22). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Util/Int64.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26475ef7a712740a3ce05bf4f517eb78a02a0aeb8b697273c129f9cbb36e4ef"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestOptions.parse (cognitive 37): RequestOptions.parse has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (33 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Util/RequestOptions.php"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9333c0ef31a56b38141a184dd29a5d204000cbd4352d413d9e2aba1c42c242db"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseStripeClient.validateConfig (cognitive 24): BaseStripeClient.validateConfig has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, boolean chains 10. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/BaseStripeClient.php"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21a308d973e6e6d8c5429613205fed54e540fdc6207175826331d62bf573677"}},{"ruleId":"D2","level":"warning","message":{"text":"StripeObject.serializeParamsValue (cognitive 23): StripeObject.serializeParamsValue has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/StripeObject.php"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"4860092688c06ba7a30b475cb9e06bd9916d170886ca6967d0fe5bea18559151"}},{"ruleId":"D2","level":"warning","message":{"text":"Util.convertToStripeObject (cognitive 21): Util.convertToStripeObject has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5, loops 1 (2 pts), ternaries 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":"lib/Util/Util.php"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b91dcecdd24143c305f6e03b29ee5c74bb4f651518a233bad7642c03f77ecc8"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiRequestor._prepareRequest (cognitive 19): ApiRequestor._prepareRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, loops 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ApiRequestor.php"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"af55154eb5cd60db45a20e50c4a46024302653eb8d4ff03c0ab9134c647fd60f"}},{"ruleId":"D2","level":"warning","message":{"text":"CurlClient.constructCurlOptions (cognitive 19): CurlClient.constructCurlOptions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/HttpClient/CurlClient.php"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"9119c7dbc1e66a54b0a3817117a346ddca937c71fff0e352b920e8718839bb03"}},{"ruleId":"D2","level":"warning","message":{"text":"Util.objectsToIds (cognitive 17): Util.objectsToIds has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Util/Util.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a07a321df9495ca030a7444ef67037d6354109b63ba333684118f2b2e188dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ApiRequestor._specificV2APIError (cognitive 16): ApiRequestor._specificV2APIError has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (15 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ApiRequestor.php"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2f33719b9254407d25b7c1b3dc281a98114aa592a4aa0fd1c2d16decc23734"}},{"ruleId":"D2","level":"warning","message":{"text":"StripeObject.reattachApiKey (cognitive 16): StripeObject.reattachApiKey has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/StripeObject.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e226807ff5253b7dc4a439704da8a5b21fdffb00cf918c89c8eb61cbf8bc03"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractEventNotificationHandler: TooManyMethods \u2014 333 methods. The bar is 30 methods; this is 303 over it, 11.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/AbstractEventNotificationHandler.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec148883ba5ec262dbe1fae94f62783d4dfe49e981adecaa11fc6f688cc00998"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AbstractEventNotificationHandler: ClassTooLong \u2014 823 significant lines (blank, comment-only and punctuation-only lines excluded), 333 methods. The bar is 400 significant lines; this is 423 over it, 2.06\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":"lib/AbstractEventNotificationHandler.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0464743b4318db4fabf1fe0a7e7374ea6e1a8d16577b58f8279c2c8855a4b3b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ApiRequestor._specificV2APIError: MethodTooLong \u2014 _specificV2APIError runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ApiRequestor.php"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60ab708d6eef19870d920e532e4e65045b375c90917a6a24a962a03c2f4a51a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/AbstractEventNotificationHandler.php: FileTooLong \u2014 825 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: AbstractEventNotificationHandler (15-4567). The bar is 500 significant lines; this is 325 over it, 1.65\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/AbstractEventNotificationHandler.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebb2738f1eaa88ded75f1e3fee9e7da9197faab0516bfaa226e77e2f07f6593"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Event: ClassTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 160 over it, 1.40\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":"lib/Event.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1a701d980a77220148362fb2ed098bc366a54ac777a32bfd68c3f66425ba00"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ApiRequestor: ClassTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 119 over it, 1.30\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":"lib/ApiRequestor.php"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea947912668dea7151c98b941471442213cecfb5711c56a33a6d12e9f0e5063f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CurlClient: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"lib/HttpClient/CurlClient.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0318114c61095bcb1413db5d825aca516a95ac193f375f7cc111dd479d35c691"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/Event.php: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: Event (42-638). The bar is 500 significant lines; this is 62 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Event.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ba2f5b5d64fb02cb8a73dc0551bef1561da695270cc97cd594b4f42375fd42"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StripeObject: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"lib/StripeObject.php"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70af3ccc627f9315c7e2c3ba5a55598040f9dd32a637842f4e4a06c6926029e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/ApiRequestor.php: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: ApiRequestor (8-1075). The bar is 500 significant lines; this is 21 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ApiRequestor.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1eb09a6e1c329744d5f851f2789c5ff13b07462d4256d4badf0170dd8260c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): lib/ApiOperations/Update.php:47-54 | lib/BankAccount.php:145-152 | lib/Capability.php:98-105 | lib/Card.php:181-188 | lib/Person.php:131-138 | lib/Tax/Settings.php:77-84 \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":"lib/ApiOperations/Update.php"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f400fb2e0b950c4467a861a043d3c7c43698b517c468926e6a2edca18d19513c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lib/ApiRequestor.php:886-918 | lib/ApiRequestor.php:938-964 \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":"lib/ApiRequestor.php"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"984031738e2304c7e08c887c0caf8ec059310f09597044ab01472f0e4d4c7923"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/BankAccount.php:78-94 | lib/Card.php:115-131 \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":"lib/BankAccount.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"429792c6f0805831fa80f356d2dd632cf4ad1291af0c97a6878aea9abad5a3bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/Collection.php:81-93 | lib/SearchResult.php:93-105 \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":"lib/Collection.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0f0383a026316884f3b89820b7045de30655cf8f4cec947cf07cc35d3e6e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/V2/Collection.php:85-109 | lib/V2/SearchResult.php:52-78 \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":"lib/V2/Collection.php"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"776112405fe06d17c7ecc29a3470be6052e523d398c15a246a887b0ff03e3780"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/Util/Util.php:237-256 | lib/Util/Util.php:271-290 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Util/Util.php"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"3476127af3a2be6e5acb83f278581804bed8749f94094bb11fe1452455e14125"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): lib/ApplicationFeeRefund.php:36-52 | lib/CustomerBalanceTransaction.php:53-68 | lib/TransferReversal.php:46-62 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"lib/ApplicationFeeRefund.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"35645dfbbe7c9634dc64e2ce3e28f2733f3dc34b6972a662d9ba632fc7851f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/OAuth.php:83-99 | lib/Service/OAuthService.php:88-106 \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":"lib/OAuth.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1aa7cb5e109ace84f78c5642cfa158ab3e4f09b782711b0ffca77fd230ed9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): lib/Service/AbstractService.php:82-88 | lib/Service/AbstractService.php:100-106 | lib/Service/AbstractService.php:111-117 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Service/AbstractService.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"27aa3073c5c56623843fc901a7e8a9d21f7aa087db4084c7ec017557a07d5b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/ApiRequestor.php:133-141 | lib/ApiRequestor.php:158-165 \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":"lib/ApiRequestor.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"60309ea73ecee47721ccbf4100e821a1f20162bf6ebf49d2c57aac56b9bd3740"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/OAuth.php:43-52 | lib/OAuth.php:67-78 \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":"lib/OAuth.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f02d875361f9d76a67db552a2f75e55a209fcb4360b90693c20f26c798c63de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/OAuth.php:17-27 | lib/Service/OAuthService.php:35-46 \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":"lib/OAuth.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec15e5d8e4160f6ef8d63b78acd51001b900a4e7bbd15a9e324a815711f3646"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/Collection.php:240-252 | lib/Collection.php:270-282 \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":"lib/Collection.php"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"c274b61a67088fbdefda910e940b413b40cbc90576b7b799e7e21550340f3fea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/Service/FileService.php:59-68 | lib/Service/V2/Billing/MeterEventStreamService.php:28-32 \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":"lib/Service/FileService.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"359846af82660d88f525aac15369af05c36c20e336dba512dab00a430baec427"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/Capability.php:35-51 | lib/Person.php:68-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":"lib/Capability.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e839312aa99a5311fe6a187fa1584d1ce003f12ddc07a38b6d959fc4ab4e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/ApiRequestor.php:897-912 | lib/ApiRequestor.php:944-960 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ApiRequestor.php:897\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":"lib/ApiRequestor.php"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"1968ef610f4a04354edc3f062fd57c60ee5cc231cf3d225f425d4fbd841c9d1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/Collection.php:307-320 | lib/SearchResult.php:226-240 \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":"lib/Collection.php"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9689bc5fe7842db6cd63742f53189adf8c2e787ec70027b6eca576cdaa4f2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/HttpClient/CurlClient.php:534-548 | lib/HttpClient/CurlClient.php:594-608 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/HttpClient/CurlClient.php:534\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 before the matched lines, \u0060lib/HttpClient/CurlClient.php:592\u0060 calls \u0060shouldRetry\u0060 and \u0060lib/HttpClient/CurlClient.php:532\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":"lib/HttpClient/CurlClient.php"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d90879de9f807d668e20d91919fa758c532ddd228162ea40d0342f07a4a6a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/Service/ServiceNavigatorTrait.php:24-35 | lib/Service/ServiceNavigatorTrait.php:45-56 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Service/ServiceNavigatorTrait.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d3178ed4f61e4e542900c94c627ab57eaea1ce7c26a0e8814f821b7b584e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/BankAccount.php:78-87 | lib/Card.php:115-124 \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 \u0060lib/BankAccount.php:78\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/BankAccount.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad9f5bb82b347e2b7ec0bcf85a3a9e87afdde7931e1912512779cb768bc7faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): lib/ApiOperations/Update.php:47-54 | lib/BankAccount.php:145-152 | lib/Capability.php:98-105 | lib/Card.php:181-188 | lib/Person.php:131-138 | lib/Tax/Settings.php:77-84 \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. 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":"lib/ApiOperations/Update.php"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e87d124cd0c3ca2df49d35309af627399530116fd32b5a5ef335490c2395b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (84 lines \u00D7 10): lib/Apps/Install.php:67-169 | lib/Billing/CreditGrant.php:51-151 | lib/Billing/FeedbackOption.php:42-125 | lib/Billing/Meter.php:51-167 | lib/Checkout/Session.php:150-255 | lib/Climate/Order.php:64-148 | lib/Identity/VerificationSession.php:78-185 | lib/Issuing/Dispute.php:75-163 | lib/Terminal/Reader.php:69-293 | lib/Treasury/FinancialAccount.php:54-172 \u2014 before extracting anything, compare \u0060lib/Apps/Install.php\u0060 and \u0060lib/Billing/CreditGrant.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 675 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 \u0060lib/Apps/Install.php:67\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":"lib/Apps/Install.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"598a74ef7965f973b4054111ad89928af75a8cbdf78eced54576675fbf0d1e2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 7): lib/ApplicationFee.php:49-131 | lib/BalanceTransaction.php:109-133 | lib/Event.php:614-636 | lib/ExchangeRate.php:65-94 | lib/InvoicePayment.php:48-69 | lib/PaymentAttemptRecord.php:57-78 | lib/TaxCode.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 7 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/ApplicationFee.php:49\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":"lib/ApplicationFee.php"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"084df0dd05f3f4e3f03c1276bda30e03d6fe351eac707d1c93430dde73de121b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 14): lib/Billing/CreditBalanceTransaction.php:40-61 | lib/Climate/Product.php:37-58 | lib/Climate/Supplier.php:39-60 | lib/Entitlements/ActiveEntitlement.php:32-53 | lib/FinancialConnections/Transaction.php:43-64 | lib/Identity/VerificationReport.php:55-76 | lib/Issuing/PhysicalBundle.php:42-63 | lib/Radar/EarlyFraudWarning.php:46-71 | lib/Reporting/ReportType.php:43-65 | lib/Sigma/ScheduledQueryRun.php:41-67 | lib/Treasury/ReceivedCredit.php:59-81 | lib/Treasury/ReceivedDebit.php:58-80 | lib/Treasury/Transaction.php:58-79 | lib/Treasury/TransactionEntry.php:73-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/Billing/CreditBalanceTransaction.php:40\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":"lib/Billing/CreditBalanceTransaction.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d430fb58a848ed8f65cc2788593dea5f09db4dc65431decbc463d2a31c4b85ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (101 lines \u00D7 5): lib/Billing/CreditGrant.php:51-151 | lib/Billing/Meter.php:51-167 | lib/Identity/VerificationSession.php:78-185 | lib/Terminal/Reader.php:69-293 | lib/Treasury/FinancialAccount.php:54-172 \u2014 before extracting anything, compare \u0060lib/Billing/CreditGrant.php\u0060 and \u0060lib/Billing/Meter.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 1125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Billing/CreditGrant.php:51\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":"lib/Billing/CreditGrant.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"766926c29a49b3f6d529c7d34011fbcd2f0725d0a7140fc36ff75b1d3e693d2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 20): lib/Apps/Install.php:67-169 | lib/Billing/CreditGrant.php:51-151 | lib/Billing/FeedbackOption.php:42-125 | lib/Billing/Meter.php:51-167 | lib/BillingPortal/Configuration.php:44-112 | lib/Checkout/Session.php:150-255 | lib/Climate/Order.php:64-148 | lib/Entitlements/Feature.php:37-103 | lib/Identity/VerificationSession.php:78-185 | lib/Issuing/Card.php:74-143 | lib/Issuing/Cardholder.php:54-124 | lib/Issuing/Dispute.php:75-163 | lib/Issuing/PersonalizationDesign.php:47-115 | lib/ProductCatalog/TrialOffer.php:41-108 | lib/Radar/ValueList.php:55-148 | lib/Tax/Registration.php:46-115 | lib/Terminal/Configuration.php:51-138 | lib/Terminal/Location.php:45-133 | lib/Terminal/Reader.php:69-293 | lib/Treasury/FinancialAccount.php:54-172 \u2014 before extracting anything, compare \u0060lib/Apps/Install.php\u0060 and \u0060lib/Billing/CreditGrant.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 675 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 \u0060lib/Apps/Install.php:67\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":"lib/Apps/Install.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"51555a178a01e1ffd22df1459a415ebe0e7d9d3ed85715d63251c1860bf83ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (89 lines \u00D7 8): lib/Coupon.php:65-157 | lib/Customer.php:66-501 | lib/Invoice.php:166-472 | lib/InvoiceItem.php:63-155 | lib/Plan.php:72-162 | lib/Product.php:60-228 | lib/SubscriptionItem.php:46-134 | lib/WebhookEndpoint.php:55-145 \u2014 before extracting anything, compare \u0060lib/Customer.php\u0060 and \u0060lib/Invoice.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 1308 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Coupon.php:65\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":"lib/Coupon.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedddd040690d1e921b43553147ba1265fc69e16a1dbb820af7a04ad5cecbe23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 14): lib/Charge.php:86-273 | lib/CreditNote.php:104-239 | lib/Dispute.php:83-152 | lib/Invoice.php:166-472 | lib/PaymentIntent.php:124-336 | lib/PaymentMethod.php:175-279 | lib/PaymentMethodDomain.php:44-127 | lib/Payout.php:89-211 | lib/Quote.php:77-251 | lib/Refund.php:89-177 | lib/SetupIntent.php:93-217 | lib/Subscription.php:104-347 | lib/SubscriptionSchedule.php:64-166 | lib/Topup.php:61-147 \u2014 before extracting anything, compare \u0060lib/Charge.php\u0060 and \u0060lib/CreditNote.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 1050 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Charge.php:86\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060null\u0060 to \u0060$options =\u0060 in one and \u0060$opts =\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, 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":"lib/Charge.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c200b13394a578138c7d9d3c51ed321fee35a8d019e9948d7171ee616d0231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/Exception/InvalidPaymentMethodException.php:20-33 | lib/Exception/InvalidVaultedCredentialException.php:20-33 \u2014 before extracting anything, compare \u0060lib/Exception/InvalidPaymentMethodException.php\u0060 and \u0060lib/Exception/InvalidVaultedCredentialException.php\u0060 as WHOLE FILES: 95% 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 \u0060lib/Exception/InvalidPaymentMethodException.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":"lib/Exception/InvalidPaymentMethodException.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7c4081810876b561ba7e2c38150650ff7aca04d32223764908c839b90328ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/Exception/VerificationAttemptFailedException.php:20-33 | lib/Exception/VerificationExpiredException.php:20-33 | lib/Exception/VerificationNotInitiatedException.php:20-33 \u2014 before extracting anything, compare \u0060lib/Exception/VerificationAttemptFailedException.php\u0060 and \u0060lib/Exception/VerificationExpiredException.php\u0060 as WHOLE FILES: 95% 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 \u0060lib/Exception/VerificationAttemptFailedException.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":"lib/Exception/VerificationAttemptFailedException.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"875ed1789902e643502fa3c2a190488ab0283954655ebb277dc7e13abbef00b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 28): lib/Charge.php:86-273 | lib/Coupon.php:65-157 | lib/CreditNote.php:104-239 | lib/Customer.php:66-501 | lib/FileLink.php:40-106 | lib/Invoice.php:166-472 | lib/InvoiceItem.php:63-155 | lib/PaymentIntent.php:124-336 | lib/PaymentLink.php:85-170 | lib/PaymentMethod.php:175-279 | lib/PaymentMethodConfiguration.php:110-176 | lib/PaymentMethodDomain.php:44-127 | lib/Payout.php:89-211 | lib/Plan.php:72-162 | lib/Price.php:70-154 | lib/Product.php:60-228 | lib/PromotionCode.php:48-118 | lib/Quote.php:77-251 | lib/Refund.php:89-177 | lib/SetupIntent.php:93-217 | lib/ShippingRate.php:48-114 | lib/Subscription.php:104-347 | lib/SubscriptionItem.php:46-134 | lib/SubscriptionSchedule.php:64-166 | lib/TaxRate.php:88-155 | lib/Topup.php:61-147 | lib/Transfer.php:62-195 | lib/WebhookEndpoint.php:55-145 \u2014 before extracting anything, compare \u0060lib/Charge.php\u0060 and \u0060lib/CreditNote.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 1050 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Charge.php:86\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":"lib/Charge.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"525f00a948cafbda91d82bb49c050e05262189c732e6499b5c52abcdb6f578e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 14): lib/Billing/Alert.php:38-132 | lib/FinancialConnections/Session.php:42-68 | lib/Forwarding/Request.php:53-96 | lib/Radar/ValueListItem.php:37-104 | lib/Reporting/ReportRun.php:45-88 | lib/Tax/Calculation.php:45-91 | lib/Tax/Location.php:35-90 | lib/TestHelpers/TestClock.php:42-123 | lib/ThreeDSecure/Authentication.php:92-169 | lib/Treasury/CreditReversal.php:50-95 | lib/Treasury/DebitReversal.php:51-94 | lib/Treasury/InboundTransfer.php:56-116 | lib/Treasury/OutboundPayment.php:61-123 | lib/Treasury/OutboundTransfer.php:59-121 \u2014 before extracting anything, compare \u0060lib/Billing/Alert.php\u0060 and \u0060lib/TestHelpers/TestClock.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 285 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 \u0060lib/Billing/Alert.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":"lib/Billing/Alert.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d83b2eb583dd22d5cb3d972453d1c006ea5cc296361682c1b337d82aa3cf13a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 12): lib/Billing/Alert.php:38-132 | lib/Forwarding/Request.php:53-96 | lib/Radar/ValueListItem.php:37-104 | lib/Reporting/ReportRun.php:45-88 | lib/Tax/Location.php:35-90 | lib/TestHelpers/TestClock.php:42-123 | lib/ThreeDSecure/Authentication.php:92-169 | lib/Treasury/CreditReversal.php:50-95 | lib/Treasury/DebitReversal.php:51-94 | lib/Treasury/InboundTransfer.php:56-116 | lib/Treasury/OutboundPayment.php:61-123 | lib/Treasury/OutboundTransfer.php:59-121 \u2014 before extracting anything, compare \u0060lib/Billing/Alert.php\u0060 and \u0060lib/TestHelpers/TestClock.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 285 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 \u0060lib/Billing/Alert.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":"lib/Billing/Alert.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a0048e7a865b75fe345d78e76c5934f3db5b5c65b96174b2f9ee451cf3fa88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (81 lines \u00D7 6): lib/Billing/CreditGrant.php:51-151 | lib/Billing/Meter.php:51-167 | lib/Identity/VerificationSession.php:78-185 | lib/Issuing/Authorization.php:79-159 | lib/Terminal/Reader.php:69-293 | lib/Treasury/FinancialAccount.php:54-172 \u2014 before extracting anything, compare \u0060lib/Billing/CreditGrant.php\u0060 and \u0060lib/Billing/Meter.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 1125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Billing/CreditGrant.php:51\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060null\u0060 to \u0060$options =\u0060 in one and \u0060$opts =\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, 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":"lib/Billing/CreditGrant.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8ab503ce44a1b59618d9ad6d11ddc6dfb872ff034365f8c4ed351539393fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 23): lib/Apps/Install.php:67-169 | lib/Billing/CreditGrant.php:51-151 | lib/Billing/FeedbackOption.php:42-125 | lib/Billing/Meter.php:51-167 | lib/BillingPortal/Configuration.php:44-112 | lib/Checkout/Session.php:150-255 | lib/Climate/Order.php:64-148 | lib/Entitlements/Feature.php:37-103 | lib/Identity/VerificationSession.php:78-185 | lib/Issuing/Authorization.php:79-159 | lib/Issuing/Card.php:74-143 | lib/Issuing/Cardholder.php:54-124 | lib/Issuing/Dispute.php:75-163 | lib/Issuing/PersonalizationDesign.php:47-115 | lib/Issuing/Token.php:53-98 | lib/Issuing/Transaction.php:64-110 | lib/ProductCatalog/TrialOffer.php:41-108 | lib/Radar/ValueList.php:55-148 | lib/Tax/Registration.php:46-115 | lib/Terminal/Configuration.php:51-138 | lib/Terminal/Location.php:45-133 | lib/Terminal/Reader.php:69-293 | lib/Treasury/FinancialAccount.php:54-172 \u2014 before extracting anything, compare \u0060lib/Apps/Install.php\u0060 and \u0060lib/Billing/CreditGrant.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 675 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 \u0060lib/Apps/Install.php:67\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060null\u0060 to \u0060$options =\u0060 in one and \u0060$opts =\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, 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":"lib/Apps/Install.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3f2b378f60a8e4a5232a6f1b2a2e377fa3195c2a6d25a4e256fec5faf05a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (86 lines \u00D7 3): lib/Customer.php:66-501 | lib/PaymentLink.php:85-170 | lib/Quote.php:77-251 \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 \u0060lib/Customer.php:66\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":"lib/Customer.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cddd6b15cbcf6efbe9e92018533e7adddc5b277660fac1398fedd54671b463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (103 lines \u00D7 8): lib/Invoice.php:166-472 | lib/PaymentIntent.php:124-336 | lib/PaymentMethod.php:175-279 | lib/Payout.php:89-211 | lib/Quote.php:77-251 | lib/SetupIntent.php:93-217 | lib/Subscription.php:104-347 | lib/SubscriptionSchedule.php:64-166 \u2014 before extracting anything, compare \u0060lib/Invoice.php\u0060 and \u0060lib/PaymentIntent.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 2100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Invoice.php:166\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":"lib/Invoice.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e44b845f7f1f14657b3d2271253af28e5f544f0d7f8c8a0280dc8d9bb820e818"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (84 lines \u00D7 13): lib/Charge.php:86-273 | lib/CreditNote.php:104-239 | lib/Invoice.php:166-472 | lib/PaymentIntent.php:124-336 | lib/PaymentMethod.php:175-279 | lib/PaymentMethodDomain.php:44-127 | lib/Payout.php:89-211 | lib/Quote.php:77-251 | lib/Refund.php:89-177 | lib/SetupIntent.php:93-217 | lib/Subscription.php:104-347 | lib/SubscriptionSchedule.php:64-166 | lib/Topup.php:61-147 \u2014 before extracting anything, compare \u0060lib/Charge.php\u0060 and \u0060lib/CreditNote.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 1050 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Charge.php:86\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":"lib/Charge.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c182e06d8613306c735941f16f98bbf7e78a8c4c9d953b7bdd6b0c812d48c3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (85 lines \u00D7 7): lib/Charge.php:86-273 | lib/Customer.php:66-501 | lib/Invoice.php:166-472 | lib/PaymentIntent.php:124-336 | lib/Price.php:70-154 | lib/Product.php:60-228 | lib/Subscription.php:104-347 \u2014 before extracting anything, compare \u0060lib/Charge.php\u0060 and \u0060lib/Invoice.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 1486 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Charge.php:86\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":"lib/Charge.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c20ade1c35b55e1479c94bd8586146bb0bf06764d00b7556122b992dbecacd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (88 lines \u00D7 4): lib/Radar/ValueList.php:55-148 | lib/Terminal/Configuration.php:51-138 | lib/Terminal/Location.php:45-133 | lib/Terminal/Reader.php:69-293 \u2014 before extracting anything, compare \u0060lib/Radar/ValueList.php\u0060 and \u0060lib/Terminal/Configuration.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 675 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 \u0060lib/Radar/ValueList.php:55\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":"lib/Radar/ValueList.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa0d422edfd63cef9f4a45b0ac64f0b675dc9d17e4e9352fa4ef374f71ab0ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 2): lib/Radar/ValueListItem.php:37-104 | lib/TestHelpers/TestClock.php:42-123 \u2014 before extracting anything, compare \u0060lib/Radar/ValueListItem.php\u0060 and \u0060lib/TestHelpers/TestClock.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 272 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 \u0060lib/Radar/ValueListItem.php:37\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":"lib/Radar/ValueListItem.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb327e73d0f8d671748b38b6e7a62ae390bf2af46fa5b134170abb802ac2b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): lib/InvoiceRenderingTemplate.php:40-97 | lib/Review.php:58-110 \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 \u0060lib/InvoiceRenderingTemplate.php:40\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":"lib/InvoiceRenderingTemplate.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8104cd7b85b22cd3024b7a026d0f053fbc5999c0de65aa291f7d780ccf6b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 54): lib/Service/ApplePayDomainService.php:26-73 | lib/Service/Apps/InstallService.php:34-114 | lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Billing/FeedbackOptionService.php:26-90 | lib/Service/BillingPortal/ConfigurationService.php:27-76 | lib/Service/ChargeService.php:27-118 | lib/Service/Climate/OrderService.php:27-97 | lib/Service/CouponService.php:26-107 | lib/Service/Entitlements/FeatureService.php:26-73 | lib/Service/FileLinkService.php:26-73 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/InvoiceItemService.php:27-96 | lib/Service/Issuing/CardService.php:28-76 | lib/Service/Issuing/CardholderService.php:28-77 | lib/Service/Issuing/DisputeService.php:28-102 | lib/Service/Issuing/PersonalizationDesignService.php:28-75 | lib/Service/PaymentMethodConfigurationService.php:26-73 | lib/Service/PaymentMethodDomainService.php:26-100 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/PlanService.php:26-94 | lib/Service/PriceService.php:28-98 | lib/Service/ProductCatalog/TrialOfferService.php:26-74 | lib/Service/PromotionCodeService.php:26-78 | lib/Service/Radar/ValueListItemService.php:28-77 | lib/Service/Radar/ValueListService.php:28-96 | lib/Service/RefundService.php:28-109 | lib/Service/SetupIntentService.php:26-149 | lib/Service/ShippingRateService.php:26-73 | lib/Service/SubscriptionItemService.php:26-91 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Tax/RegistrationService.php:26-76 | lib/Service/TaxIdService.php:26-73 | lib/Service/TaxRateService.php:27-74 | lib/Service/Terminal/ConfigurationService.php:26-89 | lib/Service/Terminal/LocationService.php:26-92 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/TestClockService.php:28-90 | lib/Service/ThreeDSecure/AuthenticationService.php:26-103 | lib/Service/TopupService.php:26-92 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/Treasury/InboundTransferService.php:26-73 | lib/Service/Treasury/OutboundPaymentService.php:26-75 | lib/Service/Treasury/OutboundTransferService.php:26-75 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/GbBankAccountService.php:27-95 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/OutboundPaymentService.php:26-80 | lib/Service/V2/MoneyManagement/OutboundSetupIntentService.php:26-95 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 | lib/Service/WebhookEndpointService.php:26-100 \u2014 before extracting anything, compare \u0060lib/Service/ApplePayDomainService.php\u0060 and \u0060lib/Service/Apps/InstallService.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 1464 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 \u0060lib/Service/ApplePayDomainService.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. 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":"lib/Service/ApplePayDomainService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9705034d1303bcffbde75422e16ffd0ef00fd14214fcf9b916b2ccfa4d9ca029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (102 lines \u00D7 4): lib/Service/ApplicationFeeService.php:27-128 | lib/Service/CustomerService.php:27-501 | lib/Service/ProductService.php:27-181 | lib/Service/TransferService.php:28-164 \u2014 before extracting anything, compare \u0060lib/Service/CustomerService.php\u0060 and \u0060lib/Service/ProductService.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 1900 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/ApplicationFeeService.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. 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":"lib/Service/ApplicationFeeService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc66efc2bc9ea534f1b8f8946e90b7ae47da6aa44a76562d9f04efcda64c5bf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 34): lib/Service/Apps/InstallService.php:34-114 | lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Billing/FeedbackOptionService.php:26-90 | lib/Service/ChargeService.php:27-118 | lib/Service/Climate/OrderService.php:27-97 | lib/Service/CouponService.php:26-107 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/InvoiceItemService.php:27-96 | lib/Service/Issuing/DisputeService.php:28-102 | lib/Service/PaymentMethodDomainService.php:26-100 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/PlanService.php:26-94 | lib/Service/Radar/ValueListService.php:28-96 | lib/Service/RefundService.php:28-109 | lib/Service/SetupIntentService.php:26-149 | lib/Service/SubscriptionItemService.php:26-91 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ConfigurationService.php:26-89 | lib/Service/Terminal/LocationService.php:26-92 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/TestClockService.php:28-90 | lib/Service/ThreeDSecure/AuthenticationService.php:26-103 | lib/Service/TopupService.php:26-92 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/GbBankAccountService.php:27-95 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/OutboundSetupIntentService.php:26-95 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 | lib/Service/WebhookEndpointService.php:26-100 \u2014 before extracting anything, compare \u0060lib/Service/Apps/InstallService.php\u0060 and \u0060lib/Service/Billing/AlertService.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 2196 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 \u0060lib/Service/Apps/InstallService.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":"lib/Service/Apps/InstallService.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"970e186c31fb7aef4670fda850bc953feff00021caacfd9d3586229d047c3e4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 95): lib/Service/ApplePayDomainService.php:26-73 | lib/Service/Apps/InstallService.php:34-114 | lib/Service/BalanceTransactionService.php:31-50 | lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditBalanceTransactionService.php:26-42 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Billing/FeedbackOptionService.php:26-90 | lib/Service/BillingPortal/ConfigurationService.php:27-76 | lib/Service/ChargeService.php:27-118 | lib/Service/Climate/OrderService.php:27-97 | lib/Service/Climate/ProductService.php:26-42 | lib/Service/Climate/SupplierService.php:26-42 | lib/Service/CountrySpecService.php:26-42 | lib/Service/CouponService.php:26-107 | lib/Service/DisputeService.php:26-87 | lib/Service/Entitlements/ActiveEntitlementService.php:26-42 | lib/Service/Entitlements/FeatureService.php:26-73 | lib/Service/EventService.php:30-47 | lib/Service/ExchangeRateService.php:34-58 | lib/Service/FileLinkService.php:26-73 | lib/Service/FinancialConnections/TransactionService.php:26-42 | lib/Service/Forwarding/RequestService.php:26-57 | lib/Service/Identity/VerificationReportService.php:26-42 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/InvoiceItemService.php:27-96 | lib/Service/InvoicePaymentService.php:28-44 | lib/Service/InvoiceRenderingTemplateService.php:27-81 | lib/Service/Issuing/AuthorizationService.php:28-108 | lib/Service/Issuing/CardService.php:28-76 | lib/Service/Issuing/CardholderService.php:28-77 | lib/Service/Issuing/DisputeService.php:28-102 | lib/Service/Issuing/PersonalizationDesignService.php:28-75 | lib/Service/Issuing/PhysicalBundleService.php:27-43 | lib/Service/Issuing/TokenService.php:26-59 | lib/Service/Issuing/TransactionService.php:28-62 | lib/Service/PaymentAttemptRecordService.php:26-42 | lib/Service/PaymentMethodConfigurationService.php:26-73 | lib/Service/PaymentMethodDomainService.php:26-100 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/PlanService.php:26-94 | lib/Service/PriceService.php:28-98 | lib/Service/ProductCatalog/TrialOfferService.php:26-74 | lib/Service/PromotionCodeService.php:26-78 | lib/Service/Radar/EarlyFraudWarningService.php:26-46 | lib/Service/Radar/ValueListItemService.php:28-77 | lib/Service/Radar/ValueListService.php:28-96 | lib/Service/RefundService.php:28-109 | lib/Service/Reporting/ReportRunService.php:26-58 | lib/Service/Reporting/ReportTypeService.php:26-43 | lib/Service/ReviewService.php:28-61 | lib/Service/SetupIntentService.php:26-149 | lib/Service/ShippingRateService.php:26-73 | lib/Service/Sigma/ScheduledQueryRunService.php:26-42 | lib/Service/SubscriptionItemService.php:26-91 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Tax/LocationService.php:33-71 | lib/Service/Tax/RegistrationService.php:26-76 | lib/Service/TaxCodeService.php:27-44 | lib/Service/TaxIdService.php:26-73 | lib/Service/TaxRateService.php:27-74 | lib/Service/Terminal/ConfigurationService.php:26-89 | lib/Service/Terminal/LocationService.php:26-92 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/TestClockService.php:28-90 | lib/Service/ThreeDSecure/AuthenticationService.php:26-103 | lib/Service/TopupService.php:26-92 | lib/Service/Treasury/CreditReversalService.php:26-59 | lib/Service/Treasury/DebitReversalService.php:26-57 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/Treasury/InboundTransferService.php:26-73 | lib/Service/Treasury/OutboundPaymentService.php:26-75 | lib/Service/Treasury/OutboundTransferService.php:26-75 | lib/Service/Treasury/ReceivedCreditService.php:26-43 | lib/Service/Treasury/ReceivedDebitService.php:26-43 | lib/Service/Treasury/TransactionEntryService.php:26-42 | lib/Service/Treasury/TransactionService.php:26-42 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/EventService.php:26-44 | lib/Service/V2/Core/Vault/GbBankAccountService.php:27-95 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/AdjustmentService.php:26-42 | lib/Service/V2/MoneyManagement/FinancialAccountService.php:27-59 | lib/Service/V2/MoneyManagement/FinancialAddressService.php:26-58 | lib/Service/V2/MoneyManagement/InboundTransferService.php:26-59 | lib/Service/V2/MoneyManagement/OutboundPaymentService.php:26-80 | lib/Service/V2/MoneyManagement/OutboundSetupIntentService.php:26-95 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 | lib/Service/V2/MoneyManagement/PayoutMethodService.php:26-82 | lib/Service/V2/MoneyManagement/ReceivedCreditService.php:26-42 | lib/Service/V2/MoneyManagement/TransactionEntryService.php:26-42 | lib/Service/V2/MoneyManagement/TransactionService.php:26-74 | lib/Service/WebhookEndpointService.php:26-100 \u2014 before extracting anything, compare \u0060lib/Service/ApplePayDomainService.php\u0060 and \u0060lib/Service/Apps/InstallService.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 1464 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 \u0060lib/Service/ApplePayDomainService.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. 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":"lib/Service/ApplePayDomainService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0822980b1499a7f4f08363a55ae69f79bce51f1ee8aaa9bb5467e7c62aa172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (80 lines \u00D7 14): lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/SetupIntentService.php:26-149 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 \u2014 before extracting anything, compare \u0060lib/Service/Billing/AlertService.php\u0060 and \u0060lib/Service/Billing/CreditGrantService.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 2928 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/Billing/AlertService.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. 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":"lib/Service/Billing/AlertService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f45338d17dc760ec74aa1048edc710a7c8033b02f9eff060161372b6cb5228"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (98 lines \u00D7 2): lib/Service/Billing/MeterService.php:26-123 | lib/Service/PaymentIntentService.php:26-306 \u2014 before extracting anything, compare \u0060lib/Service/Billing/MeterService.php\u0060 and \u0060lib/Service/PaymentIntentService.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 1124 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 \u0060lib/Service/Billing/MeterService.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. 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":"lib/Service/Billing/MeterService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b235c9203fc3514692969765f37c0948de08cfdda8ca3cf0d550aee3b93b7ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (92 lines \u00D7 2): lib/Service/ChargeService.php:27-118 | lib/Service/SubscriptionService.php:27-270 \u2014 before extracting anything, compare \u0060lib/Service/ChargeService.php\u0060 and \u0060lib/Service/SubscriptionService.php\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 2684 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/ChargeService.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":"lib/Service/ChargeService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d04d239dfed44db69ece95a6e2d1fdd28153d2cdf0d5911fb9ebe5573343f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (91 lines \u00D7 4): lib/Service/Billing/MeterService.php:26-123 | lib/Service/Checkout/SessionService.php:26-116 | lib/Service/CreditNoteService.php:26-166 | lib/Service/PaymentIntentService.php:26-306 \u2014 before extracting anything, compare \u0060lib/Service/Billing/MeterService.php\u0060 and \u0060lib/Service/Checkout/SessionService.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 843 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 \u0060lib/Service/Billing/MeterService.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. 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":"lib/Service/Billing/MeterService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbb3f323c47e3aeca8eef2483e350bad8792591f4b8371dafbb4a0078f9a481"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 39): lib/Service/Apps/InstallService.php:34-114 | lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Billing/FeedbackOptionService.php:26-90 | lib/Service/ChargeService.php:27-118 | lib/Service/Climate/OrderService.php:27-97 | lib/Service/CouponService.php:26-107 | lib/Service/DisputeService.php:26-87 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/InvoiceItemService.php:27-96 | lib/Service/InvoiceRenderingTemplateService.php:27-81 | lib/Service/Issuing/AuthorizationService.php:28-108 | lib/Service/Issuing/DisputeService.php:28-102 | lib/Service/PaymentMethodDomainService.php:26-100 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/PlanService.php:26-94 | lib/Service/Radar/ValueListService.php:28-96 | lib/Service/RefundService.php:28-109 | lib/Service/SetupIntentService.php:26-149 | lib/Service/SubscriptionItemService.php:26-91 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ConfigurationService.php:26-89 | lib/Service/Terminal/LocationService.php:26-92 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/TestClockService.php:28-90 | lib/Service/ThreeDSecure/AuthenticationService.php:26-103 | lib/Service/TopupService.php:26-92 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/GbBankAccountService.php:27-95 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/OutboundSetupIntentService.php:26-95 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 | lib/Service/V2/MoneyManagement/PayoutMethodService.php:26-82 | lib/Service/V2/MoneyManagement/TransactionService.php:26-74 | lib/Service/WebhookEndpointService.php:26-100 \u2014 before extracting anything, compare \u0060lib/Service/Apps/InstallService.php\u0060 and \u0060lib/Service/Billing/AlertService.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 2196 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 \u0060lib/Service/Apps/InstallService.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":"lib/Service/Apps/InstallService.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a006a64511104b982b2441b8e363d9172d16c5c52c401f205cbf6509e1cb8970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (102 lines \u00D7 2): lib/Service/FinancialConnections/AccountService.php:26-127 | lib/Service/PaymentIntentService.php:26-306 \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 \u0060lib/Service/FinancialConnections/AccountService.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. 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":"lib/Service/FinancialConnections/AccountService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c69d25d5cd01968f190269e313384e99910bb638a47b29c19fe2f75a9504461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 66): lib/Service/ApplePayDomainService.php:26-73 | lib/Service/Apps/InstallService.php:34-114 | lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Billing/FeedbackOptionService.php:26-90 | lib/Service/BillingPortal/ConfigurationService.php:27-76 | lib/Service/ChargeService.php:27-118 | lib/Service/Climate/OrderService.php:27-97 | lib/Service/CouponService.php:26-107 | lib/Service/Entitlements/FeatureService.php:26-73 | lib/Service/FileLinkService.php:26-73 | lib/Service/FinancialConnections/SessionService.php:28-44 | lib/Service/Forwarding/RequestService.php:26-57 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/InvoiceItemService.php:27-96 | lib/Service/Issuing/CardService.php:28-76 | lib/Service/Issuing/CardholderService.php:28-77 | lib/Service/Issuing/DisputeService.php:28-102 | lib/Service/Issuing/PersonalizationDesignService.php:28-75 | lib/Service/PaymentMethodConfigurationService.php:26-73 | lib/Service/PaymentMethodDomainService.php:26-100 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/PlanService.php:26-94 | lib/Service/PriceService.php:28-98 | lib/Service/ProductCatalog/TrialOfferService.php:26-74 | lib/Service/PromotionCodeService.php:26-78 | lib/Service/Radar/ValueListItemService.php:28-77 | lib/Service/Radar/ValueListService.php:28-96 | lib/Service/RefundService.php:28-109 | lib/Service/Reporting/ReportRunService.php:26-58 | lib/Service/SetupIntentService.php:26-149 | lib/Service/ShippingRateService.php:26-73 | lib/Service/SubscriptionItemService.php:26-91 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Tax/LocationService.php:33-71 | lib/Service/Tax/RegistrationService.php:26-76 | lib/Service/TaxIdService.php:26-73 | lib/Service/TaxRateService.php:27-74 | lib/Service/Terminal/ConfigurationService.php:26-89 | lib/Service/Terminal/LocationService.php:26-92 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/Issuing/AuthorizationService.php:27-124 | lib/Service/TestHelpers/Issuing/TransactionService.php:26-57 | lib/Service/TestHelpers/TestClockService.php:28-90 | lib/Service/ThreeDSecure/AuthenticationService.php:26-103 | lib/Service/TokenService.php:31-47 | lib/Service/TopupService.php:26-92 | lib/Service/Treasury/CreditReversalService.php:26-59 | lib/Service/Treasury/DebitReversalService.php:26-57 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/Treasury/InboundTransferService.php:26-73 | lib/Service/Treasury/OutboundPaymentService.php:26-75 | lib/Service/Treasury/OutboundTransferService.php:26-75 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/GbBankAccountService.php:27-95 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/FinancialAddressService.php:26-58 | lib/Service/V2/MoneyManagement/InboundTransferService.php:26-59 | lib/Service/V2/MoneyManagement/OutboundPaymentService.php:26-80 | lib/Service/V2/MoneyManagement/OutboundSetupIntentService.php:26-95 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 | lib/Service/V2/MoneyManagement/RecipientVerificationService.php:28-61 | lib/Service/WebhookEndpointService.php:26-100 \u2014 before extracting anything, compare \u0060lib/Service/ApplePayDomainService.php\u0060 and \u0060lib/Service/Apps/InstallService.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 1464 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 \u0060lib/Service/ApplePayDomainService.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. 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":"lib/Service/ApplePayDomainService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82040225c99ec4657a8310a8f20da1e38b756f983c20edcbf9128e65c968cf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 61): lib/Service/ApplePayDomainService.php:26-73 | lib/Service/Apps/InstallService.php:34-114 | lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Billing/FeedbackOptionService.php:26-90 | lib/Service/BillingPortal/ConfigurationService.php:27-76 | lib/Service/ChargeService.php:27-118 | lib/Service/Climate/OrderService.php:27-97 | lib/Service/CouponService.php:26-107 | lib/Service/Entitlements/FeatureService.php:26-73 | lib/Service/FileLinkService.php:26-73 | lib/Service/Forwarding/RequestService.php:26-57 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/InvoiceItemService.php:27-96 | lib/Service/Issuing/CardService.php:28-76 | lib/Service/Issuing/CardholderService.php:28-77 | lib/Service/Issuing/DisputeService.php:28-102 | lib/Service/Issuing/PersonalizationDesignService.php:28-75 | lib/Service/PaymentMethodConfigurationService.php:26-73 | lib/Service/PaymentMethodDomainService.php:26-100 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/PlanService.php:26-94 | lib/Service/PriceService.php:28-98 | lib/Service/ProductCatalog/TrialOfferService.php:26-74 | lib/Service/PromotionCodeService.php:26-78 | lib/Service/Radar/ValueListItemService.php:28-77 | lib/Service/Radar/ValueListService.php:28-96 | lib/Service/RefundService.php:28-109 | lib/Service/Reporting/ReportRunService.php:26-58 | lib/Service/SetupIntentService.php:26-149 | lib/Service/ShippingRateService.php:26-73 | lib/Service/SubscriptionItemService.php:26-91 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Tax/LocationService.php:33-71 | lib/Service/Tax/RegistrationService.php:26-76 | lib/Service/TaxIdService.php:26-73 | lib/Service/TaxRateService.php:27-74 | lib/Service/Terminal/ConfigurationService.php:26-89 | lib/Service/Terminal/LocationService.php:26-92 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/TestClockService.php:28-90 | lib/Service/ThreeDSecure/AuthenticationService.php:26-103 | lib/Service/TopupService.php:26-92 | lib/Service/Treasury/CreditReversalService.php:26-59 | lib/Service/Treasury/DebitReversalService.php:26-57 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/Treasury/InboundTransferService.php:26-73 | lib/Service/Treasury/OutboundPaymentService.php:26-75 | lib/Service/Treasury/OutboundTransferService.php:26-75 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/GbBankAccountService.php:27-95 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/FinancialAddressService.php:26-58 | lib/Service/V2/MoneyManagement/InboundTransferService.php:26-59 | lib/Service/V2/MoneyManagement/OutboundPaymentService.php:26-80 | lib/Service/V2/MoneyManagement/OutboundSetupIntentService.php:26-95 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 | lib/Service/WebhookEndpointService.php:26-100 \u2014 before extracting anything, compare \u0060lib/Service/ApplePayDomainService.php\u0060 and \u0060lib/Service/Apps/InstallService.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 1464 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 \u0060lib/Service/ApplePayDomainService.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. 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":"lib/Service/ApplePayDomainService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8770154bc800223a9219f383a705487e1873c0670593609f426db99ab3b8174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (80 lines \u00D7 15): lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/Issuing/AuthorizationService.php:28-108 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/SetupIntentService.php:26-149 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 \u2014 before extracting anything, compare \u0060lib/Service/Billing/AlertService.php\u0060 and \u0060lib/Service/Billing/CreditGrantService.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 2928 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/Billing/AlertService.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. 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":"lib/Service/Billing/AlertService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb62590328b9596a5230aade776a23b49965887c8d95b252cdfdce5df48e601e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 63): lib/Service/ApplePayDomainService.php:26-73 | lib/Service/Apps/InstallService.php:34-114 | lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Billing/FeedbackOptionService.php:26-90 | lib/Service/BillingPortal/ConfigurationService.php:27-76 | lib/Service/ChargeService.php:27-118 | lib/Service/Climate/OrderService.php:27-97 | lib/Service/CouponService.php:26-107 | lib/Service/DisputeService.php:26-87 | lib/Service/Entitlements/FeatureService.php:26-73 | lib/Service/FileLinkService.php:26-73 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/InvoiceItemService.php:27-96 | lib/Service/InvoiceRenderingTemplateService.php:27-81 | lib/Service/Issuing/AuthorizationService.php:28-108 | lib/Service/Issuing/CardService.php:28-76 | lib/Service/Issuing/CardholderService.php:28-77 | lib/Service/Issuing/DisputeService.php:28-102 | lib/Service/Issuing/PersonalizationDesignService.php:28-75 | lib/Service/Issuing/TokenService.php:26-59 | lib/Service/Issuing/TransactionService.php:28-62 | lib/Service/PaymentMethodConfigurationService.php:26-73 | lib/Service/PaymentMethodDomainService.php:26-100 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/PlanService.php:26-94 | lib/Service/PriceService.php:28-98 | lib/Service/ProductCatalog/TrialOfferService.php:26-74 | lib/Service/PromotionCodeService.php:26-78 | lib/Service/Radar/ValueListItemService.php:28-77 | lib/Service/Radar/ValueListService.php:28-96 | lib/Service/RefundService.php:28-109 | lib/Service/ReviewService.php:28-61 | lib/Service/SetupIntentService.php:26-149 | lib/Service/ShippingRateService.php:26-73 | lib/Service/SubscriptionItemService.php:26-91 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Tax/RegistrationService.php:26-76 | lib/Service/TaxIdService.php:26-73 | lib/Service/TaxRateService.php:27-74 | lib/Service/Terminal/ConfigurationService.php:26-89 | lib/Service/Terminal/LocationService.php:26-92 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/TestClockService.php:28-90 | lib/Service/ThreeDSecure/AuthenticationService.php:26-103 | lib/Service/TopupService.php:26-92 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/Treasury/InboundTransferService.php:26-73 | lib/Service/Treasury/OutboundPaymentService.php:26-75 | lib/Service/Treasury/OutboundTransferService.php:26-75 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/GbBankAccountService.php:27-95 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/FinancialAccountService.php:27-59 | lib/Service/V2/MoneyManagement/OutboundPaymentService.php:26-80 | lib/Service/V2/MoneyManagement/OutboundSetupIntentService.php:26-95 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 | lib/Service/V2/MoneyManagement/PayoutMethodService.php:26-82 | lib/Service/V2/MoneyManagement/TransactionService.php:26-74 | lib/Service/WebhookEndpointService.php:26-100 \u2014 before extracting anything, compare \u0060lib/Service/ApplePayDomainService.php\u0060 and \u0060lib/Service/Apps/InstallService.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 1464 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 \u0060lib/Service/ApplePayDomainService.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. 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":"lib/Service/ApplePayDomainService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a20a518153881c49b07ae4641825b984b33444964458a093e6f7920bb33617"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 5): lib/Service/Billing/MeterService.php:26-123 | lib/Service/Checkout/SessionService.php:26-116 | lib/Service/CreditNoteService.php:26-166 | lib/Service/PaymentIntentService.php:26-306 | lib/Service/PaymentLinkService.php:26-92 \u2014 before extracting anything, compare \u0060lib/Service/Billing/MeterService.php\u0060 and \u0060lib/Service/Checkout/SessionService.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 843 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 \u0060lib/Service/Billing/MeterService.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. 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":"lib/Service/Billing/MeterService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7a97ce4546b2afc0e2c3bbf199fda17b93fbd24966c498a34b168788af4ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (136 lines \u00D7 3): lib/Service/PaymentRecordService.php:26-161 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ReaderService.php:26-234 \u2014 before extracting anything, compare \u0060lib/Service/PaymentRecordService.php\u0060 and \u0060lib/Service/SubscriptionService.php\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 4148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/PaymentRecordService.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. 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":"lib/Service/PaymentRecordService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4656cff43fddcc7ae5ad353936cfa71003b11663c5bcac90ab73f7171435c962"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (71 lines \u00D7 3): lib/Service/ChargeService.php:27-118 | lib/Service/PriceService.php:28-98 | lib/Service/SubscriptionService.php:27-270 \u2014 before extracting anything, compare \u0060lib/Service/ChargeService.php\u0060 and \u0060lib/Service/PriceService.php\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 1708 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/ChargeService.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":"lib/Service/ChargeService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ad2d2dd3db75571dbd889c952688669bdde748ccd81466c0b498300faf3690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (155 lines \u00D7 2): lib/Service/CustomerService.php:27-501 | lib/Service/ProductService.php:27-181 \u2014 before extracting anything, compare \u0060lib/Service/CustomerService.php\u0060 and \u0060lib/Service/ProductService.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 1900 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/CustomerService.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. 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":"lib/Service/CustomerService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be8ffbd88bdcaa8b60e02663634e1f60a1267ce1e23b694b91edea3f9d62f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (99 lines \u00D7 8): lib/Service/PaymentRecordService.php:26-161 | lib/Service/SetupIntentService.php:26-149 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 \u2014 before extracting anything, compare \u0060lib/Service/PaymentRecordService.php\u0060 and \u0060lib/Service/SetupIntentService.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 3416 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/PaymentRecordService.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. 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":"lib/Service/PaymentRecordService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c364664e7e635e096e5e898a42dd75d0dd0f38bf2514e8c4344aa77e7756ea7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (89 lines \u00D7 5): lib/Service/CustomerService.php:27-501 | lib/Service/InvoiceService.php:28-390 | lib/Service/ProductService.php:27-181 | lib/Service/SourceService.php:27-115 | lib/Service/TransferService.php:28-164 \u2014 before extracting anything, compare \u0060lib/Service/CustomerService.php\u0060 and \u0060lib/Service/ProductService.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 1900 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/CustomerService.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. 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":"lib/Service/CustomerService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64e27081dcef6ed014d3b0c5d92526eedd4631e9dcc58cfd2950753bf648cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 7): lib/Service/Billing/MeterService.php:26-123 | lib/Service/Checkout/SessionService.php:26-116 | lib/Service/CreditNoteService.php:26-166 | lib/Service/PaymentIntentService.php:26-306 | lib/Service/PaymentLinkService.php:26-92 | lib/Service/Tax/CalculationService.php:28-61 | lib/Service/Tax/TransactionService.php:27-74 \u2014 before extracting anything, compare \u0060lib/Service/Billing/MeterService.php\u0060 and \u0060lib/Service/Checkout/SessionService.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 843 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 \u0060lib/Service/Billing/MeterService.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. 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":"lib/Service/Billing/MeterService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87d98cd5aecff16aab79c62ba326f223a8206549f3b508bb5f457c3260530f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): lib/Service/CreditNoteService.php:26-166 | lib/Service/Tax/TransactionService.php:27-74 \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 \u0060lib/Service/CreditNoteService.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. 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":"lib/Service/CreditNoteService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c123f2788059b626b336e4b1b71acafda8a4a19b788e355158a6c64746ea78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (98 lines \u00D7 7): lib/Service/PaymentRecordService.php:26-161 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/Issuing/AuthorizationService.php:27-124 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 \u2014 before extracting anything, compare \u0060lib/Service/PaymentRecordService.php\u0060 and \u0060lib/Service/SubscriptionService.php\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 4148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/PaymentRecordService.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. 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":"lib/Service/PaymentRecordService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c700bfc2113526333f616eeb00180fd0bc8b575327271a458c496f13d0b3af94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 10): lib/Service/PaymentRecordService.php:26-161 | lib/Service/SetupIntentService.php:26-149 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/Issuing/AuthorizationService.php:27-124 | lib/Service/TestHelpers/Issuing/CardService.php:28-97 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 \u2014 before extracting anything, compare \u0060lib/Service/PaymentRecordService.php\u0060 and \u0060lib/Service/SetupIntentService.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 3416 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/PaymentRecordService.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. 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":"lib/Service/PaymentRecordService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bae6aafe3d3794c17c8e71254f3ff9fbae2bb0b0ca080c130a077640026b80e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 46): lib/Service/Apps/InstallService.php:34-114 | lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Billing/FeedbackOptionService.php:26-90 | lib/Service/ChargeService.php:27-118 | lib/Service/Climate/OrderService.php:27-97 | lib/Service/CouponService.php:26-107 | lib/Service/DisputeService.php:26-87 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/InvoiceItemService.php:27-96 | lib/Service/InvoiceRenderingTemplateService.php:27-81 | lib/Service/Issuing/AuthorizationService.php:28-108 | lib/Service/Issuing/DisputeService.php:28-102 | lib/Service/PaymentMethodDomainService.php:26-100 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/PlanService.php:26-94 | lib/Service/Radar/ValueListService.php:28-96 | lib/Service/RefundService.php:28-109 | lib/Service/SetupIntentService.php:26-149 | lib/Service/SubscriptionItemService.php:26-91 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ConfigurationService.php:26-89 | lib/Service/Terminal/LocationService.php:26-92 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/Issuing/AuthorizationService.php:27-124 | lib/Service/TestHelpers/Issuing/CardService.php:28-97 | lib/Service/TestHelpers/Issuing/PersonalizationDesignService.php:28-62 | lib/Service/TestHelpers/Terminal/ReaderService.php:28-62 | lib/Service/TestHelpers/TestClockService.php:28-90 | lib/Service/TestHelpers/Treasury/InboundTransferService.php:29-65 | lib/Service/TestHelpers/Treasury/OutboundPaymentService.php:29-83 | lib/Service/TestHelpers/Treasury/OutboundTransferService.php:29-83 | lib/Service/ThreeDSecure/AuthenticationService.php:26-103 | lib/Service/TopupService.php:26-92 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/GbBankAccountService.php:27-95 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/OutboundSetupIntentService.php:26-95 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 | lib/Service/V2/MoneyManagement/PayoutMethodService.php:26-82 | lib/Service/V2/MoneyManagement/TransactionService.php:26-74 | lib/Service/WebhookEndpointService.php:26-100 \u2014 before extracting anything, compare \u0060lib/Service/Apps/InstallService.php\u0060 and \u0060lib/Service/Billing/AlertService.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 2196 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 \u0060lib/Service/Apps/InstallService.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":"lib/Service/Apps/InstallService.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51f49055320f29b5f59843c23e6b0a6c240b7b36fa1ac30db5123911f6560eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 19): lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/Issuing/AuthorizationService.php:28-108 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/SetupIntentService.php:26-149 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/Issuing/AuthorizationService.php:27-124 | lib/Service/TestHelpers/Issuing/CardService.php:28-97 | lib/Service/TestHelpers/Treasury/OutboundPaymentService.php:29-83 | lib/Service/TestHelpers/Treasury/OutboundTransferService.php:29-83 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 \u2014 before extracting anything, compare \u0060lib/Service/Billing/AlertService.php\u0060 and \u0060lib/Service/Billing/CreditGrantService.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 2928 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/Billing/AlertService.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. 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":"lib/Service/Billing/AlertService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"928aa4f29ab27a8b33805a8643556a0b8aff5cbd9c89592299999da1540cccf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (137 lines \u00D7 3): lib/Service/CustomerService.php:27-501 | lib/Service/ProductService.php:27-181 | lib/Service/TransferService.php:28-164 \u2014 before extracting anything, compare \u0060lib/Service/CustomerService.php\u0060 and \u0060lib/Service/ProductService.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 1900 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/CustomerService.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. 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":"lib/Service/CustomerService.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e717a06ca94c521664dff97d915779a4c7fe2760eadca23795ef3397575f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (212 lines \u00D7 2): lib/Service/V2/Commerce/ProductCatalog/ImportService.php:26-237 | lib/Service/V2/Core/AccountService.php:36-284 \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 \u0060lib/Service/V2/Commerce/ProductCatalog/ImportService.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. 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":"lib/Service/V2/Commerce/ProductCatalog/ImportService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b572e0ffe89fd2a112c302ca04434a3423c83e953d215e17f14b8d25007a1a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (112 lines \u00D7 6): lib/Service/PaymentRecordService.php:26-161 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 \u2014 before extracting anything, compare \u0060lib/Service/PaymentRecordService.php\u0060 and \u0060lib/Service/SubscriptionService.php\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 4148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Service/PaymentRecordService.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. 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":"lib/Service/PaymentRecordService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8302228ce10d93c01ca7cedafb18be3e2e205befa75c937f3d4da27d94a0ba78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 56): lib/Service/ApplePayDomainService.php:26-73 | lib/Service/Apps/InstallService.php:34-114 | lib/Service/Billing/AlertService.php:27-106 | lib/Service/Billing/CreditGrantService.php:26-105 | lib/Service/Billing/FeedbackOptionService.php:26-90 | lib/Service/BillingPortal/ConfigurationService.php:27-76 | lib/Service/ChargeService.php:27-118 | lib/Service/Climate/OrderService.php:27-97 | lib/Service/CouponService.php:26-107 | lib/Service/Entitlements/FeatureService.php:26-73 | lib/Service/FileLinkService.php:26-73 | lib/Service/Identity/VerificationSessionService.php:26-149 | lib/Service/InvoiceItemService.php:27-96 | lib/Service/Issuing/CardService.php:28-76 | lib/Service/Issuing/CardholderService.php:28-77 | lib/Service/Issuing/DisputeService.php:28-102 | lib/Service/Issuing/PersonalizationDesignService.php:28-75 | lib/Service/PaymentMethodConfigurationService.php:26-73 | lib/Service/PaymentMethodDomainService.php:26-100 | lib/Service/PaymentMethodService.php:26-136 | lib/Service/PaymentRecordService.php:26-161 | lib/Service/PayoutService.php:28-130 | lib/Service/PlanService.php:26-94 | lib/Service/PriceService.php:28-98 | lib/Service/ProductCatalog/TrialOfferService.php:26-74 | lib/Service/PromotionCodeService.php:26-78 | lib/Service/Radar/ValueListItemService.php:28-77 | lib/Service/Radar/ValueListService.php:28-96 | lib/Service/RefundService.php:28-109 | lib/Service/SetupIntentService.php:26-149 | lib/Service/ShippingRateService.php:26-73 | lib/Service/SubscriptionItemService.php:26-91 | lib/Service/SubscriptionScheduleService.php:26-116 | lib/Service/SubscriptionService.php:27-270 | lib/Service/Tax/RegistrationService.php:26-76 | lib/Service/TaxIdService.php:26-73 | lib/Service/TaxRateService.php:27-74 | lib/Service/Terminal/ConfigurationService.php:26-89 | lib/Service/Terminal/LocationService.php:26-92 | lib/Service/Terminal/ReaderService.php:26-234 | lib/Service/TestHelpers/Issuing/AuthorizationService.php:27-124 | lib/Service/TestHelpers/TestClockService.php:28-90 | lib/Service/ThreeDSecure/AuthenticationService.php:26-103 | lib/Service/TopupService.php:26-92 | lib/Service/Treasury/FinancialAccountService.php:26-124 | lib/Service/Treasury/InboundTransferService.php:26-73 | lib/Service/Treasury/OutboundPaymentService.php:26-75 | lib/Service/Treasury/OutboundTransferService.php:26-75 | lib/Service/V2/Core/EventDestinationService.php:26-137 | lib/Service/V2/Core/Vault/GbBankAccountService.php:27-95 | lib/Service/V2/Core/Vault/UsBankAccountService.php:26-155 | lib/Service/V2/MoneyManagement/OutboundPaymentService.php:26-80 | lib/Service/V2/MoneyManagement/OutboundSetupIntentService.php:26-95 | lib/Service/V2/MoneyManagement/PayoutIntentService.php:26-144 | lib/Service/V2/MoneyManagement/RecipientVerificationService.php:28-61 | lib/Service/WebhookEndpointService.php:26-100 \u2014 before extracting anything, compare \u0060lib/Service/ApplePayDomainService.php\u0060 and \u0060lib/Service/Apps/InstallService.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 1464 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 \u0060lib/Service/ApplePayDomainService.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. 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":"lib/Service/ApplePayDomainService.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e316bcaf1d592771588475a6145a4e322f929b8e917e15e39cd87fbc9b7ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (125 lines \u00D7 5): lib/Invoice.php:166-472 | lib/PaymentIntent.php:124-336 | lib/Quote.php:77-251 | lib/SetupIntent.php:93-217 | lib/Subscription.php:104-347 \u2014 before extracting anything, compare \u0060lib/Invoice.php\u0060 and \u0060lib/PaymentIntent.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 2100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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 \u0060lib/Invoice.php:166\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":"lib/Invoice.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ad64025ab81603228d28e3d0ec1bec3e1127cab39c77935399bead15c467e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2): lib/ApplePayDomain.php:30-103 | lib/TaxId.php:178-242 \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 \u0060lib/ApplePayDomain.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. 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":"lib/ApplePayDomain.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1380e9dee83ceee8ead2505c6673cedbc9c39d09dcf2d761e32d5b1f20eaa7cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): lib/Billing/Alert.php:38-132 | lib/ThreeDSecure/Authentication.php:92-169 \u2014 before extracting anything, compare \u0060lib/Billing/Alert.php\u0060 and \u0060lib/ThreeDSecure/Authentication.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 380 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 \u0060lib/Billing/Alert.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":"lib/Billing/Alert.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f3b850f853c5d5aeff2c3cdd73804672994bdaa2dda597071822dee728da02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): lib/ApplePayDomain.php:30-103 | lib/TaxId.php:178-242 | lib/Token.php:65-91 \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 \u0060lib/ApplePayDomain.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. 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":"lib/ApplePayDomain.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9dae33c824bcc034c208d0f482aee0ce1a9dc8e69a46e6dc374f1051403af9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 6): lib/Billing/Alert.php:38-132 | lib/TestHelpers/TestClock.php:42-123 | lib/ThreeDSecure/Authentication.php:92-169 | lib/Treasury/InboundTransfer.php:56-116 | lib/Treasury/OutboundPayment.php:61-123 | lib/Treasury/OutboundTransfer.php:59-121 \u2014 before extracting anything, compare \u0060lib/Billing/Alert.php\u0060 and \u0060lib/TestHelpers/TestClock.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 285 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 \u0060lib/Billing/Alert.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":"lib/Billing/Alert.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e141112eb075d9bc475178ab3ca4641f5417985dcc4532fc268a7b82626a947"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): lib/Apps/Secret.php:81-86 | lib/Apps/Secret.php:99-104 | lib/Tax/Transaction.php:65-70 | lib/Tax/Transaction.php:83-88 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. 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":"lib/Apps/Secret.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"004de5487d05ace7a761b07e6ec460b7d24a1d5ea4c06b4f38bc9f0ed33afd84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/Collection.php:60-68 | lib/SearchResult.php:72-80 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/Collection.php:60\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":"lib/Collection.php"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9867bddeba6946e47294eeabe0d6e423f610053e0c785ed23a5e15909206816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 313): lib/Events/V1AccountUpdatedEvent.php:23-29 | lib/Events/V1ApplicationFeeCreatedEvent.php:23-29 | lib/Events/V1ApplicationFeeRefundUpdatedEvent.php:23-29 | lib/Events/V1ApplicationFeeRefundedEvent.php:23-29 | lib/Events/V1BalanceAvailableEvent.php:23-29 | lib/Events/V1BalanceSettingsUpdatedEvent.php:23-29 | lib/Events/V1BillingAlertTriggeredEvent.php:23-29 | lib/Events/V1BillingCreditBalanceTransactionCreatedEvent.php:23-29 | lib/Events/V1BillingCreditGrantCreatedEvent.php:23-29 | lib/Events/V1BillingCreditGrantUpdatedEvent.php:23-29 | lib/Events/V1BillingMeterCreatedEvent.php:23-29 | lib/Events/V1BillingMeterDeactivatedEvent.php:23-29 | lib/Events/V1BillingMeterErrorReportTriggeredEvent.php:24-30 | lib/Events/V1BillingMeterReactivatedEvent.php:23-29 | lib/Events/V1BillingMeterUpdatedEvent.php:23-29 | lib/Events/V1BillingPortalConfigurationCreatedEvent.php:23-29 | lib/Events/V1BillingPortalConfigurationUpdatedEvent.php:23-29 | lib/Events/V1CapabilityUpdatedEvent.php:23-29 | lib/Events/V1CashBalanceFundsAvailableEvent.php:23-29 | lib/Events/V1ChargeCapturedEvent.php:23-29 | lib/Events/V1ChargeDisputeClosedEvent.php:23-29 | lib/Events/V1ChargeDisputeCreatedEvent.php:23-29 | lib/Events/V1ChargeDisputeFundsReinstatedEvent.php:23-29 | lib/Events/V1ChargeDisputeFundsWithdrawnEvent.php:23-29 | lib/Events/V1ChargeDisputeUpdatedEvent.php:23-29 | lib/Events/V1ChargeExpiredEvent.php:23-29 | lib/Events/V1ChargeFailedEvent.php:23-29 | lib/Events/V1ChargePendingEvent.php:23-29 | lib/Events/V1ChargeRefundUpdatedEvent.php:23-29 | lib/Events/V1ChargeRefundedEvent.php:23-29 | lib/Events/V1ChargeSucceededEvent.php:23-29 | lib/Events/V1ChargeUpdatedEvent.php:23-29 | lib/Events/V1CheckoutSessionAsyncPaymentFailedEvent.php:23-29 | lib/Events/V1CheckoutSessionAsyncPaymentSucceededEvent.php:23-29 | lib/Events/V1CheckoutSessionCompletedEvent.php:23-29 | lib/Events/V1CheckoutSessionExpiredEvent.php:23-29 | lib/Events/V1ClimateOrderCanceledEvent.php:23-29 | lib/Events/V1ClimateOrderCreatedEvent.php:23-29 | lib/Events/V1ClimateOrderDelayedEvent.php:23-29 | lib/Events/V1ClimateOrderDeliveredEvent.php:23-29 | lib/Events/V1ClimateOrderProductSubstitutedEvent.php:23-29 | lib/Events/V1ClimateProductCreatedEvent.php:23-29 | lib/Events/V1ClimateProductPricingUpdatedEvent.php:23-29 | lib/Events/V1CouponCreatedEvent.php:23-29 | lib/Events/V1CouponDeletedEvent.php:23-29 | lib/Events/V1CouponUpdatedEvent.php:23-29 | lib/Events/V1CreditNoteCreatedEvent.php:23-29 | lib/Events/V1CreditNoteUpdatedEvent.php:23-29 | lib/Events/V1CreditNoteVoidedEvent.php:23-29 | lib/Events/V1CustomerCashBalanceTransactionCreatedEvent.php:23-29 | lib/Events/V1CustomerCreatedEvent.php:23-29 | lib/Events/V1CustomerDeletedEvent.php:23-29 | lib/Events/V1CustomerDiscountCreatedEvent.php:23-29 | lib/Events/V1CustomerDiscountDeletedEvent.php:23-29 | lib/Events/V1CustomerDiscountUpdatedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionActiveEvent.php:23-29 | lib/Events/V1CustomerSubscriptionCancelAtChangedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionCreatedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionDefaultPaymentMethodChangedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionDeletedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionIncompleteEvent.php:23-29 | lib/Events/V1CustomerSubscriptionIncompleteExpiredEvent.php:23-29 | lib/Events/V1CustomerSubscriptionItemAddedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionItemPriceChangedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionItemQuantityChangedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionItemRemovedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionItemTaxRatesChangedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionPastDueEvent.php:23-29 | lib/Events/V1CustomerSubscriptionPausedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionPendingUpdateAppliedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionPendingUpdateExpiredEvent.php:23-29 | lib/Events/V1CustomerSubscriptionResumedEvent.php:23-29 | lib/Events/V1CustomerSubscriptionTrialWillEndEvent.php:23-29 | lib/Events/V1CustomerSubscriptionTrialingEvent.php:23-29 | lib/Events/V1CustomerSubscriptionUnpaidEvent.php:23-29 | lib/Events/V1CustomerSubscriptionUpdatedEvent.php:23-29 | lib/Events/V1CustomerTaxIdCreatedEvent.php:23-29 | lib/Events/V1CustomerTaxIdDeletedEvent.php:23-29 | lib/Events/V1CustomerTaxIdUpdatedEvent.php:23-29 | lib/Events/V1CustomerUpdatedEvent.php:23-29 | lib/Events/V1FileCreatedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountAccountNumbersUpdatedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountBalanceRefreshFailedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountBalanceRefreshSucceededEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountCreatedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountDeactivatedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountDisconnectedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountExpectedDeactivationDateUpdatedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountInferredBalancesRefreshFailedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountInferredBalancesRefreshSucceededEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountOwnershipRefreshFailedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountOwnershipRefreshSucceededEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountReactivatedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountRefreshedBalanceEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountRefreshedOwnershipEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountRefreshedTransactionsEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountRiskIntelligenceRefreshFailedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountRiskIntelligenceRefreshSucceededEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountSupportedPaymentMethodTypesUpdatedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountTransactionsRefreshFailedEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountTransactionsRefreshSucceededEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountUpcomingAccountNumberExpiryEvent.php:23-29 | lib/Events/V1FinancialConnectionsAccountUpcomingDeactivationEvent.php:23-29 | lib/Events/V1IdentityVerificationSessionCanceledEvent.php:23-29 | lib/Events/V1IdentityVerificationSessionCreatedEvent.php:23-29 | lib/Events/V1IdentityVerificationSessionProcessingEvent.php:23-29 | lib/Events/V1IdentityVerificationSessionRedactedEvent.php:23-29 | lib/Events/V1IdentityVerificationSessionRequiresInputEvent.php:23-29 | lib/Events/V1IdentityVerificationSessionVerifiedEvent.php:23-29 | lib/Events/V1InvoiceCreatedEvent.php:23-29 | lib/Events/V1InvoiceDeletedEvent.php:23-29 | lib/Events/V1InvoiceDiscountAddedEvent.php:23-29 | lib/Events/V1InvoiceDiscountRemovedEvent.php:23-29 | lib/Events/V1InvoiceFinalizationFailedEvent.php:23-29 | lib/Events/V1InvoiceFinalizedEvent.php:23-29 | lib/Events/V1InvoiceLineItemAddedEvent.php:23-29 | lib/Events/V1InvoiceLineItemPricingChangedEvent.php:23-29 | lib/Events/V1InvoiceLineItemQuantityChangedEvent.php:23-29 | lib/Events/V1InvoiceLineItemRemovedEvent.php:23-29 | lib/Events/V1InvoiceMarkedUncollectibleEvent.php:23-29 | lib/Events/V1InvoiceOverdueEvent.php:23-29 | lib/Events/V1InvoiceOverpaidEvent.php:23-29 | lib/Events/V1InvoicePaidEvent.php:23-29 | lib/Events/V1InvoicePaymentActionRequiredEvent.php:23-29 | lib/Events/V1InvoicePaymentAttemptRequiredEvent.php:23-29 | lib/Events/V1InvoicePaymentCanceledEvent.php:23-29 | lib/Events/V1InvoicePaymentFailedEvent.php:23-29 | lib/Events/V1InvoicePaymentOpenEvent.php:23-29 | lib/Events/V1InvoicePaymentPaidEvent.php:23-29 | lib/Events/V1InvoicePaymentSucceededEvent.php:23-29 | lib/Events/V1InvoiceSentEvent.php:23-29 | lib/Events/V1InvoiceUpdatedEvent.php:23-29 | lib/Events/V1InvoiceVoidedEvent.php:23-29 | lib/Events/V1InvoiceWillBeDueEvent.php:23-29 | lib/Events/V1InvoiceitemAmountChangedEvent.php:23-29 | lib/Events/V1InvoiceitemCreatedEvent.php:23-29 | lib/Events/V1InvoiceitemDeletedEvent.php:23-29 | lib/Events/V1InvoiceitemDiscountAddedEvent.php:23-29 | lib/Events/V1InvoiceitemDiscountRemovedEvent.php:23-29 | lib/Events/V1IssuingAuthorizationCreatedEvent.php:23-29 | lib/Events/V1IssuingAuthorizationRequestEvent.php:23-29 | lib/Events/V1IssuingAuthorizationUpdatedEvent.php:23-29 | lib/Events/V1IssuingCardCreatedEvent.php:23-29 | lib/Events/V1IssuingCardUpdatedEvent.php:23-29 | lib/Events/V1IssuingCardholderCreatedEvent.php:23-29 | lib/Events/V1IssuingCardholderUpdatedEvent.php:23-29 | lib/Events/V1IssuingDisputeClosedEvent.php:23-29 | lib/Events/V1IssuingDisputeCreatedEvent.php:23-29 | lib/Events/V1IssuingDisputeFundsReinstatedEvent.php:23-29 | lib/Events/V1IssuingDisputeFundsRescindedEvent.php:23-29 | lib/Events/V1IssuingDisputeSubmittedEvent.php:23-29 | lib/Events/V1IssuingDisputeUpdatedEvent.php:23-29 | lib/Events/V1IssuingPersonalizationDesignActivatedEvent.php:23-29 | lib/Events/V1IssuingPersonalizationDesignDeactivatedEvent.php:23-29 | lib/Events/V1IssuingPersonalizationDesignRejectedEvent.php:23-29 | lib/Events/V1IssuingPersonalizationDesignUpdatedEvent.php:23-29 | lib/Events/V1IssuingTokenCreatedEvent.php:23-29 | lib/Events/V1IssuingTokenUpdatedEvent.php:23-29 | lib/Events/V1IssuingTransactionCreatedEvent.php:23-29 | lib/Events/V1IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.php:23-29 | lib/Events/V1IssuingTransactionUpdatedEvent.php:23-29 | lib/Events/V1MandateUpdatedEvent.php:23-29 | lib/Events/V1PaymentIntentAmountCapturableUpdatedEvent.php:23-29 | lib/Events/V1PaymentIntentCanceledEvent.php:23-29 | lib/Events/V1PaymentIntentCreatedEvent.php:23-29 | lib/Events/V1PaymentIntentPartiallyFundedEvent.php:23-29 | lib/Events/V1PaymentIntentPaymentFailedEvent.php:23-29 | lib/Events/V1PaymentIntentProcessingEvent.php:23-29 | lib/Events/V1PaymentIntentRequiresActionEvent.php:23-29 | lib/Events/V1PaymentIntentSucceededEvent.php:23-29 | lib/Events/V1PaymentLinkCreatedEvent.php:23-29 | lib/Events/V1PaymentLinkUpdatedEvent.php:23-29 | lib/Events/V1PaymentMethodAttachedEvent.php:23-29 | lib/Events/V1PaymentMethodAutomaticallyUpdatedEvent.php:23-29 | lib/Events/V1PaymentMethodDetachedEvent.php:23-29 | lib/Events/V1PaymentMethodUpdatedEvent.php:23-29 | lib/Events/V1PayoutCanceledEvent.php:23-29 | lib/Events/V1PayoutCreatedEvent.php:23-29 | lib/Events/V1PayoutFailedEvent.php:23-29 | lib/Events/V1PayoutPaidEvent.php:23-29 | lib/Events/V1PayoutReconciliationCompletedEvent.php:23-29 | lib/Events/V1PayoutUpdatedEvent.php:23-29 | lib/Events/V1PersonCreatedEvent.php:23-29 | lib/Events/V1PersonDeletedEvent.php:23-29 | lib/Events/V1PersonUpdatedEvent.php:23-29 | lib/Events/V1PlanCreatedEvent.php:23-29 | lib/Events/V1PlanDeletedEvent.php:23-29 | lib/Events/V1PlanUpdatedEvent.php:23-29 | lib/Events/V1PriceActivatedEvent.php:23-29 | lib/Events/V1PriceCreatedEvent.php:23-29 | lib/Events/V1PriceDeactivatedEvent.php:23-29 | lib/Events/V1PriceDeletedEvent.php:23-29 | lib/Events/V1PriceLookupKeyChangedEvent.php:23-29 | lib/Events/V1PriceTaxBehaviorChangedEvent.php:23-29 | lib/Events/V1PriceUpdatedEvent.php:23-29 | lib/Events/V1ProductActivatedEvent.php:23-29 | lib/Events/V1ProductCreatedEvent.php:23-29 | lib/Events/V1ProductDeactivatedEvent.php:23-29 | lib/Events/V1ProductDefaultPriceChangedEvent.php:23-29 | lib/Events/V1ProductDeletedEvent.php:23-29 | lib/Events/V1ProductTaxCodeChangedEvent.php:23-29 | lib/Events/V1ProductUpdatedEvent.php:23-29 | lib/Events/V1PromotionCodeCreatedEvent.php:23-29 | lib/Events/V1PromotionCodeFullyRedeemedEvent.php:23-29 | lib/Events/V1PromotionCodeUpdatedEvent.php:23-29 | lib/Events/V1QuoteAcceptedEvent.php:23-29 | lib/Events/V1QuoteCanceledEvent.php:23-29 | lib/Events/V1QuoteCreatedEvent.php:23-29 | lib/Events/V1QuoteFinalizedEvent.php:23-29 | lib/Events/V1RadarEarlyFraudWarningCreatedEvent.php:23-29 | lib/Events/V1RadarEarlyFraudWarningUpdatedEvent.php:23-29 | lib/Events/V1RefundCreatedEvent.php:23-29 | lib/Events/V1RefundFailedEvent.php:23-29 | lib/Events/V1RefundUpdatedEvent.php:23-29 | lib/Events/V1ReviewClosedEvent.php:23-29 | lib/Events/V1ReviewOpenedEvent.php:23-29 | lib/Events/V1SetupIntentCanceledEvent.php:23-29 | lib/Events/V1SetupIntentCreatedEvent.php:23-29 | lib/Events/V1SetupIntentRequiresActionEvent.php:23-29 | lib/Events/V1SetupIntentSetupFailedEvent.php:23-29 | lib/Events/V1SetupIntentSucceededEvent.php:23-29 | lib/Events/V1SigmaScheduledQueryRunCreatedEvent.php:23-29 | lib/Events/V1SourceCanceledEvent.php:23-29 | lib/Events/V1SourceChargeableEvent.php:23-29 | lib/Events/V1SourceFailedEvent.php:23-29 | lib/Events/V1SourceRefundAttributesRequiredEvent.php:23-29 | lib/Events/V1SubscriptionScheduleAbortedEvent.php:23-29 | lib/Events/V1SubscriptionScheduleCanceledEvent.php:23-29 | lib/Events/V1SubscriptionScheduleCompletedEvent.php:23-29 | lib/Events/V1SubscriptionScheduleCreatedEvent.php:23-29 | lib/Events/V1SubscriptionScheduleExpiringEvent.php:23-29 | lib/Events/V1SubscriptionSchedulePhaseAddedEvent.php:23-29 | lib/Events/V1SubscriptionSchedulePhaseDefaultTaxRatesChangedEvent.php:23-29 | lib/Events/V1SubscriptionSchedulePhaseEndDateChangedEvent.php:23-29 | lib/Events/V1SubscriptionSchedulePhaseRemovedEvent.php:23-29 | lib/Events/V1SubscriptionSchedulePhaseTrialEndChangedEvent.php:23-29 | lib/Events/V1SubscriptionScheduleReleasedEvent.php:23-29 | lib/Events/V1SubscriptionScheduleUpdatedEvent.php:23-29 | lib/Events/V1TaxRateCreatedEvent.php:23-29 | lib/Events/V1TaxRateUpdatedEvent.php:23-29 | lib/Events/V1TaxSettingsUpdatedEvent.php:23-29 | lib/Events/V1TerminalReaderActionFailedEvent.php:23-29 | lib/Events/V1TerminalReaderActionSucceededEvent.php:23-29 | lib/Events/V1TerminalReaderActionUpdatedEvent.php:23-29 | lib/Events/V1TestHelpersTestClockAdvancingEvent.php:23-29 | lib/Events/V1TestHelpersTestClockCreatedEvent.php:23-29 | lib/Events/V1TestHelpersTestClockDeletedEvent.php:23-29 | lib/Events/V1TestHelpersTestClockInternalFailureEvent.php:23-29 | lib/Events/V1TestHelpersTestClockReadyEvent.php:23-29 | lib/Events/V1TopupCanceledEvent.php:23-29 | lib/Events/V1TopupCreatedEvent.php:23-29 | lib/Events/V1TopupFailedEvent.php:23-29 | lib/Events/V1TopupReversedEvent.php:23-29 | lib/Events/V1TopupSucceededEvent.php:23-29 | lib/Events/V1TransferCreatedEvent.php:23-29 | lib/Events/V1TransferReversedEvent.php:23-29 | lib/Events/V1TransferUpdatedEvent.php:23-29 | lib/Events/V2CommerceProductCatalogImportsFailedEvent.php:23-29 | lib/Events/V2CommerceProductCatalogImportsProcessingEvent.php:23-29 | lib/Events/V2CommerceProductCatalogImportsSucceededEvent.php:23-29 | lib/Events/V2CommerceProductCatalogImportsSucceededWithErrorsEvent.php:23-29 | lib/Events/V2CoreAccountClosedEvent.php:23-29 | lib/Events/V2CoreAccountCreatedEvent.php:23-29 | lib/Events/V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.php:24-30 | lib/Events/V2CoreAccountIncludingConfigurationCustomerUpdatedEvent.php:23-29 | lib/Events/V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.php:24-30 | lib/Events/V2CoreAccountIncludingConfigurationMerchantUpdatedEvent.php:23-29 | lib/Events/V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.php:24-30 | lib/Events/V2CoreAccountIncludingConfigurationRecipientUpdatedEvent.php:23-29 | lib/Events/V2CoreAccountIncludingDefaultsUpdatedEvent.php:23-29 | lib/Events/V2CoreAccountIncludingFutureRequirementsUpdatedEvent.php:23-29 | lib/Events/V2CoreAccountIncludingIdentityUpdatedEvent.php:23-29 | lib/Events/V2CoreAccountIncludingRequirementsUpdatedEvent.php:23-29 | lib/Events/V2CoreAccountPersonCreatedEvent.php:24-30 | lib/Events/V2CoreAccountPersonDeletedEvent.php:24-30 | lib/Events/V2CoreAccountPersonUpdatedEvent.php:24-30 | lib/Events/V2CoreAccountUpdatedEvent.php:23-29 | lib/Events/V2CoreEventDestinationPingEvent.php:23-29 | lib/Events/V2MoneyManagementAdjustmentCreatedEvent.php:23-29 | lib/Events/V2MoneyManagementFinancialAccountCreatedEvent.php:23-29 | lib/Events/V2MoneyManagementFinancialAccountUpdatedEvent.php:23-29 | lib/Events/V2MoneyManagementFinancialAddressActivatedEvent.php:23-29 | lib/Events/V2MoneyManagementFinancialAddressFailedEvent.php:23-29 | lib/Events/V2MoneyManagementInboundTransferAvailableEvent.php:24-30 | lib/Events/V2MoneyManagementInboundTransferBankDebitFailedEvent.php:23-29 | lib/Events/V2MoneyManagementInboundTransferBankDebitProcessingEvent.php:23-29 | lib/Events/V2MoneyManagementInboundTransferBankDebitQueuedEvent.php:23-29 | lib/Events/V2MoneyManagementInboundTransferBankDebitReturnedEvent.php:23-29 | lib/Events/V2MoneyManagementInboundTransferBankDebitSucceededEvent.php:23-29 | lib/Events/V2MoneyManagementOutboundPaymentCanceledEvent.php:23-29 | lib/Events/V2MoneyManagementOutboundPaymentCreatedEvent.php:23-29 | lib/Events/V2MoneyManagementOutboundPaymentFailedEvent.php:23-29 | lib/Events/V2MoneyManagementOutboundPaymentPostedEvent.php:23-29 | lib/Events/V2MoneyManagementOutboundPaymentReturnedEvent.php:23-29 | lib/Events/V2MoneyManagementOutboundPaymentUnderReviewEvent.php:23-29 | lib/Events/V2MoneyManagementOutboundPaymentUpdatedEvent.php:23-29 | lib/Events/V2MoneyManagementPayoutIntentCanceledEvent.php:23-29 | lib/Events/V2MoneyManagementPayoutIntentCreatedEvent.php:23-29 | lib/Events/V2MoneyManagementPayoutIntentPendingEvent.php:23-29 | lib/Events/V2MoneyManagementPayoutIntentPostedEvent.php:23-29 | lib/Events/V2MoneyManagementPayoutIntentProcessingEvent.php:23-29 | lib/Events/V2MoneyManagementPayoutIntentRequiresActionEvent.php:23-29 | lib/Events/V2MoneyManagementPayoutIntentUpdatedEvent.php:23-29 | lib/Events/V2MoneyManagementPayoutMethodCreatedEvent.php:23-29 | lib/Events/V2MoneyManagementPayoutMethodUpdatedEvent.php:23-29 | lib/Events/V2MoneyManagementReceivedCreditAvailableEvent.php:24-30 | lib/Events/V2MoneyManagementReceivedCreditFailedEvent.php:23-29 | lib/Events/V2MoneyManagementReceivedCreditReturnedEvent.php:23-29 | lib/Events/V2MoneyManagementReceivedCreditSucceededEvent.php:23-29 | lib/Events/V2MoneyManagementRecipientVerificationCreatedEvent.php:23-29 | lib/Events/V2MoneyManagementRecipientVerificationUpdatedEvent.php:23-29 | lib/Events/V2MoneyManagementTransactionCreatedEvent.php:24-30 | lib/Events/V2MoneyManagementTransactionUpdatedEvent.php:24-30 \u2014 before extracting anything, compare \u0060lib/Events/V1AccountUpdatedEvent.php\u0060 and \u0060lib/Events/V1ApplicationFeeCreatedEvent.php\u0060 as WHOLE FILES: 86% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Events/V1AccountUpdatedEvent.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"75381693a9e95b1d3b320f56beb535d7b49c1f29f8f91dd4e7fa247933fb7ac2"}},{"ruleId":"D5","level":"error","message":{"text":"Circular dependency: lib \u2192 lib/ApiOperations \u2192 lib (one cycle inside a mutually-dependent group of 29 modules)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Account.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"58dd49cda36a12784bfdd4c7360f119d8b7ed6ab843f6d2e9683b96be1b140b8"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: lib/ApiOperations: lib/ApiOperations: abstractness 0.00, instability 0.16, distance 0.84 \u2014 zone of pain \u2014 concrete and depended on by 16 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"209badf3c9989ecd82e5ada9cd04a95c82d10467ce1cafb55e332c55748c0afe"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: lib/Exception: lib/Exception: abstractness 0.07, instability 0.13, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 7 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"acb4554db221e9614ec2e2ff950d2a0b88397c9c0d38176fb029bb907f65c409"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: lib: lib: abstractness 0.08, instability 0.21, distance 0.71 \u2014 zone of pain \u2014 concrete and depended on by 27 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"809c5da92c88a4a23bd963e01f14fd855be0c8e64872b11f922465a86ef0522c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIsDeauthorizable: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/AccountTest.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3290b062d4f1d4ff21e31649856246b9b8e9a465c3fe92ba7155fa7146f27d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanListCapabilities: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/AccountTest.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d1155a111cd241cec5a77b73beb9dcfc9a4fd91349219d618ab8a4ceb10c7b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanDeleteExternalAccount: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/AccountTest.php"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"147e8f30c5347325a5450dabf5b2df9fe593b9d8e4fba9c357404c05058c1b8b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanListExternalAccounts: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/AccountTest.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c63602bafb708d7910c17457c0908d82f8f8f7b7263cd9129e14b4ec635177"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanListPersons: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/AccountTest.php"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6cd612e08ecc52733ea1b72d8e1f45b14af7a41d23c4683d29c3c69a440b25"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHeaderStripeVersionGlobal: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/ApiRequestorTest.php"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b819915e0ca26358020afc47e430d9bb961db2967f3f560a3279950d5590bbb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHeaderStripeVersionRequestOptions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/ApiRequestorTest.php"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd4bb6affffd90fbc6dfe820866245ba1f11abe8dd57d7d858966b12c3a5d03"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHeaderStripeAccountGlobal: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/ApiRequestorTest.php"},"region":{"startLine":744}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc918571c5910b66d2d56e6dd98d75cbfe6f50e2e3f433807d21f6149b2c09f4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHeaderStripeAccountRequestOptions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/ApiRequestorTest.php"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"c14be497dcc831e1d5f9db17f1bf31b660a231ec729b8b139d464495b5b97c9c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHeaderNullStripeAccountRequestOptionsDoesntSendHeader: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/ApiRequestorTest.php"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6a27cc3e1660dfe18609d54c671083a1faee88d8b60e648a65759439a52fc7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHeaderNullStripeAccountRequestOptionsOverridesGlobal: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/ApiRequestorTest.php"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9076fb6673e64b8a393b72cea0a4f5f521bfdc21f63ab5c52b55294eef0f836"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHeaderStripeContextRequestOptions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/ApiRequestorTest.php"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec46592cbdd684368df8f8e7bb57e68f1a13e0e425b2024c25f73a30dfcc5da"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRestoredResourceSaveUsesPerCallApiKey: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/ApiResourceTest.php"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dea43a263d30b58ab2bdeb163f4b678b8a3989c90dfe942e2dc7efa490133a3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testExplicitPerCallKeyOverridesResourceKey: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/ApiResourceTest.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ea8034260c552208b8cb170778f3d02a97d6f536a610356f26d6f7cdf39d4c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRequestWithNoVersionDefaultsToPinnedVersion: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/BaseStripeClientTest.php"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"19af971a273d771d9903cfe48dbda77a2f51154a1d416068a00024b6b9eaf3a6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testParseEventNotificationRejectsV1Payload: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/BaseStripeClientTest.php"},"region":{"startLine":1347}}}],"partialFingerprints":{"codehealthFindingId/v1":"443e1995891be77d8a57996191e4d24b8349985885ffab2448c39f6a3aaafe2c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanList: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CollectionTest.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17c9d961f76c92bd85ade1493b7a5c42736d4ca409bf6964007640c40e34cc2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanRetrieve: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CollectionTest.php"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a497f052d536c6862b35a85943f18877916968ecadfb87a46298775d0fce57a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanCreate: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CollectionTest.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1580574c07f4548daef735da646c06773e3eb2988c0590283c6ea2ae1872a853"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHeaders: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CollectionTest.php"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"1213bbe865a775e15b6a25010028ccbe4062a89558d504d632f406eedefe3040"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanCreateSource: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec00085e26c35d5ddfb87ddeb26a96e6d142079755a6a6e0336718c95c8f4950"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanRetrieveSource: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0733fe51558684e21519906d0f70ebc40f3ae14e539be51d37428edc767259e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanDeleteSource: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"505313f2d48e889d74ffc77962a9d4c0203461b2f49adb1ce0c6858a8bd6bdc4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanListSources: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5c348cdede17ad3b847f85864b9212bd267867792644c11de4f00309a6e680"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanCreateTaxId: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1efde7a2f2df1f1f0fc53f3ad80d1ad561a3a8b2a6544a731f8af4eab43615"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanRetrieveTaxId: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32f1ebcb5ca94e9c00af646f9054b2320d75a7abb732ad78b16a352756c1ab7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanDeleteTaxId: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c00133118344f7d70b78bc927eab9aacc2529cf8dcfa1e2504e8ebd1e4cae4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanListTaxIds: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b312a3d3ea74e7bd891ee340d9211577ac2cebe3ce6b63251b7810207eaad44"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanCreateBalanceTransaction: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db7a743e16d96f6a3f2bcf8586fc71d4c1233cf3d843215df584ac39b141f30"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanRetrieveBalanceTransaction: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"9257b7e8851df03fad5727b96e73a4151ebbfcff477294f85d0cb0211a546646"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanUpdateBalanceTransaction: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3a5e9cb1e10c12af3a682f08c9869033af1ce29c7e0906e1706e251d021637"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanListCustomerBalanceTransactions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/CustomerTest.php"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b8ef49227a5caaa67178f53d431c0b0ee714bd9966e6415e6249346e1e3c67"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testToString: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/Exception/ApiErrorExceptionTest.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f398b3b6afbd38603e46087e0cac82eb4047c06c7e2e6699e54279c9a2d692"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testToString: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/Exception/OAuth/OAuthErrorExceptionTest.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d91ae8f51728447c0c0cadab112bb162729a6a5951252f4d7a4ba7dd9cd0581"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): testQuotesPdfGet: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":2502}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b70c5ed98a78f46abb9b7ee3ea36cb57d1a29deeb7fa6917c30ac78febbcdb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testV2BillingMeterEventStreamPost: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":4925}}}],"partialFingerprints":{"codehealthFindingId/v1":"62129ebb337cbd46a821778629a55ccae4dfd21b08e3cb02d2bdf1d5075d52eb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAlreadyCanceledError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8039}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d8999244578dc0527801ce97757d07dd1ba44bce8a0cff09aa9148e5cba491"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBlockedByStripeError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8066}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4458b9f59a7690c7e379b13ee50babe6e3d98689ea0b7099477bd151bf23fa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCannotProceedError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8092}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5bec6d8d44b4d642047f1fb23889e895e3461ec46df807c8c9b974dde69515"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCapabilityNotEnabledError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8118}}}],"partialFingerprints":{"codehealthFindingId/v1":"326bd847a56d85cb4b46bb30ad7a35445f470a13b6bff274a638a93ceb9e6c76"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testControlledByAlternateResourceError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8162}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b584fb2046124ceb74e8361c63a555fe1c78916dabc9a4b6d6a07ccdc74219"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFeatureNotEnabledError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ed8281ef12cf2957145a4b77a13a2d5cb4ccae1668936c24a8e342f0a7ad68"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFinancialAccountNotOpenError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6700d6cb4aefb150f53ae2dfbeb0abc8a89e90720fbadf74f6593603b535204"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFxQuoteNeedsRefreshError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8246}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d46a15f60262eb01e6a8165d3758d2da590ac15ff93827d291af130d71731c8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInsufficientFundsError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e55a5015d52d9703b0a75f557ba9fb76d81f4c9c6678366d1a05394bc2fc06"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInvalidPaymentMethodError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8317}}}],"partialFingerprints":{"codehealthFindingId/v1":"856606151a8ceafe9d8a0f9c4d19694c01e93c0a6d425e6627c857254eb7d9c9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInvalidPayoutMethodError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8344}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a516b97409bd926727ca6dce10b899ff3fe3d1651da1ea200004ad80d97bb2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testInvalidVaultedCredentialError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8368}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b8c57eb234c4bac5dfedfb06efc7fbb62970c68abe1f06b66c32d95af931b2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testNotCancelableError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8394}}}],"partialFingerprints":{"codehealthFindingId/v1":"56db2027bcd07da86d9fa631288092174373b5d1819652e50c14614dc1ee80e9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testQuotaExceededError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8421}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2895139d75d56d7a35dd39a88de7b195b09206ab3019c30082f020f16ad87a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRateLimitError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8447}}}],"partialFingerprints":{"codehealthFindingId/v1":"88155c1655799e19c37826fa1e04eeb2a29291ea059dd80296f9a138f4b40742"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRecipientNotNotifiableError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8471}}}],"partialFingerprints":{"codehealthFindingId/v1":"93127ad136c4bbb03634d285e6bed5943751d773fcd77b4376f2da62b7d09e59"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTemporarySessionExpiredError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8515}}}],"partialFingerprints":{"codehealthFindingId/v1":"865b1fa0510233f53a7017d12d2f30338293e6f22a8ca131c65744c4a0276a1e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testVerificationAttemptFailedError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8553}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e87902ef72ef336183901672bc9d3b3323ff2dff3e92be533af6053b1d1f1e4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testVerificationExpiredError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8580}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30de5f131bbdf604d428a5a34f0597264405841478b22b8418ab2bbb5580678"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testVerificationNotInitiatedError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":8607}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e9e217e6bbc4d302cec35486fc4dc96fcf5eb192dd780470a63ca9d3063848"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCanList: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/SearchResultTest.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ec31089edd614a7dcf255b9ba46476a383f8877ce7caf8cb2a059b451aab2a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDefaultLogger: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/Util/DefaultLoggerTest.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"edafbd335d05c5801de655a73addce4348757f40b1251288b271c2687e60f287"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDebugInfo: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/Util/RequestOptionsTest.php"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bc374d4248eece8f48539aa79195626a59c2c66a3c86a53deaafe6806cc877"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConstructEventRejectsV2Payload: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tests/Stripe/WebhookTest.php"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"8004ec322c22d0403ca76088ddbef0919f45f3c85076ecb5bc8f395b7ec86fa5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ApiRequestor.php: lib/ApiRequestor.php changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ApiRequestor._prepareRequest at line 748. 1 of those changes was a fix/bug commit, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 13:07:09 -08:00\u0027 --until=\u00272026-11-16 13:07:09 -08:00\u0027 --full-history --no-merges -- lib/ApiRequestor.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ApiRequestor.php"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0e9a4a348894b98474d2d6a846f97625642450e60dacda1a393b1e7519eba8"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 3 significant file(s) lose their only recent owner: lib/Stripe.php, lib/Webhook.php, lib/StripeEventNotificationHandler.php. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"681356a34dd79225d8eb7abba021eb2d2b119ca810bf93bf69b2f4ebdcab741a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (MAJOR): Remove legal_entity/additional_owners logic. \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":"tests/Stripe/AccountTest.php"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30700f017c11ee86b21b9bbd00fce148899d01b98179e59e5da1480a1b8d37b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: assert proper instance, {\u0022shape\u0022:\u0022file\u0022} \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":"tests/Stripe/GeneratedExamplesTest.php"},"region":{"startLine":2510}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b173fe3e4ec2ec599153dc919af2700d3745182ea229acd4e35664b7c62ef77"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this is a horrible hack. The API needs \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":"lib/Util/Util.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d95794f5be7b9927037b6898a09d16589c0df1fbe591e71a9c19d1b6693a04c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove this check once we drop support for PHP 5 \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":"lib/Exception/ExceptionInterface.php"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a0c482198519338c8baa66aecfa33e40d8a639931ef2fcb7495de6680300f9"}},{"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":"47778939935661d1b1e3e1296d73b33b4eb79c1c976e269492caa7f705a949d5"},"properties":{"commitSha":"f6c2a97e5d2dd09ca220d47f3338f50a470969fe"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"3bc50a4175a1b4ba750ee2726f3d4aa5e284a4a737b7ec026081d163d8c648cc"},"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":"0dbb915274563a1a1c7710b67a8c19d2a107f22fcaf0daddfce999f66be50e9d"},"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":"96f88121b035a898a6759141862415469563ae4858d3bd2449d90d5e5ba04a57"},"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":"8ca88ed20bbe21b085ab0adc08dafaef98d6d975526fab896c2124615c2c039d"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8d65fed929198a2b6b37aa769c42de400ccd88546b7730fed91f81091e309598"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eef875d2c2f374c807f2cab081e14f034dba22a2ffcc98e4b8f234b392b443b3"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8cc626e190ae8d79b8829aa08e712c76e9f6871868c0778b0e82a8604238e418"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cfe69a5e901589be14f3f5634581f7e57b8a6f5d013272e654dbd2a77143f30e"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Charge.php \u2194 Dispute.php: \u0060lib/Charge.php\u0060 and \u0060lib/Dispute.php\u0060 change together 53% of the time (10 of the 19 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 10 shared commits counted here, the most recent 3 are \u0060138cc7ec\u0060 Add null type in resource fields to non required objects (#1843); \u0060686489e6\u0060 Use codegen for enum constants (#876); \u00600ce73ea1\u0060 Update PHPDoc \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Charge.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7321db31d2a1b9b613b01e21089ddd012cf00106b326af8de10cfc7cac1c07e5"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX3","level":"error","message":{"text":"Project dependency cycle: The projects lib \u2192 lib/ApiOperations \u2192 lib (one cycle inside a mutually-dependent group of 29 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":"lib/Account.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a54d7bc58b4a28de72f4036e8f1b853933e2b98dbe63e79a49a1222c25547b"}},{"ruleId":"AX8","level":"error","message":{"text":"Production project references a test project: (root) \u2192 lib/TestHelpers: \u0060(root)\u0060 (production) references the test project \u0060lib/TestHelpers\u0060. Production must never depend on test code \u2014 it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"init.php"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c645e4ee6c059c17c3f56435bf646c1756a47ac220886ad22e624adf434037f"}},{"ruleId":"AX8","level":"error","message":{"text":"Production project references a test project: lib/Util \u2192 lib/TestHelpers: \u0060lib/Util\u0060 (production) references the test project \u0060lib/TestHelpers\u0060. Production must never depend on test code \u2014 it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/Util/ObjectTypes.php"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"425aa554860fdf39af5ac254d17df6f33ad588c66c52a40553ccfd80d435a808"}},{"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":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!$opts || !isset($opts[\u0027stripe_version\u0027])\u0060 appears character-identically in 2 files \u2014 lib/EphemeralKey.php, lib/Service/EphemeralKeyService.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":"lib/EphemeralKey.php"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5886b779f1e71d2211fc01249f59cf24c90ab318a6e91cccb3f178af53be1ff6"}},{"ruleId":"X5","level":"note","message":{"text":"PHP static analysis does not check null everywhere: 0/1 of this repository\u0027s PHPStan/Psalm configuration(s) run at a level that checks null \u2014 PHPStan level 8 or above (\u0060max\u0060 included), or Psalm \u0060errorLevel\u0060 3 or below (Psalm\u0027s default, with none stated, is 1). A PHPStan level written neither in the file nor in an include inside the repository is 0, PHPStan\u0027s own default. Below those levels the checker removes \u0060null\u0060 from a union before any rule looks, so \u0060$order-\u003Ecustomer()-\u003Ename()\u0060 on a \u0060?Customer\u0060 passes, and the first null reaching it is an \u0060Error: Call to a member function name() on null\u0060 in production."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4ee877508ebc333ebff2765634874753d7fd67f71ea749a6c333792a59b461d7"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-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-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-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-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":15,"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."]}]}