{"$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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"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"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"PdoEventStoreReadModelProjector.run (cyclomatic 26): PdoEventStoreReadModelProjector.run has cyclomatic complexity 26 (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/Projection/PdoEventStoreReadModelProjector.php"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a03d875daba91cab765a993fccf4a15a980b308a7acbead00fef978e8d97e91"}},{"ruleId":"D1","level":"warning","message":{"text":"PdoEventStoreProjector.run (cyclomatic 24): PdoEventStoreProjector.run has cyclomatic complexity 24 (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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d16df031ae04b40d13763a7094b5b3aa0cf0aaaabdc4a88a8c22650e10ae74"}},{"ruleId":"D1","level":"warning","message":{"text":"MariaDbEventStore.appendTo (cyclomatic 21): MariaDbEventStore.appendTo has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/MariaDbEventStore.php"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d414f44e3cbd4d7889bc6ee2ae62a863945b152af5549d6913bfe0781b03fe"}},{"ruleId":"D1","level":"warning","message":{"text":"MySqlEventStore.appendTo (cyclomatic 21): MySqlEventStore.appendTo has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/MySqlEventStore.php"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"f134dc8679e9728d9525a73e211a59e1adab9da49f4f9baab11dd0dca068d29d"}},{"ruleId":"D2","level":"warning","message":{"text":"PdoEventStoreReadModelProjector.run (cognitive 33): PdoEventStoreReadModelProjector.run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18, boolean chains 6, error handling 3, loops 3, match/switch 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/Projection/PdoEventStoreReadModelProjector.php"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b728ce07038da7b8bcc2340301564c65edcda95f398e51b5bc8b17e94700e4f"}},{"ruleId":"D2","level":"warning","message":{"text":"PdoEventStoreProjector.run (cognitive 31): PdoEventStoreProjector.run has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17, boolean chains 5, error handling 3, loops 3, match/switch 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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1a5ec89c6738b3ac337e34a6e81a6dc423ffe051bfca48cfcc9006c81ce135"}},{"ruleId":"D2","level":"warning","message":{"text":"MariaDbEventStore.createWhereClause (cognitive 26): MariaDbEventStore.createWhereClause has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, loops 6, ternaries 4 (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/MariaDbEventStore.php"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfacdba29cce0f6a38515b1cae7e7067f25585ed217345c8fd1456a392da462c"}},{"ruleId":"D2","level":"warning","message":{"text":"PostgresEventStore.createWhereClause (cognitive 26): PostgresEventStore.createWhereClause has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, loops 6 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PostgresEventStore.php"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d313efa9d576673fc128f253bbb2555778cabf57f03848bd08f9b2a24fcf1b"}},{"ruleId":"D2","level":"warning","message":{"text":"MariaDbEventStore.appendTo (cognitive 23): MariaDbEventStore.appendTo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, boolean chains 9, error handling 1 (nesting depth added 3). 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/MariaDbEventStore.php"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c243a79309cc5f72dd0e7d64a843582b7a0599d45e54d8a26b87728ac1f95b9"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlEventStore.appendTo (cognitive 23): MySqlEventStore.appendTo has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, boolean chains 9, error handling 1 (nesting depth added 3). 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/MySqlEventStore.php"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1771ad22a5c906a0c2e16a048c08865d538b8ec1a56d7567984e3b78f0616a6c"}},{"ruleId":"D2","level":"warning","message":{"text":"MySqlEventStore.createWhereClause (cognitive 22): MySqlEventStore.createWhereClause has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/MySqlEventStore.php"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3aeaec95d562e42808a420d2e37ea9f1b211898d53d07a55cd93a78adb1df3d"}},{"ruleId":"D2","level":"warning","message":{"text":"PdoEventStoreProjector.handleStreamWithHandlers (cognitive 16): PdoEventStoreProjector.handleStreamWithHandlers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Projection/PdoEventStoreProjector.php"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d266f733a9350dcfdb613a32ce3e4b36dd7fe58509eb32f5d6b5002f003a639"}},{"ruleId":"D2","level":"warning","message":{"text":"PdoEventStoreReadModelProjector.handleStreamWithHandlers (cognitive 16): PdoEventStoreReadModelProjector.handleStreamWithHandlers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Projection/PdoEventStoreReadModelProjector.php"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f48d37ce4c2d2a00b1e658b9a82e21f9c4af3c45d6134776cc1467e0b8c244"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PdoEventStoreProjector: TooManyMethods \u2014 35 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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dca73c61825df2d8d11ec618415bf8e2cc362efc6d3913846ef0e6613a2adb5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Projection/PdoEventStoreProjector.php: FileTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: PdoEventStoreProjector (41-1139). 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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c9abcb7adb4dc065fb1a6f29a0a1a6e194d756c36760752af8df6aa87699a1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PdoEventStoreReadModelProjector: TooManyMethods \u2014 34 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/Projection/PdoEventStoreReadModelProjector.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd514a8c694b5df807e5ebf965fd8a4710022e5ea5c385efa708d3e8d266c572"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Projection/PdoEventStoreReadModelProjector.php: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: PdoEventStoreReadModelProjector (37-1110). 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/Projection/PdoEventStoreReadModelProjector.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd92608664aa568920f85ce7a7e1e237c47618f50879f2b8fc865af0ea6cb6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/MariaDbEventStore.php: FileTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MariaDbEventStore (36-899). 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/MariaDbEventStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d17b78c49516cc022b5431499c16ca627f2c0e90c06eccac7f0ad9d9cb504ba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/MySqlEventStore.php: FileTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MySqlEventStore (36-882). 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/MySqlEventStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40660329aaf302f990eeca312d1061dacdf9f30fdb253a674c17686d1900a08c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/PostgresEventStore.php: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: PostgresEventStore (40-866). 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/PostgresEventStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c18a0937f0b07b9bae6cd3ef4b02f8bf35370aba8919a0c2d6c6fd240b95ed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 3): src/Projection/MariaDbProjectionManager.php:266-306 | src/Projection/MySqlProjectionManager.php:266-306 | src/Projection/PostgresProjectionManager.php:218-258 \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/Projection/MariaDbProjectionManager.php:266\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/Projection/MariaDbProjectionManager.php"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"825c5bbdff023231fe54f66d0968d4725b1862ee5cf2e56aff65c12188f31b71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): src/Projection/MariaDbProjectionManager.php:330-366 | src/Projection/MySqlProjectionManager.php:330-366 \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/Projection/MariaDbProjectionManager.php:330\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/Projection/MariaDbProjectionManager.php"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc83697fdc2694ac18013c66a5f78bcde6165aab33bd0ff8fb7eadeadd8cede4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 3): src/MariaDbEventStore.php:525-557 | src/MySqlEventStore.php:525-557 | src/PostgresEventStore.php:508-540 \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/MariaDbEventStore.php:525\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/MariaDbEventStore.php"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ca1efac2796706d7246abbbf2f4e81455cac53fa6bd22986b2a9730442112d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): src/MariaDbEventStore.php:579-609 | src/MySqlEventStore.php:579-609 \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/MariaDbEventStore.php:579\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/MariaDbEventStore.php"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83811f49a9b172153e5f06320088b3ada7813d8bd0087019e1e8f2f3b7ae1b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 4): src/MariaDbEventStore.php:331-352 | src/MariaDbEventStore.php:413-434 | src/MySqlEventStore.php:331-352 | src/MySqlEventStore.php:413-434 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/MariaDbEventStore.php"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"5693f3ad61687be46904f7dacb3626b95a92201c83961a3de00ac33e704c1ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/Projection/PdoEventStoreProjector.php:600-618 | src/Projection/PdoEventStoreReadModelProjector.php:565-584 \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/Projection/PdoEventStoreProjector.php:600\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fb0c36f9a409e74ed897f24d300255735d89b1ce8ff10182b325529c64eb36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/Projection/PdoEventStoreProjector.php:709-727 | src/Projection/PdoEventStoreReadModelProjector.php:674-692 \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/Projection/PdoEventStoreProjector.php:709\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"7047c5e06a9e912e80d6de181086baf7e66f32fe89da0a6cd0317b1f9e976beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/MariaDbEventStore.php:775-792 | src/MySqlEventStore.php:774-791 \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/MariaDbEventStore.php:775\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/MariaDbEventStore.php"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0e0de3ee28ca8e0df59eb44a36cd6a27a69ada0765609457a9b44e5bea4f07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/Projection/PdoEventStoreProjector.php:517-534 | src/Projection/PdoEventStoreReadModelProjector.php:477-494 \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/Projection/PdoEventStoreProjector.php:517\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"3745b4672cdf26b469e7db2f213ade29acab4c8f3afb2ab1eb50ca10bef5f4e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/MySqlEventStore.php:721-737 | src/PostgresEventStore.php:701-717 \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/MySqlEventStore.php:721\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/MySqlEventStore.php"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ecb75bbb4739a1133a2ff57311913be995de9a59006d83388fc17eac9a665a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): src/Projection/PdoEventStoreProjector.php:677-693 | src/Projection/PdoEventStoreReadModelProjector.php:642-658 \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/Projection/PdoEventStoreProjector.php:677\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5c39ed6716a8fa79b0e3ccde23ced668b7aadb3d1fa9a28e91091896372ee6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/PostgresEventStore.php:288-303 | src/PostgresEventStore.php:362-378 \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/PostgresEventStore.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecdb0c726d79a0a0d3c930e2858416f125561634300c6e8587dc8554cb6219b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/WriteLockStrategy/MariaDbMetadataLockStrategy.php:47-62 | src/WriteLockStrategy/MysqlMetadataLockStrategy.php:43-58 \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/WriteLockStrategy/MariaDbMetadataLockStrategy.php:47\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/WriteLockStrategy/MariaDbMetadataLockStrategy.php"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa00553ada17ae850e96ea570af60cf70e96ee7f653d8474672d8a9c667ff91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): src/MariaDbEventStore.php:461-475 | src/MySqlEventStore.php:461-475 | src/PostgresEventStore.php:401-415 \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. 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/MariaDbEventStore.php"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fced091bd2e3998a99647cc23aa1cd4ffbe3f8d5b0eddaf9fe773eb56dfe46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/MariaDbEventStore.php:206-220 | src/MySqlEventStore.php:206-220 \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/MariaDbEventStore.php:206\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/MariaDbEventStore.php"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82097c6f6cbb3a0d261871768cb772003414cc67fbf321f73874c83fc80a4f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/MariaDbEventStore.php:293-307 | src/MySqlEventStore.php:293-307 \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/MariaDbEventStore.php:293\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/MariaDbEventStore.php"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ad9fce4904814e71be13ed9695023c0c491428eb568d827ba016d904441a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/MySqlEventStore.php:99-113 | src/PostgresEventStore.php:100-114 \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/MySqlEventStore.php:99\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/MySqlEventStore.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e781b782ff9f79f20e3e29512d61607eedab16477fe0285ab40c6f95df70eab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/Projection/PdoEventStoreProjector.php:542-556 | src/Projection/PdoEventStoreReadModelProjector.php:506-520 \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/Projection/PdoEventStoreProjector.php:542\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acdbf0989f3394c6acde39bd7c9c38b4dd116b42bc5a8a9c8645ec71436da4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/Projection/PdoEventStoreProjector.php:236-249 | src/Projection/PdoEventStoreQuery.php:128-141 | src/Projection/PdoEventStoreReadModelProjector.php:227-240 \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/Projection/PdoEventStoreProjector.php:236\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6ad33ca41d9b63da31dcdb38193c1943189c8488d0a21e572c49a924fb94cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): src/Projection/PdoEventStoreProjector.php:1052-1065 | src/Projection/PdoEventStoreQuery.php:432-445 | src/Projection/PdoEventStoreReadModelProjector.php:1016-1029 \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/Projection/PdoEventStoreProjector.php:1052\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d57145292bc92b7527724ab518ef11e3237a9ebbaa24029b8b40c33d5c765b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/MariaDbEventStore.php:481-494 | src/MySqlEventStore.php:481-494 \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/MariaDbEventStore.php:481\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/MariaDbEventStore.php"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f7946362556c6ee9f5ea23906f7d572e3a928c8a2df74208dfad5be03373dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): src/Projection/MariaDbProjectionManager.php:158-170 | src/Projection/MariaDbProjectionManager.php:201-213 | src/Projection/MariaDbProjectionManager.php:244-256 | src/Projection/MySqlProjectionManager.php:158-170 | src/Projection/MySqlProjectionManager.php:201-213 | src/Projection/MySqlProjectionManager.php:244-256 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Projection/MariaDbProjectionManager.php:158\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/Projection/MariaDbProjectionManager.php"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4549cb782ce2b9c77144b1d29f8b1251eeb079dc3cca7484298b2067ad633829"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/MariaDbEventStore.php:867-879 | src/MySqlEventStore.php:866-878 | src/PostgresEventStore.php:850-862 \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/MariaDbEventStore.php:867\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/MariaDbEventStore.php"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"907201eebc0a82d5261f833d589249057fd5904641d778cc9908209c32f9cbab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): src/Projection/PdoEventStoreProjector.php:326-338 | src/Projection/PdoEventStoreQuery.php:207-219 | src/Projection/PdoEventStoreReadModelProjector.php:317-329 \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/Projection/PdoEventStoreProjector.php:326\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"1716f8aec1d4ea2d025aef8f524698faa2ab46b9a05deae1dd8bef1fa630b547"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/MariaDbEventStore.php:739-751 | src/MySqlEventStore.php:738-750 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/MariaDbEventStore.php"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b97879f8a03afd57a880932c42e4049d9c8dbefae59dd7ed7af0c25ee46bac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Projection/PdoEventStoreProjector.php:1083-1095 | src/Projection/PdoEventStoreReadModelProjector.php:1054-1066 \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/Projection/PdoEventStoreProjector.php:1083\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e43229b026272626a2de8a5010593f32c180529c4e8b423093249d5c8b250c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/MariaDbEventStore.php:399-410 | src/MySqlEventStore.php:399-410 | src/PostgresEventStore.php:346-357 \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/MariaDbEventStore.php:399\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/MariaDbEventStore.php"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d6556d1be880679e10f092e31293c762f28495a710143157b591ebe18dd536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/MariaDbEventStore.php:797-807 | src/MySqlEventStore.php:796-806 | src/PostgresEventStore.php:780-790 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/MariaDbEventStore.php"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbbe2f81e09eabb82604d6760e46191c5be842511485bb99d1ebac1841a9343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/PersistenceStrategy/MariaDbAggregateStreamStrategy.php:76-86 | src/PersistenceStrategy/MySqlAggregateStreamStrategy.php:72-82 | src/PersistenceStrategy/PostgresAggregateStreamStrategy.php:79-89 \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/PersistenceStrategy/MariaDbAggregateStreamStrategy.php:76\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/PersistenceStrategy/MariaDbAggregateStreamStrategy.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9a15d07d8fa3e6461efb55de9985f0fb4411b4c31c2e8076da7e4ac4baf794"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/Projection/MariaDbProjectionManager.php:110-120 | src/Projection/MySqlProjectionManager.php:110-120 | src/Projection/PostgresProjectionManager.php:113-123 \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/Projection/MariaDbProjectionManager.php:110\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Projection/MariaDbProjectionManager.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"385023579b23d3466f21831850bef8f2113f70c79760e27df583557f1c17cf88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/Projection/PdoEventStoreProjector.php:218-228 | src/Projection/PdoEventStoreReadModelProjector.php:209-219 \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/Projection/PdoEventStoreProjector.php:218\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4971579bf9ded2d8f28ee4b8905c37f2c0d5db3527478ff847d1cea7067645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): src/Projection/MariaDbProjectionManager.php:88-97 | src/Projection/MySqlProjectionManager.php:88-97 | src/Projection/PostgresProjectionManager.php:91-100 \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/Projection/MariaDbProjectionManager.php:88\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Projection/MariaDbProjectionManager.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7662955ea21c21a42dbcf970ad4fcd63402bd455bd746ac6082fbfbf1b4b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): src/PersistenceStrategy/MariaDbSimpleStreamStrategy.php:71-79 | src/PersistenceStrategy/MariaDbSingleStreamStrategy.php:87-95 | src/PersistenceStrategy/MySqlSimpleStreamStrategy.php:69-77 | src/PersistenceStrategy/MySqlSingleStreamStrategy.php:75-83 | src/PersistenceStrategy/PostgresSimpleStreamStrategy.php:76-84 | src/PersistenceStrategy/PostgresSingleStreamStrategy.php:91-99 \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/PersistenceStrategy/MariaDbSimpleStreamStrategy.php:71\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/PersistenceStrategy/MariaDbSimpleStreamStrategy.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c01f7e41f3d08cc6daa981a55c535e9b2b65508db45595a352e8ac60fe5ae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/MySqlEventStore.php:758-766 | src/PostgresEventStore.php:739-747 \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/MySqlEventStore.php:758\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/MySqlEventStore.php"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd37a65489be12dc181db42ceb1e384301730743c6b2dc6ed8312a04e125a48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Projection/PdoEventStoreProjector.php:747-754 | src/Projection/PdoEventStoreReadModelProjector.php:712-719 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Projection/PdoEventStoreProjector.php"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e3f86d4c69070109cf512200f13cc76f1525e50aa7295bbf43a0a9c572aca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/Projection/PdoEventStoreProjector.php:1008-1013 | src/Projection/PdoEventStoreQuery.php:388-393 | src/Projection/PdoEventStoreReadModelProjector.php:972-977 \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/Projection/PdoEventStoreProjector.php:1008\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/Projection/PdoEventStoreProjector.php"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a15fb7dd43f4aecf95eff38fc55c74fe7614ddc3abae633e87047187306b04"}},{"ruleId":"D19","level":"note","message":{"text":"The README installs via composer require but does not show how to run tests with Composer or Docker Compose, which is critical for new contributors.: Add a short \u0027Run Tests\u0027 section covering test commands and the Docker setup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/introduction.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"76068a028f86757ee58a87e64b28c60bab06ac1ee781800233beca6f26079c2f"}},{"ruleId":"D19","level":"note","message":{"text":"Load batch size advice (10000 events per load) is excellent but no guidance on tuning it further, such as for very large projections.: Add a brief note on how to increase or decrease the batch size beyond 10000."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/variants.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8292dd32a828afa25bf3e65cdd398dc133322d394462bf300cb6d7912835689"}},{"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":"f507a3dddd2ec72eb31838d55d45b69660debe751bf4efd6d6c35f927ee26e0e"},"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"}}]},{"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":"03bf4424acf21098f7b70d84b488d8d9a37fc55d0f0a7986f045ed935dfe2b59"},"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"}}]},{"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":"cde6e2ba7b7f8a9dd6f3df8603f70ffb2a285afc15f717154f6664ec426548e7"},"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"}}]},{"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":"c55006cc1a71253624fb3d1c12ecafb5fa2d5f9b93809dceaee9f40349093525"},"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"}}]},{"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":"78a1c1dfe6e303933910d8e6878dbf984e3754e7a6e451280d238ef9b4ba22e2"},"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"}}]},{"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":"01cd1cd6573f57a35797632e958a3c0cd7b47a2739d6402994879fcd62ecd8f1"},"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"}}]},{"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":"59313ed45665e299692de80a4d07abd3aee866d44b2b4005339e5134f8da6b71"},"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"}}]},{"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":"b2f158cdfc8b1cf13d4a4f32456ad485cf7600828504bf22f5c5a26af842cd82"},"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"}}]},{"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":"3273c87e0c6cc9c8455e7daf851a3d79bb11e5386a750325be6a0832c6b333f1"},"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"}}]},{"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":"8829c4f5ea30d1d9a5ab25a4f323b7f9e80f28f01b460e828e883bc0479a7a7d"},"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"}}]},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"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":"b67787f58bbdcde79a43cc08af597219f8bc8ccd5a82b8588a8f7af6b62ec402"}},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 22 of 24 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 22 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/MariaDbEventStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f1be403cf6d229dbc2186b4c8e7c9ceaae394daeec5183786da14f579a9656"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/MySqlEventStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49a44b9eb968f1a872df6fd515107af59a81aa9b49e1011388f66fa3860c3cd"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/PostgresEventStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b96a78731d09261e68adf271b5ccd381da92bf2ceee4024d8716c4ad45bff79"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: PdoEventStoreProjector.php, PdoEventStoreQuery.php, PdoEventStoreReadModelProjector.php: 3 files \u2014 \u0060src/Projection/PdoEventStoreProjector.php\u0060, \u0060src/Projection/PdoEventStoreQuery.php\u0060, \u0060src/Projection/PdoEventStoreReadModelProjector.php\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Projection/PdoEventStoreProjector.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b698af5686ed8ddceff5ea6cfcf97c36ac2833142ea680c888896aeb71e1b9c6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MySqlProjectionManager.php \u2194 PostgresProjectionManager.php: \u0060src/Projection/MySqlProjectionManager.php\u0060 and \u0060src/Projection/PostgresProjectionManager.php\u0060 change together 56% of the time (22 of the 39 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Projection/MySqlProjectionManager.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51071d80ad2557f165ff3422c2d649a2d8ea0f75f7ed08051159bbddca276922"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MySqlEventStore.php \u2194 PostgresEventStore.php: \u0060src/MySqlEventStore.php\u0060 and \u0060src/PostgresEventStore.php\u0060 change together 56% of the time (60 of the 107 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/MySqlEventStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef6f739f38f505d067c57a5ae11f80a39f8eaece0a86076c94e8544ede4e391"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MariaDbProjectionManager.php \u2194 MySqlProjectionManager.php: \u0060src/Projection/MariaDbProjectionManager.php\u0060 and \u0060src/Projection/MySqlProjectionManager.php\u0060 change together 50% of the time (14 of the 28 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Projection/MariaDbProjectionManager.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c02b0c70d3c42ea72e03316c224e0e77b9791b13d1acdba56c10d6dd779e458"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"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":12,"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."]}]}