{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"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":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"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":"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":"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":"TcpConnection.baseRead (cyclomatic 49): TcpConnection.baseRead has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd57b04e4bc95afbc11ae1306c0362d77fcbd772d55e98fee0b414915dcfe3ea"}},{"ruleId":"D1","level":"warning","message":{"text":"Websocket.input (cyclomatic 43): Websocket.input has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb07fd06631cc2ce89e63f05a9e682162c842806b4032f2a4db507c491949af4"}},{"ruleId":"D1","level":"warning","message":{"text":"Ws.input (cyclomatic 41): Ws.input has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Ws.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ad7ff632a5664294f2c917e57e0f1bef078642b2e5af3331d824ca4480b227"}},{"ruleId":"D1","level":"warning","message":{"text":"Worker.parseCommand (cyclomatic 38): Worker.parseCommand has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9b2e5777c010deb8acbfde13809a10e084b1d4f95540bd20f1b1c30a27b419"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncTcpConnection.checkConnection (cyclomatic 36): AsyncTcpConnection.checkConnection has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a8ffa54f10bc6169df59f0ea1888978820fdbf889473f06af1ddb9e830a744"}},{"ruleId":"D1","level":"warning","message":{"text":"Http.input (cyclomatic 27): Http.input has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"7335112cc498bd5a05774c6b99104ae481e8cd15c37c7f2b0a372d8712ea9819"}},{"ruleId":"D1","level":"warning","message":{"text":"TcpConnection.send (cyclomatic 22): TcpConnection.send has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2af788ca090640013e8a9fa8f8576381263d012f4a5fc8c864645a13606c622"}},{"ruleId":"D1","level":"warning","message":{"text":"Worker.stopAll (cyclomatic 21): Worker.stopAll has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95dc4b0f300c9b9f6e7d97caa5487fce946559ab6b919cb639afbeea40c50ae"}},{"ruleId":"D1","level":"warning","message":{"text":"Websocket.dealHandshake (cyclomatic 19): Websocket.dealHandshake has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"091c87c8408b37b224cac06be4b819d27712bfba436fef15a6f11094528de301"}},{"ruleId":"D1","level":"warning","message":{"text":"Request.parseUploadFile (cyclomatic 18): Request.parseUploadFile has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http/Request.php"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"119308bbe6ea3664fca491d612f71f1033ac59cb1d7ab825596cb0915007e754"}},{"ruleId":"D1","level":"warning","message":{"text":"Http.inputChunked (cyclomatic 17): Http.inputChunked has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http.php"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec45464f9f28f1c6cd642baae75cf74cd16dfbed50df888e42881209980b66b4"}},{"ruleId":"D1","level":"warning","message":{"text":"Http.decodeChunked (cyclomatic 17): Http.decodeChunked has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http.php"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"657c180d4d3906494b7460603d0f83121b67a987b5842abc749b67a67945f238"}},{"ruleId":"D1","level":"warning","message":{"text":"Worker.resetStd (cyclomatic 17): Worker.resetStd has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac82e80b948b7574ed38cad84d119115d0717de15cfc4bd91228cce51e0c799"}},{"ruleId":"D1","level":"warning","message":{"text":"Worker.listen (cyclomatic 17): Worker.listen has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2485}}}],"partialFingerprints":{"codehealthFindingId/v1":"27597cb1c9ee5f857280840a8858500d5d31475cecc4e0bd3b94f4bbcc1510b6"}},{"ruleId":"D1","level":"warning","message":{"text":"Select.run (cyclomatic 16): Select.run has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Events/Select.php"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28dcc04187fb77fcc0aedbac42a98f8e188241c1ad8806eb89432665f52e029"}},{"ruleId":"D1","level":"warning","message":{"text":"Response.createHeadForFile (cyclomatic 16): Response.createHeadForFile has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http/Response.php"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"def85672659ca9d3eb2f3a48a1273272679c4505e4e0276d3b44951575a08f55"}},{"ruleId":"D1","level":"warning","message":{"text":"Worker.writeConnectionsStatisticsToStatusFile (cyclomatic 16): Worker.writeConnectionsStatisticsToStatusFile has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca98638fe54bcc6b325acab7ac2baac8fc09bd39c94689eb710d74bffe823b37"}},{"ruleId":"D2","level":"warning","message":{"text":"TcpConnection.baseRead (cognitive 112): TcpConnection.baseRead has cognitive complexity 112 (threshold 15). Drivers by points: if/else 31 (74 pts), error handling 6 (18 pts), boolean chains 15, loops 2 (5 pts) (nesting depth added 58). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aaec2cde743c5cf1bcd79885d3343ffeb5b6c0046df8fa187b928a8b32d92ef"}},{"ruleId":"D2","level":"warning","message":{"text":"Ws.input (cognitive 102): Ws.input has cognitive complexity 102 (threshold 15). Drivers by points: if/else 34 (81 pts), error handling 3 (16 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 61). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Ws.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"34129d829eedd597b14569982b5e335be602ac68411579eb5515291407a68a49"}},{"ruleId":"D2","level":"warning","message":{"text":"Websocket.input (cognitive 101): Websocket.input has cognitive complexity 101 (threshold 15). Drivers by points: if/else 31 (77 pts), error handling 3 (16 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 60). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df54d60dd9e2a0b2faf08f441180cca4891eae2993afa0a717e5564054ee8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncTcpConnection.checkConnection (cognitive 91): AsyncTcpConnection.checkConnection has cognitive complexity 91 (threshold 15). Drivers by points: if/else 28 (83 pts), boolean chains 8 (nesting depth added 55). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cad9175ad31fc1a5a405f8c0070b1269404f9290026e825d98e81c9231913bd"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.parseCommand (cognitive 58): Worker.parseCommand has cognitive complexity 58 (threshold 15). Drivers by points: if/else 22 (44 pts), boolean chains 7, loops 3 (5 pts), match/switch 1, ternaries 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96a6774451332bed6fddfed9e211818812b1c34d5b5c6fa16032d585c45d6e6"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.monitorWorkersForLinux (cognitive 47): Worker.monitorWorkersForLinux has cognitive complexity 47 (threshold 15). Drivers by points: if/else 9 (35 pts), error handling 1 (6 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e8fdcd8f290a9759691c8a30ece978b3ca625e26d14f70f3968e3c961b96b7"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.stopAll (cognitive 44): Worker.stopAll has cognitive complexity 44 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (9 pts), boolean chains 6, ternaries 2 (4 pts), error handling 1 (3 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"e056cc85cf2a23b569ebbb7f565ff4181646f237f436a7c08a2bfcdaf27204f0"}},{"ruleId":"D2","level":"warning","message":{"text":"TcpConnection.send (cognitive 37): TcpConnection.send has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (21 pts), error handling 3 (9 pts), boolean chains 7 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb4811d07c1bd9939cfaaf5eb70ff64da73993fa0afb9181b985965a2d0146f"}},{"ruleId":"D2","level":"warning","message":{"text":"Http.inputChunked (cognitive 36): Http.inputChunked has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http.php"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63902040bd6e1355eeb9e66d4bdec4fc8201e2133099c6045da90f23572da30"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.parseUploadFile (cognitive 35): Request.parseUploadFile has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http/Request.php"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4eda588cc3028e01d18c0ceaf9c7b9b2d80c1de787a415f8485fe1fe03f6c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.reload (cognitive 35): Worker.reload has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (23 pts), error handling 2 (7 pts), loops 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c9da5f5153fa4760b2601f712c7412b36a2f59f324c3212a314f7e2d07dfaf"}},{"ruleId":"D2","level":"warning","message":{"text":"Http.decodeChunked (cognitive 34): Http.decodeChunked has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (24 pts), boolean chains 4, loops 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http.php"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff022dd1d7630da101ea2b240bd0be4cb6f547c1de0837c1fc1f259a852c0173"}},{"ruleId":"D2","level":"warning","message":{"text":"Select.run (cognitive 33): Select.run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 4 (7 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Events/Select.php"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7d548f7dc053439ac1062fef69f6664d18a72002743b5d877c5400c9b0611e"}},{"ruleId":"D2","level":"warning","message":{"text":"Http.input (cognitive 32): Http.input has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 8, loops 1, ternaries 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":"src/Protocols/Http.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6544d0c991bcb538f33b3bfa7a9ea4185ae50e9591af9ae75a059f1031f87b"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.acceptUdpConnection (cognitive 31): Worker.acceptUdpConnection has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 1 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2788}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46c51be15e80c2bd7d79f22a0df1fed99566c112cb0a8d5cd6bb960e817755a"}},{"ruleId":"D2","level":"warning","message":{"text":"Http.encode (cognitive 29): Http.encode has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (6 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e2c15a9766a6c9c7f46bccd4151192fb04f23212c1fedb6ff82e69ceadbb56"}},{"ruleId":"D2","level":"warning","message":{"text":"Websocket.dealHandshake (cognitive 29): Websocket.dealHandshake has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (22 pts), error handling 2 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca12a51f5c2ef28976adce528aafb6a4c511bd78c7781b1d666f65852cdeb3aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.log (cognitive 28): Worker.log has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 2 (6 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2383}}}],"partialFingerprints":{"codehealthFindingId/v1":"824f7ca8ec38de3b5c7629b82d72e172c8eda1ac67f3f2421495b9fe76ab0dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"Response.__toString (cognitive 26): Response.__toString has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (19 pts), loops 2 (4 pts), ternaries 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http/Response.php"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9b3b62dd099d9b5aa941a4261b2da88b50adbce9b6af5e324efa8dbd36ad8a"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.listen (cognitive 26): Worker.listen has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2485}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a893a1fa9f8510004d5ce07755f45e2a4464cc86e932c2ec6214ba58166d011"}},{"ruleId":"D2","level":"warning","message":{"text":"Response.createHeadForFile (cognitive 23): Response.createHeadForFile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (4 pts), boolean chains 2, ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http/Response.php"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1f4e7b973beef3eefe0afa86a82a7481981b139857f8ee02e4b66eafc39f97"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.writeStatisticsToStatusFile (cognitive 23): Worker.writeStatisticsToStatusFile has cognitive complexity 23 (threshold 15). Drivers by points: loops 5 (13 pts), if/else 3 (5 pts), ternaries 3 (5 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2180}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff17223fd7b28fa36ab23c5be405a3d8ab434ef4fabacdc89aae75f0310ff75"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.writeConnectionsStatisticsToStatusFile (cognitive 23): Worker.writeConnectionsStatisticsToStatusFile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 4 (8 pts), loops 2 (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":"src/Worker.php"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e56f9f563f4692c1c9b4058c4924d0bedba3622f75f79c046251e85a84e4173"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncTcpConnection.__construct (cognitive 21): AsyncTcpConnection.__construct has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"48570b5cf7e9ad0c56832308728452002f25ff7573c6c86c28e604f8937a3747"}},{"ruleId":"D2","level":"warning","message":{"text":"Websocket.encode (cognitive 21): Websocket.encode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"5781897ce5471e9393794d8a6ce7c5fc6f40e060c6b6ebec990782580fc163b5"}},{"ruleId":"D2","level":"warning","message":{"text":"Timer.tick (cognitive 21): Timer.tick has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (12 pts), error handling 1 (4 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Timer.php"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"039ae35d790512a45dfe564ad13029389ea89fb496961849300721ee77ec6b5a"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.formatProcessStatusData (cognitive 21): Worker.formatProcessStatusData has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2, error handling 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":"src/Worker.php"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6405f639b86acab5cf86c238d1e7f0dea7d4da3e5fdbae0ac7bb8342531542"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.sessionId (cognitive 19): Request.sessionId has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (7 pts), boolean chains 3 (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":"src/Protocols/Http/Request.php"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ed293d0409dd64b3d3943e105cbf783bfccbad356e5943d9297bbc7b89db7d"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.initWorkers (cognitive 19): Worker.initWorkers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"025df9cec69944c1b619b996617ae747b56912fe0040c869eb31e564376fc23f"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.displayUI (cognitive 19): Worker.displayUI has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, loops 3 (4 pts), ternaries 1 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2825f9f5f5ab119c25597032fa2a6154723f3e164292443a968c506c8d29457"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.resetStd (cognitive 19): Worker.resetStd has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, error handling 3 (6 pts), if/else 6 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"802a887545408411553ef5f5812ad5def4c521f762591a6b7253d3307ee0d1e6"}},{"ruleId":"D2","level":"warning","message":{"text":"TcpConnection.baseWrite (cognitive 18): TcpConnection.baseWrite has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c20f97f26540d2ae9c0c56bc54f2652be75953cbbdbc9c553a102798e3ae891"}},{"ruleId":"D2","level":"warning","message":{"text":"Ws.encode (cognitive 18): Ws.encode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (7 pts), boolean chains 1, match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Ws.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48cd08dd71168de293923fdf64f9d01b9ec5ce2722103525cce33e69ddd873b"}},{"ruleId":"D2","level":"warning","message":{"text":"Ws.sendHandshake (cognitive 18): Ws.sendHandshake has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 6 (7 pts), loops 1 (2 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":"src/Protocols/Ws.php"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9f732e6974d2669fb6b8a2be9df00d85a4f7340fc3cc82c02c428832d21807"}},{"ruleId":"D2","level":"warning","message":{"text":"TcpConnection.destroy (cognitive 16): TcpConnection.destroy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3 (5 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"123c54b7c78825d06ce79beece2f56b200ec67110e7117349adc4f75e307c7c9"}},{"ruleId":"D2","level":"warning","message":{"text":"Ws.dealHandshake (cognitive 16): Ws.dealHandshake has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (14 pts), error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Ws.php"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"818dd053e23fe4228848fa64d118a4674655612ab724cc9689798a6091534429"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.forkOneWorkerForLinux (cognitive 16): Worker.forkOneWorkerForLinux has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4afecae9fa8dd206e525ce17f00af60e222f6601e67b17b91f7a7b42202c5f7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Worker: ClassTooLong \u2014 1279 significant lines (blank, comment-only and punctuation-only lines excluded), 69 methods. The bar is 400 significant lines; this is 879 over it, 3.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0585cf53171ffc9187c1c856e8e77bc0cc3dc7935a9e8bf9f99f3c06ada1f01d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/Worker.php: FileTooLong \u2014 1314 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Worker (57-2876). The bar is 500 significant lines; this is 814 over it, 2.63\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":"src/Worker.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1128c5dd21853147145ca9f368568f21c12d9cde5f3df2ee86dad26c8d47dd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Worker: TooManyMethods \u2014 69 methods. The bar is 30 methods; this is 39 over it, 2.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":"src/Worker.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbf08a7adcaf133e029cf510256ac488097291ac451d777614f82f5187d54c6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Request: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 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":"src/Protocols/Http/Request.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"498252252c0624e48d739684736e284a0093d687e0c80dccf01580644d8f547a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Websocket.input: MethodTooLong \u2014 input runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5366ff4334b26f304237398a7ca6dc8f99a33b252191db96667aef184d65b1bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Ws.input: MethodTooLong \u2014 input runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Ws.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"697bba535cb420b952855d86112546a786d13e364c02a0ac59398809171899b2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TcpConnection: ClassTooLong \u2014 491 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 91 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"97611ba6f30e93c34ea461a82f50c2066cec65d4814d682f62892ecd01a16f44"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TcpConnection.baseRead: MethodTooLong \u2014 baseRead runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9ac58666a2a256b965fb88cb689f3af793ed83e4a04cc240d0faddc377c938"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Connection/TcpConnection.php: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: TcpConnection (67-1339). The bar is 500 significant lines; this is 34 over it, 1.07\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":"src/Connection/TcpConnection.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f552db713767fa4ebc15eef4e1def0bef2d2933c23b9a4a4ff8738b49f1a2084"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TcpConnection: 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":"src/Connection/TcpConnection.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a6415082fe44855399842f0c62cdeb8342ac884a70e2f128d612a479344adf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Worker.parseCommand: MethodTooLong \u2014 parseCommand runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"4154f0e869884b11a7649674c3faaa4c074ca79fe52e559818552e64693eea0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (104 shared lines): src/Protocols/Websocket.php:124-323 | src/Protocols/Ws.php:84-274 \u2014 These two members are variants of one another: 104 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"692d644cab57d5198f9b687d806253130a00019dae150e970b43bbc4416ba381"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): src/Protocols/Websocket.php:328-376 | src/Protocols/Ws.php:288-332 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2717e62d1ff1085ed4d284d84409fc748bd9911bb50a27762ae4f97f67a97351"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/Protocols/Websocket.php:160-196 | src/Protocols/Ws.php:121-157 \u2014 before extracting anything, compare \u0060src/Protocols/Websocket.php\u0060 and \u0060src/Protocols/Ws.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:160\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcae8278676a435066a1aa03f5bfe44ea7fd14b14bf927335c680a30a6edba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): src/Protocols/Http/Response.php:474-500 | src/Protocols/Http/Response.php:544-570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http/Response.php"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"816dedcf391f7e988e07551c0ef351869887a65277b5114be6edaed4c1db15c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): src/Protocols/Websocket.php:353-376 | src/Protocols/Ws.php:311-332 \u2014 before extracting anything, compare \u0060src/Protocols/Websocket.php\u0060 and \u0060src/Protocols/Ws.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:353\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b09584681f0053d478c34c96956ed041abb471850ccd7d6b18776ab6aa6f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/Worker.php:1618-1641 | src/Worker.php:1767-1790 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47a74490bbf5ed1b286cecc5f61abd1166cce63b82b73049bc0c0cfd2497d07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): src/Protocols/Websocket.php:262-281 | src/Protocols/Ws.php:217-237 \u2014 before extracting anything, compare \u0060src/Protocols/Websocket.php\u0060 and \u0060src/Protocols/Ws.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:262\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2d6647002dc825582dbb8d9b8cc503d5ffccc71daf93e82fd3c6ce2ebf9833"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/Protocols/Websocket.php:239-257 | src/Protocols/Ws.php:195-213 \u2014 before extracting anything, compare \u0060src/Protocols/Websocket.php\u0060 and \u0060src/Protocols/Ws.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe881f02ce9320fe066d7a521ed8a5f8253ca9e4632accc0be35083f1c5527c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/Protocols/Websocket.php:287-302 | src/Protocols/Ws.php:242-257 \u2014 before extracting anything, compare \u0060src/Protocols/Websocket.php\u0060 and \u0060src/Protocols/Ws.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c67fcf9cfc6c7c87f7c647fb5e14db6e6cf18758d96f6167813bcb8355c03bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): src/Protocols/Websocket.php:136-147 | src/Protocols/Ws.php:97-109 \u2014 before extracting anything, compare \u0060src/Protocols/Websocket.php\u0060 and \u0060src/Protocols/Ws.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 130 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f39ea21b43f1016412e79309a8c0ed4694603db569e9d345eb96f04059ce935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/Connection/AsyncTcpConnection.php:215-225 | src/Connection/AsyncUdpConnection.php:84-94 | src/Worker.php:2606-2616 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"67032a66d8655906687944bd0b2d5d6173fa1f5e2acbcd0296b8b05e11cfed0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Connection/AsyncTcpConnection.php:417-427 | src/Connection/AsyncTcpConnection.php:431-441 \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":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ff70f94314a86869be9ce015934277fd2cc08852b58765788ab30edae435a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Connection/AsyncTcpConnection.php:473-478 | src/Connection/AsyncTcpConnection.php:516-521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e5d0e2163136366cba12887ad75d2a3ef92fd82420b06377c457d45dd5c15a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Protocols/Ws.php:208-213 | src/Protocols/Ws.php:232-237 \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 \u0060src/Protocols/Ws.php:208\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Ws.php"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5e2a1b30c46bf60742521ea0b25fcb2a16d438fc978506f4e1d061a19e023d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Connection/TcpConnection.php:594-599 | src/Connection/UdpConnection.php:132-137 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"492b1d4414d12ecdf1954a1186718a0a1ceb4cee90050222e9d57768e38a7d73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Connection/TcpConnection.php:609-614 | src/Connection/UdpConnection.php:147-152 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e53b4acadd56d40d10a8b05f57ed7f50bbc3e4406d7009be19b2c2e5fdb441a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Events/Ev.php:228-236 | src/Events/Event.php:284-292 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Events/Ev.php"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"714a5f29e46fb840a687a6da067de87b723e9a4ca1c2750a812ce98082d53d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/Events/Ev.php:82-87 | src/Events/Ev.php:170-175 | src/Events/Event.php:120-125 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Events/Ev.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f008f76aa42b7faa54990fa4bf1cb240921c7abc687a70748f310975a69a22d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/Events/Ev.php:123-129 | src/Events/Ev.php:147-153 | src/Events/Event.php:171-177 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Events/Ev.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50408c6b8be83a774cae9aa69bc502bfb8f8af3178a17ab8d059a21f0cb8bd9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Connection/TcpConnection.php: src/Connection/TcpConnection.php changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in TcpConnection.baseRead at line 685. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 17:30:19 \u002B08:00\u0027 --until=\u00272026-10-24 17:30:19 \u002B08:00\u0027 --full-history --no-merges -- src/Connection/TcpConnection.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d28f105078bf12671fc9ee7de06cb592883fb1b1d58efc42ac52688990fde1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Worker.php: src/Worker.php changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Worker.resetStd at line 1494. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-07-26..2026-10-24, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-26 17:30:19 \u002B08:00\u0027 --until=\u00272026-10-24 17:30:19 \u002B08:00\u0027 --full-history --no-merges -- src/Worker.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b17259e09602c77582726438701bbae0bf92f06391097de178080a8dd4d7ae"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: src/Connection/UdpConnection.php. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9a4a97792d98ef20719f3cfb6731cf3e5e366faa55065b4556b6f0092097d7fa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo may have to redo the simple test, \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/Unit/Protocols/Http/ResponseTest.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fe1a5b52f3be6d02ad7435fe22f86695e8130b54a2dbf7269af17cd60d233f"}},{"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":"51deb5f11d29da72484d112de68af7e38e0a51818f441a6e0dd487a6031a58d2"},"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":"7e555dcedb457dea690514535efa0bbe694dd4e65955f86715f1a0d59a874344"},"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":"eaa9c40d433621153ed9e89d9bc3b0a66c7486b243554679716864ed51a798f0"},"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":"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":"bee16a916192bc47803c755fa5c777c01a15fb56e69ce46b43bdf718adcb77fa"},"taxa":[{"id":"CICD-SEC-5","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":"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":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$opcode \u003C 0x8 \u0026\u0026 ($opcode === 0x0) !== $connection\u0060 appears character-identically in 2 files \u2014 src/Protocols/Websocket.php, src/Protocols/Ws.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a5dc56a32163a93c3a192365ac3da65491da82cbeb27576b8c88e90d5da2d3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$opcode \u003E= 0x8 \u0026\u0026 ($dataLen \u003E 125 || !$isFinFrame)\u0060 appears character-identically in 2 files \u2014 src/Protocols/Websocket.php, src/Protocols/Ws.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cd6ac67dc6e3101f509e18ac4d70f2d775f770ef23b53fa5f4962fe33d2f98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060DIRECTORY_SEPARATOR === \u0027\\\\\u0027 \u0026\u0026 method_exists($this-\u003EeventLoop, \u0027offExcept\u0027)\u0060 appears character-identically in 2 files \u2014 src/Connection/AsyncTcpConnection.php, src/Connection/TcpConnection.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"da909639f01ca8b9e5786d2e60dea0d0f0416a1333801ee748c1a9f711562025"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060defined(\u0027TCP_KEEPIDLE\u0027) \u0026\u0026 defined(\u0027TCP_KEEPINTVL\u0027) \u0026\u0026 defined(\u0027TCP_KEEPCNT\u0027)\u0060 appears character-identically in 2 files \u2014 src/Connection/AsyncTcpConnection.php, src/Worker.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e7022883f39b278072750c164be5d85dad12e053c0aad29d02c94cf389f0b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060false === $recvBuffer || empty($remoteAddress)\u0060 appears character-identically in 2 files \u2014 src/Connection/AsyncUdpConnection.php, src/Worker.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncUdpConnection.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4734afe9907759d2084a72332925895393f9e45f3c8f24bc53a59f7c12bab7d"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060init\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 742, reset at line 808) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84852d8a73929eb032bb3af7817e3830b8c318ed26ff40c1d0382f5df27ecf7"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060resetStd\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 1518, reset at line 1520) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff231c9459f42a7e8116cc877e9a177996bba687d9a8fac1937c8a9c6dbf61a"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060setProcessTitle\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 1863, reset at line 1865) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8e2c366722cf8898ed71b2f304647f70ee3fdc7fe1576322e4b6aa94634af1"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060safeEcho\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 2471, reset at line 2476) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2450}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbfaf0d4faa0e433707bb6802c198764777730134203680282d101219e1c465"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060listen\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 2524, reset at line 2533) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2485}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae741f66e3153bf20607bbc897b5a7d28e0dcdb938cf1b1a780f00364c45480"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060unlisten\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 2554, reset at line 2556) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2550}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e5f96ae3dc80abe861005198566338a2bbfdbf521ca8836b0b7f9b6b75dbe1"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060checkPortAvailable\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 2580, reset at line 2587) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2566}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb558533b2b01350743d8f9c3b3ea97e5d0c50a7f1f6cd93429d153e9b843ad0"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060acceptTcpConnection\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 2751, reset at line 2753) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2748}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf24dddaea51aecf94d7fb690b59e91e13bb87916fa3defc452d2674b1e7744"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060acceptUdpConnection\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 2790, reset at line 2792) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2788}}}],"partialFingerprints":{"codehealthFindingId/v1":"644afeb0f1b6ca903048906d2de1ef47c35f95c63db55149e4a542f248f45dff"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060connect\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 281, reset at line 283) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d80e4f35d2bd82c4afbc15482606c395ebf33988d694278b42f0c818afb143c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5903ce9eb5a8c791c50bae52c4f439b85a1807fe7b1716477312a37afdf9196"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b5ce352616dd83470aba64b79a95ec2c124b3f7d7de80a672bdb32b2eeb640"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfe8609f7b85700a7b21cd04a0ff4d5ddd46796334a93b2df5b1f092e0fdcdf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73b3c20fa2d5f34eca98cb0445f617e1abcc49d566550bd5ebdd3befbad026d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c710daf31147534e450252431c76d8fcbfeca5650322d01213ac6c619a7790"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http/Session/RedisSessionHandler.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"af08bcbf59979dcb77d42473ff613bc60c5e0f3505ae886b4f05f876c5d5f56a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Events/Select.php"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"5819cfd517c8b84323bccdcbac3191b9a53bbe1416c610ee4f3c3611acd244d0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"377892c2ce91a90665ddf41762f97ba5652d497fb07c0b31da830b068dbc159b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17a8fda0d0fb593b47f886f593439dc71768501cd1663673be9d9d5c2e1ab63"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b176e046361e199c0290408a0a30c2b256890af1a8607542ec44b937f329b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/TcpConnection.php"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db42165f07b3112c5b08c8982cd8979eb3a0ee28a21ba9354cb93fa1d987dfc"}},{"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"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/"}]},{"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-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"}]}],"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":5,"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."]}]}