{"$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"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"DbalPostgresEventStore.select (cyclomatic 24): DbalPostgresEventStore.select has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Infrastructure/Domain/EventStore/DbalPostgresEventStore.php"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e68947b75a0a88d02a4dd71a2884d52cde9e69fb56458fa71ba0f645dc02746"}},{"ruleId":"D1","level":"warning","message":{"text":"Processing.process (cyclomatic 20): Processing.process has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Application/Sensor/Processing.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad063694508d50afb0c5b5111bc1d6fb938461328e6fb7476ef451ff5185389"}},{"ruleId":"D1","level":"warning","message":{"text":"Listening.on (cyclomatic 17): Listening.on 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/Domain/Event/Listener/Listening.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58b1e0322571ba20f5a69c803bbb39f07c2dde207a9b4dc5388f71f95a55206"}},{"ruleId":"D1","level":"warning","message":{"text":"InMemoryStream.filter (cyclomatic 16): InMemoryStream.filter 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/Infrastructure/Domain/Event/InMemoryStream.php"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"015bf3163c9d87ad7a1103b001ad0abe2a70a7237b1dc4fc08c40401ae5fa873"}},{"ruleId":"D1","level":"warning","message":{"text":"Subscription.subscribeTo (cyclomatic 16): Subscription.subscribeTo has cyclomatic complexity 16 (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/Infrastructure/Domain/Event/Sourced/Subscription.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"3643e7ce6ae65b729e42f98520d3103e55f962661cf93b0b5e3dda6898d81011"}},{"ruleId":"D1","level":"warning","message":{"text":"Subscription.subscribeTo (cyclomatic 16): Subscription.subscribeTo has cyclomatic complexity 16 (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/Infrastructure/Domain/Event/Subscription/DAO/Subscription.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5b7a9599f796eb007852402ff134f031d91eb7edd9443b82533153ca122487"}},{"ruleId":"D2","level":"warning","message":{"text":"Processing.process (cognitive 52): Processing.process has cognitive complexity 52 (threshold 15). Drivers by points: if/else 43, loops 7, boolean chains 1, error handling 1 (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/Application/Sensor/Processing.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e395a2c0402abafd6e3a38c9267ad5987d0f49ae7b3f0cfc46a2a1b6339ab0a"}},{"ruleId":"D2","level":"warning","message":{"text":"Listening.on (cognitive 34): Listening.on has cognitive complexity 34 (threshold 15). Drivers by points: if/else 29, loops 3, 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/Domain/Event/Listener/Listening.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbc7b03d0ee898ad0e38db0cbe2e17efaa8cff1466de6ec71ad190cc786ae6e"}},{"ruleId":"D2","level":"warning","message":{"text":"NestedObjectConverter.toArray (cognitive 32): NestedObjectConverter.toArray has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25, loops 7 (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/Infrastructure/Domain/Event/Converter/NestedObjectConverter.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"850d5aabe54814050a1ff9152fe0a1d779ce038fcab6458625f713ba96b26caa"}},{"ruleId":"D2","level":"warning","message":{"text":"DbalPostgresEventStore.select (cognitive 32): DbalPostgresEventStore.select has cognitive complexity 32 (threshold 15). Drivers by points: if/else 24, loops 8 (nesting depth added 9). 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/Infrastructure/Domain/EventStore/DbalPostgresEventStore.php"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdebcd6c23f94f40c82b2cd0c501040c789843cf196d662b35da30c324a4cfc7"}},{"ruleId":"D2","level":"warning","message":{"text":"Handling.handleCommand (cognitive 28): Handling.handleCommand has cognitive complexity 28 (threshold 15). Drivers by points: if/else 25, loops 3 (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/Domain/Command/Handling.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0cc4734d89e8aea25c2af04750a2d1c7516b883aff94e36bf96d3b4ba95333"}},{"ruleId":"D2","level":"warning","message":{"text":"EventSourcedRepository.all (cognitive 28): EventSourcedRepository.all has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19, loops 9 (nesting depth added 17). 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/Infrastructure/Domain/Event/Subscription/EventSourcedRepository.php"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b5bc17e7fec8e6ee58f8f44ee2aa3574b88b3a9a9e0b3dcca6c1b4a76bc3a4"}},{"ruleId":"D2","level":"warning","message":{"text":"Helper.doExtractEventSourcedEntities (cognitive 25): Helper.doExtractEventSourcedEntities has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16, loops 9 (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/Domain/Event/Sourced/Entity/Helper.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d8a561d93294e090354c69ab9628b0d93d508cceccd40f12ce248816326ef8"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryStream.filter (cognitive 25): InMemoryStream.filter has cognitive complexity 25 (threshold 15). Drivers by points: if/else 24, loops 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/Infrastructure/Domain/Event/InMemoryStream.php"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17dc46b7be3bd79c9793a46fb4b83b83a5fcc6ee4c962356e77ea62fbb0c08b"}},{"ruleId":"D2","level":"warning","message":{"text":"DbalPostgresEventStore.add (cognitive 23): DbalPostgresEventStore.add has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, loops 9, error handling 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/Infrastructure/Domain/EventStore/DbalPostgresEventStore.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"953122a6dcd49c0ae6ae5180564c7c34c99ea35dbd16696024fcc5cf9a9b3319"}},{"ruleId":"D2","level":"warning","message":{"text":"Helper.applyEventByArgumentType (cognitive 20): Helper.applyEventByArgumentType has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, 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/Domain/Event/Sourced/Entity/Helper.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"181eefdeaf758eefe18e235ed920f8254fd67ae0e57c35167e152991149534ca"}},{"ruleId":"D2","level":"warning","message":{"text":"Handling.handleQuery (cognitive 20): Handling.handleQuery has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 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/Domain/Query/Handling.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd83f9199d8369e8130e8a15f1928ad25db29e76f7b5ac3339efcd9ab7a57b3"}},{"ruleId":"D2","level":"warning","message":{"text":"Subscription.subscribeTo (cognitive 18): Subscription.subscribeTo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 2 (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, 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/Infrastructure/Domain/Event/Sourced/Subscription.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f9dee84bc9cc8253a3dc5d6cd1d76ceb092ce089b4245cecf08fe5d7743b7d"}},{"ruleId":"D2","level":"warning","message":{"text":"Subscription.subscribeTo (cognitive 18): Subscription.subscribeTo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 2 (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, 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/Infrastructure/Domain/Event/Subscription/DAO/Subscription.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fc029b216dbd3f8244e701ccc5dfb8fcedf5711df0e091635622cd0102fb2f"}},{"ruleId":"D2","level":"warning","message":{"text":"Filtering.filter (cognitive 17): Filtering.filter has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, loops 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/Domain/Event/Listener/Filtering.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af58184fdef680344ebb0d2646a1df563fdc39d056f3ef774f0a4a27ef86d4f"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryEventStore.stream (cognitive 16): InMemoryEventStore.stream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 6, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/Infrastructure/Domain/EventStore/InMemoryEventStore.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b59dff961c73375658cd87900f15b71b91f6319605ec22fbc908b608f1fe62"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Subscription: 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/Infrastructure/Domain/Event/Sourced/Subscription.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"77494cfc38b467fef4421d9d67615fcfc149e2239e315987708837e316b23c9d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DbalPostgresEventStore: 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/Infrastructure/Domain/EventStore/DbalPostgresEventStore.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"beee7392c71cefcb748c3cd7fc4b84d91830e4a80da87c1427e5f5e9292c9cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): src/Infrastructure/Domain/Event/Sourced/Subscription.php:129-158 | src/Infrastructure/Domain/Event/Subscription/DAO/Subscription.php:104-133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Infrastructure/Domain/Event/Sourced/Subscription.php:129\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/Infrastructure/Domain/Event/Sourced/Subscription.php"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cfefa7306b2aa9ccae02a65724d7014e45d7362c43104e0fda3dbde6690699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/Domain/Event/Listener/Filtering.php:43-64 | src/Domain/Query/Handling.php:43-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Domain/Event/Listener/Filtering.php:43\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/Domain/Event/Listener/Filtering.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad443688a4b8c6cff454856486d567ffc60b35bf986ea2c8662c1c7ef20028d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): src/Domain/Command/Handling.php:55-75 | src/Domain/Event/Listener/Listening.php:54-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Domain/Command/Handling.php:55\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/Domain/Command/Handling.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f76e475bdd82fb7a23d58b051b105c914aa5b872e92d3a7fa297deb9a8841d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): src/Application/Sensor/Processing.php:56-73 | src/Domain/Command/Handling.php:30-47 | src/Domain/Event/Listener/Filtering.php:30-47 | src/Domain/Event/Listener/Listening.php:29-46 | src/Domain/Query/Handling.php:30-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Application/Sensor/Processing.php:56\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/Application/Sensor/Processing.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3c9c857d23928dc1312eeb6b93f20e4b751ccbe813966afad2be835f5ae980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/Infrastructure/Domain/Event/Sourced/Subscription.php:77-89 | src/Infrastructure/Domain/Event/Subscription/DAO/Subscription.php:59-71 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Infrastructure/Domain/Event/Sourced/Subscription.php:77\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/Infrastructure/Domain/Event/Sourced/Subscription.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"902de1b4d9e4d0d08ba558e35a3bfde7cc0e8ddb5b3a1abc8d069c4330c7424c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/Domain/Event/Listener/Listening.php:79-90 | src/Domain/Event/Sourced/Entity/Helper.php:86-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Domain/Event/Listener/Listening.php:79\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/Domain/Event/Listener/Listening.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"13be10196b7aca199dd339af5d6c3bee722285b77cdef4ba8e988d674e7b7657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/Infrastructure/Domain/EventStore/DbalPostgresEventStore.php:572-580 | src/Infrastructure/Domain/EventStore/DbalPostgresEventStore.php:581-589 | src/Infrastructure/Domain/EventStore/DbalPostgresEventStore.php:590-598 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/Infrastructure/Domain/EventStore/DbalPostgresEventStore.php:572\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/Infrastructure/Domain/EventStore/DbalPostgresEventStore.php"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"225c5978313d92055af6c27e677add09c04cfa1e83658322a39b68596d3b304a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/Infrastructure/Domain/Event/Subscription/DAO/DbalPostgresDAO.php:108-116 | src/Infrastructure/Domain/Event/Subscription/DAO/DbalPostgresDAO.php:125-133 \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/Infrastructure/Domain/Event/Subscription/DAO/DbalPostgresDAO.php:108\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/Infrastructure/Domain/Event/Subscription/DAO/DbalPostgresDAO.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f24aaf41f614b850b1c38490e8816cd0d8dccaf584f1ef5192e96ba52edb662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/Infrastructure/Domain/Event/Subscription/DAO/DbalPostgresDAO.php:198-205 | src/Infrastructure/Domain/Event/Subscription/DAO/DbalPostgresDAO.php:206-214 \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/Infrastructure/Domain/Event/Subscription/DAO/DbalPostgresDAO.php:198\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/Infrastructure/Domain/Event/Subscription/DAO/DbalPostgresDAO.php"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0057f69553c23b14892015162ebeb8c40b59d60dc9644a09cd115b6a9f69da6"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 23 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"6b831fdde8855bbf4e1aef8cb6984b65393da48cf4ebbd47a4d4da6d4aa32c14"},"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":"6570db05264423b0db75c1616c89f42a630b885656ec0ea9a24292597518a6d8"},"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":"fcdc409f157f0f304305cc3dbe69462b3803b234d2826ffb492d49c0983e1d80"},"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":"02e486b08d9602e0debee544fc8f80c337eb99117b8934d2220ce3840c811f45"},"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":"79b9932873b1fdf54b527387637435aabeb4f3670c110b17d85b8fad7996e9df"},"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":"8d369ea305eaf316291877f126f2551b2403a321aaf949be6fa471e4dbfb4f43"},"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":"0191b6eca324bdb147ce442b769445b5a44736b6eb3512d09266d83a2ca1e22b"},"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":"b4abbd4f505e62cf1648504b7ebe5e9a8e67e798edae898872fbfd077cf249a4"},"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":"fd5a9a8a21674d20d5612c8b590bd9c16502b85920905f542d933a197cc52fbc"},"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":"c791a6871d7c937218d2e581dec3e58b79c2ab84381326495565282cbaffd58d"},"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":"e776961acc37184be6f1d7bdd5a133edbbc554a4a40dcc30d35acb4fcf50550a"},"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":"4040977a507d834ff87308425072f1209903f7af406d7597ae9b8e3d855a22ce"},"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":"0f7403b0419715a62d34127d8b827ab9fbfb424d10a485cbf99010540b50fe38"},"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":"20e647a2c66567edece474f355202640c37a97c59295b1a76c6fe2ca707a5e03"},"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":"5131b1bdcf28c9fff8eaf92626ef2747e041597f1e8317017741228d34cb8161"},"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":"D34","level":"note","message":{"text":"Dormant codebase: 28 of 28 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 28 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/Infrastructure/Domain/EventStore/DbalPostgresEventStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42f33369461484805fc15dd55a764b85a4eb3a1dc3876ef3ea14cc049be46ab"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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":16,"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."]}]}