{"$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":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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":"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"]}],"properties":{"cwe":["CWE-1059"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"AsyncTcpConnection.checkConnection (cyclomatic 42): AsyncTcpConnection.checkConnection has cyclomatic complexity 42 (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":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a8ffa54f10bc6169df59f0ea1888978820fdbf889473f06af1ddb9e830a744"}},{"ruleId":"D1","level":"warning","message":{"text":"TcpConnection.baseRead (cyclomatic 42): TcpConnection.baseRead has cyclomatic complexity 42 (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":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd57b04e4bc95afbc11ae1306c0362d77fcbd772d55e98fee0b414915dcfe3ea"}},{"ruleId":"D1","level":"warning","message":{"text":"Worker.parseCommand (cyclomatic 36): Worker.parseCommand 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/Worker.php"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9b2e5777c010deb8acbfde13809a10e084b1d4f95540bd20f1b1c30a27b419"}},{"ruleId":"D1","level":"warning","message":{"text":"Ws.input (cyclomatic 33): Ws.input has cyclomatic complexity 33 (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":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ad7ff632a5664294f2c917e57e0f1bef078642b2e5af3331d824ca4480b227"}},{"ruleId":"D1","level":"warning","message":{"text":"Websocket.input (cyclomatic 32): Websocket.input has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Websocket.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb07fd06631cc2ce89e63f05a9e682162c842806b4032f2a4db507c491949af4"}},{"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":454}}}],"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":2040}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95dc4b0f300c9b9f6e7d97caa5487fce946559ab6b919cb639afbeea40c50ae"}},{"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.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":2440}}}],"partialFingerprints":{"codehealthFindingId/v1":"27597cb1c9ee5f857280840a8858500d5d31475cecc4e0bd3b94f4bbcc1510b6"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncTcpConnection.connect (cyclomatic 16): AsyncTcpConnection.connect 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/Connection/AsyncTcpConnection.php"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25007314db865a0cf2f800546657c9f399963537de9f274e7f880496141efbc"}},{"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":2231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca98638fe54bcc6b325acab7ac2baac8fc09bd39c94689eb710d74bffe823b37"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncTcpConnection.checkConnection (cognitive 106): AsyncTcpConnection.checkConnection has cognitive complexity 106 (threshold 15). Drivers by points: if/else 91, boolean chains 9, error handling 6 (nesting depth added 63). 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":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cad9175ad31fc1a5a405f8c0070b1269404f9290026e825d98e81c9231913bd"}},{"ruleId":"D2","level":"warning","message":{"text":"TcpConnection.baseRead (cognitive 98): TcpConnection.baseRead has cognitive complexity 98 (threshold 15). Drivers by points: if/else 66, error handling 18, boolean chains 12, loops 2 (nesting depth added 51). 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":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aaec2cde743c5cf1bcd79885d3343ffeb5b6c0046df8fa187b928a8b32d92ef"}},{"ruleId":"D2","level":"warning","message":{"text":"Ws.input (cognitive 88): Ws.input has cognitive complexity 88 (threshold 15). Drivers by points: if/else 70, error handling 16, match/switch 2 (nesting depth added 55). 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":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"34129d829eedd597b14569982b5e335be602ac68411579eb5515291407a68a49"}},{"ruleId":"D2","level":"warning","message":{"text":"Websocket.input (cognitive 84): Websocket.input has cognitive complexity 84 (threshold 15). Drivers by points: if/else 66, error handling 16, match/switch 2 (nesting depth added 54). 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":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df54d60dd9e2a0b2faf08f441180cca4891eae2993afa0a717e5564054ee8aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.parseCommand (cognitive 54): Worker.parseCommand has cognitive complexity 54 (threshold 15). Drivers by points: if/else 40, boolean chains 7, loops 5, match/switch 1, ternaries 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1073}}}],"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 35, error handling 6, loops 4, 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":1849}}}],"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 22, loops 9, boolean chains 6, ternaries 4, error handling 3 (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":2040}}}],"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 21, error handling 9, 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":454}}}],"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 27, loops 4, boolean chains 3, ternaries 2 (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 29, boolean chains 3, match/switch 2, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 23, error handling 7, loops 3, ternaries 2 (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":1962}}}],"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 24, boolean chains 4, loops 4, ternaries 2 (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 20, loops 7, boolean chains 3, error handling 3 (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 22, 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 23, loops 4, boolean chains 2, error handling 2 (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/Worker.php"},"region":{"startLine":2743}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46c51be15e80c2bd7d79f22a0df1fed99566c112cb0a8d5cd6bb960e817755a"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncTcpConnection.connect (cognitive 30): AsyncTcpConnection.connect has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, boolean chains 4, ternaries 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef5e3a88c8e2b855ad16c88e6a0d4316a515eb6bf5e3cf3318d273a14cf303b"}},{"ruleId":"D2","level":"warning","message":{"text":"Http.encode (cognitive 29): Http.encode has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16, loops 6, ternaries 6, 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":"Worker.log (cognitive 28): Worker.log has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19, loops 6, ternaries 2, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2343}}}],"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 19, loops 4, ternaries 3 (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 20, boolean chains 4, ternaries 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":2440}}}],"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 15, loops 4, 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 13, if/else 5, ternaries 5 (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":2141}}}],"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 12, ternaries 8, loops 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/Worker.php"},"region":{"startLine":2231}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e56f9f563f4692c1c9b4058c4924d0bedba3622f75f79c046251e85a84e4173"}},{"ruleId":"D2","level":"warning","message":{"text":"Websocket.dealHandshake (cognitive 22): Websocket.dealHandshake has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, error handling 4, loops 2 (nesting depth added 6). 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/Websocket.php"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca12a51f5c2ef28976adce528aafb6a4c511bd78c7781b1d666f65852cdeb3aa"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncTcpConnection.__construct (cognitive 21): AsyncTcpConnection.__construct has cognitive complexity 21 (threshold 15). Drivers by points: if/else 19, 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/Connection/AsyncTcpConnection.php"},"region":{"startLine":179}}}],"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 12, error handling 7, 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":258}}}],"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 12, error handling 4, loops 4, 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":206}}}],"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 18, 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":1238}}}],"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 9, ternaries 7, 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 11, boolean chains 3, loops 3, ternaries 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/Worker.php"},"region":{"startLine":843}}}],"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 7, boolean chains 5, loops 4, ternaries 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2825f9f5f5ab119c25597032fa2a6154723f3e164292443a968c506c8d29457"}},{"ruleId":"D2","level":"warning","message":{"text":"TcpConnection.baseWrite (cognitive 18): TcpConnection.baseWrite has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, error handling 4 (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":838}}}],"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 9, error handling 7, 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":229}}}],"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 8, ternaries 7, loops 2, 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":340}}}],"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 9, error handling 5, 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":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"123c54b7c78825d06ce79beece2f56b200ec67110e7117349adc4f75e307c7c9"}},{"ruleId":"D2","level":"warning","message":{"text":"Worker.forkOneWorkerForLinux (cognitive 16): Worker.forkOneWorkerForLinux has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, ternaries 3, loops 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/Worker.php"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4afecae9fa8dd206e525ce17f00af60e222f6601e67b17b91f7a7b42202c5f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/Worker.php: FileTooLong \u2014 1298 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Worker (57-2831). 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. 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. 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":"TooManyMethods: TcpConnection: TooManyMethods \u2014 31 methods. 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":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a6415082fe44855399842f0c62cdeb8342ac884a70e2f128d612a479344adf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Connection/TcpConnection.php: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: TcpConnection (66-1261). 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":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Protocols/Http/Response.php:479-495 | src/Protocols/Http/Response.php:549-565 \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/Http/Response.php:479\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/Http/Response.php"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea77f3221a7bc87bdb7faf0588e0edb01c65a78ade7e4ed59e29bc8bb93b2aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Protocols/Websocket.php:220-237 | src/Protocols/Ws.php:186-202 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:220\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":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a484a6935902258163a2ecf186c2cf987c8808740dbdfddb0bb85ff1ca2fe44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/Protocols/Websocket.php:195-208 | src/Protocols/Ws.php:161-175 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:195\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":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fcd25c90ba5a13a02964dcab5f1feb58288a06de5186688a1fef3d9251b5b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Worker.php:1579-1591 | src/Worker.php:1728-1740 \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/Worker.php:1579\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/Worker.php"},"region":{"startLine":1579}}}],"partialFingerprints":{"codehealthFindingId/v1":"865632f116e587192f064cd54d75e7999675b634dfc6f29756f6a3367ae3ccb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Protocols/Websocket.php:103-114 | src/Protocols/Ws.php:74-86 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:103\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":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"642491ea33a5a915317b252e5471a07f7909c61059e8ec9efef4c9685e475b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Protocols/Websocket.php:286-297 | src/Protocols/Ws.php:255-266 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:286\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":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e66a7f6f6afd0ab6e8992fdffd948138b8cdc9896632f94420325515d274b12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Protocols/Websocket.php:176-186 | src/Protocols/Ws.php:143-153 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Protocols/Websocket.php:176\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":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c88a33be81d78dd505c38eac65ead28b70b7a1c78e3367cc309d68e056e7e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/Connection/AsyncTcpConnection.php:215-224 | src/Connection/AsyncUdpConnection.php:85-94 | src/Worker.php:2562-2571 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Connection/AsyncTcpConnection.php:215\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/Connection/AsyncTcpConnection.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a572c53fa33d8b964db50b5370775375f9ff4b129e3a40e0e21a82865f2f1724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Connection/AsyncTcpConnection.php:400-408 | src/Connection/AsyncTcpConnection.php:414-422 \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/Connection/AsyncTcpConnection.php:400\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/Connection/AsyncTcpConnection.php"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf88f891b12121b07db257417e35cd93f0dc079da6e783bd3ced7c9b87d391a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/Protocols/Ws.php:151-157 | src/Protocols/Ws.php:175-182 \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:151\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":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd925330abfa9c7a7b2605fd6b4d7332f72b7df99aed71e9450967128512311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/Connection/AsyncTcpConnection.php:454-459 | src/Connection/AsyncTcpConnection.php:518-523 \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":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb23d1b5627f18742a672aabe64d8f2c118c3f944df081bebe2e63ebc134403"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Connection/AsyncTcpConnection.php: src/Connection/AsyncTcpConnection.php changed 2 times in last 90 days, max complexity 42. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Connection/AsyncTcpConnection.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf94addb3c55e00be3ebeb0592dea80192ef0f048eac1655af2e1e72831046f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Worker.php: src/Worker.php changed 2 times in last 90 days, max complexity 36. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Worker.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b17259e09602c77582726438701bbae0bf92f06391097de178080a8dd4d7ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/Protocols/Http.php: src/Protocols/Http.php changed 2 times in last 90 days, max complexity 27. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Protocols/Http.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b632629ec40d5ad1e3ac036d6ce8fd036f1948800fc2385a90b27591b7c53e"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: src/Events/Select.php, src/Events/Fiber.php, src/Protocols/Http/Session/RedisSessionHandler.php, src/Connection/UdpConnection.php. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c22f8bf569ce941d9d666ed8cbe4ab651e01d213b554611e2f27b225c825d0ab"}},{"ruleId":"D19","level":"note","message":{"text":"The \u0027Basic Usage\u0027 section only covers a single protocol (WebSocket) and omits other supported transports like HTTP, TCP, and SSL with code examples.: Add a short subsection for each supported transport type (HTTP server, AsyncTCP connection, SSL/TLS), showing the required composer dependency and minimal example."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03ab20f17b5ac8696a745d1056d311e0e07ed7c85f62dcc96f8b4c17dc54b51"}}],"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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"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":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":0,"secretScannerRunsExcluded":0}}}]}