{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Pages.getCollection (cyclomatic 50): Pages.getCollection has cyclomatic complexity 50 (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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1c19de863798fcda3196fa169de56ea9d6a83d840df6e56b9cf78c9eb70c77"}},{"ruleId":"D1","level":"warning","message":{"text":"Debugger.deprecatedErrorHandler (cyclomatic 49): Debugger.deprecatedErrorHandler has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Debugger.php"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b98f4c3de585eab87bbdb69cd78b616a7f847802ade7f980b64d48c0c7fba59"}},{"ruleId":"D1","level":"warning","message":{"text":"Page.header (cyclomatic 45): Page.header has cyclomatic complexity 45 (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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"5366a67ed9f87956c3b2770243600342fc7c8c310338fe2d51e94495c4d37690"}},{"ruleId":"D1","level":"warning","message":{"text":"PageIndex.getLevelListingRecurse (cyclomatic 41): PageIndex.getLevelListingRecurse has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageIndex.php"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a1e6584699ab979a920f7f9f87e0baada31948b09d29eda1455053ccf3692f"}},{"ruleId":"D1","level":"warning","message":{"text":"Media.init (cyclomatic 38): Media.init has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Media.php"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9ead25768b5311e3d876f0a44741395853b744fff13d35bb911a7a6e0f11c8"}},{"ruleId":"D1","level":"warning","message":{"text":"Pages.recurse (cyclomatic 36): Pages.recurse has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"990055e910c2941a5a702e97e7b1aa18fde627bbe368c09b44626473b31709c6"}},{"ruleId":"D1","level":"warning","message":{"text":"Pages.buildSort (cyclomatic 36): Pages.buildSort has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":2394}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22ba40743698201404813d682cfaa01ac602831c89e7c93e44dfab6bdcf7867"}},{"ruleId":"D1","level":"warning","message":{"text":"Pages.evaluate (cyclomatic 35): Pages.evaluate has cyclomatic complexity 35 (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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"66dc8c502257daef928bbec609a030a4634a227230abdac18a8827a6f1633091"}},{"ruleId":"D1","level":"warning","message":{"text":"Uri.convertUrl (cyclomatic 35): Uri.convertUrl has cyclomatic complexity 35 (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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31cbebbb7dd9ba0d703f49d614139d6259777db1ba866b60b33db4ddb94653f"}},{"ruleId":"D1","level":"warning","message":{"text":"Scheduler.processJobsWithWorkers (cyclomatic 34): Scheduler.processJobsWithWorkers has cyclomatic complexity 34 (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":"system/src/Grav/Common/Scheduler/Scheduler.php"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"062105465ed4cbe31da581de65300dc422cd9aaa54f7dea27f7fbb379ed2e4e2"}},{"ruleId":"D1","level":"warning","message":{"text":"SelfupgradeCommand.handlePreflightReport (cyclomatic 33): SelfupgradeCommand.handlePreflightReport has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Gpm/SelfupgradeCommand.php"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f5053b213b57a217c55c467bf3b9df0451e21ff9418538404a00825bb22d2d"}},{"ruleId":"D1","level":"warning","message":{"text":"PageCollection.buildSort (cyclomatic 32): PageCollection.buildSort has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageCollection.php"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b6b36e5acaa7b28be8033578d65bf52c8dcbddb9a435a2927332641481dd92"}},{"ruleId":"D1","level":"warning","message":{"text":"SchedulerCommand.serve (cyclomatic 32): SchedulerCommand.serve has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Cli/SchedulerCommand.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9723d5ab982e14937d451fc4cbde4a1b256094c2f2873e20e82374c5d60b78"}},{"ruleId":"D1","level":"warning","message":{"text":"Twig.init (cyclomatic 30): Twig.init has cyclomatic complexity 30 (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":"system/src/Grav/Common/Twig/Twig.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5204e6405aff1b29cf71918c15895a19631a2afe2634c6ae004a9f258a3be3"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigServiceProvider.saveCachedFileList (cyclomatic 29): ConfigServiceProvider.saveCachedFileList has cyclomatic complexity 29 (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":"system/src/Grav/Common/Service/ConfigServiceProvider.php"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ef4efa16c9e9e4962c5d69375bc0a32176d2efc4527744d40d3e78f8adba7c"}},{"ruleId":"D1","level":"warning","message":{"text":"Cache.clearCache (cyclomatic 28): Cache.clearCache has cyclomatic complexity 28 (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":"system/src/Grav/Common/Cache.php"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafa51846827cb21871110a22c5c303b5cc33739afe889d9e88d8aa684fba15b"}},{"ruleId":"D1","level":"warning","message":{"text":"PageStorage.getObjectMeta (cyclomatic 28): PageStorage.getObjectMeta has cyclomatic complexity 28 (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":"system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e969dda3361ad2eac652b571896b1027fd1bb24e96b80b0e89b79062e5e0d7b"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectInstallCommand.serve (cyclomatic 28): DirectInstallCommand.serve has cyclomatic complexity 28 (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":"system/src/Grav/Console/Gpm/DirectInstallCommand.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"696ad838a207101d16261d46076e31bf59a320bab85ec73f0847e5bb32b89e2d"}},{"ruleId":"D1","level":"warning","message":{"text":"PageContentTrait.processContent (cyclomatic 28): PageContentTrait.processContent has cyclomatic complexity 28 (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":"system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"633d92448740ec12f5f800f53300549834db9fefb14354d6e20765031e315343"}},{"ruleId":"D1","level":"warning","message":{"text":"GPM.getDependencies (cyclomatic 27): GPM.getDependencies has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/GPM/GPM.php"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"6623a9f9120f1b579d5b2fa8650d2a28fa1bc95eaa726d9546304a7b817f6200"}},{"ruleId":"D1","level":"warning","message":{"text":"Cache.getCacheAdapter (cyclomatic 26): Cache.getCacheAdapter 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":"system/src/Grav/Common/Cache.php"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb040b9a91dd8ee5c2c4b862898f89e34ecf11af58358d018dbfe3b94d851cf8"}},{"ruleId":"D1","level":"warning","message":{"text":"BlueprintSchema.validateArray (cyclomatic 26): BlueprintSchema.validateArray 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":"system/src/Grav/Common/Data/BlueprintSchema.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"58271657057843ba50d6683218aec74897b5f935fc05ac6b9baa452691edaecc"}},{"ruleId":"D1","level":"warning","message":{"text":"Folder.all (cyclomatic 26): Folder.all 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":"system/src/Grav/Common/Filesystem/Folder.php"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"40bb5660b89d4c3f6612f1cd4823b3baac07538f6082d34ee6929eb16c324940"}},{"ruleId":"D1","level":"warning","message":{"text":"Grav.fallbackUrl (cyclomatic 26): Grav.fallbackUrl 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":"system/src/Grav/Common/Grav.php"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5dc6367c23e445697008be34054f130c987c70415dbcb7f049fba85c79b8b3d"}},{"ruleId":"D1","level":"warning","message":{"text":"Uri.createFromEnvironment (cyclomatic 26): Uri.createFromEnvironment has cyclomatic complexity 26 (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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7201400ea485b4e6dad7e86f26753325f3772c3a6b2f958e6243bc20fa1b507"}},{"ruleId":"D1","level":"warning","message":{"text":"Utils.url (cyclomatic 26): Utils.url 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":"system/src/Grav/Common/Utils.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"119ff42606b6ae89ae127b7da4e7255f909e327d7a5d840be25dcab2ba788872"}},{"ruleId":"D1","level":"warning","message":{"text":"InstallCommand.serve (cyclomatic 26): InstallCommand.serve 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":"system/src/Grav/Console/Gpm/InstallCommand.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5296fcbc80641135e80f6eaca1ae090cdef11d3d22d7ceeab5ec9e020f81a027"}},{"ruleId":"D1","level":"warning","message":{"text":"Page.content (cyclomatic 25): Page.content has cyclomatic complexity 25 (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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"707564b7577f9014be1147c0bbb3a7ad5b26f470dc5da24787278bbc5457ebf5"}},{"ruleId":"D1","level":"warning","message":{"text":"UninstallCommand.uninstallPackage (cyclomatic 25): UninstallCommand.uninstallPackage has cyclomatic complexity 25 (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":"system/src/Grav/Console/Gpm/UninstallCommand.php"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e00cc4e37dddaea037fbfafe9ae5e2552836626a4626d2fe21ddd5c6ff9b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateCommand.serve (cyclomatic 25): UpdateCommand.serve has cyclomatic complexity 25 (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":"system/src/Grav/Console/Gpm/UpdateCommand.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8c74ab3ecd6e8c30ac33e18abd15b4258417551a1077a5a690245a66fd0e53"}},{"ruleId":"D1","level":"warning","message":{"text":"Setup.__construct (cyclomatic 24): Setup.__construct has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Config/Setup.php"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff23d310045381b76aab5d9ec4966644fd2b4c966e52a0d93d3e4667bfbecc5b"}},{"ruleId":"D1","level":"warning","message":{"text":"CompiledFile.content (cyclomatic 24): CompiledFile.content has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/File/CompiledFile.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"35bdea6d7dfd24ba7a23c3985c64b2497297d68b21ec7a1b5f6af3fa4fe23863"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaUploadTrait.checkFileMetadata (cyclomatic 24): MediaUploadTrait.checkFileMetadata has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Media/Traits/MediaUploadTrait.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15d06e52c522903d8e8361111fb05f24fbc02528f5536382a60a4d7804a1b2e"}},{"ruleId":"D1","level":"warning","message":{"text":"Page.value (cyclomatic 24): Page.value 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"4647a4e1ae859ef9f35aa5bbd088a5eff5cecb7f35ff4e0ac4060913abc52d0e"}},{"ruleId":"D1","level":"warning","message":{"text":"PagesServiceProvider.register (cyclomatic 24): PagesServiceProvider.register has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Service/PagesServiceProvider.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95b77aec90502ed6deffe13afa2fc8d84eaf3ddbd7bc0271b50d793347f3f86"}},{"ruleId":"D1","level":"warning","message":{"text":"InfoCommand.serve (cyclomatic 24): InfoCommand.serve has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Gpm/InfoCommand.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"019c0eb16a85f2331b93a5946e318406c4138d89317fd1bdf1d2aecf8d9dbeac"}},{"ruleId":"D1","level":"warning","message":{"text":"Flex.getObjects (cyclomatic 24): Flex.getObjects has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/Flex.php"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edd01495e027e90dc0fc8d291ad47ec770ce3ede7deaecaaa00295d0529a456"}},{"ruleId":"D1","level":"warning","message":{"text":"Installer.install (cyclomatic 23): Installer.install has cyclomatic complexity 23 (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":"system/src/Grav/Common/GPM/Installer.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"de343efcc3f1cbbeab3d278ffc09f1b8ee29bf703ea906b2b3715422455edeb1"}},{"ruleId":"D1","level":"warning","message":{"text":"FileReader.read (cyclomatic 23): FileReader.read has cyclomatic complexity 23 (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":"system/src/Grav/Common/Helpers/FileReader.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a18c8519f1ccd1833ee1b47081dddf13b662d18e0ec07ddaed0511a53dd19e"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaObjectTrait.parsedownElement (cyclomatic 23): MediaObjectTrait.parsedownElement has cyclomatic complexity 23 (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":"system/src/Grav/Common/Media/Traits/MediaObjectTrait.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"535b34f853de2a5052209110426a2b53bf05b394ab89d1f92c727c18ce9a7ac4"}},{"ruleId":"D1","level":"warning","message":{"text":"Session.start (cyclomatic 23): Session.start has cyclomatic complexity 23 (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":"system/src/Grav/Framework/Session/Session.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b4afed94f01614559dc44b8836bcb8151924abf5a0e357d6dd99c078f2727f"}},{"ruleId":"D1","level":"warning","message":{"text":"Validation.arrayFilterRecurse (cyclomatic 22): Validation.arrayFilterRecurse has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Data/Validation.php"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfd4faf1b531267cbd722e7a648c423f46c78d36fd8e01f2853695d120e0232"}},{"ruleId":"D1","level":"warning","message":{"text":"Pages.buildRoutes (cyclomatic 22): Pages.buildRoutes has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":2308}}}],"partialFingerprints":{"codehealthFindingId/v1":"f111d5b1c64b16de3c90da0290aa4a0e965952c37a50dc5f5559d687b7f2fd03"}},{"ruleId":"D1","level":"warning","message":{"text":"Scheduler.run (cyclomatic 22): Scheduler.run has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Scheduler/Scheduler.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a83a382d5f400fbea9545fd471b33ea82c274499ffb3922c14c19466268c3db"}},{"ruleId":"D1","level":"warning","message":{"text":"Security.resolveTwigContentEvents (cyclomatic 22): Security.resolveTwigContentEvents has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Security.php"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef75d0d3bd0d2a9501f85ce533ca3ff3fbdaa4e53c48b48cb6537ba5b2301035"}},{"ruleId":"D1","level":"warning","message":{"text":"BlueprintSchema.filterArray (cyclomatic 21): BlueprintSchema.filterArray has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Data/BlueprintSchema.php"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffb8b2d2bc5cfe870cafc719436d271efff8e4f8f9adf761dbf980fbb74b8ff"}},{"ruleId":"D1","level":"warning","message":{"text":"Security.extractTwigTokens (cyclomatic 21): Security.extractTwigTokens has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Security.php"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56c8a43ad2ff982b5525fb55c48f4566f3558a8121ac415d8adbbf3bfa293c5"}},{"ruleId":"D1","level":"warning","message":{"text":"Security.scanContentTwigUsage (cyclomatic 21): Security.scanContentTwigUsage has cyclomatic complexity 21 (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":"system/src/Grav/Common/Security.php"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87bc513fb16d4f8d77aea4acad15a2237efe02d04fe2d3c4befa96930f63a0a"}},{"ruleId":"D1","level":"warning","message":{"text":"FlexCollection.render (cyclomatic 21): FlexCollection.render has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/FlexCollection.php"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"c916c687b6bb8cd22335e00224e84875f897d46f69bf7a5624b02e93f522f66b"}},{"ruleId":"D1","level":"warning","message":{"text":"Validation.typeArray (cyclomatic 20): Validation.typeArray 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":"system/src/Grav/Common/Data/Validation.php"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f03f5888767d2b87bf2c8edae518ca1bea75824328450ff96c73212f367c42"}},{"ruleId":"D1","level":"warning","message":{"text":"PageStorage.saveRow (cyclomatic 20): PageStorage.saveRow 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":"system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fc2e7564c688038dc8d5b45ebc1f5828fb4f786159beae582f655a7d90d52b"}},{"ruleId":"D1","level":"warning","message":{"text":"Language.setActiveFromUri (cyclomatic 20): Language.setActiveFromUri 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":"system/src/Grav/Common/Language/Language.php"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e6dc5edd6ecc3356a2f37e97a78757e8b87f924a950a50fea9be5dd594ec0b"}},{"ruleId":"D1","level":"warning","message":{"text":"FlexIndex.updateIndexFile (cyclomatic 20): FlexIndex.updateIndexFile 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":"system/src/Grav/Framework/Flex/FlexIndex.php"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b789925da1ef58fc560aecefab924c7305a6fa0f556d50a892fcf28b1c1b000"}},{"ruleId":"D1","level":"warning","message":{"text":"FlexObject.render (cyclomatic 20): FlexObject.render 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":"system/src/Grav/Framework/Flex/FlexObject.php"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf4ed8bbd9468b75aeffc11e76ff40efa80606dd0b70883b82e4807b1024a2e"}},{"ruleId":"D1","level":"warning","message":{"text":"Env.load (cyclomatic 19): Env.load has cyclomatic complexity 19 (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":"system/src/Grav/Common/Config/Env.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce38ac9876d5fc8b87f04c7d20da885afde1ae70a2c093f88d4ceb3c6ffedd6"}},{"ruleId":"D1","level":"warning","message":{"text":"Validation.validate (cyclomatic 19): Validation.validate has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Data/Validation.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b669e08c0c965361f3924cb5010171d9dac8a77e08fd4fa18c757cd3cbcc5d70"}},{"ruleId":"D1","level":"warning","message":{"text":"PageObject.reorderSiblings (cyclomatic 19): PageObject.reorderSiblings has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageObject.php"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c544955dd7c9198c8f8367a90ad2a36b1437e3526bbc6ffe0fb8cce24949d6e"}},{"ruleId":"D1","level":"warning","message":{"text":"Truncator.truncate (cyclomatic 19): Truncator.truncate has cyclomatic complexity 19 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Helpers/Truncator.php"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42811dd8ddeb627ae56317301a08a807c821ac768662fded7fa01390f385a44"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsedownGravTrait.blockTableContinue (cyclomatic 19): ParsedownGravTrait.blockTableContinue has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Markdown/ParsedownGravTrait.php"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"b206dd79f68b8d27d4b8b50ef893058126c7c17a378b7352fb2266763a6b985f"}},{"ruleId":"D1","level":"warning","message":{"text":"ParsedownGravTrait.blockTableComplete (cyclomatic 19): ParsedownGravTrait.blockTableComplete has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Markdown/ParsedownGravTrait.php"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbe3116c871fe70b145a73a310b9ce7797e2e7ebf201fb61839cef745afff77"}},{"ruleId":"D1","level":"warning","message":{"text":"VectorImageMedium.__construct (cyclomatic 19): VectorImageMedium.__construct has cyclomatic complexity 19 (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":"system/src/Grav/Common/Page/Medium/VectorImageMedium.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4566c2d7cc8c2f22f59bf01604a737d89bc2828bff1f800fad18fc03c1507fb"}},{"ruleId":"D1","level":"warning","message":{"text":"Page.metadata (cyclomatic 19): Page.metadata has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":1937}}}],"partialFingerprints":{"codehealthFindingId/v1":"93eb284fa24cb9d218e30e8e5dcd129e003a0ce0d1ea1fc35374bf3011c50a07"}},{"ruleId":"D1","level":"warning","message":{"text":"Pages.buildFlexPages (cyclomatic 19): Pages.buildFlexPages has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29a2191c9b8e154c2d455b09063a0a7af968524933a477c4a85d09648ef3802"}},{"ruleId":"D1","level":"warning","message":{"text":"Utils.getPathFromToken (cyclomatic 19): Utils.getPathFromToken has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Utils.php"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7aa6de375d27e47eeeb3b27a18e7f00bd20bc2995bcbdb9ceaeb27d81102805"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexCommand.filter (cyclomatic 19): IndexCommand.filter has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Gpm/IndexCommand.php"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf7fb6609a5fda585761f4c0c37aef4ca920956bc8f48e85781a6fa72697ba0"}},{"ruleId":"D1","level":"warning","message":{"text":"PageContentTrait.pageContentValue (cyclomatic 19): PageContentTrait.pageContentValue has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a714d8c9d5baf140640845c0bdee3a826abd31454cd7f026785fd5f6b77759"}},{"ruleId":"D1","level":"warning","message":{"text":"Debugger.init (cyclomatic 18): Debugger.init has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Debugger.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"995e242389add7542aef88be7a754cf35bb0333927c932e48594c68e84165440"}},{"ruleId":"D1","level":"warning","message":{"text":"Cron.cronToArray (cyclomatic 18): Cron.cronToArray has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Scheduler/Cron.php"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8517e692ff386762d2c778d5e7a554dbae0617af8ea16a67c363ab249cbd99a"}},{"ruleId":"D1","level":"warning","message":{"text":"Security.detectXss (cyclomatic 18): Security.detectXss has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Security.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f201fad613a2c35d1d938eb791ca35240ef8e6b554a8793cb1e88eedfb4cba"}},{"ruleId":"D1","level":"warning","message":{"text":"Uri.convertUrlOld (cyclomatic 18): Uri.convertUrlOld has cyclomatic complexity 18 (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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48b160d2603ee98b3743919115f6ae2e1f286458fa1e14c7ad7bcda68a35e71"}},{"ruleId":"D1","level":"warning","message":{"text":"CacheCleanupCommand.serve (cyclomatic 18): CacheCleanupCommand.serve has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Cli/CacheCleanupCommand.php"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacf8ba90f31fdf1c082416c9d5b9850348ff128803665ec2e410c0db5ebf78d"}},{"ruleId":"D1","level":"warning","message":{"text":"Install.detectPendingPackageUpdates (cyclomatic 18): Install.detectPendingPackageUpdates has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Installer/Install.php"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b118b0c3e0c1ebc4df644e45c5cfa261aacf20de2e0d57cbbcb629d39d398d"}},{"ruleId":"D1","level":"warning","message":{"text":"PageIndex.filterBy (cyclomatic 17): PageIndex.filterBy 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":"system/src/Grav/Common/Flex/Types/Pages/PageIndex.php"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8833dc93f97cacb4e5ad75322ff6f1500c6212f4153262e1321a6972acfbb9e"}},{"ruleId":"D1","level":"warning","message":{"text":"Uri.isExternal (cyclomatic 17): Uri.isExternal has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Uri.php"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd48cc7e99577fe7697ad764f21ea692e6ce2b5b602eeaaa2477a3b632f5a834"}},{"ruleId":"D1","level":"warning","message":{"text":"PreflightCommand.serve (cyclomatic 17): PreflightCommand.serve has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Gpm/PreflightCommand.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb85e9a1a57a13b49eaa75da48a3bf85dfcdb80abc81b7af5e8ef753bb3567f6"}},{"ruleId":"D1","level":"warning","message":{"text":"SelfupgradeCommand.serve (cyclomatic 17): SelfupgradeCommand.serve 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":"system/src/Grav/Console/Gpm/SelfupgradeCommand.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9904a63b61ace273c4e162e6960f6014adc8ba3f7604c53bafd87cc8981fd0c"}},{"ruleId":"D1","level":"warning","message":{"text":"PageLegacyTrait.metadata (cyclomatic 17): PageLegacyTrait.metadata 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":"system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0e3e53029311ee05442bdd6c7024e1d74bc50f6769e27733a2927a3def6b9d"}},{"ruleId":"D1","level":"warning","message":{"text":"Backups.backup (cyclomatic 16): Backups.backup 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":"system/src/Grav/Common/Backup/Backups.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb979d5d208e964cc81d6dc38974e207d7b031eafbef0c9818cf2cf75537d16"}},{"ruleId":"D1","level":"warning","message":{"text":"Validation.filterArray (cyclomatic 16): Validation.filterArray 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":"system/src/Grav/Common/Data/Validation.php"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29c8246f97fd50b063b806e1296e90afd7a95659c5fc1af9d7c29ff75677ad0"}},{"ruleId":"D1","level":"warning","message":{"text":"PageObject.filterBy (cyclomatic 16): PageObject.filterBy has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageObject.php"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"41858742e9d9729e111b4bdf8c9a885baa05f487398a692d95215b95b0a74c31"}},{"ruleId":"D1","level":"warning","message":{"text":"PageTranslateTrait.translatedLanguages (cyclomatic 16): PageTranslateTrait.translatedLanguages 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":"system/src/Grav/Common/Flex/Types/Pages/Traits/PageTranslateTrait.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"119eaaa663a60430ce15c351f8f7be282e021ef1ae1a17cbeee6503fae1ff7fc"}},{"ruleId":"D1","level":"warning","message":{"text":"Installer.unZip (cyclomatic 16): Installer.unZip 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":"system/src/Grav/Common/GPM/Installer.php"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"afabc5606ec4a73c31b38b4004f27a4f50204eefc7616a6475f304ebe34d00f0"}},{"ruleId":"D1","level":"warning","message":{"text":"Language.getFallbackLanguages (cyclomatic 16): Language.getFallbackLanguages 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":"system/src/Grav/Common/Language/Language.php"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec743302d66b1d4f505eb1535f4fb63f75902d947bdd919ce68a2f9cd601d08"}},{"ruleId":"D1","level":"warning","message":{"text":"Excerpts.processLinkExcerpt (cyclomatic 16): Excerpts.processLinkExcerpt 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":"system/src/Grav/Common/Page/Markdown/Excerpts.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc04ae6a347211a9216c95ef6403f1a7054cbeb62e61da5df0b6cd25c9970e81"}},{"ruleId":"D1","level":"warning","message":{"text":"Page.summary (cyclomatic 16): Page.summary 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"788fd0006e0a8c7cd01926e44be0972d92e0a849414ed9e2686137bfbac0924d"}},{"ruleId":"D1","level":"warning","message":{"text":"Scheduler.executeJob (cyclomatic 16): Scheduler.executeJob 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":"system/src/Grav/Common/Scheduler/Scheduler.php"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"d033e2a8fa1dbe74f3e5eec0a71f1d74e47a80aee22752743c0ca5fd2f4aba13"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionServiceProvider.register (cyclomatic 16): SessionServiceProvider.register 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":"system/src/Grav/Common/Service/SessionServiceProvider.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3a3723f45d75afce7abf1af97b178c326c3a9dff4012a71974a3bfb6a3a1bd"}},{"ruleId":"D1","level":"warning","message":{"text":"Uri.init (cyclomatic 16): Uri.init 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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1381b312845e34e278ef05cba0dcc90073ad9a772826ca7e53a0903939da8026"}},{"ruleId":"D1","level":"warning","message":{"text":"Utils.download (cyclomatic 16): Utils.download 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":"system/src/Grav/Common/Utils.php"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2275acdd847ebd6d29dea5e9d3fe5bf20c48cd73db02a1527d7fde18a48425"}},{"ruleId":"D1","level":"warning","message":{"text":"FlexDirectory.loadObjects (cyclomatic 16): FlexDirectory.loadObjects 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":"system/src/Grav/Framework/Flex/FlexDirectory.php"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"96a7b608382b3b05789b1551a19ae248e1c27d7cf87f4e4b10204b773c71b707"}},{"ruleId":"D2","level":"warning","message":{"text":"Scheduler.processJobsWithWorkers (cognitive 118): Scheduler.processJobsWithWorkers has cognitive complexity 118 (threshold 15). Drivers by points: if/else 64, ternaries 41, loops 7, boolean chains 6 (nesting depth added 84). 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":"system/src/Grav/Common/Scheduler/Scheduler.php"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d520d82ddce85fe9acc8e8f51387ed2d40c932da883cc6e280cb26043d2f897"}},{"ruleId":"D2","level":"warning","message":{"text":"Debugger.deprecatedErrorHandler (cognitive 98): Debugger.deprecatedErrorHandler has cognitive complexity 98 (threshold 15). Drivers by points: if/else 65, loops 19, ternaries 8, boolean chains 6 (nesting depth added 57). 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":"system/src/Grav/Common/Debugger.php"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"722b0f694d3c57608f2533c2760d67d36da4980bbe5039784420d13ead20b14d"}},{"ruleId":"D2","level":"warning","message":{"text":"PageIndex.getLevelListingRecurse (cognitive 96): PageIndex.getLevelListingRecurse has cognitive complexity 96 (threshold 15). Drivers by points: ternaries 55, if/else 29, boolean chains 8, loops 4 (nesting depth added 54). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageIndex.php"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"df54dd1081623580d835dc5f81a0067cd376badd5f06db3915b283911f6b4826"}},{"ruleId":"D2","level":"warning","message":{"text":"Page.header (cognitive 94): Page.header has cognitive complexity 94 (threshold 15). Drivers by points: if/else 86, error handling 3, loops 3, boolean chains 2 (nesting depth added 49). 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a341585105d386bad6d9f684cb1c1224259bb60cc4f8f60eac3302f4101d98"}},{"ruleId":"D2","level":"warning","message":{"text":"SchedulerCommand.serve (cognitive 85): SchedulerCommand.serve has cognitive complexity 85 (threshold 15). Drivers by points: if/else 63, ternaries 12, loops 7, boolean chains 3 (nesting depth added 45). 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":"system/src/Grav/Console/Cli/SchedulerCommand.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"17281d08f7797a8091cfed1d6f6696bb2529bc9549b5a0845badab6265ec713f"}},{"ruleId":"D2","level":"warning","message":{"text":"Media.init (cognitive 82): Media.init has cognitive complexity 82 (threshold 15). Drivers by points: if/else 60, loops 11, boolean chains 10, ternaries 1 (nesting depth added 42). 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":"system/src/Grav/Common/Page/Media.php"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2625acb6c0c58c2e81160afcacad6fd2252916060fd9582c20b784944e131c7d"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.getCollection (cognitive 82): Pages.getCollection has cognitive complexity 82 (threshold 15). Drivers by points: if/else 52, loops 13, ternaries 8, boolean chains 7, match/switch 2 (nesting depth added 36). 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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"336b89a586c470fe1e2566d6866fb4910e21ca03d38b9599f7ab253d096ffe76"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.convertUrl (cognitive 76): Uri.convertUrl has cognitive complexity 76 (threshold 15). Drivers by points: if/else 62, boolean chains 10, ternaries 4 (nesting depth added 35). 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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a382fad2e30127e8c5cb3ae489b7c2bd041fbfec312d61810416cd35bd476b8"}},{"ruleId":"D2","level":"warning","message":{"text":"GPM.getDependencies (cognitive 75): GPM.getDependencies has cognitive complexity 75 (threshold 15). Drivers by points: if/else 63, loops 7, boolean chains 5 (nesting depth added 48). 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":"system/src/Grav/Common/GPM/GPM.php"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"009a5b44d16f5076544d4986d90ff1ada2a36e734533923ae1e550fb45212aba"}},{"ruleId":"D2","level":"warning","message":{"text":"PageStorage.getObjectMeta (cognitive 72): PageStorage.getObjectMeta has cognitive complexity 72 (threshold 15). Drivers by points: if/else 46, ternaries 10, boolean chains 8, error handling 5, loops 3 (nesting depth added 41). 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":"system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"952983af7b8fde70e606a0b5f1f6f45a1c519784a2a444c1e02a7b2b6293aa7c"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.buildSort (cognitive 69): Pages.buildSort has cognitive complexity 69 (threshold 15). Drivers by points: if/else 47, ternaries 14, loops 4, boolean chains 2, match/switch 2 (nesting depth added 39). 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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":2394}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef87d2ff42f6859a3b24d29396e93490f96742f0c1d39d7c1d5cb879d8bcbda"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectInstallCommand.serve (cognitive 69): DirectInstallCommand.serve has cognitive complexity 69 (threshold 15). Drivers by points: if/else 56, ternaries 5, loops 4, boolean chains 2, error handling 2 (nesting depth added 39). 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":"system/src/Grav/Console/Gpm/DirectInstallCommand.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"42851962ddff42db3effaec0f92ce4fe93897e0ae9e2434b80627a14e279b796"}},{"ruleId":"D2","level":"warning","message":{"text":"Page.content (cognitive 66): Page.content has cognitive complexity 66 (threshold 15). Drivers by points: if/else 60, boolean chains 6 (nesting depth added 39). 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0e298449ff5b2b38c50d75dc24a517c333534a05c25fb69206cd933aabb432"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigServiceProvider.saveCachedFileList (cognitive 64): ConfigServiceProvider.saveCachedFileList has cognitive complexity 64 (threshold 15). Drivers by points: if/else 38, loops 23, boolean chains 3 (nesting depth added 38). 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":"system/src/Grav/Common/Service/ConfigServiceProvider.php"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4c4d30cae6b4dd4ffcfd9585f001cec9dbd021b7e27b30e480cd4aa1ab6a52"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallCommand.serve (cognitive 64): InstallCommand.serve has cognitive complexity 64 (threshold 15). Drivers by points: if/else 39, error handling 9, ternaries 8, loops 6, boolean chains 2 (nesting depth added 35). 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":"system/src/Grav/Console/Gpm/InstallCommand.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d28576321364944273963e277baeb7be6fb0b358dd54a398a608f329a54451"}},{"ruleId":"D2","level":"warning","message":{"text":"Grav.fallbackUrl (cognitive 62): Grav.fallbackUrl has cognitive complexity 62 (threshold 15). Drivers by points: if/else 35, ternaries 15, boolean chains 8, loops 4 (nesting depth added 37). 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":"system/src/Grav/Common/Grav.php"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce7214d7c900033fd72790b9df317b7d8ee65655455651f291740378ad9b1bd"}},{"ruleId":"D2","level":"warning","message":{"text":"Page.metadata (cognitive 58): Page.metadata has cognitive complexity 58 (threshold 15). Drivers by points: if/else 25, ternaries 23, loops 6, boolean chains 4 (nesting depth added 38). 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":1937}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efefa2365ab9949b39139b58dc3cf32af87d2ba6a60e445e8feb525961f796b"}},{"ruleId":"D2","level":"warning","message":{"text":"Twig.init (cognitive 58): Twig.init has cognitive complexity 58 (threshold 15). Drivers by points: if/else 38, ternaries 12, boolean chains 6, loops 2 (nesting depth added 30). 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":"system/src/Grav/Common/Twig/Twig.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0353b1b949c9e07b668455af22f938aa7e47d256f7f2194df0d1f0cb84db53b"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.recurse (cognitive 57): Pages.recurse has cognitive complexity 57 (threshold 15). Drivers by points: if/else 45, boolean chains 8, loops 4 (nesting depth added 23). 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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2dcb97533b1ef2d4f90ef44c8ea391fe59e9fbbcfecc18b8093313afd04fc49"}},{"ruleId":"D2","level":"warning","message":{"text":"Security.extractTwigTokens (cognitive 55): Security.extractTwigTokens has cognitive complexity 55 (threshold 15). Drivers by points: if/else 28, loops 22, ternaries 3, boolean chains 2 (nesting depth added 35). 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":"system/src/Grav/Common/Security.php"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c0939d1f40960441d7920b593b61d0ca0888120788178cd9402d5291e97801"}},{"ruleId":"D2","level":"warning","message":{"text":"PageCollection.buildSort (cognitive 54): PageCollection.buildSort has cognitive complexity 54 (threshold 15). Drivers by points: if/else 32, ternaries 15, loops 3, boolean chains 2, match/switch 2 (nesting depth added 29). 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":"system/src/Grav/Common/Flex/Types/Pages/PageCollection.php"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"a152759ce52a92211764388c87effff03bf974cbd68fbcf0c475775e98cbe036"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.url (cognitive 51): Utils.url has cognitive complexity 51 (threshold 15). Drivers by points: if/else 42, boolean chains 7, ternaries 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Utils.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87198d8bd128cedc2e756c601284cbc4d271d734e05ffa23d295ff1a69fea9d"}},{"ruleId":"D2","level":"warning","message":{"text":"UninstallCommand.uninstallPackage (cognitive 51): UninstallCommand.uninstallPackage has cognitive complexity 51 (threshold 15). Drivers by points: if/else 35, ternaries 7, loops 5, boolean chains 4 (nesting depth added 25). 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":"system/src/Grav/Console/Gpm/UninstallCommand.php"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb6c05fd8f1e32948f430bc0c9eb4cfe4137b3ffbf6767f4e66a4214933a94f"}},{"ruleId":"D2","level":"warning","message":{"text":"PageContentTrait.processContent (cognitive 51): PageContentTrait.processContent has cognitive complexity 51 (threshold 15). Drivers by points: if/else 41, boolean chains 9, ternaries 1 (nesting depth added 23). 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":"system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"353081f48b2bdd3b9033a69aeeb16a6c9a0982b849ca32727c1b938ce46cc5ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Folder.all (cognitive 49): Folder.all has cognitive complexity 49 (threshold 15). Drivers by points: if/else 34, ternaries 9, boolean chains 5, loops 1 (nesting depth added 19). 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":"system/src/Grav/Common/Filesystem/Folder.php"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0753654948276d9505796edc84c7b9092b5e0233b918a252007bfe44aa4175d"}},{"ruleId":"D2","level":"warning","message":{"text":"Truncator.truncate (cognitive 49): Truncator.truncate has cognitive complexity 49 (threshold 15). Drivers by points: if/else 40, loops 9 (nesting depth added 30). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Helpers/Truncator.php"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"a489a39a8f3543852c7f6ab21f814bc0fb9a51f5d2c0b8e18990778a5e1a5378"}},{"ruleId":"D2","level":"warning","message":{"text":"PagesServiceProvider.register (cognitive 49): PagesServiceProvider.register has cognitive complexity 49 (threshold 15). Drivers by points: if/else 38, boolean chains 6, ternaries 5 (nesting depth added 25). 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":"system/src/Grav/Common/Service/PagesServiceProvider.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9680b18edd0319d2e1bcd49451809222c9c444b506268b4186554e0a3035e8"}},{"ruleId":"D2","level":"warning","message":{"text":"Flex.getObjects (cognitive 49): Flex.getObjects has cognitive complexity 49 (threshold 15). Drivers by points: if/else 28, loops 13, ternaries 5, boolean chains 3 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/Flex.php"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"953732bb3870d1e23e4100eeb669772a43fcf6803fddb8ced08d92f420eaef21"}},{"ruleId":"D2","level":"warning","message":{"text":"SelfupgradeCommand.handlePreflightReport (cognitive 48): SelfupgradeCommand.handlePreflightReport has cognitive complexity 48 (threshold 15). Drivers by points: if/else 18, loops 17, boolean chains 7, ternaries 6 (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":"system/src/Grav/Console/Gpm/SelfupgradeCommand.php"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"236b41aa641a2752d8b8b3d29851e5b07abd2577f6ccf373f0e0f10beab96f9a"}},{"ruleId":"D2","level":"warning","message":{"text":"Cache.clearCache (cognitive 47): Cache.clearCache has cognitive complexity 47 (threshold 15). Drivers by points: if/else 36, error handling 4, loops 4, boolean chains 2, match/switch 1 (nesting depth added 26). 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":"system/src/Grav/Common/Cache.php"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"6220d3a0b68807b77000ef20246fd1b572fa163b9294687a4c595e28ab540716"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateCommand.serve (cognitive 47): UpdateCommand.serve has cognitive complexity 47 (threshold 15). Drivers by points: if/else 39, boolean chains 5, loops 3 (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":"system/src/Grav/Console/Gpm/UpdateCommand.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6092b8068ae20d74c444d30ca58d5c855cf630323050bfc790e1a868ba8c8976"}},{"ruleId":"D2","level":"warning","message":{"text":"BlueprintSchema.validateArray (cognitive 46): BlueprintSchema.validateArray has cognitive complexity 46 (threshold 15). Drivers by points: if/else 31, boolean chains 9, ternaries 5, loops 1 (nesting depth added 25). 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":"system/src/Grav/Common/Data/BlueprintSchema.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6028a330b80f8087d5d938507441c0a183821b4d95bb9faa84dd150ad0eb1e1"}},{"ruleId":"D2","level":"warning","message":{"text":"PageCollection.ofOneOfTheseAccessLevels (cognitive 45): PageCollection.ofOneOfTheseAccessLevels has cognitive complexity 45 (threshold 15). Drivers by points: if/else 33, loops 11, boolean chains 1 (nesting depth added 32). 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":"system/src/Grav/Common/Flex/Types/Pages/PageCollection.php"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36320718c2018db6eac000e54532fee93bf94107e4acfad9ef9b7c6f499d319"}},{"ruleId":"D2","level":"warning","message":{"text":"Collection.ofOneOfTheseAccessLevels (cognitive 45): Collection.ofOneOfTheseAccessLevels has cognitive complexity 45 (threshold 15). Drivers by points: if/else 33, loops 11, boolean chains 1 (nesting depth added 32). 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":"system/src/Grav/Common/Page/Collection.php"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9317e34ba7f22145a125cfa2cd9e7c04a75e7ec03cbd61a792a3a0200950dfa"}},{"ruleId":"D2","level":"warning","message":{"text":"PageLegacyTrait.metadata (cognitive 45): PageLegacyTrait.metadata has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 20, if/else 16, loops 6, boolean chains 3 (nesting depth added 29). 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":"system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c344a13b79736f98442025e94978df4fa4dae25db2a069bde030cabe8d4802"}},{"ruleId":"D2","level":"warning","message":{"text":"Cache.getCacheAdapter (cognitive 43): Cache.getCacheAdapter has cognitive complexity 43 (threshold 15). Drivers by points: if/else 34, boolean chains 5, error handling 3, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Cache.php"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"735079ca981ddc30d97c37a03bb04506dceb852607b286d5ec2e565a23ce72a6"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.getPathFromToken (cognitive 43): Utils.getPathFromToken has cognitive complexity 43 (threshold 15). Drivers by points: if/else 35, ternaries 7, match/switch 1 (nesting depth added 25). 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":"system/src/Grav/Common/Utils.php"},"region":{"startLine":1691}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa45d8a2d09eb27009a613f27874554eb5e8081a09ac221edcca3ecb733d340"}},{"ruleId":"D2","level":"warning","message":{"text":"CacheCleanupCommand.serve (cognitive 43): CacheCleanupCommand.serve has cognitive complexity 43 (threshold 15). Drivers by points: if/else 34, error handling 4, loops 3, boolean chains 1, ternaries 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Cli/CacheCleanupCommand.php"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ef17d149954548d1333ca02df1b20adbf255d60b4d3c020bbe559a5004c411"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexCommand.filter (cognitive 43): IndexCommand.filter has cognitive complexity 43 (threshold 15). Drivers by points: if/else 32, boolean chains 6, loops 5 (nesting depth added 25). 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":"system/src/Grav/Console/Gpm/IndexCommand.php"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"654cdce0898f0ff300b20443cc30e818e8f2e8ce9664cd53be21d2a922b4321c"}},{"ruleId":"D2","level":"warning","message":{"text":"PageStorage.saveRow (cognitive 41): PageStorage.saveRow has cognitive complexity 41 (threshold 15). Drivers by points: if/else 30, ternaries 7, boolean chains 3, error handling 1 (nesting depth added 19). 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":"system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27efa5f83f9295591823fd2d8847e38e7315e4771489a9b2cb2fe293bfa7529"}},{"ruleId":"D2","level":"warning","message":{"text":"Scheduler.run (cognitive 41): Scheduler.run has cognitive complexity 41 (threshold 15). Drivers by points: if/else 26, loops 8, boolean chains 5, ternaries 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Scheduler/Scheduler.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c5d8640e61ce952b6f021aac83198b95f7306e3cae12be4b8db0d259bfad4c"}},{"ruleId":"D2","level":"warning","message":{"text":"Language.setActiveFromUri (cognitive 40): Language.setActiveFromUri has cognitive complexity 40 (threshold 15). Drivers by points: if/else 27, boolean chains 9, ternaries 4 (nesting depth added 19). 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":"system/src/Grav/Common/Language/Language.php"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47018d4828f31b1190949f6b875a31603f02d29e9e62aac6dcea05a8138fd4f"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.buildRoutes (cognitive 40): Pages.buildRoutes has cognitive complexity 40 (threshold 15). Drivers by points: if/else 30, boolean chains 6, loops 4 (nesting depth added 19). 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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":2308}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4b15c66e89e15b5a01cb6bedbdd3ed9abad2ddb86edf8fb826eb8d358c13dc"}},{"ruleId":"D2","level":"warning","message":{"text":"Cron.cronToArray (cognitive 40): Cron.cronToArray has cognitive complexity 40 (threshold 15). Drivers by points: if/else 20, loops 16, boolean chains 4 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Scheduler/Cron.php"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3c092afe67d77b5f9ec8a1b7264396a32379551a1ad2d576f924bce5aa4bef"}},{"ruleId":"D2","level":"warning","message":{"text":"InfoCommand.serve (cognitive 39): InfoCommand.serve has cognitive complexity 39 (threshold 15). Drivers by points: if/else 28, boolean chains 4, ternaries 4, loops 3 (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":"system/src/Grav/Console/Gpm/InfoCommand.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9ef2bc8b5ee468a97edec19e84408c6eb9a71ed19543dc14333dd5b70c56f8"}},{"ruleId":"D2","level":"warning","message":{"text":"Setup.__construct (cognitive 38): Setup.__construct has cognitive complexity 38 (threshold 15). Drivers by points: if/else 25, ternaries 12, boolean chains 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":"system/src/Grav/Common/Config/Setup.php"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6f39cbfd4c23a52d2c9c1bdd177ba4bc9c1607bed1c74d0735757b8cf681e9"}},{"ruleId":"D2","level":"warning","message":{"text":"CompiledFile.content (cognitive 38): CompiledFile.content has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17, boolean chains 12, error handling 7, ternaries 2 (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":"system/src/Grav/Common/File/CompiledFile.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9661a3ac02ec59149e7ea8297df29065c64804ee8f48ef98391bfea02096531"}},{"ruleId":"D2","level":"warning","message":{"text":"Debugger.init (cognitive 37): Debugger.init has cognitive complexity 37 (threshold 15). Drivers by points: if/else 34, match/switch 2, boolean chains 1 (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":"system/src/Grav/Common/Debugger.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e900390a3ef1234a16accc31ae4ee389c7ecfd064a366151b93861b2fb43484"}},{"ruleId":"D2","level":"warning","message":{"text":"Validation.arrayFilterRecurse (cognitive 36): Validation.arrayFilterRecurse has cognitive complexity 36 (threshold 15). Drivers by points: if/else 23, match/switch 7, boolean chains 5, loops 1 (nesting depth added 19). 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":"system/src/Grav/Common/Data/Validation.php"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a6ffe91e4887dfb84e51e7b6461d65af09ffbc669733722e43babf08df57ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer.unZip (cognitive 36): Installer.unZip has cognitive complexity 36 (threshold 15). Drivers by points: if/else 32, boolean chains 2, loops 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/GPM/Installer.php"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c813000d543dcb5fad9768b1353ebe657fa0c5592407095cdba0cc23c1b8ba1"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaUploadTrait.checkFileMetadata (cognitive 36): MediaUploadTrait.checkFileMetadata has cognitive complexity 36 (threshold 15). Drivers by points: if/else 31, boolean chains 4, 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":"system/src/Grav/Common/Media/Traits/MediaUploadTrait.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b28c37eff7a4643c546aa7a34044347a023fc4c7cb2292fcc70f9ce4b85473f"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.download (cognitive 36): Utils.download has cognitive complexity 36 (threshold 15). Drivers by points: if/else 30, boolean chains 3, loops 3 (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":"system/src/Grav/Common/Utils.php"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b3611ce75ed201a7efdd7d271d03d578ff12de1f07c2db87604dcf7449ea60"}},{"ruleId":"D2","level":"warning","message":{"text":"ZipArchiver.extract (cognitive 34): ZipArchiver.extract has cognitive complexity 34 (threshold 15). Drivers by points: if/else 30, boolean chains 2, loops 2 (nesting depth added 21). 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":"system/src/Grav/Common/Filesystem/ZipArchiver.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3d1215fe085440e439f446710f4400c2f68dce949f0a7d101ad5a322a909c2"}},{"ruleId":"D2","level":"warning","message":{"text":"UserObject.setUpdatedMedia (cognitive 34): UserObject.setUpdatedMedia has cognitive complexity 34 (threshold 15). Drivers by points: if/else 29, loops 3, boolean chains 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":"system/src/Grav/Common/Flex/Types/Users/UserObject.php"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d304aa5597269a066bade0926cea134b531ce96c56f6cb87a1db6af339bc6f"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.buildFlexPages (cognitive 34): Pages.buildFlexPages has cognitive complexity 34 (threshold 15). Drivers by points: if/else 27, ternaries 3, boolean chains 2, loops 2 (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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"0832f48a7265aced83f0b2b88aa2f0fcf24d3bfec34ca71bfc84c6f10d7c98fa"}},{"ruleId":"D2","level":"warning","message":{"text":"Security.scanContentTwigUsage (cognitive 34): Security.scanContentTwigUsage has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15, loops 11, boolean chains 5, error handling 3 (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":"system/src/Grav/Common/Security.php"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ebe3766e1c46e68d9cbf032c69cbb9742a4b2bb5e12cb1f4dd72698716d21c"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexIndex.updateIndexFile (cognitive 34): FlexIndex.updateIndexFile has cognitive complexity 34 (threshold 15). Drivers by points: if/else 24, boolean chains 5, loops 5 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/FlexIndex.php"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cd01798916076655c6f1a1f22278920dc1eb275a288a86af22b15cc351b07c5"}},{"ruleId":"D2","level":"warning","message":{"text":"PageObject.reorderSiblings (cognitive 33): PageObject.reorderSiblings has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22, loops 7, ternaries 3, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageObject.php"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a1e42dda6fa2afdda3624f821b6d734db10571e725e84731ace10f777846c0"}},{"ruleId":"D2","level":"warning","message":{"text":"Language.getFallbackLanguages (cognitive 33): Language.getFallbackLanguages has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19, loops 6, boolean chains 4, ternaries 4 (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":"system/src/Grav/Common/Language/Language.php"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"8469575b3e08d050bbaf6c8c753afd2253de0b5ec103c0d83d517bacafb450ea"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsedownGravTrait.blockTableContinue (cognitive 33): ParsedownGravTrait.blockTableContinue has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20, boolean chains 9, ternaries 4 (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":"system/src/Grav/Common/Markdown/ParsedownGravTrait.php"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34c73100571300989e680f50e30b810d049c50ade68fb8da55244a6a033df21"}},{"ruleId":"D2","level":"warning","message":{"text":"Folder.rcopy (cognitive 32): Folder.rcopy has cognitive complexity 32 (threshold 15). Drivers by points: if/else 30, boolean chains 1, loops 1 (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":"system/src/Grav/Common/Filesystem/Folder.php"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcf3449c0b89df935dc500619eb28a9c00bed2b432ecdc6c8700607d8bfbb58"}},{"ruleId":"D2","level":"warning","message":{"text":"Excerpts.processLinkExcerpt (cognitive 32): Excerpts.processLinkExcerpt has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20, ternaries 8, boolean chains 2, loops 2 (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":"system/src/Grav/Common/Page/Markdown/Excerpts.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6768d166f78503afa45e573ac829d96b0894a761d615b36faf7b7a6660087e45"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallCommand.processGpm (cognitive 32): InstallCommand.processGpm has cognitive complexity 32 (threshold 15). Drivers by points: if/else 23, loops 7, boolean chains 2 (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":"system/src/Grav/Console/Gpm/InstallCommand.php"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00e37f2b4df313adb6ffec37a3ca471423521971122b19dc740ae38a9195bbf"}},{"ruleId":"D2","level":"warning","message":{"text":"GPM.calculateMergedDependenciesOfPackage (cognitive 31): GPM.calculateMergedDependenciesOfPackage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 29, boolean chains 1, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/GPM/GPM.php"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa5f16cb4d788a9b4d2203cb0c82e0717f3251c70fffcc45f60e07b8bbca4e0"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer.install (cognitive 31): Installer.install has cognitive complexity 31 (threshold 15). Drivers by points: if/else 22, boolean chains 9 (nesting depth added 5). 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":"system/src/Grav/Common/GPM/Installer.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe1104db6f87983d7ee63be4ac217689a0b6db4a40e2d6195b223895f960423"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsedownGravTrait.blockTableComplete (cognitive 31): ParsedownGravTrait.blockTableComplete has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18, boolean chains 5, loops 5, ternaries 3 (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":"system/src/Grav/Common/Markdown/ParsedownGravTrait.php"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ae719afecf35009a5919ebcd3d3d7cd399edb90ed92d62cbf1654725ce52d1"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.get (cognitive 31): Pages.get has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21, ternaries 5, loops 4, boolean chains 1 (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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7846f4b5dbab200d7aa4e481fed330a0ae7ebbdf3bdcd9f17d605ee62e6b6c1"}},{"ruleId":"D2","level":"warning","message":{"text":"VersionCommand.serve (cognitive 31): VersionCommand.serve has cognitive complexity 31 (threshold 15). Drivers by points: if/else 27, ternaries 2, boolean chains 1, loops 1 (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":"system/src/Grav/Console/Gpm/VersionCommand.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49d0873058aa8a8ac46e7ae323f304ba54f6ee9f3d06fe6d655cc85341ed074"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlBlock.getAssetsFast (cognitive 31): HtmlBlock.getAssetsFast has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18, loops 13 (nesting depth added 21). 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":"system/src/Grav/Framework/ContentBlock/HtmlBlock.php"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d463eb1fe5aee5801a2834fa284ef3f0b7c4e6b324686e4b94dc49d5f3b944a"}},{"ruleId":"D2","level":"warning","message":{"text":"BlueprintSchema.filterArray (cognitive 30): BlueprintSchema.filterArray has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15, boolean chains 8, ternaries 6, loops 1 (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":"system/src/Grav/Common/Data/BlueprintSchema.php"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6dddd7b449c8ff9c4415601ff161e62295a6ff24b0a74e5a843bd6f432450c"}},{"ruleId":"D2","level":"warning","message":{"text":"Page.value (cognitive 30): Page.value has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20, ternaries 6, boolean chains 2, loops 2 (nesting depth added 7). 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"44542abc0520ee1389e71e07cd675473581f93e11af2e9228ca72c62c3db0742"}},{"ruleId":"D2","level":"warning","message":{"text":"Scheduler.executeJob (cognitive 30): Scheduler.executeJob has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 14, if/else 13, boolean chains 3 (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":"system/src/Grav/Common/Scheduler/Scheduler.php"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"5802bf3660455a55588d119ca1c4eca4a7d20e7d55df1c6626c6dfde0a246630"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexDirectory.loadObjects (cognitive 30): FlexDirectory.loadObjects has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24, loops 4, error handling 2 (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":"system/src/Grav/Framework/Flex/FlexDirectory.php"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf1374b2f315351b560de34dd8dba2a1f0adee2f3e26c51753c518342d16f8b"}},{"ruleId":"D2","level":"warning","message":{"text":"BlueprintSchema.processFormRecursive (cognitive 29): BlueprintSchema.processFormRecursive has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23, boolean chains 5, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Data/BlueprintSchema.php"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"79767533e14f2247cbea5da10dd6d375228a546766e5554edd109fb0a2c8217b"}},{"ruleId":"D2","level":"warning","message":{"text":"Security.resolveTwigContentEvents (cognitive 29): Security.resolveTwigContentEvents has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20, boolean chains 7, error handling 1, 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":"system/src/Grav/Common/Security.php"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d98de6aa6e8b7eedbaf231c8465bfa9387f6ee041378069931fcf63305f746e"}},{"ruleId":"D2","level":"warning","message":{"text":"Session.start (cognitive 29): Session.start has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16, boolean chains 6, ternaries 5, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Session/Session.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"46419d0c9077dfaf79bed72990d3abb9cdea70b6ca28ebff95d535133766a0e1"}},{"ruleId":"D2","level":"warning","message":{"text":"Install.detectPendingPackageUpdates (cognitive 29): Install.detectPendingPackageUpdates has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23, boolean chains 2, loops 2, error handling 1, ternaries 1 (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":"system/src/Grav/Installer/Install.php"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8efa522408a6c8b860bd129ed6050dd8a1ac0f0fe09224f141a624beb6ab4e"}},{"ruleId":"D2","level":"warning","message":{"text":"Cache.purgeOldCache (cognitive 28): Cache.purgeOldCache has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, loops 5, boolean chains 3 (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":"system/src/Grav/Common/Cache.php"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36851bced2545dc60c9004c00f5d919adbea427a26baf222496937375123540"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer.sophisticatedInstall (cognitive 28): Installer.sophisticatedInstall has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14, loops 5, ternaries 4, error handling 3, boolean chains 2 (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":"system/src/Grav/Common/GPM/Installer.php"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"1084965c909c64f7fe062803392eae8f24d239492f4865d6b7c25de434c01733"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.evaluate (cognitive 28): Pages.evaluate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14, ternaries 6, boolean chains 4, loops 2, match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"205920fe3f234eeb4dbefc7cad9185bf70ad36304fb505831cc2c2cf3572d650"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.dispatch (cognitive 28): Pages.dispatch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, error handling 3, boolean chains 2, loops 2 (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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41893b7b25ff4ee721823e998d9d930890d5842ff8a15a835d8a8a13c1a81f1"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.buildRegularPages (cognitive 28): Pages.buildRegularPages has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 13, if/else 12, boolean chains 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"70879de3294a797f399007b9b064834cd0eafc008cf185b38aac2f03038a74b0"}},{"ruleId":"D2","level":"warning","message":{"text":"ParsedownGravTrait.__call (cognitive 27): ParsedownGravTrait.__call has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14, ternaries 11, loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Markdown/ParsedownGravTrait.php"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a991f23ca8c1238c9e5b7822381600bf2194bc2382c70b14557f6d502fe40a8"}},{"ruleId":"D2","level":"warning","message":{"text":"Security.detectXss (cognitive 27): Security.detectXss has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, boolean chains 6, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Security.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"962396f7e926792db4f5559f5a769e9044d603da6931aca66e7de284e0243eb9"}},{"ruleId":"D2","level":"warning","message":{"text":"SelfupgradeCommand.serve (cognitive 27): SelfupgradeCommand.serve has cognitive complexity 27 (threshold 15). Drivers by points: if/else 21, boolean chains 3, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Gpm/SelfupgradeCommand.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"259d171733ec76f8b04387d0efbe4be67eb4bffaa1e7b061e92b1d186441bf78"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexIndex.__call (cognitive 27): FlexIndex.__call has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, error handling 5, ternaries 2, boolean chains 1 (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":"system/src/Grav/Framework/Flex/FlexIndex.php"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"46348ce78f750650dcb7e4b70bf1288c657ef0ba22a4c484a9b4d206386529d7"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexObject.render (cognitive 27): FlexObject.render has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13, boolean chains 5, ternaries 4, error handling 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/FlexObject.php"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"073439dfd635c368a98b3eaf2d0c5f2715ab53f912c47db4b3b495786f72b083"}},{"ruleId":"D2","level":"warning","message":{"text":"FileReader.read (cognitive 26): FileReader.read has cognitive complexity 26 (threshold 15). Drivers by points: if/else 19, boolean chains 5, loops 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Helpers/FileReader.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cbb041aa5f45eed517a24c96a35e903b288986f9f93054ff0a036b23d68220"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexCollection.render (cognitive 26): FlexCollection.render has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11, boolean chains 7, ternaries 4, error handling 3, loops 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":"system/src/Grav/Framework/Flex/FlexCollection.php"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"74eff5a8d20582b7fca0c817102e333ae060b91f23e4152ea7fadb2c21f5a4a0"}},{"ruleId":"D2","level":"warning","message":{"text":"PageStorage.getIndexMeta (cognitive 25): PageStorage.getIndexMeta has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16, loops 5, ternaries 3, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcb28b4dd7ee84d36151213ff57726e0090a71b126814ee28af8be262230550"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaObjectTrait.parsedownElement (cognitive 25): MediaObjectTrait.parsedownElement has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, ternaries 2, loops 1, match/switch 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":"system/src/Grav/Common/Media/Traits/MediaObjectTrait.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc625e0b6f40d9c9cd956d01f0de469e8205a738f786cee98fb1c9a3724c0a2"}},{"ruleId":"D2","level":"warning","message":{"text":"Job.runWithRetry (cognitive 25): Job.runWithRetry has cognitive complexity 25 (threshold 15). Drivers by points: if/else 21, error handling 2, boolean chains 1, loops 1 (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":"system/src/Grav/Common/Scheduler/Job.php"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"82af9ede4d0f21fa3d05747e3ec9c7c3214b5a7c922ff18e4f9133230667eb86"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.convertUrlOld (cognitive 25): Uri.convertUrlOld has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, boolean chains 3, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1808df659f8919e9f0096261ed5171649df9f3f259501ce6549670fff2cd41d"}},{"ruleId":"D2","level":"warning","message":{"text":"YamlUpdater.findPath (cognitive 25): YamlUpdater.findPath has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20, ternaries 3, boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Installer/YamlUpdater.php"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"e757d98ee5ae6490a8615fb7ffa91f81824efc2b2b28b0b1635ca4529bf91b1f"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetUtilsTrait.gatherLinks (cognitive 24): AssetUtilsTrait.gatherLinks has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, boolean chains 3, ternaries 2, 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":"system/src/Grav/Common/Assets/Traits/AssetUtilsTrait.php"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d64f69ff499e006d88d70cffbb0eae35de0f4a25339df8506d4cea502a6f429"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.accessLevels (cognitive 24): Pages.accessLevels has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, loops 11, boolean chains 1 (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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"92251bc220629027f6a51ddb5d98cbc0a792c24010930565f8b0b0280f8833a0"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.createFromEnvironment (cognitive 24): Uri.createFromEnvironment has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, boolean chains 6, ternaries 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Uri.php"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4762c0246b3481b6150fcb35462774312ba59340f1f3e6f49546a646c2762ac4"}},{"ruleId":"D2","level":"warning","message":{"text":"User.save (cognitive 24): User.save has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, boolean chains 4, ternaries 2 (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":"system/src/Grav/Common/User/DataUser/User.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72bf481bf4806e850b97f9496c3d3fcaf63baab29e496c3123bd21c58ef6ee7"}},{"ruleId":"D2","level":"warning","message":{"text":"PreflightCommand.serve (cognitive 24): PreflightCommand.serve has cognitive complexity 24 (threshold 15). Drivers by points: loops 11, if/else 7, boolean chains 3, ternaries 3 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Gpm/PreflightCommand.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f8cb37248654418c303a4496269d6ceafb3e4ed9a7b1f14d77fa979eeb89ed"}},{"ruleId":"D2","level":"warning","message":{"text":"Validation.typeArray (cognitive 23): Validation.typeArray has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 7, loops 2 (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":"system/src/Grav/Common/Data/Validation.php"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50cad889d7b20a5710ef3c22c999d1ea3ce18886f559c1b7f6cc25c9cfe77b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ZipArchiver.extractStreamed (cognitive 23): ZipArchiver.extractStreamed has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 1 (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":"system/src/Grav/Common/Filesystem/ZipArchiver.php"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60008ca06d4bc9e936bf8a18db86c2b452841ea955495c208b9f2174981f5e2"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer.extractStreamed (cognitive 23): Installer.extractStreamed has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 1 (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":"system/src/Grav/Common/GPM/Installer.php"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bbd5602112d823869ae2976ff1d8e8d3c7869f05386d0d476e3f89c9317031"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageMediaTrait.derivatives (cognitive 23): ImageMediaTrait.derivatives has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, loops 8 (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":"system/src/Grav/Common/Media/Traits/ImageMediaTrait.php"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b754302765c6976aee2502c6ffe8ac2a16cebb6d9a7b1eda804e9bcdb9d782e5"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.getList (cognitive 23): Pages.getList has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 4, ternaries 3, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48087eaa3ed642ac4d87e0dcd7205514d9be2c4f06e831c6f19521e90386127"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.getTypes (cognitive 23): Pages.getTypes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, loops 5 (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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b5a9187e5786b3cf4cfd7732d5193e111e8b01279518ff5a839f855e2d8454"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestServiceProvider.register (cognitive 23): RequestServiceProvider.register has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12, error handling 4, match/switch 3, loops 2, ternaries 2 (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":"system/src/Grav/Common/Service/RequestServiceProvider.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0b7b6ee4c24dc48495bbf036a224dd55e8f4ed1985d7d61265d05c57b83acc"}},{"ruleId":"D2","level":"warning","message":{"text":"PageAuthorsTrait.isAuthorizedByGroup (cognitive 23): PageAuthorsTrait.isAuthorizedByGroup has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, boolean chains 3, ternaries 3, loops 1 (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":"system/src/Grav/Framework/Flex/Pages/Traits/PageAuthorsTrait.php"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cce7655b556a5f3ac1d438e14d5777a82b027733a25ff049aa032db4b649133"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexMediaTrait.setUpdatedMedia (cognitive 23): FlexMediaTrait.setUpdatedMedia has cognitive complexity 23 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 2 (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":"system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf344196c6688b2759818dad27710fe10fa65fc287ef5799bcf8f03276620fe"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaIdentifier.getObject (cognitive 23): MediaIdentifier.getObject has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, ternaries 4, boolean chains 3 (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":"system/src/Grav/Framework/Media/MediaIdentifier.php"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"b96e4fb06abec3385f605d3d78a9df664c3abcf979def6fcf5ab50344354e6b2"}},{"ruleId":"D2","level":"warning","message":{"text":"Validation.validate (cognitive 22): Validation.validate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, boolean chains 8, ternaries 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Data/Validation.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c59da10971f18535474d9f4d5934c83bcddb5c2510d5f96a3462d1a0f665fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Validation.filterArray (cognitive 22): Validation.filterArray has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8, boolean chains 6, loops 4, ternaries 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Data/Validation.php"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"c295a8acafbbfc8d26770890412aef39ba455cf568740e4f3af73badf9bccf9b"}},{"ruleId":"D2","level":"warning","message":{"text":"Debugger.addMessage (cognitive 22): Debugger.addMessage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 22 (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":"system/src/Grav/Common/Debugger.php"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56886d443b146be623a4e81bde4fd005c2f09c63522176bbd9078000f8432d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Base32.decode (cognitive 22): Base32.decode has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, loops 3, boolean chains 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":"system/src/Grav/Common/Helpers/Base32.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3973786efe52ae1898ebfbb360d266a692fbc6353f99480d6101427deeca438e"}},{"ruleId":"D2","level":"warning","message":{"text":"Excerpts.processImageExcerpt (cognitive 22): Excerpts.processImageExcerpt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 7 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Markdown/Excerpts.php"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf67eb269afaf228ed59b7b7351fe1e195503aaff76a5d5d7b1b7c6d789d86e"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractMedia.compareMeta (cognitive 22): AbstractMedia.compareMeta has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, ternaries 4, loops 3, boolean chains 1, match/switch 1 (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":"system/src/Grav/Common/Page/Medium/AbstractMedia.php"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"14af1ae2ca8bcd7c6bf1490b5b44167ad586d936469c14b2e50d168b6a681339"}},{"ruleId":"D2","level":"warning","message":{"text":"JobHistory.searchHistory (cognitive 22): JobHistory.searchHistory has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, boolean chains 3, ternaries 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":"system/src/Grav/Common/Scheduler/JobHistory.php"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5fd05afd27475cb3946836417125e0ac2a4d7e82c91cb75aa8491650e164e4"}},{"ruleId":"D2","level":"warning","message":{"text":"Session.getFlashObject (cognitive 22): Session.getFlashObject has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9, ternaries 6, error handling 4, boolean chains 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":"system/src/Grav/Common/Session.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f324590d29b2b899f521566b790653b18d0e64977c63ff19dc5d5b693dd4369e"}},{"ruleId":"D2","level":"warning","message":{"text":"Taxonomy.findTaxonomy (cognitive 22): Taxonomy.findTaxonomy has cognitive complexity 22 (threshold 15). Drivers by points: loops 14, if/else 4, boolean chains 2, ternaries 2 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Taxonomy.php"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8e2782adc2fe9c480c662b540ec097623c74f35c37c152e7921c6ea114804f"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.init (cognitive 22): Uri.init has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, ternaries 4, boolean chains 2 (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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc01da2c2f8363e21c59aa4772a2c90a7923a35347c6bd420c85fb290cef275c"}},{"ruleId":"D2","level":"warning","message":{"text":"Assets.splitPipelineAssetsByAttribute (cognitive 21): Assets.splitPipelineAssetsByAttribute has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, ternaries 4, boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Assets.php"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7fe14b40afd0ab511ece3bd3b9c46e1365a18ea5d369fee7061351356642abf"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseAsset.init (cognitive 21): BaseAsset.init has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, ternaries 3, 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":"system/src/Grav/Common/Assets/BaseAsset.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18ebe285214133a43200d30924146834e79f19553c7b7e70cfb8e8f9af6edca"}},{"ruleId":"D2","level":"warning","message":{"text":"Backups.backup (cognitive 21): Backups.backup has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, boolean chains 5, loops 2, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"system/src/Grav/Common/Backup/Backups.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffed9e162c4e45117ee0f654c57f580df395c2936ece63ac10508b3f5d89ac8e"}},{"ruleId":"D2","level":"warning","message":{"text":"PageTranslateTrait.translatedLanguages (cognitive 21): PageTranslateTrait.translatedLanguages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10, ternaries 7, loops 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/Traits/PageTranslateTrait.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"af605ee1bc1e751087e8221985001048933e38dd0a2908e7f0819c3cf02a259f"}},{"ruleId":"D2","level":"warning","message":{"text":"Page.doReorder (cognitive 21): Page.doReorder has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, boolean chains 3, loops 2, ternaries 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":3027}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeaa1b64dceb162ec7bc72c914a4b9df577d93caef39133120ce614940946125"}},{"ruleId":"D2","level":"warning","message":{"text":"JobHistory.getJobStatistics (cognitive 21): JobHistory.getJobStatistics has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, boolean chains 4, ternaries 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":"system/src/Grav/Common/Scheduler/JobHistory.php"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a13fb24b97a5b1a4c9f624095895619d376e1e656f8138526e1a4850eec2b7"}},{"ruleId":"D2","level":"warning","message":{"text":"SelfupgradeCommand.upgrade (cognitive 21): SelfupgradeCommand.upgrade has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, ternaries 10 (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":"system/src/Grav/Console/Gpm/SelfupgradeCommand.php"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"29db754aea98dafe498ccaaf3803dabac60dc0c12cf8b59ce37bf0ed82299677"}},{"ruleId":"D2","level":"warning","message":{"text":"PageLegacyTrait.copy (cognitive 21): PageLegacyTrait.copy has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, ternaries 6, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9eaadf797f2a2c9af3b3de5e91cdeb029306c5d4cf631479148d22d2bbe2fd1"}},{"ruleId":"D2","level":"warning","message":{"text":"DOMWordsIterator.next (cognitive 20): DOMWordsIterator.next has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, boolean chains 5, ternaries 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/DOMWordsIterator.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff9e3bdb4fac5e07b0faeefe3c7552437ebc29b89dec536ba96015fe45c20fed"}},{"ruleId":"D2","level":"warning","message":{"text":"Blueprint.init (cognitive 20): Blueprint.init has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 5 (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":"system/src/Grav/Common/Data/Blueprint.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bf856430267986806895dcfe724edd86d12cdacc46c8044920ddcfb92491df"}},{"ruleId":"D2","level":"warning","message":{"text":"Blueprint.getFiles (cognitive 20): Blueprint.getFiles has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Data/Blueprint.php"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7bd7ad8b9ce0b0f77bf50b9d7541f4183385d016d808f0a9b937c912caada5c"}},{"ruleId":"D2","level":"warning","message":{"text":"Language.translate (cognitive 20): Language.translate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 2, ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Language/Language.php"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e51e6bad4a3e11db73447942997af3534e10f8e67c7a6434f85b1dd9de9bf00"}},{"ruleId":"D2","level":"warning","message":{"text":"Page.summary (cognitive 20): Page.summary has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, ternaries 4, boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":808}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a07ed4c1c74b9cd228e5410d04a175991ddf01639f4c730056e7fc3369fec5a"}},{"ruleId":"D2","level":"warning","message":{"text":"Security.recordTwigContentEvent (cognitive 20): Security.recordTwigContentEvent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Security.php"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd8cb2ee165ef5d71600d995e2de233fc409824e16a3dc0727ffbc3be4b1c30"}},{"ruleId":"D2","level":"warning","message":{"text":"UserCollection.find (cognitive 20): UserCollection.find has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 6, boolean chains 1, ternaries 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":"system/src/Grav/Common/User/DataUser/UserCollection.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08f0cb75d45158557a06c5ae82fadd88174d73d6c9a8ee61124aea414772f0f"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.arrayUnflattenDotNotation (cognitive 20): Utils.arrayUnflattenDotNotation has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 4, boolean chains 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":"system/src/Grav/Common/Utils.php"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec680363d25bd1f89b927bb2bb378dabec09b1d7fe971f3999e205cb6e60cec"}},{"ruleId":"D2","level":"warning","message":{"text":"Assets.add (cognitive 19): Assets.add has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, loops 2, ternaries 2 (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":"system/src/Grav/Common/Assets.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa698d563c758a8ebeee959c11a0adeddacc8517d93f4558f80fe4ae54780b5"}},{"ruleId":"D2","level":"warning","message":{"text":"Assets.addType (cognitive 19): Assets.addType has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Assets.php"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f3dfbaefe8d15f98fdea93e04390ca5af9efaef3a6639076d9f30e4a9bb6f5b"}},{"ruleId":"D2","level":"warning","message":{"text":"Assets.render (cognitive 19): Assets.render has cognitive complexity 19 (threshold 15). Drivers by points: loops 10, if/else 9 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Assets.php"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"475c28cf294cc8e2dc068d69d116ecd8613655ae351042142f668a5a010dc3f3"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline.gatherAndMinifyJs (cognitive 19): Pipeline.gatherAndMinifyJs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, error handling 2, ternaries 2, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Assets/Pipeline.php"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1c50d17f0fd61b9309cf1dc4ef50ea44e06737e91ce50fc9b4096c4685de28"}},{"ruleId":"D2","level":"warning","message":{"text":"Env.load (cognitive 19): Env.load has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, boolean chains 7, ternaries 2, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Config/Env.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f42ab9293dc0699bbc7406c15c0f8c8d5321dc4ee42498864c792f616140c1"}},{"ruleId":"D2","level":"warning","message":{"text":"BlueprintSchema.checkRequired (cognitive 19): BlueprintSchema.checkRequired has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 4, 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":"system/src/Grav/Common/Data/BlueprintSchema.php"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6f4b529da3af81a7b2f9955dbf19be2808176950d882c9434add1483309d32"}},{"ruleId":"D2","level":"warning","message":{"text":"Inflector.pluralize (cognitive 19): Inflector.pluralize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Inflector.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b4a1583f0367acdd7b4587ab460e9dc3218648217527fe4d13e45e2fa0e4c6"}},{"ruleId":"D2","level":"warning","message":{"text":"Inflector.singularize (cognitive 19): Inflector.singularize has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Inflector.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a73719671182435c3ee10278528938d7ff1acf7a499022ef72c612bba1b8b81"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaUploadTrait.doRemove (cognitive 19): MediaUploadTrait.doRemove has cognitive complexity 19 (threshold 15). Drivers by points: if/else 17, loops 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Media/Traits/MediaUploadTrait.php"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db64ee4748b95637bc6b472730f9c6655c0faafdc7bee134482e795176ce389"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigServiceProvider.loadCachedFileList (cognitive 19): ConfigServiceProvider.loadCachedFileList has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 4, loops 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Service/ConfigServiceProvider.php"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f3bfdde87158c4fd5bc061a734a0108ad93a8a08fdf9a61f2be0b991bc97f0"}},{"ruleId":"D2","level":"warning","message":{"text":"TwigTokenParserScript.parseArguments (cognitive 19): TwigTokenParserScript.parseArguments has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 5, loops 2 (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":"system/src/Grav/Common/Twig/TokenParser/TwigTokenParserScript.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b17938c777b07dc4bac90f7b5648cb429ad5dda8a7731dade220b96d6305e8e"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.ip (cognitive 19): Uri.ip has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 4, loops 1, ternaries 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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a0fb456f230fa16532335d5122d74de05142be1fe87550a036038343136ba5"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallCommand.installDependencies (cognitive 19): InstallCommand.installDependencies has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 5, ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Gpm/InstallCommand.php"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85714958fbc33163ab55968b30637305a98ed0e6371b352d5b4311106d64706"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallCommand.installDemoContent (cognitive 19): InstallCommand.installDemoContent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, ternaries 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Gpm/InstallCommand.php"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76a6a167fb5c7ac4e57aefd396426b27fbcbddd995d8e3fa4e0fc0e9030c658"}},{"ruleId":"D2","level":"warning","message":{"text":"UninstallCommand.serve (cognitive 19): UninstallCommand.serve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, ternaries 3, loops 2, boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Gpm/UninstallCommand.php"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"f072e827cbf4a72bef5d865aae2e83303ec93d1ade4fd0fd7125f95064a4d1a8"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexPageObject.filterElements (cognitive 19): FlexPageObject.filterElements has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, ternaries 8 (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":"system/src/Grav/Framework/Flex/Pages/FlexPageObject.php"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eaad9ed72121f6f653d98b163a92c88848062645d1f692eb4817f69683df6a9"}},{"ruleId":"D2","level":"warning","message":{"text":"Grav.getRedirectResponse (cognitive 18): Grav.getRedirectResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Grav.php"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"200b77c8fe80d017f438e61dd93749b883f030092c3291572e5bc5ef4be5f9bc"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalMedia.addMedium (cognitive 18): GlobalMedia.addMedium has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, loops 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Medium/GlobalMedia.php"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a4ae2363f5d6df38946163fb2e62b50fdaf335bd35e658975de7fe07aad627"}},{"ruleId":"D2","level":"warning","message":{"text":"InitializeProcessor.initializeConfig (cognitive 18): InitializeProcessor.initializeConfig has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 7, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Processors/InitializeProcessor.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a0190f0a93756a72d11781ec5696b33bc7281b0130cd4b99d265ae0f7f75c2"}},{"ruleId":"D2","level":"warning","message":{"text":"TwigTokenParserStyle.parseArguments (cognitive 18): TwigTokenParserStyle.parseArguments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 5, loops 2 (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":"system/src/Grav/Common/Twig/TokenParser/TwigTokenParserStyle.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de7110e04a0b700b1b529cc180b9a8cf7746bd595d2405bb6d6a08c3d09587d"}},{"ruleId":"D2","level":"warning","message":{"text":"YamlLinterCommand.serve (cognitive 18): YamlLinterCommand.serve has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Cli/YamlLinterCommand.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d28ab4b4d93da1d3e7bb15d236d284b1d1356d409edaf31cc2f2afac45a55ac"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexIndex.orderBy (cognitive 18): FlexIndex.orderBy has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 3, loops 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":"system/src/Grav/Framework/Flex/FlexIndex.php"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf977e82ac2fd13fb9a2856035a7616ca59a82e881ba16df1cf5782130c7a1e"}},{"ruleId":"D2","level":"warning","message":{"text":"DOMLettersIterator.next (cognitive 17): DOMLettersIterator.next has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 5, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/DOMLettersIterator.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"fafa00fdfd04f1f039c4d44ae482db334acd92e552f69de98d1d6de043c6ff9d"}},{"ruleId":"D2","level":"warning","message":{"text":"Setup.check (cognitive 17): Setup.check has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 2, error handling 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":"system/src/Grav/Common/Config/Setup.php"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb5f94c40e8c80ff9f7ad5d00565268bc66e432ae15e3b493689f9abfaad4c8"}},{"ruleId":"D2","level":"warning","message":{"text":"Debugger.addAssets (cognitive 17): Debugger.addAssets has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 6 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Debugger.php"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d774c7a0456f549b3e407ed0255a682ad674c96bd825467f614736d7e4d8d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Installer.mergeInstall (cognitive 17): Installer.mergeInstall has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 3, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/GPM/Installer.php"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb8d7fe8e8fced3d2dc2513f3bc31ee9d46983d57edb942260dadd35e77bc8b"}},{"ruleId":"D2","level":"warning","message":{"text":"VectorImageMedium.__construct (cognitive 17): VectorImageMedium.__construct has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 8, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Medium/VectorImageMedium.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b059edaa767bec68f4e9df0dd4c7180e970b7fcf00b5351845d77b2d84b7cc"}},{"ruleId":"D2","level":"warning","message":{"text":"SchedulerController.formatHealthStatus (cognitive 17): SchedulerController.formatHealthStatus has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9, if/else 7, match/switch 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":"system/src/Grav/Common/Scheduler/SchedulerController.php"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40372d7ca42a3d87821478fcfbb8137731a348055fb8cb4a7a16cacfa42f77f"}},{"ruleId":"D2","level":"warning","message":{"text":"Security.splitMethodNames (cognitive 17): Security.splitMethodNames has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, loops 4, ternaries 4, boolean chains 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":"system/src/Grav/Common/Security.php"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1c864370b310aaf37917db705d20a84e08641b0ed2709fa7824743b0c82b1a"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionServiceProvider.register (cognitive 17): SessionServiceProvider.register has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 5, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Service/SessionServiceProvider.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdc2ab1f505953610d38084d0c33c31c7e791ae3383f3f3a5035b76430240a7"}},{"ruleId":"D2","level":"warning","message":{"text":"GravExtension.dump (cognitive 17): GravExtension.dump has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 4, boolean chains 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":"system/src/Grav/Common/Twig/Extension/GravExtension.php"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46ae1b4fcf658fe6aca55e86418679a5fa37ad6e4de480e8276e578abbb0ed2"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginCommandLoader.__construct (cognitive 17): PluginCommandLoader.__construct has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, loops 6, error handling 1, ternaries 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":"system/src/Grav/Console/Application/CommandLoader/PluginCommandLoader.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c4f1a77bac8c3762161e1b4a30c263b62014f80d7627a42bab91cd01c3584f"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallCommand.symlink (cognitive 17): InstallCommand.symlink has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Cli/InstallCommand.php"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6696b0dc8aad7b18e9e630f21ced1a91f7b21fbd961224236aff2dea567e003"}},{"ruleId":"D2","level":"warning","message":{"text":"SelfupgradeCommand.upgradeGrav (cognitive 17): SelfupgradeCommand.upgradeGrav has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 4, error handling 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":"system/src/Grav/Console/Gpm/SelfupgradeCommand.php"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33daa682366cbededdfb502cb9190b6de2fba6a480f0cf93dd3380c029a8ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateCommand.userInputPackages (cognitive 17): UpdateCommand.userInputPackages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Gpm/UpdateCommand.php"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"872f5648a6b1cdc91dc657432a0685f59d1be78bf1c471b55c5e30066d393c0b"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexDirectory.loadIndex (cognitive 17): FlexDirectory.loadIndex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 5, ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/FlexDirectory.php"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"b849c143c5359dc85cb4c1218d77a409ab0c29fe17e1648d0ca98dca829e6215"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexObject.refresh (cognitive 17): FlexObject.refresh has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/FlexObject.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af987a4b1435b20805c2766461e12e1cbf529ee0dd6805ae4906d7aef555933"}},{"ruleId":"D2","level":"warning","message":{"text":"FolderStorage.deleteRows (cognitive 17): FolderStorage.deleteRows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/Storage/FolderStorage.php"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d247270c15a03c1013500276fb0cc661b7515b50776fc6bbaf599ecbe739697"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexMediaTrait.addUpdatedMedia (cognitive 17): FlexMediaTrait.addUpdatedMedia has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, ternaries 3, boolean chains 1, 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":"system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d50c1bbe27685be1dc332d75cf3f403759ba2adb3e5f9417a0b1f239c9df1b3"}},{"ruleId":"D2","level":"warning","message":{"text":"Validation.checkSafety (cognitive 16): Validation.checkSafety has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 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":"system/src/Grav/Common/Data/Validation.php"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee9d618fa3c7913ba73118af9d0e27e1aeeae5d04e4bec500ec147ee41cb726"}},{"ruleId":"D2","level":"warning","message":{"text":"PageObject.filterElements (cognitive 16): PageObject.filterElements has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, ternaries 5, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageObject.php"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"22dcacf939d4bbf4551470ec5a9ae3543bec01628ab7b269c0e8f8172c5c48c0"}},{"ruleId":"D2","level":"warning","message":{"text":"UserObject.authorize (cognitive 16): UserObject.authorize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"system/src/Grav/Common/Flex/Types/Users/UserObject.php"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"f50c2e2dd0e82f7f9c625edffb5093d573c9dd5ea39ccb2a4e3fbe11eb2cc59e"}},{"ruleId":"D2","level":"warning","message":{"text":"GPM.findPackages (cognitive 16): GPM.findPackages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"system/src/Grav/Common/GPM/GPM.php"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b4551c44f2eca2247484e17f0af79a79e6f472ad588671aed52a88ce24831c"}},{"ruleId":"D2","level":"warning","message":{"text":"Grav.shutdown (cognitive 16): Grav.shutdown has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, ternaries 2, boolean chains 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":"system/src/Grav/Common/Grav.php"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e564c5adccb4b365cf76b1114be697916b13fa0ff902593d477909112dc8f5"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaObjectTrait.getThumbnail (cognitive 16): MediaObjectTrait.getThumbnail has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, ternaries 4, loops 2 (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":"system/src/Grav/Common/Media/Traits/MediaObjectTrait.php"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"55853655658c1373a4292a9936bc94158fb413c8289ed2fc1ebcd317d5bb682f"}},{"ruleId":"D2","level":"warning","message":{"text":"Pages.findSiteBasedRoute (cognitive 16): Pages.findSiteBasedRoute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, error handling 3, loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7c7e2b2e54c3cd3f7b5b8de737fc48f6fb63fc51c7cc4d64fbb36e9c93a912"}},{"ruleId":"D2","level":"warning","message":{"text":"Plugins.init (cognitive 16): Plugins.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, error handling 4, boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Plugins.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f1a9abe682d14aebb4ba536d0055f518ce974c9df93d3b14d44b59539842d1"}},{"ruleId":"D2","level":"warning","message":{"text":"Scheduler.loadSavedJobs (cognitive 16): Scheduler.loadSavedJobs has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, boolean chains 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":"system/src/Grav/Common/Scheduler/Scheduler.php"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c845db67cd48ae38c3554b3bfee3c4e0894044c2c09e63880125e2954b3b76"}},{"ruleId":"D2","level":"warning","message":{"text":"Security.normalizeMethodsMap (cognitive 16): Security.normalizeMethodsMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Security.php"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"527aaeaa6af6a346ca764e80d26dff2d7df5279cb718313fe2748a849194929a"}},{"ruleId":"D2","level":"warning","message":{"text":"Themes.configure (cognitive 16): Themes.configure has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 4, ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Themes.php"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"daea1a5f245977433d58dbae314ebcc40e3c6eeea99827bd96dfa3f14b45236f"}},{"ruleId":"D2","level":"warning","message":{"text":"GravExtension.nicetimeFunc (cognitive 16): GravExtension.nicetimeFunc has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 1, loops 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Twig/Extension/GravExtension.php"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6ab78f2271b44a7773e0616f22b88292f49efa4849968239eb6585e4167fff"}},{"ruleId":"D2","level":"warning","message":{"text":"GravExtension.authorize (cognitive 16): GravExtension.authorize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Twig/Extension/GravExtension.php"},"region":{"startLine":1383}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ef989830d1667e7ede40fe43f2236f0ce9b5cf6fb15f333785269363e0f696"}},{"ruleId":"D2","level":"warning","message":{"text":"TwigNodeScript.compile (cognitive 16): TwigNodeScript.compile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 8 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Twig/Node/TwigNodeScript.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"3432950284de71a7defcc728d9d4a3f3b1a5a6d7a706bec91ae45623cf037778"}},{"ruleId":"D2","level":"warning","message":{"text":"Uri.isExternal (cognitive 16): Uri.isExternal has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 16. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Uri.php"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ebbead8dba63dec31845af2cd72eaeb72fc51bf369e5e592816fe649a222f5"}},{"ruleId":"D2","level":"warning","message":{"text":"Group.save (cognitive 16): Group.save has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 5, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/User/Group.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2638e0fd99bb29d91ac9160cf3ef818d9539c2ea2135b72cc0b480c9b8ada38c"}},{"ruleId":"D2","level":"warning","message":{"text":"InstallCommand.addSymlinks (cognitive 16): InstallCommand.addSymlinks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 5, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Console/Cli/InstallCommand.php"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f29f0dca38d71b1b2de1cdeb42caf84e1bc726cc150d9d096ce3cc82dfa776"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonFormatter.getEncodeOptions (cognitive 16): JsonFormatter.getEncodeOptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 4 (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":"system/src/Grav/Framework/File/Formatter/JsonFormatter.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68f924d0087c145b2307e08db31fa0930922ebc9f011d37f314e66f640c73bb"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonFormatter.getDecodeOptions (cognitive 16): JsonFormatter.getDecodeOptions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 4 (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":"system/src/Grav/Framework/File/Formatter/JsonFormatter.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27749b9d5739fdaa62a89770de1bc188e7e82f853da210cbc7d268685ea80ba"}},{"ruleId":"D2","level":"warning","message":{"text":"Filesystem.normalizePathPart (cognitive 16): Filesystem.normalizePathPart has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Filesystem/Filesystem.php"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f5f17786adac8bb4955e080f738f460ff239ddf39afb63d69200da55b59a8f"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexObject.searchValue (cognitive 16): FlexObject.searchValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/FlexObject.php"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"147a87aecd04a350fa336493db752ee023ebba61f77ce5c82226e1e248faddc8"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexMediaTrait.buildMediaList (cognitive 16): FlexMediaTrait.buildMediaList has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8, if/else 7, 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":"system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"7356c5639c65dd226eca4e70f6117a26b4cf2b29a23d2251179cfbf096e6b576"}},{"ruleId":"D2","level":"warning","message":{"text":"Session.regenerateId (cognitive 16): Session.regenerateId has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, ternaries 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Session/Session.php"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"af18500a387b2897e044f9c85c5feaecd91113f956157a1d8f36936aee68094b"}},{"ruleId":"D2","level":"warning","message":{"text":"Install.detectPsrLogConflicts (cognitive 16): Install.detectPsrLogConflicts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, loops 1, ternaries 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":"system/src/Grav/Installer/Install.php"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28ce148549e55b1de121e5bb3524afff27d8fff9da571577d0a47d6327a473a"}},{"ruleId":"D2","level":"warning","message":{"text":"Install.detectMonologConflicts (cognitive 16): Install.detectMonologConflicts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, loops 3, ternaries 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":"system/src/Grav/Installer/Install.php"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"56db2cfefe4649471e7857150227cd2f0aeb321e22d1b9a4b29266d804988fe5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Page: TooManyMethods \u2014 132 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e29d0bf0cbe9eeeb3a780de4e1c44148b25b98389844ecad32e2077e53a1bb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GravExtension: TooManyMethods \u2014 90 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":"system/src/Grav/Common/Twig/Extension/GravExtension.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"caaca22406d9b8657c4e574b87bb460b08eafd1497456ee53fa0f485e1feb858"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Utils: TooManyMethods \u2014 78 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":"system/src/Grav/Common/Utils.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"044ece2ef1d2116e8a781b4f0e5310242e2904f1be4fff9912985bd7eee35e12"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Page/Pages.php: FileTooLong \u2014 1232 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Pages (58-2634). 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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfadb321afabf98c0b7010efb8093bdfd6097f56af595c6b9d04dce6380f9e6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Page/Page.php: FileTooLong \u2014 1195 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Page (51-3153). 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb21d403e575f214b0bc4d84c547a2356f5c455320275a7808cec4d3b269cd7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Pages: TooManyMethods \u2014 69 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb720c3da031f294517916d5ce27a4e8854b6a60ba320a4eb6688587a506611"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlexObject: TooManyMethods \u2014 66 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":"system/src/Grav/Framework/Flex/FlexObject.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfdd8ff4860f8d42f5227c06acd5c68537620e21a835773e67937f50784e85a8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Validation: TooManyMethods \u2014 65 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":"system/src/Grav/Common/Data/Validation.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5639c62e0d4355dd9936488d8cfe3790251619d0f38083612b7874b136c4a67"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Uri: TooManyMethods \u2014 61 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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c77443e31d0dd342308da56171ffb8b852780431ac375797f9c5e2ac4a5b90"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Common/Utils.php: FileTooLong \u2014 981 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Utils (46-2272). 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":"system/src/Grav/Common/Utils.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"185e69a2fae6d85cf34ae3f680b81d074472f51a2094972f64735f66ff4c8aaf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Job: TooManyMethods \u2014 58 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":"system/src/Grav/Common/Scheduler/Job.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5aefe43550368ad803f8b9c8f5016d9cd92d3c767a6f68491cd03126f74362"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GPM: TooManyMethods \u2014 57 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":"system/src/Grav/Common/GPM/GPM.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09eb10e76dfe1db27f963c34e7a585f246cc47124d8314350f784e755b31265"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FormTrait: TooManyMethods \u2014 57 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":"system/src/Grav/Framework/Form/Traits/FormTrait.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58b62a78931d035f75b7a0d6aba090a91e1f7ae4c7059e401e297aa1475f0ec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PageLegacyTrait: TooManyMethods \u2014 56 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":"system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2224443647c202148f4b53d99474ad3ef86e65ed6852d44e3c6d60c87bc7f3f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlexIndex: TooManyMethods \u2014 54 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":"system/src/Grav/Framework/Flex/FlexIndex.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9d79dcb1c44195fa0396d77257f8300db91e461d151b8c5a886ab7a9f67b7b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PageIndex: TooManyMethods \u2014 53 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":"system/src/Grav/Common/Flex/Types/Pages/PageIndex.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"18346361d4562d3e01fe46943308a078a7b5c0a800db19e5872782bdaa84b43b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlexDirectory: TooManyMethods \u2014 51 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":"system/src/Grav/Framework/Flex/FlexDirectory.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a671ebe1721d1706729947c76088d2de4539a17aafd8e6c39906096d348599f1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractIndexCollection: TooManyMethods \u2014 50 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":"system/src/Grav/Framework/Collection/AbstractIndexCollection.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af90aca0e81cdbdfca67de035bbbf6d1b3f57e2083526a4f099f1148628d1e9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UserObject: TooManyMethods \u2014 48 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":"system/src/Grav/Common/Flex/Types/Users/UserObject.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"869ae1bfe3775c957eee3c17bce04c1f462b6805dbcedcb87cab6cc51d40eb41"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Extension/GravExtension.php: FileTooLong \u2014 736 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: GravExtension (75-1987). 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":"system/src/Grav/Common/Twig/Extension/GravExtension.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"946a2ffd75320f5ca28659276e77bf993c9e4d63107693fdf3c5d78bc2723995"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Collection: TooManyMethods \u2014 40 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":"system/src/Grav/Common/Page/Collection.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"166c2fd914c4318f42d9d8b0752dfb842d7873ecf59147ca15c3a6fb3db025d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PageCollection: TooManyMethods \u2014 39 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageCollection.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"18127ba8f8535cf49fc18a7bf6c3d3a984a84442dab8bc38763cf64630443922"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Install: TooManyMethods \u2014 39 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Installer/Install.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"60053b04b170aca0fdfc57c232900c40f75476cced60f113bd2eb8d8213f497b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Common/Security.php: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Security.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d966d44188a22cedd96ec33d8011b64c943d5c95644afe7e8ba97219a5cae9db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Common/Uri.php: FileTooLong \u2014 647 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Uri (33-1559). 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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f09345f6ecbe1790ccb51ebcb89b8e814ce6a31b6a60e8f1bd92efcf518478"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Scheduler: TooManyMethods \u2014 38 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":"system/src/Grav/Common/Scheduler/Scheduler.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf1e2a34fdfe8387ee6a2792763cfe3a800a1c6441eabc07317044829bcaccf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlexCollection: TooManyMethods \u2014 38 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":"system/src/Grav/Framework/Flex/FlexCollection.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4002c51f3b31c58daf9779f9e4aeb9ab666a20e006b5fd952bced21ad2a1ba6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PageContentTrait: TooManyMethods \u2014 38 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":"system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7985be63df9fd86ef4e352ac55b364a05f3d3eac18aeee67455cfad245244b4d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Installer/Install.php: FileTooLong \u2014 620 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: Install (50-1155). 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":"system/src/Grav/Installer/Install.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ef6e820428e63286f08559995ba9ba6b00407f364da68526e3111db1c7d422"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Common/Debugger.php: FileTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: Debugger (63-1252). 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":"system/src/Grav/Common/Debugger.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7d81b951e734c03af61d3b9a0dd9cc4dfb7563a3f2276e88e51f2bbf83a3f9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MediaObjectTrait: TooManyMethods \u2014 36 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":"system/src/Grav/Common/Media/Traits/MediaObjectTrait.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"def77eff8fec83d92b1326c556e0acb45c0635edb3ee40e9653710ee7d031c51"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Debugger: 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":"system/src/Grav/Common/Debugger.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"87368114a811188a25f4208a3786160370ce77b32f97e6cc945a85a6c04a0472"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ParsedownGravTrait: 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":"system/src/Grav/Common/Markdown/ParsedownGravTrait.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bea026d50bfadf7ea3ef96d982b6a776413a76fd03bc904fd357f1b949d4d5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FormFlash: 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":"system/src/Grav/Framework/Form/FormFlash.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ca8a0f13c5b5a0b7372d79131749864e365f0fa5f87d33b8a4d43177f59591"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Security: 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":"system/src/Grav/Common/Security.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"04808c45af72db7f10a73f9e08b5de67b860022cf29242c4b3022a0dd537c2bb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Route: TooManyMethods \u2014 33 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":"system/src/Grav/Framework/Route/Route.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"79aa0439c82f4f7b42c03779e54c324de777c3829237de0ccff6e8453618e369"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GPM/GPM.php: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: GPM (34-1396). 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":"system/src/Grav/Common/GPM/GPM.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c8313402817d38a876dd67d93642066dc01a363d14ece9bb55bf4fdbfc0880"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AbstractMedia: TooManyMethods \u2014 32 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":"system/src/Grav/Common/Page/Medium/AbstractMedia.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0c9c5dacfc1b811ac43e91152d3910766ce69e889d150250fd52755ddd2c5b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FlexForm: TooManyMethods \u2014 32 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":"system/src/Grav/Framework/Flex/FlexForm.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"947f2c605a1c4534530ba7361bbf94938dbda34040d262e6ef91b62d2a467e18"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FolderStorage: TooManyMethods \u2014 32 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":"system/src/Grav/Framework/Flex/Storage/FolderStorage.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edee5df04bf229e0350a7c332bbe4e3d038f1eb6cb3fa1b51fa5c5b79635f30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Flex/FlexDirectory.php: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: FlexDirectory (51-1242). 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":"system/src/Grav/Framework/Flex/FlexDirectory.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d83fc8d92a0d74ba58faf06776cd7dee31da6dbe4278dff3c81bc30f668f6bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Flex/FlexObject.php: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: FlexObject (54-1278). 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":"system/src/Grav/Framework/Flex/FlexObject.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d5e6c8c3889d3d89520013185ae12008aa4e646a45623d7ed3a9035acbacff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexCollection.php:415-440 | system/src/Grav/Framework/Flex/FlexObject.php:595-620 \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 \u0060system/src/Grav/Framework/Flex/FlexCollection.php:415\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":"system/src/Grav/Framework/Flex/FlexCollection.php"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"8009455f34c58d0ebc1e43fc48d8daace5adf08ca609423fef356711985a21f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): system/src/Grav/Common/Page/Medium/MediumFactory.php:59-83 | system/src/Grav/Common/Page/Medium/MediumFactory.php:119-143 \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":"system/src/Grav/Common/Page/Medium/MediumFactory.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae316b0a23b33587e1cbda0a221f0de0e09458dbd3649fc8f85d697b643cac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): system/src/Grav/Common/Scheduler/JobQueue.php:137-158 | system/src/Grav/Common/Scheduler/JobQueue.php:204-225 \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 \u0060system/src/Grav/Common/Scheduler/JobQueue.php:137\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":"system/src/Grav/Common/Scheduler/JobQueue.php"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb08a87a2644c35f4d2b5965f7f4d9b4f718430cc539e57db34201217a3e26a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): system/src/Grav/Framework/Controller/Traits/ControllerResponseTrait.php:214-236 | system/src/Grav/Framework/RequestHandler/Middlewares/Exceptions.php:49-70 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Controller/Traits/ControllerResponseTrait.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bc12543bf1cf63f589ff135228f3ba40d631bcaadf10e9b9cd5db1f2ceed5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): system/src/Grav/Common/Uri.php:886-904 | system/src/Grav/Common/Uri.php:1113-1131 \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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2790bad7c3c6cb518431991148600c0582e6c8a5de79b6b569ffad43e14f1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): system/src/Grav/Common/Page/Page.php:2114-2131 | system/src/Grav/Framework/Flex/Pages/Traits/PageRoutableTrait.php:129-146 \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 \u0060system/src/Grav/Common/Page/Page.php:2114\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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":2114}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b3dd5fe036226b659b7eeb0aea73eb313d9a522fb8894111cdc53c3a3b35dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): system/src/Grav/Console/Gpm/InstallCommand.php:690-707 | system/src/Grav/Console/Gpm/UninstallCommand.php:271-288 \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 \u0060system/src/Grav/Console/Gpm/InstallCommand.php:690\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":"system/src/Grav/Console/Gpm/InstallCommand.php"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc3b0af412789675b8ca3c452f62cf3b1345d4a6f478cac61607ebbdf73c509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexDirectoryForm.php:269-286 | system/src/Grav/Framework/Flex/FlexForm.php:320-337 \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":"system/src/Grav/Framework/Flex/FlexDirectoryForm.php"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"d955072c53a74fae58454b93fc1b64718353d7862245a2a09d2f00223cfbb57b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): system/src/Grav/Common/Security.php:111-130 | system/src/Grav/Common/Security.php:1056-1072 \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 \u0060system/src/Grav/Common/Security.php:111\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":"system/src/Grav/Common/Security.php"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8290f831176062427719c80c85bb639f2721b695d2c28225f93a9da92ffca2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexDirectoryForm.php:157-173 | system/src/Grav/Framework/Flex/FlexForm.php:200-216 \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 \u0060system/src/Grav/Framework/Flex/FlexDirectoryForm.php:157\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":"system/src/Grav/Framework/Flex/FlexDirectoryForm.php"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"40aa645ff2cd100d1fee3181832743df9d3790100dd86a1d520e5fc4dd9c4d93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): system/src/Grav/Common/Data/Data.php:208-223 | system/src/Grav/Common/Flex/Types/Users/UserObject.php:490-505 \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 \u0060system/src/Grav/Common/Data/Data.php:208\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. 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":"system/src/Grav/Common/Data/Data.php"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"974be409fc3fd76fcbfeb57f46021d472dad2b07d5889ee14254bf1dfbcd01a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Users/UserObject.php:887-902 | system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php:386-401 \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 \u0060system/src/Grav/Common/Flex/Types/Users/UserObject.php:887\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":"system/src/Grav/Common/Flex/Types/Users/UserObject.php"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54743fe4b562e919d28803c4c0ecc7a974d3ee4b5d58b61b961a7d42e46e40a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): system/src/Grav/Common/GPM/GPM.php:301-315 | system/src/Grav/Common/GPM/GPM.php:446-460 \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 \u0060system/src/Grav/Common/GPM/GPM.php:301\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":"system/src/Grav/Common/GPM/GPM.php"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"2324f649a603fbfaecb4462b3325c1ce85c6151ccdbf055306cafcd4a3b05a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): system/src/Grav/Common/Twig/Node/TwigNodeLink.php:98-112 | system/src/Grav/Common/Twig/Node/TwigNodeStyle.php:98-112 \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 \u0060system/src/Grav/Common/Twig/Node/TwigNodeLink.php:98\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":"system/src/Grav/Common/Twig/Node/TwigNodeLink.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed95b8b38d0530240c7705e985400ad7017cb8f203ec58b9bd9224ffb3590e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): system/src/Grav/Common/Twig/Compatibility/Twig3CompatibilityTransformer.php:144-157 | system/src/Grav/Common/Twig/Compatibility/Twig3CompatibilityTransformer.php:199-212 | system/src/Grav/Common/Twig/Compatibility/Twig3CompatibilityTransformer.php:219-232 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Twig/Compatibility/Twig3CompatibilityTransformer.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ec61d84b36ba5f1f53b83e1f66e305b38ee687038f96a0481bf7657be72377"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/DOMLettersIterator.php:112-125 | system/src/DOMWordsIterator.php:111-124 \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 \u0060system/src/DOMLettersIterator.php:112\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":"system/src/DOMLettersIterator.php"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"af719da46750cfac729fa2054f933792b535ec54d45438b983984ecdaff1ddf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Common/Filesystem/ZipArchiver.php:192-206 | system/src/Grav/Common/GPM/Installer.php:355-368 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Filesystem/ZipArchiver.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"3915d0c2b4e2c02732d79a6142e1f593c598e4e32ec537d09805064f8ad59b6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Pages/PageCollection.php:352-365 | system/src/Grav/Common/Page/Pages.php:2463-2476 \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 \u0060system/src/Grav/Common/Flex/Types/Pages/PageCollection.php:352\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. 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":"system/src/Grav/Common/Flex/Types/Pages/PageCollection.php"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c68467d9974a5c7ae5a46d1f02400ab3da1f299e47d10bb82cea5733e77a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Pages/PageCollection.php:378-391 | system/src/Grav/Common/Page/Pages.php:2493-2506 \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 \u0060system/src/Grav/Common/Flex/Types/Pages/PageCollection.php:378\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":"system/src/Grav/Common/Flex/Types/Pages/PageCollection.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"604f349394fe77fce3e117c556c0ab4581c5d2ee46371cfc5da13533b5ccbc37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php:466-479 | system/src/Grav/Framework/Flex/Storage/FolderStorage.php:446-459 \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 \u0060system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php:466\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":"system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"630ec65a0c28c90be86f7085ecb474e02ae59ae93da1da2de44ec9501653957f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Users/UserObject.php:931-944 | system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php:417-430 \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 \u0060system/src/Grav/Common/Flex/Types/Users/UserObject.php:931\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":"system/src/Grav/Common/Flex/Types/Users/UserObject.php"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"48be85360f2f66065562496995ff6702afc72aa8f422c1abb7f75479c1fde3ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Common/Form/FormFlash.php:55-68 | system/src/Grav/Common/Form/FormFlash.php:87-100 \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 \u0060system/src/Grav/Common/Form/FormFlash.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Form/FormFlash.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd65aeeca9d49732b1144b027052b65ad82b01255ee8528a94efe9206acdf18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Common/Inflector.php:68-81 | system/src/Grav/Common/Inflector.php:113-126 \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 \u0060system/src/Grav/Common/Inflector.php:68\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":"system/src/Grav/Common/Inflector.php"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5ad4b98af2b34f615380a85b6ab25a768a7c4ea4e34bde59a7ec9f6fb1b22c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Common/Page/Pages.php:1712-1725 | system/src/Grav/Common/Service/AccountsServiceProvider.php:109-122 \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 \u0060system/src/Grav/Common/Page/Pages.php:1712\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. 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":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1712}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a07f152cafb9c3b079d6ad3d3913e629249b3fec59933fdba5eaee06e1c0118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Common/Service/ConfigServiceProvider.php:95-108 | system/src/Grav/Common/Service/ConfigServiceProvider.php:137-150 \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 \u0060system/src/Grav/Common/Service/ConfigServiceProvider.php:95\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":"system/src/Grav/Common/Service/ConfigServiceProvider.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5f2c58d6e45b71310444af79208f4b321f40f5ce0bd4fa3f668eb84e8c36bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexCollection.php:707-720 | system/src/Grav/Framework/Flex/FlexObject.php:1168-1181 \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":"system/src/Grav/Framework/Flex/FlexCollection.php"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6ba328eb0601a7ce641e0d39d0503e4ddddac3839ba28307fe1ab622821051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexDirectoryForm.php:312-325 | system/src/Grav/Framework/Flex/FlexForm.php:374-387 \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 \u0060system/src/Grav/Framework/Flex/FlexDirectoryForm.php:312\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":"system/src/Grav/Framework/Flex/FlexDirectoryForm.php"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd72b39b71118de1363a1623f18cb022a351c6bb630bb14a614e1381cac25f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexObject.php:787-800 | system/src/Grav/Framework/Flex/FlexObject.php:819-832 \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":"system/src/Grav/Framework/Flex/FlexObject.php"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32619cd7807814db605b82746e54b12947c650ff5ea29e1b9aee80aedecd27f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexObject.php:876-889 | system/src/Grav/Framework/Form/Traits/FormTrait.php:226-239 \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 \u0060system/src/Grav/Framework/Flex/FlexObject.php:876\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":"system/src/Grav/Framework/Flex/FlexObject.php"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b20e434bbeb9f67a87bb41cbd2bf7136d75c14f32892ddf163887d589f76291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): system/src/Grav/Installer/Versions.php:301-314 | system/src/Grav/Installer/YamlUpdater.php:452-465 \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 \u0060system/src/Grav/Installer/Versions.php:301\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":"system/src/Grav/Installer/Versions.php"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b78a12b9ea3ae0d2a4ee475dc2995ff323ce52949624c4f7401b6753f69917c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): system/src/Grav/Common/Twig/Node/TwigNodeLink.php:77-89 | system/src/Grav/Common/Twig/Node/TwigNodeScript.php:62-74 | system/src/Grav/Common/Twig/Node/TwigNodeScript.php:76-88 | system/src/Grav/Common/Twig/Node/TwigNodeStyle.php:61-73 | system/src/Grav/Common/Twig/Node/TwigNodeStyle.php:75-87 \u2014 there are 5 copies across 3 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/src/Grav/Common/Twig/Node/TwigNodeLink.php:77\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":"system/src/Grav/Common/Twig/Node/TwigNodeLink.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce869bba28a8a3f550359a7e45f7b49a4204c1bf56172aa655aafeac9dfe3842"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/src/Grav/Common/Assets/Pipeline.php:378-390 | system/src/Grav/Common/Assets/Traits/AssetUtilsTrait.php:72-85 \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 \u0060system/src/Grav/Common/Assets/Pipeline.php:378\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":"system/src/Grav/Common/Assets/Pipeline.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b7c18c6973186f70759f53b20e5723e415fc2ff8ee349ae3ce64ec0b653e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Users/UserObject.php:980-992 | system/src/Grav/Framework/Flex/Traits/FlexMediaTrait.php:491-503 \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 \u0060system/src/Grav/Common/Flex/Types/Users/UserObject.php:980\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":"system/src/Grav/Common/Flex/Types/Users/UserObject.php"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff07ae0c467987595ee0b1f2815dfd3924a78df971b9e2b30d2d8cdc0c27cc3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/src/Grav/Common/GPM/Local/Package.php:86-98 | system/src/Grav/Installer/Install.php:1108-1120 \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 \u0060system/src/Grav/Common/GPM/Local/Package.php:86\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":"system/src/Grav/Common/GPM/Local/Package.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"676d5993e0e9ad7f673005d98268984002bb64debfbad3b6da92d6898e55e550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/src/Grav/Common/Twig/Node/TwigNodeScript.php:89-101 | system/src/Grav/Common/Twig/Node/TwigNodeStyle.php:88-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 \u0060system/src/Grav/Common/Twig/Node/TwigNodeScript.php:89\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":"system/src/Grav/Common/Twig/Node/TwigNodeScript.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3cccb98a96bcaa4e4992b0ccd97aac410721a415e637a6bae43d50e13f9fae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/src/Grav/Framework/Cache/CacheTrait.php:140-152 | system/src/Grav/Framework/Cache/CacheTrait.php:216-228 \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 \u0060system/src/Grav/Framework/Cache/CacheTrait.php:140\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":"system/src/Grav/Framework/Cache/CacheTrait.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"877fb60ebf748cbd19046d84dcc36ba279063cec95d83c4160691c1eeb5aa478"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexCollection.php:646-658 | system/src/Grav/Framework/Flex/FlexObject.php:1224-1236 \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 \u0060system/src/Grav/Framework/Flex/FlexCollection.php:646\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":"system/src/Grav/Framework/Flex/FlexCollection.php"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7fcc18c195ef1d57a629a65784f16b6d5397c8be5a07a9b6644ef36f3f15ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/src/Grav/Common/Data/Data.php:109-120 | system/src/Grav/Common/Flex/Types/Users/UserObject.php:421-432 \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 \u0060system/src/Grav/Common/Data/Data.php:109\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":"system/src/Grav/Common/Data/Data.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9f1b4be069d80d19124d0d2c7b99d92cd4fc328516b056b74d533d741d0a93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/src/Grav/Common/Filesystem/Folder.php:39-50 | system/src/Grav/Common/Filesystem/Folder.php:77-88 \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 \u0060system/src/Grav/Common/Filesystem/Folder.php:39\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":"system/src/Grav/Common/Filesystem/Folder.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbf3aaada3c89022497aae3cc4a34a3aee2be5585b34705de39fd8172465111"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/src/Grav/Common/Filesystem/Folder.php:466-477 | system/src/Grav/Framework/Cache/Adapter/FileCache.php:260-271 \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 \u0060system/src/Grav/Common/Filesystem/Folder.php:466\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":"system/src/Grav/Common/Filesystem/Folder.php"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"d908578cbf1a2ae2ea3b9ba74ab1262700b973d7a40b8d7428f5793c2c1abcd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/src/Grav/Common/GPM/Remote/GravCore.php:87-98 | system/src/Grav/Common/GPM/Remote/Package.php:53-64 \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":"system/src/Grav/Common/GPM/Remote/GravCore.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd9ba841eb8e1848545851a1d84d1c5239f88b266112ef8d9ed9669f31ecdd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/src/Grav/Common/Page/Medium/AbstractMedia.php:359-370 | system/src/Grav/Common/Page/Medium/AbstractMedia.php:467-478 \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 \u0060system/src/Grav/Common/Page/Medium/AbstractMedia.php:359\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":"system/src/Grav/Common/Page/Medium/AbstractMedia.php"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf5714e4c132aa67e24edb6f91b307f9233cb5c643e9340d8d2df1fe653d385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/src/Grav/Common/Plugin.php:395-406 | system/src/Grav/Common/Theme.php:52-63 \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":"system/src/Grav/Common/Plugin.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"c396c576ebc6fbab025c9eaa8a941bd748556962efd46abd41b8eb48cc6a6a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/src/Grav/Common/Twig/TokenParser/TwigTokenParserScript.php:72-83 | system/src/Grav/Common/Twig/TokenParser/TwigTokenParserStyle.php:65-76 \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 \u0060system/src/Grav/Common/Twig/TokenParser/TwigTokenParserScript.php:72\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. 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":"system/src/Grav/Common/Twig/TokenParser/TwigTokenParserScript.php"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbda26e584d209e4f80f30f61b3626feee762c8a3bf21d8fb5ea4e841aed1d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexCollection.php:371-382 | system/src/Grav/Framework/Flex/FlexObject.php:545-556 \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":"system/src/Grav/Framework/Flex/FlexCollection.php"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c4d57231b7c2ddfd120c74a3b42c4fc3d107a1d6577b327fd1c385d2818c76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): system/src/Grav/Common/Twig/TokenParser/TwigTokenParserLink.php:81-91 | system/src/Grav/Common/Twig/TokenParser/TwigTokenParserScript.php:95-105 | system/src/Grav/Common/Twig/TokenParser/TwigTokenParserStyle.php:82-92 \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 \u0060system/src/Grav/Common/Twig/TokenParser/TwigTokenParserLink.php:81\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":"system/src/Grav/Common/Twig/TokenParser/TwigTokenParserLink.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"62afa025f1882d5c9c5d0b4f51cb329fbb206113becb37735272a17a3272980d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Common/Filesystem/ZipArchiver.php:289-299 | system/src/Grav/Common/Filesystem/ZipArchiver.php:350-360 \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 \u0060system/src/Grav/Common/Filesystem/ZipArchiver.php:289\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. 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":"system/src/Grav/Common/Filesystem/ZipArchiver.php"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"744bbb03a3bd55d60f96deb2cb586b4f20e73643919e04164f4247a9c1e3c5a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Common/Flex/Traits/FlexCollectionTrait.php:39-49 | system/src/Grav/Common/Flex/Traits/FlexObjectTrait.php:50-60 \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 \u0060system/src/Grav/Common/Flex/Traits/FlexCollectionTrait.php:39\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":"system/src/Grav/Common/Flex/Traits/FlexCollectionTrait.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb28474571cbd0615d15cd3fb86d99f612148076f067f54b5eb93564eb80057"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Common/GPM/GPM.php:120-130 | system/src/Grav/Common/GPM/GPM.php:280-290 \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":"system/src/Grav/Common/GPM/GPM.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"86328fafc913c1b17f948b523015dde7db03c28a3cb9120337137cb48847dbf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Common/Grav.php:312-322 | system/src/Grav/Common/Grav.php:479-489 \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 \u0060system/src/Grav/Common/Grav.php:312\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":"system/src/Grav/Common/Grav.php"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3a65d3536a983d3705e1d5ef6264f2c4a48097870088e4166a4a7268d78b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Common/Page/Page.php:749-759 | system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php:145-155 \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 \u0060system/src/Grav/Common/Page/Page.php:749\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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"7835caa2de85b2a19458753796586cb152fcfecde1db582f29f77aa91f5efb44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Common/Scheduler/Scheduler.php:811-823 | system/src/Grav/Common/Scheduler/Scheduler.php:919-929 \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 \u0060system/src/Grav/Common/Scheduler/Scheduler.php:811\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":"system/src/Grav/Common/Scheduler/Scheduler.php"},"region":{"startLine":811}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc41d2046a8c39a2365f0d1f51ebe771f30dd7ef2b4ba4b4f42e98b9b4a65588"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Console/Gpm/SelfupgradeCommand.php:110-120 | system/src/Grav/Console/Gpm/UpdateCommand.php:106-116 \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":"system/src/Grav/Console/Gpm/SelfupgradeCommand.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9db2e6a4dc927433bf37c360484f0dac212303fc56f1457178f062455a76f26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Framework/ContentBlock/HtmlBlock.php:161-171 | system/src/Grav/Framework/ContentBlock/HtmlBlock.php:205-215 \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. 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":"system/src/Grav/Framework/ContentBlock/HtmlBlock.php"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"6770f7e99422d9171732ae1268d2ac18c54a278258ce84d70f9c369013a93800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Framework/ContentBlock/HtmlBlock.php:239-249 | system/src/Grav/Framework/ContentBlock/HtmlBlock.php:281-291 \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. 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":"system/src/Grav/Framework/ContentBlock/HtmlBlock.php"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dc75a17634ae3e77f981d6bb74cfafdda3646dc79b2714b931ce4eb38a0928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexCollection.php:621-631 | system/src/Grav/Framework/Flex/FlexObject.php:1056-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 \u0060system/src/Grav/Framework/Flex/FlexCollection.php:621\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":"system/src/Grav/Framework/Flex/FlexCollection.php"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70eec62dcd3eefb55cd75d6b6fb0873711b99442ab4935092736fe0a37c4309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Framework/Flex/Storage/FolderStorage.php:427-437 | system/src/Grav/Framework/Flex/Storage/SimpleStorage.php:364-374 \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":"system/src/Grav/Framework/Flex/Storage/FolderStorage.php"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"077db1cfdc706892d225049a3191043fc53a1b2f83fb19596854e45944d3e408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): system/src/Grav/Installer/Versions.php:278-288 | system/src/Grav/Installer/YamlUpdater.php:429-439 \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":"system/src/Grav/Installer/Versions.php"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cf4a4b99b588274c5503a477e975da530dfb2f5d06468b70efeaa3c407f44f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): system/src/Grav/Common/Flex/Traits/FlexCommonTrait.php:39-48 | system/src/Grav/Framework/Flex/FlexCollection.php:649-658 | system/src/Grav/Framework/Flex/FlexObject.php:1227-1236 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/src/Grav/Common/Flex/Traits/FlexCommonTrait.php:39\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":"system/src/Grav/Common/Flex/Traits/FlexCommonTrait.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa373881fb90f1f96fd18606d95fcc771824034409116c1f34cdcedf928f08c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): system/src/Grav/Common/Flex/Types/Pages/Traits/PageRoutableTrait.php:100-109 | system/src/Grav/Common/Page/Page.php:2771-2780 | system/src/Grav/Framework/Flex/Pages/Traits/PageRoutableTrait.php:500-509 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060system/src/Grav/Common/Flex/Types/Pages/Traits/PageRoutableTrait.php:100\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":"system/src/Grav/Common/Flex/Types/Pages/Traits/PageRoutableTrait.php"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"36644751ece6016c2623d0d93f81f440edd708b6affb93578e08416b6eec8a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): system/src/Grav/Common/Service/ConfigServiceProvider.php:354-363 | system/src/Grav/Common/Service/ConfigServiceProvider.php:384-393 | system/src/Grav/Common/Service/ConfigServiceProvider.php:400-409 \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 \u0060system/src/Grav/Common/Service/ConfigServiceProvider.php:354\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":"system/src/Grav/Common/Service/ConfigServiceProvider.php"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6cc5957461e2cc397436b26842bf6bb4d70b42751dd9044b627e6a58867b802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): system/src/Grav/Framework/Flex/FlexCollection.php:131-140 | system/src/Grav/Framework/Flex/FlexIndex.php:143-152 | system/src/Grav/Framework/Flex/FlexObject.php:164-173 \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":"system/src/Grav/Framework/Flex/FlexCollection.php"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b389335007f9c73ffd829a9082283a8f7eca1a10149b62c1de6c28e31d1958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Pages/PageIndex.php:476-485 | system/src/Grav/Framework/Flex/Pages/Traits/PageTranslateTrait.php:251-260 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageIndex.php"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa3ddc057244cb01cc566d303a51e8d809d7a894e7c1f102ce11115d684c595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): system/src/Grav/Common/Media/Traits/MediaObjectTrait.php:287-296 | system/src/Grav/Common/Media/Traits/MediaObjectTrait.php:307-316 \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 \u0060system/src/Grav/Common/Media/Traits/MediaObjectTrait.php:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Media/Traits/MediaObjectTrait.php"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"6801c390f8246c4a42f4bcf36c2079b3fb3cb361f3202e4d24ff05d50137f70f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): system/src/Grav/Installer/Install.php:1000-1009 | system/src/Grav/Installer/Install.php:1027-1036 \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 \u0060system/src/Grav/Installer/Install.php:1000\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":"system/src/Grav/Installer/Install.php"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"81917182b2f585f62dab59a8e471220db67ce995a6b8ed8a7eabd5030640443c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/src/Grav/Common/Filesystem/Folder.php:88-96 | system/src/Grav/Common/Helpers/YamlLinter.php:131-139 \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 \u0060system/src/Grav/Common/Filesystem/Folder.php:88\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. 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":"system/src/Grav/Common/Filesystem/Folder.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e65135976a76b8de9ad98b386719d74be0e2414c87c8cb384c53b0c9bb70095"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Pages/PageObject.php:306-315 | system/src/Grav/Common/Flex/Types/Users/UserObject.php:637-645 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageObject.php"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"76451b51454d9f4c075bc7a8897c5346299ae761862b7b47fdcc8ea176744ab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/src/Grav/Common/Page/Page.php:1991-1999 | system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php:660-668 \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 \u0060system/src/Grav/Common/Page/Page.php:1991\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. 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":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":1991}}}],"partialFingerprints":{"codehealthFindingId/v1":"23401a35919d23d6813579039b30cc59eb0ff11520ad47877bd3255ef948de47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/src/Grav/Common/Service/TaskServiceProvider.php:31-39 | system/src/Grav/Common/Service/TaskServiceProvider.php:44-52 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Service/TaskServiceProvider.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3b03da3744be7633f84bbaba8f647572c012ed9ad13611aaddf1134b7b9747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/src/Grav/Common/Twig/Compatibility/Twig3CompatibilityTransformer.php:98-106 | system/src/Grav/Common/Twig/Compatibility/Twig3CompatibilityTransformer.php:179-187 \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 \u0060system/src/Grav/Common/Twig/Compatibility/Twig3CompatibilityTransformer.php:98\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":"system/src/Grav/Common/Twig/Compatibility/Twig3CompatibilityTransformer.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2c3bf2e2df28c3c65415962c431ba933f4b0c0243800eba1496a7f8391a4d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/src/Grav/Console/Cli/PageSystemValidatorCommand.php:168-177 | system/src/Grav/Console/Cli/PageSystemValidatorCommand.php:179-187 \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":"system/src/Grav/Console/Cli/PageSystemValidatorCommand.php"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5f85ef5aa27b17f70cd5b81e19d38134fb2b43f5e1d41fe4f6dc2253844cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/src/Grav/Console/Gpm/InfoCommand.php:148-156 | system/src/Grav/Console/Gpm/UpdateCommand.php:220-228 \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 \u0060system/src/Grav/Console/Gpm/InfoCommand.php:148\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. 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":"system/src/Grav/Console/Gpm/InfoCommand.php"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"49219b5b9d32a01b68a32355fd74d0d943ababd375e990a8be4eb9d3bfb0396a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/src/Grav/Framework/Flex/FlexDirectory.php:963-971 | system/src/Grav/Framework/Flex/FlexDirectory.php:999-1007 \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":"system/src/Grav/Framework/Flex/FlexDirectory.php"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0b5d9432fc927a12f46dd7614cf02fc1c30a02be02e6499e60e96b9d105de3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): system/src/Grav/Framework/Flex/Storage/FolderStorage.php:496-504 | system/src/Grav/Framework/Flex/Storage/FolderStorage.php:516-524 \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 \u0060system/src/Grav/Framework/Flex/Storage/FolderStorage.php:496\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":"system/src/Grav/Framework/Flex/Storage/FolderStorage.php"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ed956f81026540c0805a0d039cb424ea8c690b8600149292b367db45951c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): system/src/Grav/Console/Gpm/IndexCommand.php:256-263 | system/src/Grav/Console/Gpm/InfoCommand.php:146-153 | system/src/Grav/Console/Gpm/UpdateCommand.php:218-225 \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 \u0060system/src/Grav/Console/Gpm/IndexCommand.php:256\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":"system/src/Grav/Console/Gpm/IndexCommand.php"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"9faf54057abb9d32381b74cbb7bdfadbfdc893fbe1d8e25507e24fa16f28f0d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Pages/PageCollection.php:692-699 | system/src/Grav/Common/Page/Collection.php:650-657 \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 \u0060system/src/Grav/Common/Flex/Types/Pages/PageCollection.php:692\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":"system/src/Grav/Common/Flex/Types/Pages/PageCollection.php"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"265630a3f91d5bdd0b832d5ed501d092ba32f7a6a57789934669aea0614853d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): system/src/Grav/Common/Scheduler/Cron.php:538-545 | system/src/Grav/Common/Scheduler/Cron.php:546-553 \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 \u0060system/src/Grav/Common/Scheduler/Cron.php:538\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. 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":"system/src/Grav/Common/Scheduler/Cron.php"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"0328656a31d4020217337aeac80cb8363721d55ebb67b78543d0439c1917e475"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): system/src/Grav/Console/Gpm/SelfupgradeCommand.php:303-310 | system/src/Grav/Console/Gpm/UpdateCommand.php:122-130 \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":"system/src/Grav/Console/Gpm/SelfupgradeCommand.php"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a471f870e7e171ad6960f3f130377ab6df409688169f4be816a292a38444608"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): system/src/Grav/Common/Data/Blueprint.php:106-112 | system/src/Grav/Common/Page/Page.php:1286-1292 \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 \u0060system/src/Grav/Common/Data/Blueprint.php:106\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. 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":"system/src/Grav/Common/Data/Blueprint.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"649e13510589f9467fb33e5f317e430a4d2883235d8405e20697a31b1d11dce6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Pages/Traits/PageLegacyTrait.php:149-155 | system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php:1002-1008 \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. 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":"system/src/Grav/Common/Flex/Types/Pages/Traits/PageLegacyTrait.php"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad96cb93b9d198596f799f0ce8c6085bae25fb7b2cbd46242e4478d65a111d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Users/UserCollection.php:82-88 | system/src/Grav/Common/Flex/Types/Users/UserIndex.php:136-142 \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 \u0060system/src/Grav/Common/Flex/Types/Users/UserCollection.php:82\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":"system/src/Grav/Common/Flex/Types/Users/UserCollection.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1a52105f19be2c807d171516393ce2769e0bbbbfbde27135855944f2db118c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): system/src/Grav/Common/Markdown/Parsedown.php:32-38 | system/src/Grav/Common/Markdown/ParsedownExtra.php:33-39 \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 \u0060system/src/Grav/Common/Markdown/Parsedown.php:32\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":"system/src/Grav/Common/Markdown/Parsedown.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"595d0fb620452c6d05af408814d53ea11d3c036700c4d94429627862c82c7444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): system/src/Grav/Common/Uri.php:1025-1031 | system/src/Grav/Common/Uri.php:1545-1551 \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 \u0060system/src/Grav/Common/Uri.php:1025\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":"system/src/Grav/Common/Uri.php"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c6ed1d1fb6b83c243aa1163e8ff91b51d8b4f0592a5d5660a59214d724d105"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): system/src/Grav/Framework/Object/Base/ObjectCollectionTrait.php:174-179 | system/src/Grav/Framework/Object/Base/ObjectTrait.php:162-167 \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":"system/src/Grav/Framework/Object/Base/ObjectCollectionTrait.php"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f9ce496bfa072b247c26b7826e4d6fb61beeaca05242a5c4a173b013e4c659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): system/src/Grav/Common/Filesystem/ZipArchiver.php:125-129 | system/src/Grav/Common/GPM/Installer.php:323-327 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Filesystem/ZipArchiver.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b08742540853b6a27882d27a1cdd6ee6f3c34ab461a013777c265bbb28e7eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): system/src/Grav/Common/Flex/Types/Pages/Traits/PageRoutableTrait.php:85-89 | system/src/Grav/Framework/Flex/Pages/Traits/PageRoutableTrait.php:485-489 \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. 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":"system/src/Grav/Common/Flex/Types/Pages/Traits/PageRoutableTrait.php"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"59422465cd390ba2d3ade3be3799b8994a18f092c8e3a5ce550dbc3a3317c755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): system/src/Twig/DeferredExtension/DeferredNodeVisitor.php:37-41 | system/src/Twig/DeferredExtension/DeferredNodeVisitorCompat.php:49-53 \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 \u0060system/src/Twig/DeferredExtension/DeferredNodeVisitor.php:37\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":"system/src/Twig/DeferredExtension/DeferredNodeVisitor.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bd29893c99b3cfbbb07e6f88a9f5efbd164c4be8a8243a6a6ab413d53bf14e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: system/src/Grav/Common/Page/Page.php: system/src/Grav/Common/Page/Page.php changed 14 times in last 90 days, max complexity 45. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Page.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf09e572dbfa0a7b512ce743e5657a7a367564e5eeec99762fa5c30b3e04df75"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: system/src/Grav/Common/Page/Pages.php: system/src/Grav/Common/Page/Pages.php changed 8 times in last 90 days, max complexity 50. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Page/Pages.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59555468dfa44a65fe216a4261a077d8a049114120476c08625c1a02e49a4dd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: system/src/Grav/Common/Twig/Twig.php: system/src/Grav/Common/Twig/Twig.php changed 12 times in last 90 days, max complexity 30. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Twig/Twig.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56634d751fd8d32039075c2b60e6d65c789c980c1eb358733b4a483c0718de02"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: system/src/Grav/Common/Security.php: system/src/Grav/Common/Security.php changed 16 times in last 90 days, max complexity 22. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Security.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ec74a24cefba7c05a8963847d0083125aca0a8e006f39d7a720c3cbcf48f27"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: system/src/Grav/Common/Markdown/ParsedownGravTrait.php: system/src/Grav/Common/Markdown/ParsedownGravTrait.php changed 10 times in last 90 days, max complexity 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Markdown/ParsedownGravTrait.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02ffb149e0e86b0edcaa1d466ea4fc0e6b35bb7c54aefb5c91b508500fce10f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php: system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php changed 6 times in last 90 days, max complexity 28. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72731d84e6daa3fe153738121b59cc933e83f7895e085ce10ff4b79ad600f522"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: system/src/Grav/Common/Debugger.php: system/src/Grav/Common/Debugger.php changed 3 times in last 90 days, max complexity 49. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Debugger.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfb40eb7ae5b36dc4e98ffa9b16b0ebed473227bc4c08223ceb10e22ecd45a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: system/src/Grav/Common/Uri.php: system/src/Grav/Common/Uri.php changed 3 times in last 90 days, max complexity 35. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Uri.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47cb23029d41fd8469154c4441774be322b97b18be72bd86a36fc8aaa89512b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: system/src/Grav/Common/GPM/Installer.php: system/src/Grav/Common/GPM/Installer.php changed 4 times in last 90 days, max complexity 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/GPM/Installer.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be728024d9902a557866e1e742a58879a3ccf3c74583d8a64ab7275e8edbe368"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: system/src/Grav/Common/Grav.php: system/src/Grav/Common/Grav.php changed 3 times in last 90 days, max complexity 26. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Grav.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a01a0f072598a68682b4e3f8a48ae5893c8ca888c08b7056afd9347424c42d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 96 significant file(s) lose their only recent owner: system/src/Grav/Common/Page/Page.php, system/src/Grav/Common/Page/Pages.php, system/src/Grav/Common/Utils.php, system/src/Grav/Common/Security.php, system/src/Grav/Common/Twig/Extension/GravExtension.php, system/src/Grav/Common/Uri.php, system/src/Grav/Common/GPM/GPM.php, system/src/Grav/Framework/Flex/FlexDirectory.php (\u002B88 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"56bf37268feecb9017a0a9a4cd8cb7cd108d1893b84d840debc072eeae7264a8"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (98 single-owned of 280 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #2 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"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":"21befa6d5bd460c89a1617112c9fc461bc2c854f305194cbd606f3314f6111dd"},"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":"fbd56953918aabcecaa251320d3ff4a55d708bfc3ba1a3b39fbee44f2e11ef54"},"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":"84f996db8ebbda569c7e60eee1d5dfff1a36db454c564469b30885f69d7bc14c"},"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":"bc9e29d0cee4f97518414241b17ecb2837562e8cca150fd429d1fd32e2847a48"},"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":"af67d5344a9d39a568a7d66568fddf10085b56c40e9a1d7a9cb1d3e8bf530d5b"},"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":"e627b690c2de1fca76c6f5da097d13613c7fd9597b73cd28a2f817ea65ee2ae4"},"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":"6519d157bf2bccbc1df44dd6e60f1782f94b29cde10d6a6028d6a49fa5d5435c"},"taxa":[{"id":"CWE-78","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":"f084aca0c0d329db9edd54fb761149f9f31ac7e9fbacb57558a536168c7cacfa"},"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":"aaa9b9208304a57e0f4a75dc47eb0beadad95125e6465d4dc709f17c9183ebee"},"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":"c7f3120aded9edb3223e622e6776252d6a140548cca9d786d9625ca93b20d4c2"},"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":"8e31db01254bd917d5a5cfb56b252dafbe021095607ceb2fc8824c62d1b91772"},"taxa":[{"id":"CWE-78","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":"20a8e7165c5e91f4f9680e14d3eb6157678c413c5db6828fb0602d12e1259a1c"},"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":"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":"6c5d44cedf5a910d3406e17501ea3d402d66890d0a2a1cc9fc64da5aa3a2c6dd"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"27f24366d04ae786a95f9071448df426b8394c995bc58c886b99048be867957a"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e438d957c3d6da7c61a2f04e6295846e2f5b968974e6e0d2b466994b63cabd28"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"639d1fbfed00671b153ee60b2b804b658c6932a3817b58dc2e5832adbb872024"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"23fd59c961d721d7e4d094cc11cc350bfcc2c2f242a12c8f5ef72650ab19c9f5"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageIndex.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea202ae6338f78e7e66730999c7d5c77aa6831bc3b26bedb4ea3d46aaf1b246"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/FlexIndex.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8f34d721d48076d1503f3d197fc1ba6bffd4602b1ad5db5365d42a3d7c0505"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Media/Traits/MediaUploadTrait.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"799436a459add39288607b22a72f08a63a10f87edbccc0015c77c2b2d37b726c"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Common/Flex/Types/Pages/PageCollection.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07de5a9c90877a9f37a16e9905cd268d622d6c71e47e2afa450ab0d2444f03e"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Form/Traits/FormTrait.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd789d1d246a2efca0abc569ea9fbe34db8a0c991ff634be863a5765f803e724"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"system/src/Grav/Framework/Flex/Storage/FolderStorage.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da763a347ee31eec3dccc274a4a60e026c4a29c1dd1a7741950169e30c7460ef"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 129 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (135 orphaned of 280 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"}},{"ruleId":"D38","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":"dcd1cfb18152d02e970336d42cc44860f1d2aa64555f3fd8d3792d543ef04a17"}},{"ruleId":"D38","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":"9029719f081437f450e0a343a6d1821a84f78d14725d6864a09695201c3c58b4"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.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-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"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-918","guid":"2e9b9091-5a0f-dc57-b644-7ad04bd56e64","name":"CWE-918","shortDescription":{"text":"CWE-918"},"helpUri":"https://cwe.mitre.org/data/definitions/918.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.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":24,"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."]}]}