{"$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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","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"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"]}},{"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":"MessageFormatter.parseToken (cyclomatic 42): MessageFormatter.parseToken has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/i18n/MessageFormatter.php"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09d165a8da4ba1dc0d740210ee083073678dd5b124b25bcd0286bb12916654a"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.resolveCallableDependencies (cyclomatic 33): Container.resolveCallableDependencies 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":"framework/di/Container.php"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7ecf3406cc7957708d7d2af14514e53bb07e582956080c8527134d766377c1"}},{"ruleId":"D1","level":"warning","message":{"text":"UrlRule.createUrl (cyclomatic 31): UrlRule.createUrl has cyclomatic complexity 31 (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":"framework/web/UrlRule.php"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e34ef993a2a96bd7cd90415e7c8bf55625b6ea1d56e3522e1f69fe959940ea"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageController.saveMessagesToDb (cyclomatic 29): MessageController.saveMessagesToDb 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":"framework/console/controllers/MessageController.php"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"de582a593c8060ecdddf63223ae4e3476d3e8611cff8b92cbada33a8a6de6842"}},{"ruleId":"D1","level":"warning","message":{"text":"handleAction (cyclomatic 29): handleAction has cyclomatic complexity 29 (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":"framework/assets/yii.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b36552dab7de6932737cef5decba02fd19e2edb040805f998d972046834e6de"}},{"ruleId":"D1","level":"warning","message":{"text":"ActiveRelationTrait.populateRelation (cyclomatic 28): ActiveRelationTrait.populateRelation 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":"framework/db/ActiveRelationTrait.php"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"c534add1550dbf59fec6d14200069d13a20d720fa168fd0f481d505065b8f504"}},{"ruleId":"D1","level":"warning","message":{"text":"ColumnSchema.typecast (cyclomatic 28): ColumnSchema.typecast has cyclomatic complexity 28 (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":"framework/db/ColumnSchema.php"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4083267cc9cd5eef143572b16de66dc1897dde62b6bee27e3c60cf503a4704d9"}},{"ruleId":"D1","level":"warning","message":{"text":"IpValidator.validateSubnet (cyclomatic 28): IpValidator.validateSubnet 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":"framework/validators/IpValidator.php"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e69488c6c00dd5148fefc2978c9fd69816470f0539cd64ba89f20f1388427e"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseFileHelper.changeOwnership (cyclomatic 27): BaseFileHelper.changeOwnership 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":"framework/helpers/BaseFileHelper.php"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72ddd7f5eb7df2273334c02d0ea3e0eb4140778e734e92dbf8dfe73fd5dcd5b"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageController.extractMessagesFromTokens (cyclomatic 26): MessageController.extractMessagesFromTokens 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":"framework/console/controllers/MessageController.php"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"19d10f5d9d7f83ac3083f401e7d38d58621da52a646c42b32cb91bf5822c960f"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseHtml.renderSelectOptions (cyclomatic 26): BaseHtml.renderSelectOptions 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":"framework/helpers/BaseHtml.php"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c14eddfd5a10c91e87fd40c380ab8397060bccb3d64da4bcd417a96af02dae"}},{"ruleId":"D1","level":"warning","message":{"text":"UrlManager.createUrl (cyclomatic 25): UrlManager.createUrl 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":"framework/web/UrlManager.php"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"7917fe4c75f471f91b191f5ea2ee0a6239b9027a600f56ba4f40f1c095c986c8"}},{"ruleId":"D1","level":"warning","message":{"text":"InConditionBuilder.build (cyclomatic 24): InConditionBuilder.build 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":"framework/db/conditions/InConditionBuilder.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"328e2890a499135f883773dd005d05822c4355c4e6f5e332d215cc7052550d0f"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.loadColumnSchema (cyclomatic 24): Schema.loadColumnSchema 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":"framework/db/cubrid/Schema.php"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aabaed525ab6ecd676476cacf87fc19475b831eb3a5c344c09330a9f2c8844a"}},{"ruleId":"D1","level":"warning","message":{"text":"Formatter.asDecimalStringFallback (cyclomatic 24): Formatter.asDecimalStringFallback 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":"framework/i18n/Formatter.php"},"region":{"startLine":2004}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6ec485d01076906df60f55037abf449f49e79118c41ff87f538c24a2846198"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseActiveRecord.unlink (cyclomatic 23): BaseActiveRecord.unlink 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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c17de8b64e742bef129b30b2e8a070e324c71ab4bb381c44d372d96c5bdd993"}},{"ruleId":"D1","level":"warning","message":{"text":"UrlRule.translatePattern (cyclomatic 23): UrlRule.translatePattern 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":"framework/web/UrlRule.php"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"933e5af86cd105e1cf2ab0d3020704156eee0811bc70555d4fc921f5b048d660"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.bindActionParams (cyclomatic 22): Controller.bindActionParams 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":"framework/console/Controller.php"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0fea7116de9e0484813741acae6042c33585bd14a073c3b95a26b198838de8"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseFileHelper.copyDirectory (cyclomatic 22): BaseFileHelper.copyDirectory 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":"framework/helpers/BaseFileHelper.php"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"60095ab78c09625a7999bff1e11a878089d0a7c502747e1456669d2bcf8f6f65"}},{"ruleId":"D1","level":"warning","message":{"text":"ActiveField.getClientOptions (cyclomatic 22): ActiveField.getClientOptions 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":"framework/widgets/ActiveField.php"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14f35bbaf5b1afdd90c84230fe39932e923c5074377c3dd4144e91fb925ad16"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailView.normalizeAttributes (cyclomatic 22): DetailView.normalizeAttributes 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":"framework/widgets/DetailView.php"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8aca08fe94dccc97757a3650679c6d2de04b4a70f5b9824c3634ba2f3a2651"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageController.saveMessagesCategoryToPHP (cyclomatic 21): MessageController.saveMessagesCategoryToPHP 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":"framework/console/controllers/MessageController.php"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e2a017855bf155de30eb06a3f74e72933b5896098eec845e0e7a59a4bba1c5"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageController.saveMessagesToPO (cyclomatic 21): MessageController.saveMessagesToPO 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":"framework/console/controllers/MessageController.php"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b6b7538e4e29594a566be2b262afae347181bd9b1c984904f000811b2e4cbdd"}},{"ruleId":"D1","level":"warning","message":{"text":"ActiveRelationTrait.populateInverseRelation (cyclomatic 21): ActiveRelationTrait.populateInverseRelation 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":"framework/db/ActiveRelationTrait.php"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e845c5acf16099633964d3ce71f885934d04c246dfb1898d63c81a15d05c6a"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseHtml.renderTagAttributes (cyclomatic 21): BaseHtml.renderTagAttributes 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":"framework/helpers/BaseHtml.php"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"491c8c94b3468791662e5be2790cc8573b567fef58881d16762a12466eb7882a"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.filterUnionTypeActionParam (cyclomatic 21): Controller.filterUnionTypeActionParam 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":"framework/web/Controller.php"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8d3956add914f72bf533512c16b6f1b1a099945743a0ffb8c0fec22e401443"}},{"ruleId":"D1","level":"warning","message":{"text":"UrlRule.parseRequest (cyclomatic 21): UrlRule.parseRequest 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":"framework/web/UrlRule.php"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"5860f7f657f6fed8e699f69db6112c3b5f686f51be8ed10fb916b5c8de9a8140"}},{"ruleId":"D1","level":"warning","message":{"text":"User.renewAuthStatus (cyclomatic 21): User.renewAuthStatus 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":"framework/web/User.php"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"88328f3897ce835985bf8c83ea682e6e25ebb350fb5294525d4c3bafd3741ddf"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.runAction (cyclomatic 20): Controller.runAction 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":"framework/console/Controller.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79ba220e59efb89e54e81d8c891fe12d579a7585b7c103659e9043f0769c360"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.getActionArgsHelp (cyclomatic 20): Controller.getActionArgsHelp 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":"framework/console/Controller.php"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6cf204b722c8bf8e8a34322239cbb2d689abdedcbf7b62e113bec0eea8f026"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseActiveRecord.link (cyclomatic 20): BaseActiveRecord.link 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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a8cdd6870b0253ddff3274467d3f19ea0c514d100b626ecc0e634b507edb13"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.loadColumnSchema (cyclomatic 20): Schema.loadColumnSchema 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":"framework/db/mysql/Schema.php"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"3126c32c455b989c8467767281201a061623cb214b1f8ceb22421a0efface3ce"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseVarDumper.dumpInternal (cyclomatic 20): BaseVarDumper.dumpInternal 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":"framework/helpers/BaseVarDumper.php"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"610cd053d9eb54df68354356e63250c0679ed4c74a0762e180efc18581a1998c"}},{"ruleId":"D1","level":"warning","message":{"text":"Formatter.formatDateTimeValue (cyclomatic 20): Formatter.formatDateTimeValue 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":"framework/i18n/Formatter.php"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30f51fbe71f2d4a8ebd435eec5c9f0ab35cf4c75099221ccad1d3457d7dedc0"}},{"ruleId":"D1","level":"warning","message":{"text":"DateValidator.init (cyclomatic 20): DateValidator.init has cyclomatic complexity 20 (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":"framework/validators/DateValidator.php"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"46be4c4996cb73a9ad36d442d023e514f81df70ddcaccfc25930a6610a10e25d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 20): (anonymous) has cyclomatic complexity 20 (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":"framework/assets/yii.activeForm.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5a9704b8f71186419e215dc1d846ca32268bcb891b724e00ab8dc637856634"}},{"ruleId":"D1","level":"warning","message":{"text":"QueryTrait.filterCondition (cyclomatic 19): QueryTrait.filterCondition 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":"framework/db/QueryTrait.php"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f8d48bac62021adfb769cb38e690fda0ad72fa5c2cb7dd5c4309fa9466e9aa"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.loadColumnSchema (cyclomatic 19): Schema.loadColumnSchema 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":"framework/db/mssql/Schema.php"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7946b1081e10946da0e2a6614ad0732889db743cde76766d8a3f9ac0f6dd88a"}},{"ruleId":"D1","level":"warning","message":{"text":"CompositeAuth.authenticate (cyclomatic 19): CompositeAuth.authenticate 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":"framework/filters/auth/CompositeAuth.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec2497feacecf5c4b17f01a433087a2c16c6c9351f3b0b9c9663382bbe5c768"}},{"ruleId":"D1","level":"warning","message":{"text":"Formatter.normalizeDatetimeValue (cyclomatic 19): Formatter.normalizeDatetimeValue 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":"framework/i18n/Formatter.php"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2729ea00dea32c503a343efdbbd4be88a03156d7dd67753f2132760c78c7a6"}},{"ruleId":"D1","level":"warning","message":{"text":"Menu.normalizeItems (cyclomatic 19): Menu.normalizeItems 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":"framework/widgets/Menu.php"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa12516ac5823d10763bd74c2a3bd2704190c375f9e0dbe87486bbb92ede682f"}},{"ruleId":"D1","level":"warning","message":{"text":"ActiveQuery.joinWithRelation (cyclomatic 18): ActiveQuery.joinWithRelation 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":"framework/db/ActiveQuery.php"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83a85621b8edb88f95baf3f1720d9aa1e435a3945dcd70c702455ec56f3be21"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseActiveRecord.unlinkAll (cyclomatic 18): BaseActiveRecord.unlinkAll 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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd10dc5d14d9d21bb0508e2e8b08e76c9d4c06d8902dd98334cf3b653099141d"}},{"ruleId":"D1","level":"warning","message":{"text":"FileValidator.validateValue (cyclomatic 18): FileValidator.validateValue has cyclomatic complexity 18 (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":"framework/validators/FileValidator.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"825d1e724e8cecc9826cd8cf0d854ce72e2002285a63a617be8d62efb007c952"}},{"ruleId":"D1","level":"warning","message":{"text":"ip (cyclomatic 18): ip has cyclomatic complexity 18 (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":"framework/assets/yii.validation.js"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b4043eac3659f217e1d9dbb1e36cfbb2823bb0e0b30112590d08b5aa3c5677"}},{"ruleId":"D1","level":"warning","message":{"text":"Application.bootstrap (cyclomatic 17): Application.bootstrap 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":"framework/base/Application.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba21a80c9d6d1d5348dc957fe3c2ebaf1cac18f55cd82bcbde383fd417a8ed5d"}},{"ruleId":"D1","level":"warning","message":{"text":"Model.scenarios (cyclomatic 17): Model.scenarios 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":"framework/base/Model.php"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"72201cfcb32f557805a2af382a842eb57459c2a92e86cb73a644a0f386a19e91"}},{"ruleId":"D1","level":"warning","message":{"text":"ErrorHandler.renderException (cyclomatic 17): ErrorHandler.renderException has cyclomatic complexity 17 (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":"framework/console/ErrorHandler.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"767927308f825e91dd850aed45910fa6aef9c54f5020f4c43dff26ccf6bcf492"}},{"ruleId":"D1","level":"warning","message":{"text":"ActiveRelationTrait.filterByModels (cyclomatic 17): ActiveRelationTrait.filterByModels 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":"framework/db/ActiveRelationTrait.php"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"626323644675b09c9fff402c24c409ae99373a6f43ce57f9c231fc0f7d5c4cce"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.findColumns (cyclomatic 17): Schema.findColumns 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":"framework/db/pgsql/Schema.php"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bab37800c4748e72e86556cd4c176007db89aa5006c93d2c525e1d7b70cb15c"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.loadColumnSchema (cyclomatic 17): Schema.loadColumnSchema 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":"framework/db/sqlite/Schema.php"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3cb309edf226a27c7da44aa3b3d98c082bd53439ef3fa0cb524d1e72d97ee67"}},{"ruleId":"D1","level":"warning","message":{"text":"Container.getDependencies (cyclomatic 17): Container.getDependencies 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":"framework/di/Container.php"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"8727f3c505706de5879e2dbb1e7266efcab5b3de5c9fac98abaff21067cfcefb"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseConsole.ansiToHtml (cyclomatic 17): BaseConsole.ansiToHtml 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":"framework/helpers/BaseConsole.php"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f1981a25e8a683e80a0d061ab04f84143b6c018d5e28bf319e6403d5f7df8f"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseConsole.getScreenSize (cyclomatic 17): BaseConsole.getScreenSize 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":"framework/helpers/BaseConsole.php"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d398461708b83dd1accc336140a47f7ce95849624f9782b0e68a1ef68acc28"}},{"ruleId":"D1","level":"warning","message":{"text":"Formatter.asRelativeTime (cyclomatic 17): Formatter.asRelativeTime 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":"framework/i18n/Formatter.php"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"9337fae160b570331e9fa021ccbff8e211ec58fa3fa3b7cf50225acd9d25c7dc"}},{"ruleId":"D1","level":"warning","message":{"text":"compare (cyclomatic 17): compare has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/assets/yii.validation.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5ae634fc738c142cc5508bbddce6f28324046d8a24eed5ec38f91a2e144647"}},{"ruleId":"D1","level":"warning","message":{"text":"Component.__set (cyclomatic 16): Component.__set 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":"framework/base/Component.php"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff3814bd38914d26692068eb31e5bc8e3e4fc73ac354cfd8f45c43695111d3f"}},{"ruleId":"D1","level":"warning","message":{"text":"Command.getRawSql (cyclomatic 16): Command.getRawSql 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":"framework/db/Command.php"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ce04b8bf0a51a377d4e00fb33964f8b2ee862069408851151f13dcb88002d5"}},{"ruleId":"D1","level":"warning","message":{"text":"Schema.loadTableConstraints (cyclomatic 16): Schema.loadTableConstraints 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":"framework/db/sqlite/Schema.php"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb5b7ab2edbf4f4c14d1de04d69e81ddf204e5b22a160da078debc64a351290"}},{"ruleId":"D1","level":"warning","message":{"text":"Instance.ensure (cyclomatic 16): Instance.ensure 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":"framework/di/Instance.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d0b31268dc19146f1e33576217224bd5f4a5da4554ff20ed1f76b636f0fd2b"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseArrayHelper.toArray (cyclomatic 16): BaseArrayHelper.toArray 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":"framework/helpers/BaseArrayHelper.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d302d238d2fd012d9662c7520c714bcfd974ee50718f7be25ddb4f1cff80eee"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseJson.processData (cyclomatic 16): BaseJson.processData 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":"framework/helpers/BaseJson.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed3106a95710a5dfb0315999e57c1fae3bbace75434403f2ed7fc76f32c1219"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.bindActionParams (cyclomatic 16): Controller.bindActionParams 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":"framework/web/Controller.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d0b17933e331f3c3431f49968c2460e58f9c40834ab57505870b1f34218983"}},{"ruleId":"D1","level":"warning","message":{"text":"Request.parseAcceptHeader (cyclomatic 16): Request.parseAcceptHeader 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":"framework/web/Request.php"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"4776a3424f2294442e924c4ea8161d8ec6bd93b5a717ed81896ff680278b60b5"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageController.extractMessagesFromTokens (cognitive 81): MessageController.extractMessagesFromTokens has cognitive complexity 81 (threshold 15). Drivers by points: if/else 66, loops 8, boolean chains 7 (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/console/controllers/MessageController.php"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51a3926e408fc24f3a5a67ebe8a0383d39164be768ea3757a7d091e75699740"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveRelationTrait.populateRelation (cognitive 61): ActiveRelationTrait.populateRelation has cognitive complexity 61 (threshold 15). Drivers by points: if/else 34, loops 12, ternaries 12, 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":"framework/db/ActiveRelationTrait.php"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"333314672bab4c31ea7ccf5c5c86f81d2ee4ddccfe00d41693a20aae0fd64597"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseActiveRecord.unlink (cognitive 58): BaseActiveRecord.unlink has cognitive complexity 58 (threshold 15). Drivers by points: if/else 39, loops 15, ternaries 3, boolean chains 1 (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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1406}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6efa2065dda7d1a7560e3a85c9db8df9e57785f13a70cfc29147fb794ad0fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.getDependencies (cognitive 57): Container.getDependencies has cognitive complexity 57 (threshold 15). Drivers by points: if/else 36, ternaries 13, error handling 5, loops 2, boolean chains 1 (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":"framework/di/Container.php"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b81bab0965b5ef1865a10ffed95d56de085f0db0fce85169338ea0e3ee5ebd"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseHtml.renderSelectOptions (cognitive 56): BaseHtml.renderSelectOptions has cognitive complexity 56 (threshold 15). Drivers by points: if/else 33, ternaries 19, loops 3, boolean chains 1 (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":"framework/helpers/BaseHtml.php"},"region":{"startLine":1892}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b451315e30b6679249d1871031df16ca66fd7e4a37aabfed4e455f2802b3e1"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveRelationTrait.populateInverseRelation (cognitive 54): ActiveRelationTrait.populateInverseRelation has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20, loops 18, ternaries 15, boolean chains 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/db/ActiveRelationTrait.php"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"9262fa8df94225e7f6c6e166b9487d1432e519e6fd427760526cce14d0c2a53d"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.runAction (cognitive 52): Controller.runAction has cognitive complexity 52 (threshold 15). Drivers by points: if/else 37, loops 11, boolean chains 2, ternaries 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/console/Controller.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"27faececc95c2c3e461233ba3ffca555b5ae9e65ef2e056bac3db0bdb3dbf3dc"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageController.saveMessagesToPO (cognitive 52): MessageController.saveMessagesToPO has cognitive complexity 52 (threshold 15). Drivers by points: if/else 29, loops 17, boolean chains 6 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/console/controllers/MessageController.php"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"150a6d68184aae270045421c29ea45cd94fe0b8d7334b875ed3c8cf5d8373d49"}},{"ruleId":"D2","level":"warning","message":{"text":"Container.resolveCallableDependencies (cognitive 52): Container.resolveCallableDependencies has cognitive complexity 52 (threshold 15). Drivers by points: if/else 29, boolean chains 13, loops 6, error handling 4 (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":"framework/di/Container.php"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1432242b978919bb3e742c003aed9faae0863a816ff609915248bf373fcc44"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageFormatter.parseToken (cognitive 52): MessageFormatter.parseToken has cognitive complexity 52 (threshold 15). Drivers by points: if/else 30, boolean chains 13, loops 4, ternaries 4, match/switch 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":"framework/i18n/MessageFormatter.php"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f74e3c0aa0235a8d0786fb7e0c1891170556ee943ba2cc305a4ffbd83640e9"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlManager.createUrl (cognitive 49): UrlManager.createUrl has cognitive complexity 49 (threshold 15). Drivers by points: if/else 36, boolean chains 5, loops 5, ternaries 3 (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":"framework/web/UrlManager.php"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"110f5832efabc68b77e8587f0fd5fe4d3be1feffcf935f6441aa3132c500c000"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlRule.createUrl (cognitive 48): UrlRule.createUrl has cognitive complexity 48 (threshold 15). Drivers by points: if/else 30, boolean chains 8, loops 5, ternaries 5 (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":"framework/web/UrlRule.php"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d501b6238c1824ead04b3e10a8fed00880a37b5dade80911457568bf5b96cd"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.bindActionParams (cognitive 45): Controller.bindActionParams has cognitive complexity 45 (threshold 15). Drivers by points: if/else 27, boolean chains 5, loops 5, ternaries 5, error handling 3 (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":"framework/console/Controller.php"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d015fa7f3e3c37db6990f92172a0a664f2e71fcb1f4ac15910cc5a9f509b83"}},{"ruleId":"D2","level":"warning","message":{"text":"Formatter.asDecimalStringFallback (cognitive 45): Formatter.asDecimalStringFallback has cognitive complexity 45 (threshold 15). Drivers by points: if/else 36, loops 6, boolean chains 3 (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":"framework/i18n/Formatter.php"},"region":{"startLine":2004}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52848fed8d333ac647ee0ae4eb3ea5523972167fde048e97b828687ea7c2d39"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseFileHelper.copyDirectory (cognitive 44): BaseFileHelper.copyDirectory has cognitive complexity 44 (threshold 15). Drivers by points: if/else 30, ternaries 7, boolean chains 6, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/helpers/BaseFileHelper.php"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b19a137d9158031ba4eb6b1a6bd6f65f044a74de96ed53fef4a03ec7c2c49e2"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseHtml.renderTagAttributes (cognitive 44): BaseHtml.renderTagAttributes has cognitive complexity 44 (threshold 15). Drivers by points: if/else 36, loops 7, boolean chains 1 (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":"framework/helpers/BaseHtml.php"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db1acc8ed8ff09e466de733e875d67e9e805287ae0e7702d037c27569be04cb"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageController.saveMessagesToDb (cognitive 43): MessageController.saveMessagesToDb has cognitive complexity 43 (threshold 15). Drivers by points: if/else 19, loops 19, ternaries 4, 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":"framework/console/controllers/MessageController.php"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c5b376cb10b34e9e1af99eb88ebf834c7840a0e39a948b5d35360bb09d816d"}},{"ruleId":"D2","level":"warning","message":{"text":"Table.renderRow (cognitive 43): Table.renderRow has cognitive complexity 43 (threshold 15). Drivers by points: if/else 31, ternaries 8, loops 3, boolean chains 1 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/console/widgets/Table.php"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"7617e9c618ebf1c70def629451e40028762a691909bc3a708aad3ab161b6f4be"}},{"ruleId":"D2","level":"warning","message":{"text":"IpValidator.validateSubnet (cognitive 43): IpValidator.validateSubnet has cognitive complexity 43 (threshold 15). Drivers by points: if/else 31, boolean chains 8, ternaries 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/validators/IpValidator.php"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9468714bc6c9369ae6c45cc9232584a66ed5fd781e5f774bcedcef422f6fad0"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseActiveRecord.unlinkAll (cognitive 42): BaseActiveRecord.unlinkAll has cognitive complexity 42 (threshold 15). Drivers by points: if/else 33, loops 5, boolean chains 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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bb882b8103e3f13c469c1f1f4c4118cd34daa994fe6a5895de7e6943e95917"}},{"ruleId":"D2","level":"warning","message":{"text":"DetailView.normalizeAttributes (cognitive 41): DetailView.normalizeAttributes has cognitive complexity 41 (threshold 15). Drivers by points: if/else 25, ternaries 13, boolean chains 2, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/widgets/DetailView.php"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1dcfaa26e2dd890e669ab90fdc437429b1f96c369d9803f789e2cc3ffee40d"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseActiveRecord.link (cognitive 40): BaseActiveRecord.link has cognitive complexity 40 (threshold 15). Drivers by points: if/else 29, loops 9, 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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"786671103888c16ebb5ddd3746618ac7276a17002c4e86b1f8f26c15eadc022d"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.loadColumnSchema (cognitive 40): Schema.loadColumnSchema has cognitive complexity 40 (threshold 15). Drivers by points: if/else 25, boolean chains 9, loops 4, ternaries 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/db/cubrid/Schema.php"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"27da84f71b5a667cecb05816c56d949eb49818dc5e2912822ef075a1978f80f1"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.loadColumnSchema (cognitive 40): Schema.loadColumnSchema has cognitive complexity 40 (threshold 15). Drivers by points: if/else 26, ternaries 6, boolean chains 4, loops 4 (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":"framework/db/mysql/Schema.php"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"98dbbdd36cc57b5e1151c53a534ea11288ac19b404370d9f06eb5905a1ab7bb7"}},{"ruleId":"D2","level":"warning","message":{"text":"Model.scenarios (cognitive 39): Model.scenarios has cognitive complexity 39 (threshold 15). Drivers by points: loops 29, if/else 9, boolean chains 1 (nesting depth added 23). 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":"framework/base/Model.php"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"085c6e73cc8910950637d9f9a0b7edb3def26ef6937825b6b030b5c944c37ac0"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.getActionArgsHelp (cognitive 39): Controller.getActionArgsHelp has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15, ternaries 14, loops 6, boolean chains 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":"framework/console/Controller.php"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d2934289562a7c5f81503b6466ec038545970e06c09f55d042d3ab17f00182"}},{"ruleId":"D2","level":"warning","message":{"text":"handleAction (cognitive 39): handleAction has cognitive complexity 39 (threshold 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":"framework/assets/yii.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"692044b869e340383b5c77708fc4069552201a619390b825c78abf377665f5f3"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseArrayHelper.toArray (cognitive 38): BaseArrayHelper.toArray has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21, loops 10, ternaries 6, boolean chains 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":"framework/helpers/BaseArrayHelper.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"217232c0026b30c4f5e2721c707049e45475ac2199ee7f22764908a489013a21"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageController.saveMessagesCategoryToPHP (cognitive 37): MessageController.saveMessagesCategoryToPHP has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21, boolean chains 8, loops 8 (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":"framework/console/controllers/MessageController.php"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc432ad680e40abe68d3b2e294a2799d38d13428d01267de45d736147132a5e2"}},{"ruleId":"D2","level":"warning","message":{"text":"FileCache.gcRecursive (cognitive 36): FileCache.gcRecursive has cognitive complexity 36 (threshold 15). Drivers by points: if/else 31, boolean chains 3, loops 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":"framework/caching/FileCache.php"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"876f9554a17fd5624aca6e231a185fe709157ed255d4aafdd886edf264bd6cc1"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseFileHelper.changeOwnership (cognitive 36): BaseFileHelper.changeOwnership has cognitive complexity 36 (threshold 15). Drivers by points: if/else 24, boolean chains 6, ternaries 6 (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":"framework/helpers/BaseFileHelper.php"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ee6ef94d2c221ea2fe9053dcbd63227ceb1aa95a961bae23c0eae5a9498fcd"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlRule.translatePattern (cognitive 36): UrlRule.translatePattern has cognitive complexity 36 (threshold 15). Drivers by points: if/else 16, boolean chains 11, ternaries 7, loops 2 (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":"framework/web/UrlRule.php"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9049c6a41e7930f3cc59b3d64f70510d104e6747191f51b7f989ab83f51477b"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveRelationTrait.filterByModels (cognitive 35): ActiveRelationTrait.filterByModels has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20, loops 9, boolean chains 3, ternaries 3 (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":"framework/db/ActiveRelationTrait.php"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"831d5452ec2e0d20b59146e5064fc4af49f4f8d33deb97ab52b670f1b8a05ec2"}},{"ruleId":"D2","level":"warning","message":{"text":"Sort.getAttributeOrders (cognitive 33): Sort.getAttributeOrders has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20, ternaries 8, loops 3, boolean chains 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":"framework/data/Sort.php"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c2804f1910d658d6fbe17a8e9b1a89d92afdac35ada4a1a9d927a56736627b"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.filterUnionTypeActionParam (cognitive 33): Controller.filterUnionTypeActionParam has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18, boolean chains 7, ternaries 5, 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":"framework/web/Controller.php"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b9f6f1935c29ab542f076fa4fcfa57668658e922fbf8a5f8eed1f02fe6000c"}},{"ruleId":"D2","level":"warning","message":{"text":"MultipartFormDataParser.parse (cognitive 33): MultipartFormDataParser.parse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 31, 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":"framework/web/MultipartFormDataParser.php"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6931f299898e532da9d2cfb6be7ce8227527b35518c8145961207a232bdb9f15"}},{"ruleId":"D2","level":"warning","message":{"text":"Menu.normalizeItems (cognitive 33): Menu.normalizeItems has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23, boolean chains 5, ternaries 4, 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":"framework/widgets/Menu.php"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"283e515d6d5d97176a2269ddefee34dc3ff65eb24b2bc89b076585d1465d2093"}},{"ruleId":"D2","level":"warning","message":{"text":"InConditionBuilder.build (cognitive 31): InConditionBuilder.build has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18, ternaries 10, boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/db/conditions/InConditionBuilder.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51bd4dabc90ffe2f66cbd65a087c20104f5d7188aa3ded6eaae8f08193a3a85"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlManager.parseRequest (cognitive 31): UrlManager.parseRequest has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24, ternaries 4, loops 2, 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":"framework/web/UrlManager.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f2cb2e53e9c4dec45bce5f65e223c228eb94992a9d18513b08db9147ea75a2"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.loadColumnSchema (cognitive 30): Schema.loadColumnSchema has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24, boolean chains 5, ternaries 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":"framework/db/mssql/Schema.php"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc5a3b233e5a7f072ac5083cdbdd31c27496ab7d63fd873d21b03985270d380"}},{"ruleId":"D2","level":"warning","message":{"text":"Formatter.formatDateTimeValue (cognitive 30): Formatter.formatDateTimeValue has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, boolean chains 7 (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":"framework/i18n/Formatter.php"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"844634f87b4cf6b2b1d2c54d6fa13516deb7be395f9c4e4436e56e0faa5962eb"}},{"ruleId":"D2","level":"warning","message":{"text":"updateInputs (cognitive 30): updateInputs has cognitive complexity 30 (threshold 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":"framework/assets/yii.activeForm.js"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df46f202f19173fca7e9cb4ee6d9e24f4439e2e7a2c0b2cdcd3c207576037a7"}},{"ruleId":"D2","level":"warning","message":{"text":"Application.bootstrap (cognitive 29): Application.bootstrap has cognitive complexity 29 (threshold 15). Drivers by points: if/else 22, loops 5, ternaries 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":"framework/base/Application.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"525356bd63aefd131faaf12dbda560899967188ecb85b8b2e9236510f290b5fe"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetController.loadTargets (cognitive 29): AssetController.loadTargets has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, loops 6, ternaries 2 (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":"framework/console/controllers/AssetController.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"58aabf18c7b8158418a82bb8a780d1792218c9772614453752d58d80bbdc2549"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageFormatter.replaceNamedArguments (cognitive 29): MessageFormatter.replaceNamedArguments has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, loops 4, boolean chains 2, 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":"framework/i18n/MessageFormatter.php"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a2df6b55a2f68a2c877fc6f833dcc4f4b287a287b35c40d4fe86163d2f18e6"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveField.getClientOptions (cognitive 29): ActiveField.getClientOptions has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15, ternaries 7, boolean chains 4, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/widgets/ActiveField.php"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"140d60268d8b810560c181969cfae43497203586e675d79d80e7ede3f8e0447c"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 29): (anonymous) has cognitive complexity 29 (threshold 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":"framework/assets/yii.activeForm.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d644f8b36075fc9ff18795f9408c035d1c1e8505801e458c3747a0cc51764a"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveQuery.prepare (cognitive 28): ActiveQuery.prepare has cognitive complexity 28 (threshold 15). Drivers by points: if/else 23, ternaries 4, 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":"framework/db/ActiveQuery.php"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"06867c5f8f3eaf75c45a9477f1ed4b711534ef6df5c4b20405920a58060793a0"}},{"ruleId":"D2","level":"warning","message":{"text":"ColumnSchema.typecast (cognitive 28): ColumnSchema.typecast has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 14, if/else 13, match/switch 1 (nesting depth added 5). 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":"framework/db/ColumnSchema.php"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"01364e07853e11600e7fde6ca183a204e3012e69d9f6a3c2af15feb75e18283b"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseVarDumper.exportInternal (cognitive 28): BaseVarDumper.exportInternal has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15, loops 8, error handling 3, boolean chains 1, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/helpers/BaseVarDumper.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bd05df7be222262a30f4969b1a3abe4a5863e8f49a19bf5e815e35f9c3e691"}},{"ruleId":"D2","level":"warning","message":{"text":"Logger.getProfiling (cognitive 28): Logger.getProfiling has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13, loops 10, boolean chains 5 (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":"framework/log/Logger.php"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac47e6202aa4ced79802a28095758f9570879a8f0ed216b618cc050995c5f97"}},{"ruleId":"D2","level":"warning","message":{"text":"CompositeAuth.authenticate (cognitive 27): CompositeAuth.authenticate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, boolean chains 6, loops 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":"framework/filters/auth/CompositeAuth.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1121374264b5faaebb043f535951e27659710c5e2786a0a56d3c31b11d56f9"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseArrayHelper.filter (cognitive 27): BaseArrayHelper.filter has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17, loops 8, boolean chains 2 (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":"framework/helpers/BaseArrayHelper.php"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9cc39fc58e5a383ebe7a3d5451a6aa83365be8f34a3bba03f5e7f142751a7c"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseJson.processData (cognitive 27): BaseJson.processData has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17, loops 8, boolean chains 1, ternaries 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":"framework/helpers/BaseJson.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"32110e2beef2352b28c2a404a3aaf22de4850a3fbad61475f68ed6f1d977855c"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlRule.parseRequest (cognitive 27): UrlRule.parseRequest has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, boolean chains 3, 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":"framework/web/UrlRule.php"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"8755f3718324cb76bc81aea887daa4366eda9007c43235c23479d5d72102d64e"}},{"ruleId":"D2","level":"warning","message":{"text":"Event.off (cognitive 26): Event.off has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, loops 4, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/base/Event.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf1c975989e178512637f70209e805516ad19a5f27b523f1920d4773fa1b76f"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.resolve (cognitive 26): Request.resolve has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, ternaries 8, 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":"framework/console/Request.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6901cf23bdafafb0d668cff633afd1a17f9c4114085cab822b6b73820d84cb"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseMigrateController.getNewMigrations (cognitive 26): BaseMigrateController.getNewMigrations has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, loops 7, boolean chains 2 (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":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1221e00b02d495d8301610b8440a1bfaa6b8245198599f3e0b2935204b46937"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryTrait.filterCondition (cognitive 26): QueryTrait.filterCondition has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, loops 4, boolean chains 3, 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":"framework/db/QueryTrait.php"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb282d72df20e9ed55dd80f1c90d282003e22629aea04a031b06735f4060da1"}},{"ruleId":"D2","level":"warning","message":{"text":"InConditionBuilder.buildCompositeInCondition (cognitive 26): InConditionBuilder.buildCompositeInCondition has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 13, if/else 9, loops 4 (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":"framework/db/mssql/conditions/InConditionBuilder.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb4bdcd763350c96867acac4fd341bc1af83af3bca3ffb3fee58a8a2cdbc810"}},{"ruleId":"D2","level":"warning","message":{"text":"InConditionBuilder.buildCompositeInCondition (cognitive 26): InConditionBuilder.buildCompositeInCondition has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 13, if/else 9, loops 4 (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":"framework/db/sqlite/conditions/InConditionBuilder.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f4eb9d1e18c7f44345e159fda5009ae6c683eb29961cefc6b0881a902cadcb"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseConsole.getScreenSize (cognitive 26): BaseConsole.getScreenSize has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, boolean chains 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":"framework/helpers/BaseConsole.php"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c423adbd994a8b3b8169a15f73422e1b14ac7880d3cd725f0c9b77d862814e"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseStringHelper.truncateHtml (cognitive 26): BaseStringHelper.truncateHtml has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, loops 5, ternaries 5, 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":"framework/helpers/BaseStringHelper.php"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c45c3e0bf8d7e8a0674c0ea7ef1dcbf562947745ec6d3125d0b5bb5b7eaee0"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.parseAcceptHeader (cognitive 26): Request.parseAcceptHeader has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17, ternaries 5, loops 4 (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":"framework/web/Request.php"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3799275e94e22980c85d7ff4adc1992b413bb2bc076aa11baa35909fc828d7c"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseMigrateController.actionUp (cognitive 25): BaseMigrateController.actionUp has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 11, if/else 10, 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":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f98c289e7f1afdabfadf8d007327353521fa9bceed167d2de72817db72afa0"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveRelationTrait.buildBuckets (cognitive 25): ActiveRelationTrait.buildBuckets has cognitive complexity 25 (threshold 15). Drivers by points: loops 14, if/else 7, ternaries 3, boolean chains 1 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/db/ActiveRelationTrait.php"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"4233209d9082de4e46c2e01569593225474de2dbff06468462402a74690e5f99"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBuilder.insert (cognitive 25): QueryBuilder.insert has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11, ternaries 10, boolean chains 2, loops 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":"framework/db/mssql/QueryBuilder.php"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a05cd94d5ae657b1cf1737fd9c58b0371ff06f06c3ecfbbe47ea1ebd283d7c7"}},{"ruleId":"D2","level":"warning","message":{"text":"AccessRule.matchRole (cognitive 25): AccessRule.matchRole has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, ternaries 5, boolean chains 1, loops 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":"framework/filters/AccessRule.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53d2c24d2f8306ebdd22972b09d12d24657b0e5d65a93b8d00e7131532d8a99"}},{"ruleId":"D2","level":"warning","message":{"text":"Formatter.asRelativeTime (cognitive 25): Formatter.asRelativeTime has cognitive complexity 25 (threshold 15). Drivers by points: if/else 25 (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":"framework/i18n/Formatter.php"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c0a991c08b2eb8cc8619e1958c2558017e6137bc351f0c5929a36791bd1513"}},{"ruleId":"D2","level":"warning","message":{"text":"Target.filterMessages (cognitive 25): Target.filterMessages has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, boolean chains 6, loops 6 (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":"framework/log/Target.php"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"1500dac79b9b2850c42e62ebacbe0373f4412fea8e78a9bf0eebf1c46d006866"}},{"ruleId":"D2","level":"warning","message":{"text":"Response.sendContent (cognitive 25): Response.sendContent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, loops 6, boolean chains 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":"framework/web/Response.php"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b641a6e2daba6c59d67fc9276c494f5978fd3e47efb80b0668806c2ef2ec85"}},{"ruleId":"D2","level":"warning","message":{"text":"User.renewAuthStatus (cognitive 25): User.renewAuthStatus has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, boolean chains 7, 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":"framework/web/User.php"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"804ac7f307c23d5b572be7692a5e29164dcc7b37743365516b738d455dabe997"}},{"ruleId":"D2","level":"warning","message":{"text":"XmlResponseFormatter.buildXml (cognitive 25): XmlResponseFormatter.buildXml has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, boolean chains 5, loops 5 (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":"framework/web/XmlResponseFormatter.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"727fadc66d9d9842742bf3e2ddba01c37435af3c6007726af16151a2a0677d8c"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.loadColumnSchema (cognitive 24): Schema.loadColumnSchema has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, boolean chains 5 (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":"framework/db/sqlite/Schema.php"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31f4fd388740479995f3ece80028194ba4b09256cc2a05273e37be75b2cc790"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseVarDumper.dumpInternal (cognitive 24): BaseVarDumper.dumpInternal has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14, loops 6, ternaries 2, boolean chains 1, match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. 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. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/helpers/BaseVarDumper.php"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f53228ea1eb9c3cec5e55a6e91bc8f15087a60e6e3341259ad3a69c641c5150"}},{"ruleId":"D2","level":"warning","message":{"text":"Event.trigger (cognitive 23): Event.trigger has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 6, 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":"framework/base/Event.php"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"0257af17f7bf548021960288e21456da179e7c0f69778f47d67a56906f241d7b"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetController.adjustCssUrl (cognitive 23): AssetController.adjustCssUrl has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, boolean chains 4, loops 3 (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":"framework/console/controllers/AssetController.php"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7886b08fe4bfd49f0341e8984f4db7fa7fd17ce04f18c38e34e5299ac78666"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveQuery.removeDuplicatedModels (cognitive 23): ActiveQuery.removeDuplicatedModels has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 7 (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":"framework/db/ActiveQuery.php"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19726b63615ab9d1375506abe9570359c56b71567d2fa7380e9f7c41487f5d5"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveQuery.joinWithRelation (cognitive 23): ActiveQuery.joinWithRelation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 6, ternaries 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/db/ActiveQuery.php"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"835f8d448b4b942d6869155af72b2d26dafa16d550718cdaeb633f62dfe02b19"}},{"ruleId":"D2","level":"warning","message":{"text":"Cors.prepareHeaders (cognitive 23): Cors.prepareHeaders has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, boolean chains 2, ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/filters/Cors.php"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46b30c9328ce36f46f5cc5df9c346996f6de855304d82177aec4df10ac1a58b"}},{"ruleId":"D2","level":"warning","message":{"text":"Logger.flush (cognitive 23): Logger.flush has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, loops 2, 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":"framework/log/Logger.php"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"0648a61c6878b6d4bf7767d24c3a625cfaecdc900abecfb429a9d84cc90154ce"}},{"ruleId":"D2","level":"warning","message":{"text":"PhpManager.load (cognitive 23): PhpManager.load has cognitive complexity 23 (threshold 15). Drivers by points: loops 9, ternaries 8, if/else 6 (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":"framework/rbac/PhpManager.php"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf57bdbafdffe55a65c3f4f99f4f1bc193448c07d93681b5f088d2245f31da16"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.bindActionParams (cognitive 23): Controller.bindActionParams has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, error handling 6, boolean chains 3, 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":"framework/web/Controller.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9714a290f2591487da6d23d19f5a82b0ba3e5f7e87f95824418f6001841118b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Response.sendCookies (cognitive 23): Response.sendCookies has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, boolean chains 3, ternaries 3, 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":"framework/web/Response.php"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53a94a67cda4eb8ea3de9597b8fd2b3d8a9b8035998909dcba7041bd7845fb6"}},{"ruleId":"D2","level":"warning","message":{"text":"Component.off (cognitive 22): Component.off has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 4, 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":"framework/base/Component.php"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f7dbcb1ffcc3ba82a68e2728b7abaabdaf4669a070a5ab3190b00a9c89a822"}},{"ruleId":"D2","level":"warning","message":{"text":"Event.hasHandlers (cognitive 22): Event.hasHandlers has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 7, 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":"framework/base/Event.php"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e1fd372357acc2d360a768773191dc55ee6fb70222236ad0eca4a20e67a228"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetController.buildTarget (cognitive 22): AssetController.buildTarget has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 5 (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":"framework/console/controllers/AssetController.php"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97fd6fa71b942f2be202676472de02ac651f5af57cd7fa6d3181335c21e2961"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveDataFilter.buildAttributeCondition (cognitive 22): ActiveDataFilter.buildAttributeCondition has cognitive complexity 22 (threshold 15). Drivers by points: if/else 20, loops 2 (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":"framework/data/ActiveDataFilter.php"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef54e958e5c8a1ddf20230c4ed820e956b0aa0708da53b6c86c52d70c248c311"}},{"ruleId":"D2","level":"warning","message":{"text":"Sort.createSortParam (cognitive 22): Sort.createSortParam has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, ternaries 7, 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":"framework/data/Sort.php"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0481604e3b36dea220634e6d020bcd69684cd0780f7d558e9a26eeb43973d0a"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveQuery.buildJoinWith (cognitive 22): ActiveQuery.buildJoinWith has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 6, 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":"framework/db/ActiveQuery.php"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec2731e8ae80e4f5914b24d026b84e60afc04c0eb8915ff4b1e0c987c892091"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveQuery.joinWithRelations (cognitive 22): ActiveQuery.joinWithRelations has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, ternaries 5, loops 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":"framework/db/ActiveQuery.php"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"54727e8c452beb789c86523730356d6297aa478e8d9ee235cab2079864b9a2da"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.createColumn (cognitive 22): Schema.createColumn has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 3, 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":"framework/db/oci/Schema.php"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1eead1079e3ab446ba8421c7449a790ac47980b8e7b7e1d81aaed134c7ae9d3"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseConsole.ansiColorizedSubstr (cognitive 22): BaseConsole.ansiColorizedSubstr has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 3, loops 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":"framework/helpers/BaseConsole.php"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0aa805811b3aafb1222c207d44f42a980976f8e03bbec5dd6fb3d928e388d6"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseHtml.getAttributeValue (cognitive 22): BaseHtml.getAttributeValue has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10, ternaries 6, loops 4, 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":"framework/helpers/BaseHtml.php"},"region":{"startLine":2291}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2cefd3bc364ebde9cdc056128e7cb19ccda53259372fc186f6774bd13e886a"}},{"ruleId":"D2","level":"warning","message":{"text":"Formatter.normalizeDatetimeValue (cognitive 22): Formatter.normalizeDatetimeValue has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8, boolean chains 7, if/else 6, error handling 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":"framework/i18n/Formatter.php"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcc72c63a576e9777f2f634175a3010f88ece736790848725c3adbfd6d46305"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlRule.parseRequest (cognitive 22): UrlRule.parseRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11, ternaries 5, loops 4, boolean chains 2 (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":"framework/rest/UrlRule.php"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"b597a8d36031a37ee9d914f3b25d9258f9ea474128ef03a4f30734f30afadcb3"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueValidator.validateAttribute (cognitive 22): UniqueValidator.validateAttribute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, ternaries 5, loops 3, 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":"framework/validators/UniqueValidator.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2ca40daca2dbacba29d8d859e00cb3fa33b1de7b59cec5efa5340f3a430c61"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetBundle.publish (cognitive 22): AssetBundle.publish has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 4, boolean chains 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":"framework/web/AssetBundle.php"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"04687e3e6228f0608f1ef9f5dbe356555954eeed9d66cf6ad6a7350980302f71"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetManager.publishDirectory (cognitive 22): AssetManager.publishDirectory has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 4, error handling 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/web/AssetManager.php"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0457c3376e9cd3d63871f6400d08ed20194face10a3d2d9ea824fe960510b3"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorHandler.renderException (cognitive 22): ErrorHandler.renderException has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, boolean chains 3, ternaries 3 (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":"framework/web/ErrorHandler.php"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbd070e270d86fc0837bebed8bf26e55833e3afc29a3325b7710113517394ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.getHeaders (cognitive 22): Request.getHeaders has cognitive complexity 22 (threshold 15). Drivers by points: loops 13, if/else 9 (nesting depth added 14). 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":"framework/web/Request.php"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5f038cc5d6ff6c51d0398dcf9c67988a187c43b4f0a06ee483eaf542158e55"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorHandler.renderException (cognitive 21): ErrorHandler.renderException has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, boolean chains 4 (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":"framework/console/ErrorHandler.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"96aa534ec1d0d1388fe4cfac096dedc11ecd1104fb47c16139e4cd46728971ce"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseMigrateController.actionRedo (cognitive 21): BaseMigrateController.actionRedo has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, loops 5, ternaries 4 (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":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65732bc766898f13deb92d3a32d7c39e7886d0a0870ee498cc67c26a748c4c9"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseMigrateController.actionMark (cognitive 21): BaseMigrateController.actionMark has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 10 (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":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa45fc306df8876204b07528571518b2f0d6edb4a757f551b97ff08a65a13dde"}},{"ruleId":"D2","level":"warning","message":{"text":"Table.calculateRowsSize (cognitive 21): Table.calculateRowsSize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, 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":"framework/console/widgets/Table.php"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d900fabdcab2d88dd318e3403567f1d991d72fdc60dbdd664209e1323d6da3"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBuilder.oldUpsert (cognitive 21): QueryBuilder.oldUpsert has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 7, ternaries 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/db/pgsql/QueryBuilder.php"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a25386ed42558e3cac82edd7720298b783abcc2af8c18bf7750e4934e8afde"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.findColumns (cognitive 21): Schema.findColumns has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, 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":"framework/db/pgsql/Schema.php"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"055f3417e83731c4a201c62c10029dd46aefcb72ed30a02a207fa84ed8067240"}},{"ruleId":"D2","level":"warning","message":{"text":"Schema.loadTableConstraints (cognitive 21): Schema.loadTableConstraints has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, loops 4, boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/db/sqlite/Schema.php"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3d9ce331321d46a75473c0358bfc26b2801b9a6c06075168d38fb34753c7a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentNegotiator.negotiateLanguage (cognitive 21): ContentNegotiator.negotiateLanguage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, loops 5, boolean chains 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":"framework/filters/ContentNegotiator.php"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee14354c077ea8b965c366309233c818442d2849909af04554c78973d3f3d9e"}},{"ruleId":"D2","level":"warning","message":{"text":"PhpManager.removeAllItems (cognitive 21): PhpManager.removeAllItems has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, loops 8 (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":"framework/rbac/PhpManager.php"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"116b8caba64a26b99bdb52e10f2360d0cd60afcf36b4a65fb7bacbcf8435f63c"}},{"ruleId":"D2","level":"warning","message":{"text":"DateValidator.init (cognitive 21): DateValidator.init has cognitive complexity 21 (threshold 15). Drivers by points: if/else 17, boolean chains 4 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/validators/DateValidator.php"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"783b153f49ebb22ef69dfea1f4a4e7c130b958c4e4aad25aebb2714afea2890f"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseMigrateController.actionDown (cognitive 20): BaseMigrateController.actionDown has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, ternaries 8, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d154ce5cfb015342821807a225342bc06d2ca7be96b76c730781f6b56b714be8"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveDataProvider.prepareKeys (cognitive 20): ActiveDataProvider.prepareKeys has cognitive complexity 20 (threshold 15). Drivers by points: loops 12, if/else 8 (nesting depth added 11). 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":"framework/data/ActiveDataProvider.php"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7b3a7be3d9a67e05d92aef14fa01b3703a19f0b0cc9a55a0fc6f7a795b605d"}},{"ruleId":"D2","level":"warning","message":{"text":"Connection.openFromPoolSequentially (cognitive 20): Connection.openFromPoolSequentially has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, error handling 5, loops 3, boolean chains 1, 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":"framework/db/Connection.php"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"30443ee3c5a07acf906203616a686fd4223e9246a584dd1e5beb38c22a652351"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseConsole.ansiToHtml (cognitive 20): BaseConsole.ansiToHtml has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, loops 5, 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":"framework/helpers/BaseConsole.php"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"b851f974a508f0c87f7117525a539dedea9085ccaff6518e5c61f8d0ae0dcdde"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseHtml.checkboxList (cognitive 20): BaseHtml.checkboxList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, ternaries 5, boolean chains 4, 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":"framework/helpers/BaseHtml.php"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"290ea5a65636527a6cb2c879fe9077915e5b1b06ebd0008286d8d801944f6a31"}},{"ruleId":"D2","level":"warning","message":{"text":"MultipartFormDataParser.addFile (cognitive 20): MultipartFormDataParser.addFile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 7 (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":"framework/web/MultipartFormDataParser.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c153bcfeb33bfd4dc2080604f7a55f5bf0d6c2a2a70d2a7912ce63fd066403"}},{"ruleId":"D2","level":"warning","message":{"text":"View.registerFile (cognitive 20): View.registerFile has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, ternaries 6, boolean chains 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":"framework/web/View.php"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"686b4fbf891d902a2ba4f0e105723804bd71c5ab620ecd0a2bd9420d856d80ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ip (cognitive 20): ip has cognitive complexity 20 (threshold 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":"framework/assets/yii.validation.js"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a22795d389a9fd2017a99964b4ba2d9df322f0aa1e5587b2b9adbf8bb7188d"}},{"ruleId":"D2","level":"warning","message":{"text":"SqlToken.tokensMatch (cognitive 19): SqlToken.tokensMatch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/db/SqlToken.php"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26d9d983559900809ecbdf6847da6f1223ac9984f7494df31394b99753c868b"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBuilder.upsert (cognitive 19): QueryBuilder.upsert has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 8, 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":"framework/db/oci/QueryBuilder.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"9165df592833489fbe0faa57c946971746d2aec89546b843e9e1a4d6a993831e"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseArrayHelper.index (cognitive 19): BaseArrayHelper.index has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, loops 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":"framework/helpers/BaseArrayHelper.php"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cc503f8359e1d284236f50c1ca57986c3d04b6f0164bf5817666fadbe5a38b"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseVarDumper.exportClosure (cognitive 19): BaseVarDumper.exportClosure has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 3, ternaries 3, 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":"framework/helpers/BaseVarDumper.php"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f844b91e779528354baec1b071988af84225a2cc6695e600223342fd3b609f"}},{"ruleId":"D2","level":"warning","message":{"text":"Formatter.formatNumber (cognitive 19): Formatter.formatNumber has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/i18n/Formatter.php"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ea504964d0465552f62b9236e5bd13c86b43e16437addca03388c2f4cf778e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExistValidator.checkTargetAttributeExistence (cognitive 19): ExistValidator.checkTargetAttributeExistence has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, ternaries 5, loops 4 (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":"framework/validators/ExistValidator.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a7ca4115621360af02436b39ea39334c2ee543b3f28aee71e057fd9f4459b3"}},{"ruleId":"D2","level":"warning","message":{"text":"UniqueValidator.modelExists (cognitive 19): UniqueValidator.modelExists has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, loops 7, boolean chains 2 (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":"framework/validators/UniqueValidator.php"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b97b00ea8f031811ee261365f0ef14b04032b91cdbd9c17d1d2e01d8b60925"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorHandler.argumentsToString (cognitive 19): ErrorHandler.argumentsToString has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15, ternaries 3, 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":"framework/web/ErrorHandler.php"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"53eff5ec07e4a648308f51c659180e8b6de2aac8a172d0d65eafec63eb31624c"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.loadCookies (cognitive 19): Request.loadCookies has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 4, boolean chains 2 (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":"framework/web/Request.php"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce97f138dd35a3c128d525c1aaf7c47806c26cd3084c81b4840738059fd17a8f"}},{"ruleId":"D2","level":"warning","message":{"text":"Menu.isItemActive (cognitive 19): Menu.isItemActive has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 5, loops 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/widgets/Menu.php"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c207507ef580a273bb9e57687f1cf20d1c0e03817048dfc08a6e3e3976039f7"}},{"ruleId":"D2","level":"warning","message":{"text":"validateFile (cognitive 19): validateFile has cognitive complexity 19 (threshold 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":"framework/assets/yii.validation.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"428b9319e491e71fdfe954ea266e0a59772bf8425c35eaf27baf1625523403d2"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseYii.setAlias (cognitive 18): BaseYii.setAlias has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, ternaries 3 (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":"framework/BaseYii.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e104f8fdaa5fdd8aedf24c9eda85d7d12c4f48c56752e55b96c2b478e26950"}},{"ruleId":"D2","level":"warning","message":{"text":"Cache.multiGet (cognitive 18): Cache.multiGet has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, ternaries 4, boolean chains 2, loops 2 (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":"framework/caching/Cache.php"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c86e7cafcfa9bcd925d57b50bba9c63cba13bcbe7419ec0a951af46b7f4de9f"}},{"ruleId":"D2","level":"warning","message":{"text":"MemCache.getMemcache (cognitive 18): MemCache.getMemcache has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, ternaries 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":"framework/caching/MemCache.php"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb81665791d01e667f2dfff879fc80d785b72c1d5dcf91dca1c2e9af7a6c7f0"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.getActionOptionsHelp (cognitive 18): Controller.getActionOptionsHelp has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, 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":"framework/console/Controller.php"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"3052a6bde09d896aa53e1ddf02f4c2f68ec544eaa490ab866503d95905118f17"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseMigrateController.beforeAction (cognitive 18): BaseMigrateController.beforeAction has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 5, 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":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7efad48b80ac68f88373e4006394326aa82bea23605c8b511f2259c83298aaa"}},{"ruleId":"D2","level":"warning","message":{"text":"DataFilter.validateAttributeCondition (cognitive 18): DataFilter.validateAttributeCondition has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, loops 2 (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":"framework/data/DataFilter.php"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b079fc1b775cae7269b451049f9dcfbd9090235d4537094b10eb2053f9beda"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveRelationTrait.prefixKeyColumns (cognitive 18): ActiveRelationTrait.prefixKeyColumns has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 6, boolean chains 2 (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":"framework/db/ActiveRelationTrait.php"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"c312c4ec09ef13dca0416a6603e0499160b0977bfe073fe7a8c6917f49144d21"}},{"ruleId":"D2","level":"warning","message":{"text":"Command.getRawSql (cognitive 18): Command.getRawSql has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7, if/else 6, boolean chains 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":"framework/db/Command.php"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd99de6cad43518eea34e718d8e4be7b9a6de4ca135e4a0d9f535483c783ae6"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.cleanUpTableNames (cognitive 18): Query.cleanUpTableNames has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, 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":"framework/db/Query.php"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"b619ff3ad0e48a4cf677ebbfa7d2a470720e2fcd0059d0368b655033cfcc3f8a"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBuilder.buildSelect (cognitive 18): QueryBuilder.buildSelect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 1, loops 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":"framework/db/QueryBuilder.php"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"190417fa3637c9549c96234a92157d01e0de5417ad0942277a25cda641ad8494"}},{"ruleId":"D2","level":"warning","message":{"text":"InConditionBuilder.buildCompositeInCondition (cognitive 18): InConditionBuilder.buildCompositeInCondition has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 4, ternaries 4 (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":"framework/db/conditions/InConditionBuilder.php"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"017bab2edadcb0ea7e7f82dbd1bc534eb390876ad030bebb2ed8fd22be5e59b6"}},{"ruleId":"D2","level":"warning","message":{"text":"Instance.ensure (cognitive 18): Instance.ensure has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 3, error handling 2, 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":"framework/di/Instance.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74d77bc810653695c797737be613984e261097a06b883131a7e8529dd5ab4fd"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageFormatter.tokenizePattern (cognitive 18): MessageFormatter.tokenizePattern has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 3, 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":"framework/i18n/MessageFormatter.php"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"23869860cbf34b217f5687a334e691c69760635495c4137bb97075cd9ac64728"}},{"ruleId":"D2","level":"warning","message":{"text":"Logger.log (cognitive 18): Logger.log has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 3, loops 2, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/log/Logger.php"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5f6ecfc2bcc45328edd6720ba8a0c321dc11ebdf2a906683a3917547aa803e"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexAction.prepareDataProvider (cognitive 18): IndexAction.prepareDataProvider has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (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":"framework/rest/IndexAction.php"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefd33cac89332cc5101ff211e02e8bffd5d9d3ad39a122dbf73b29cc5f590f0"}},{"ruleId":"D2","level":"warning","message":{"text":"DateValidator.validateAttribute (cognitive 18): DateValidator.validateAttribute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 16, boolean chains 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":"framework/validators/DateValidator.php"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d00f11b7df5e64a1f38c957625363669e19c1b699a6e328022276886df8bc0d"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.filterSingleTypeActionParam (cognitive 18): Controller.filterSingleTypeActionParam has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 5, ternaries 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":"framework/web/Controller.php"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9e98cd8919af4a69a8a6e95529709466b0f798bc41f087d2193d6b0fdb7c74"}},{"ruleId":"D2","level":"warning","message":{"text":"View.renderBodyEndHtml (cognitive 18): View.renderBodyEndHtml has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, 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":"framework/web/View.php"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"d700313962cf992f1e35a2156927bae09d33ef5022e04a369bb1b764c084ffe6"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorHandler.handleError (cognitive 17): ErrorHandler.handleError has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 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":"framework/base/ErrorHandler.php"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b386c729b988c64a491c742ee0ca2932091c452fe54122643a2467a353eaeb"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseMigrateController.actionHistory (cognitive 17): BaseMigrateController.actionHistory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, ternaries 6, 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":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"815b143fdf1ec357dad55293b2f3cdc108e870a14510b3e0a3046add64ea69f1"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseMigrateController.actionNew (cognitive 17): BaseMigrateController.actionNew has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 6, loops 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":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5722e12ec9b6ca1b55eb5403d5e36417a5132ed086f799bebb57ee81a3e431b"}},{"ruleId":"D2","level":"warning","message":{"text":"HelpController.getModuleCommands (cognitive 17): HelpController.getModuleCommands has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 6, 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":"framework/console/controllers/HelpController.php"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"231aaadb3c595a1a59062112f971ddf1aea7d5f674a81d96c731caa059e43c75"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageController.actionExtract (cognitive 17): MessageController.actionExtract has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, ternaries 5, 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":"framework/console/controllers/MessageController.php"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba32a7ad8bacaed815f18e04426728d6192cc20c0af745ae1241e1c5de1f89b"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrateController.generateMigrationSourceCode (cognitive 17): MigrateController.generateMigrationSourceCode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 3, ternaries 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":"framework/console/controllers/MigrateController.php"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"594a426f3a744e79819cc35938782135eb4a7c7d52cedf4bd75f34a38948bf8a"}},{"ruleId":"D2","level":"warning","message":{"text":"MigrateController.parseFields (cognitive 17): MigrateController.parseFields has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8, if/else 6, loops 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":"framework/console/controllers/MigrateController.php"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e6fd945c2a8711c55a346e077ee5904c1452fb911a479f21a2a476e08bda04"}},{"ruleId":"D2","level":"warning","message":{"text":"ActiveRelationTrait.addInverseRelations (cognitive 17): ActiveRelationTrait.addInverseRelations has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, ternaries 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":"framework/db/ActiveRelationTrait.php"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6189c995f9330cacc8258563e88c466629ea1bf5981f8350089b74875dbe93ef"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.column (cognitive 17): Query.column has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"framework/db/Query.php"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21b74e6703e8653cf587e3105ab87a8577060cd26f162fb1cb0c8f9b739b80a"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBuilder.upsert (cognitive 17): QueryBuilder.upsert has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 6, 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":"framework/db/mssql/QueryBuilder.php"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b06b6e36dc9f168925776dab61130a1e937fa48502c9ea9d8b645b68b2b90e"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseFileHelper.normalizePath (cognitive 17): BaseFileHelper.normalizePath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 6, loops 2, 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, 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":"framework/helpers/BaseFileHelper.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"20af38ca722af47ff9e20cafe0aff7e94c6f6c219e846540fb8ee4c78d5691af"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseFileHelper.removeDirectory (cognitive 17): BaseFileHelper.removeDirectory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 2, 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":"framework/helpers/BaseFileHelper.php"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbc872f6f0109280204007f3079233ab9cf1387bb3de2059ae816934dc06073"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseFileHelper.lastExcludeMatchingFromList (cognitive 17): BaseFileHelper.lastExcludeMatchingFromList has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, 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":"framework/helpers/BaseFileHelper.php"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"89450ddc71bc42cfd94e8da70384b0f815a71d6c90b733e4757646d3cce32aa5"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseHtml.beginForm (cognitive 17): BaseHtml.beginForm has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 4, 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":"framework/helpers/BaseHtml.php"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3b8078c8e2c5c7711c2bbf874a816ded4346d3746b573f1f713108d26ec847"}},{"ruleId":"D2","level":"warning","message":{"text":"GettextMoFile.load (cognitive 17): GettextMoFile.load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 4, loops 3 (nesting depth added 3). 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":"framework/i18n/GettextMoFile.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85b337068a49a958e4fd6222e906e5d468a4cd832993b0d0e6e473a2d1a004a"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailValidator.validateValue (cognitive 17): EmailValidator.validateValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, 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":"framework/validators/EmailValidator.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4943c52a0e6b33055fbe3ca1b70b444fc911e0d6b9ba6ea6ae7aa04d010e1ac"}},{"ruleId":"D2","level":"warning","message":{"text":"Response.redirect (cognitive 17): Response.redirect has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 4 (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":"framework/web/Response.php"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"36690a70ab8448e17272a8ac0b849c01b1a1db7665cdacbcedcf2af39c0e1f68"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorException.__construct (cognitive 16): ErrorException.__construct has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, 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":"framework/base/ErrorException.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bff291a97c3a88d6dce2eba5677428bc9adc00dc28b1ea6d6ae39205806560e"}},{"ruleId":"D2","level":"warning","message":{"text":"HelpController.getDefaultHelp (cognitive 16): HelpController.getDefaultHelp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, loops 6 (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":"framework/console/controllers/HelpController.php"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"d015cc1f36c2d0b3ee112bcc43ba4d22b0a6789f53798502af5defcbeea12e58"}},{"ruleId":"D2","level":"warning","message":{"text":"Command.queryInternal (cognitive 16): Command.queryInternal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, error handling 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":"framework/db/Command.php"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d12dd2166838afa624390f2238e3cd560fc22ca4478dbe73da7b6915bc41ae7"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.getUniqueColumns (cognitive 16): Query.getUniqueColumns has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"framework/db/Query.php"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"24945acbee96c7c3d4b719328ab4b6336ab73a326ef8840444979e64ce4fd39c"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryBuilder.upsert (cognitive 16): QueryBuilder.upsert has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, loops 6, 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":"framework/db/cubrid/QueryBuilder.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f2beec997bd2ec3dc1ce079ac83e349725674b0ff6d7a692f469575f2b3914"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseArrayHelper.getValue (cognitive 16): BaseArrayHelper.getValue has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 2, error handling 2, loops 2 (nesting depth added 4). 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":"framework/helpers/BaseArrayHelper.php"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce7ab29bb919598ce585485c592337cf46d79464efe581e1a2e7e33e68212b1"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseFileHelper.matchPathname (cognitive 16): BaseFileHelper.matchPathname has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 2, 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":"framework/helpers/BaseFileHelper.php"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b528263861437322654cc3dbd0925a6de558bda5eb04710ef5782faf4a78a0b"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseHtml.radioList (cognitive 16): BaseHtml.radioList has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, ternaries 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":"framework/helpers/BaseHtml.php"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"1739bb84f369e31a86734d725fda8a98ac5b04bd1ef2c06a31b8b789be3da6b3"}},{"ruleId":"D2","level":"warning","message":{"text":"Formatter.asCurrency (cognitive 16): Formatter.asCurrency has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, ternaries 2, 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":"framework/i18n/Formatter.php"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a25dad39d0cfff934c0c5a8841e9d8329b2ef33c8a3b6fa8efee446ac2967d7"}},{"ruleId":"D2","level":"warning","message":{"text":"NumberValidator.validateAttribute (cognitive 16): NumberValidator.validateAttribute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, 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":"framework/validators/NumberValidator.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b56d73286154a33ff0b90225421c5ec0aaaf1426badad1895d49d5941a8572"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Request: TooManyMethods \u2014 83 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":"framework/web/Request.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae931aace2fadff5820bcab09ab4acb8aa6f40961fd4f5518d19f3ce5053524"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryBuilder: TooManyMethods \u2014 77 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":"framework/db/QueryBuilder.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8baca739976123cfcb7c9a90c8e1e0528b157e5e9d9f4c53302db141b9f3eed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseHtml: TooManyMethods \u2014 74 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":"framework/helpers/BaseHtml.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0d6b876b9539a8fa3bc3a7cd7865aaf273380fd8c8d951cafd33130f5a35d4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseActiveRecord: 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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3fa58bc1e637d58d01f0e7a572a3e24dfa8c9b0e0e37ffb5128bf94dfe5ec4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Command: 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":"framework/db/Command.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abb5606304fc29c604b4f878a56db7b3e814de6d5e069d4b569872b977a736b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Session: TooManyMethods \u2014 59 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":"framework/web/Session.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fea1125a8cbf05caa266a09e507bdb7b0871b8b5fce75ca7fec850ff3d222f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseConsole: 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":"framework/helpers/BaseConsole.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecbb1f3ad0631b7e0f13ea208f0ff29af7f4d259388cd209d39f27c952c44977"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Query: 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":"framework/db/Query.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"7017979682f133ad9f2c2f31058d75f26761f4fd15bc31f76252deb321c64685"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DbManager: TooManyMethods \u2014 49 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":"framework/rbac/DbManager.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"787af0417847e65c699d1ea79268da4661bd1aba72bcb05503b01ebdf35b0350"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PhpManager: TooManyMethods \u2014 47 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":"framework/rbac/PhpManager.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce582b624b022c6cf41900a020920bbcb8f9e36ed7d01edd6c3f06a3d8ea1f28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: i18n/Formatter.php: FileTooLong \u2014 780 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Formatter (55-2197). 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":"framework/i18n/Formatter.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e58029f4450381c7622cf69e350038355c5b2e501a0a8992af5898afcb7209"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Formatter: TooManyMethods \u2014 46 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":"framework/i18n/Formatter.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffda21584c006883e4363688c3059135c9cea4dbc2a738b59dcd3807fa86795d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Model: TooManyMethods \u2014 43 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":"framework/base/Model.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c69ab275365373c49dc470602babdc7276cef4910f48f916a2da4a06b00c0b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: helpers/BaseHtml.php: FileTooLong \u2014 691 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: BaseHtml (26-2411). 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":"framework/helpers/BaseHtml.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7003b87e4a7761b9c1452962416173ce18b9549f409b00d780d3c0bd922ae9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: web/Request.php: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Request (92-2036). 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":"framework/web/Request.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"daba11f337c582ede8c05ed124ade59c60226f5e613a72bb9cf10dbc42dffa93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: db/BaseActiveRecord.php: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: BaseActiveRecord (43-1863). 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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0e0dbae67e87da5ba3f135e3c50054da87181112fa3f5b710157c39b5d19a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Connection: 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":"framework/db/Connection.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fffa1d8f62cde1a082fb84e4108a0dfbb635b1b67d64cab4e2d5f7d1e65574e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Migration: 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":"framework/db/Migration.php"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9670ed001de808f32e58fa04485870c2d080bdb8366f04e410c7790f13104acc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DataFilter: 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":"framework/data/DataFilter.php"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e902d7155cae5898fa38741a2bb8638cd4dde64762a40281f9d1b4eb824ba7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Response: 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":"framework/web/Response.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09fb4a59d50a478495c490768f558a647a32de182a4ac0978f02f9c0d0835b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: db/QueryBuilder.php: FileTooLong \u2014 544 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":"framework/db/QueryBuilder.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d784c8774a01d2100479ddb2b7fff24ac94f6ac3209cbdfd12c7d0651effc0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Application: 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":"framework/base/Application.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cd19dec95b54f878f392b2786609c6a9d17e93b9012a58aabd45b934d671b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rbac/DbManager.php: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DbManager (40-1137). 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":"framework/rbac/DbManager.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6181980abbee40402ae4af3b9b5a71f7145a19c926ddee6f35b7719b68338a12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): framework/console/controllers/BaseMigrateController.php:261-276 | framework/console/controllers/BaseMigrateController.php:325-340 \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 \u0060framework/console/controllers/BaseMigrateController.php:261\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":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c8a7f206bb55802d1e8be9d2e7c325fa8e56fbf2f05e5aa9b83faceed3719a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): framework/db/QueryBuilder.php:230-244 | framework/db/sqlite/QueryBuilder.php:486-500 \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":"framework/db/QueryBuilder.php"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b814d9361a6c41ac72fdbc6c51857479a1c716ecce12584f5c70c907cac6d40f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): framework/requirements/YiiRequirementChecker.php:255-269 | framework/web/MultipartFormDataParser.php:357-371 \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 \u0060framework/requirements/YiiRequirementChecker.php:255\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":"framework/requirements/YiiRequirementChecker.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a1c84d69e65845cb146ce9e0588e61868998dc27f496774b04d59ec0898421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): framework/db/ActiveRecord.php:572-585 | framework/db/ActiveRecord.php:710-723 | framework/db/ActiveRecord.php:754-767 \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 \u0060framework/db/ActiveRecord.php:572\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"framework/db/ActiveRecord.php"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"619080fa71fbcbb9e384318661c8ddaf417e2191e5ba9f74e1a347a750043d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): framework/db/cubrid/Schema.php:300-313 | framework/db/mssql/Schema.php:418-431 | framework/db/mysql/Schema.php:325-338 \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 \u0060framework/db/cubrid/Schema.php:300\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":"framework/db/cubrid/Schema.php"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"df993188ac0a98ca91136deb2f5482c6e85750dc6632247ba91395651bcf8191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): framework/db/Migration.php:117-130 | framework/db/Migration.php:146-159 \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 \u0060framework/db/Migration.php:117\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":"framework/db/Migration.php"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ca0c4e82b2f34b24b6017c572cd17bdbf0f3238ed6d0376e9a1bcad472b0f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): framework/db/QueryBuilder.php:458-470 | framework/db/oci/QueryBuilder.php:301-313 | framework/db/pgsql/QueryBuilder.php:493-505 \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 \u0060framework/db/QueryBuilder.php:458\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":"framework/db/QueryBuilder.php"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bea01ce189bcbe05b9604e380326f240c2b3556e20e31306e053a4816dc6fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): framework/db/BaseActiveRecord.php:1433-1445 | framework/db/BaseActiveRecord.php:1534-1546 \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 \u0060framework/db/BaseActiveRecord.php:1433\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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"7700da933fa2036c03ab2a3cbbaf709d1688a1d0415b3e7fe37fb2f965a904ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): framework/validators/ExistValidator.php:213-225 | framework/validators/UniqueValidator.php:277-289 \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 \u0060framework/validators/ExistValidator.php:213\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":"framework/validators/ExistValidator.php"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a219e9c7df363159c907635fd79d0d64429886ce2a75e51c2cc4811b5855f13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): framework/db/cubrid/QueryBuilder.php:69-80 | framework/db/mssql/QueryBuilder.php:550-561 | framework/db/oci/QueryBuilder.php:217-228 \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 \u0060framework/db/cubrid/QueryBuilder.php:69\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":"framework/db/cubrid/QueryBuilder.php"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d877dcdabcf3017965646a64504315d82208fcd887cf9cd8784189b00d0a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): framework/db/cubrid/QueryBuilder.php:96-107 | framework/db/mssql/QueryBuilder.php:587-598 | framework/db/oci/QueryBuilder.php:254-265 \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 \u0060framework/db/cubrid/QueryBuilder.php:96\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":"framework/db/cubrid/QueryBuilder.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f235d8982e6159e3ceda4647487f4e64142b9e1b876c30c104e25c4762ddf510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): framework/console/controllers/FixtureController.php:117-128 | framework/console/controllers/FixtureController.php:193-204 \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 \u0060framework/console/controllers/FixtureController.php:117\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":"framework/console/controllers/FixtureController.php"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09fa2d75e82ab1731be2fd31184c6b4cbce6c511291ca9b174216ea5991e25a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): framework/db/QueryBuilder.php:1488-1499 | framework/db/sqlite/QueryBuilder.php:536-547 \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 \u0060framework/db/QueryBuilder.php:1488\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":"framework/db/QueryBuilder.php"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"4875c6c44d669c3ec6db06dbf8d92f70424f745282e8677d52ef5ec85998d2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): framework/rbac/DbManager.php:169-180 | framework/rbac/PhpManager.php:140-151 \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 \u0060framework/rbac/DbManager.php:169\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":"framework/rbac/DbManager.php"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0c026b2fbf41f2e1e8609c42386ef9c1a1a92916e433d319346fd7421f98ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): framework/console/controllers/BaseMigrateController.php:226-237 | framework/console/controllers/BaseMigrateController.php:290-300 \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 \u0060framework/console/controllers/BaseMigrateController.php:226\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":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ff494188091c81c48a7bc383768040413dbda18beb483dc0cd0444b803d557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): framework/console/controllers/FixtureController.php:352-362 | framework/console/controllers/FixtureController.php:384-394 \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 \u0060framework/console/controllers/FixtureController.php:352\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":"framework/console/controllers/FixtureController.php"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"125eec7c7ee82dbbd1f79635adf82a3450c4acc3f0c4eaea8773424b0c5ea1c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): framework/data/ActiveDataProvider.php:125-135 | framework/data/SqlDataProvider.php:146-156 \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 \u0060framework/data/ActiveDataProvider.php:125\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":"framework/data/ActiveDataProvider.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acb9f25d0a837077fb120bf5f336cee56748e00170a14bb937685d49b64c494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): framework/db/mysql/QueryBuilder.php:267-277 | framework/db/pgsql/QueryBuilder.php:338-348 \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 \u0060framework/db/mysql/QueryBuilder.php:267\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":"framework/db/mysql/QueryBuilder.php"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda81018b4df4178e038fd403cb01a1e8c33b12d4bbeeebc49a874edcbed2c79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): framework/helpers/BaseFormatConverter.php:105-115 | framework/helpers/BaseFormatConverter.php:349-359 \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 \u0060framework/helpers/BaseFormatConverter.php:105\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":"framework/helpers/BaseFormatConverter.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a26c57e7d73835eb85064a8677dc0371a058b147deec566b8f9d3acabd52387"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): framework/i18n/GettextMessageSource.php:112-122 | framework/i18n/PhpMessageSource.php:118-128 \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 \u0060framework/i18n/GettextMessageSource.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":"framework/i18n/GettextMessageSource.php"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"43547d82ecf64d98f3617934ae5b4ea2fb2a73358ac81a5c2bc60b278802e0b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): framework/rbac/DbManager.php:541-551 | framework/rbac/DbManager.php:615-626 \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 \u0060framework/rbac/DbManager.php:541\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":"framework/rbac/DbManager.php"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a15779b321bb2772033da6fb31c136dbad29dfb46995bda92003b11cccf2c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): framework/web/MultipartFormDataParser.php:267-277 | framework/web/MultipartFormDataParser.php:325-335 \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 \u0060framework/web/MultipartFormDataParser.php:267\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":"framework/web/MultipartFormDataParser.php"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a27fb6354bfb400916ec7acef6b443abd4bcbc03b5b03a2fbc0b3daf00eb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): framework/db/BaseActiveRecord.php:1319-1329 | framework/db/BaseActiveRecord.php:1412-1421 | framework/db/BaseActiveRecord.php:1515-1524 \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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc918224433c2f8f7a5eea9d87265831a176aea9cc8632a8a73cb94de3b57e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): framework/db/mssql/Schema.php:417-426 | framework/db/sqlite/Schema.php:339-348 \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 \u0060framework/db/mssql/Schema.php:417\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":"framework/db/mssql/Schema.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"354990e67a76ffe7eaac949d7a73e19917b204bbb3ff49265bcb6f5a877b595f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): framework/db/mysql/QueryBuilder.php:84-93 | framework/db/mysql/QueryBuilder.php:363-372 \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 \u0060framework/db/mysql/QueryBuilder.php:84\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":"framework/db/mysql/QueryBuilder.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"65dade56d38c662d25f7f063f7ddda535c448546afd3ed1d5517593815d48104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): framework/i18n/Formatter.php:1179-1188 | framework/i18n/Formatter.php:1227-1236 \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 \u0060framework/i18n/Formatter.php:1179\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":"framework/i18n/Formatter.php"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fb615680fc4c173c121745ce8384a3b08efc5aaf46b6ceaf29238173d56573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): framework/i18n/Formatter.php:1429-1438 | framework/i18n/Formatter.php:1485-1494 \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 \u0060framework/i18n/Formatter.php:1429\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":"framework/i18n/Formatter.php"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eaa5a14bfc1e4ba9fab86237b70ad4c422bff4daadb9b00f6bbe504ed847e92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): framework/rbac/PhpManager.php:446-455 | framework/rbac/PhpManager.php:520-530 \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 \u0060framework/rbac/PhpManager.php:446\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":"framework/rbac/PhpManager.php"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb94b3ea481f96088b97fc87d3e1281dbf5a5b2f9e4388a4c1dac274e8779504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): framework/validators/ExistValidator.php:157-166 | framework/validators/UniqueValidator.php:126-135 \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":"framework/validators/ExistValidator.php"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a8a35ea56dc138526edcf33ffd694c28d71f913c399d2fb3e6f5da44271b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): framework/console/controllers/BaseMigrateController.php:769-777 | framework/console/controllers/BaseMigrateController.php:797-805 \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 \u0060framework/console/controllers/BaseMigrateController.php:769\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":"framework/console/controllers/BaseMigrateController.php"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"7893ca074da690a2e7696e41f64da4614e273a3d4e54c6a7990cb09f25c37a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): framework/console/controllers/FixtureController.php:281-289 | framework/console/controllers/FixtureController.php:303-311 \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 \u0060framework/console/controllers/FixtureController.php:281\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":"framework/console/controllers/FixtureController.php"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05ef9fff28d6794346007d0c4ea0f2cb785b9d999c3be0069a01454688b6f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): framework/db/ActiveRecord.php:785-793 | framework/db/BaseActiveRecord.php:910-918 \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. 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":"framework/db/ActiveRecord.php"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ebb8bfbf402dc7314477a561c41a0e1d8df9d5ad16964a755ddcc888d3cc4c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): framework/db/BaseActiveRecord.php:1525-1533 | framework/db/BaseActiveRecord.php:1562-1570 \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 \u0060framework/db/BaseActiveRecord.php:1525\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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a637defb4a437fa5734256458479d44280dc1154203b3418ab154dee1098c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): framework/db/mssql/QueryBuilder.php:316-324 | framework/db/mssql/QueryBuilder.php:382-390 \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":"framework/db/mssql/QueryBuilder.php"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfa0edc09da906e5e50d5fc82dcdb8758ffd8dcc4a7ef8a60fd4a3f52961b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): framework/db/mssql/conditions/InConditionBuilder.php:42-50 | framework/db/sqlite/conditions/InConditionBuilder.php:42-50 \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 \u0060framework/db/mssql/conditions/InConditionBuilder.php:42\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":"framework/db/mssql/conditions/InConditionBuilder.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"151a9d0027adf665c85f3597270c44408139334fc7237c6f58f2e06e594392af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): framework/rbac/migrations/m200409_110543_rbac_update_mssql_trigger.php:66-74 | framework/rbac/migrations/m200409_110543_rbac_update_mssql_trigger.php:119-127 \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 \u0060framework/rbac/migrations/m200409_110543_rbac_update_mssql_trigger.php:66\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":"framework/rbac/migrations/m200409_110543_rbac_update_mssql_trigger.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a940207e621368f7d3d98c4c20859c476a7875ecc78b990cbc7390d28e91a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): framework/web/Response.php:568-577 | framework/web/Response.php:628-636 \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 \u0060framework/web/Response.php:568\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":"framework/web/Response.php"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed86be429a4dd4323b40a2d87e581cb7e4e4efe4bdd2a479af13640d7733c27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): framework/db/mysql/Schema.php:107-114 | framework/db/oci/Schema.php:79-86 | framework/db/oci/Schema.php:291-299 | framework/db/pgsql/Schema.php:146-153 \u2014 there are 4 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 4 sites; resolving a subset leaves the remainder to drift apart. 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":"framework/db/mysql/Schema.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ca361fed87b2c0922df5c9cb154a1eef95797d057c57488f19a4dca535dec0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): framework/base/Event.php:154-161 | framework/base/Event.php:169-176 \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 \u0060framework/base/Event.php:154\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":"framework/base/Event.php"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"f983c730e1fa674da49cf17dfbb34d85785b9e6d6a35428fba9c713866e5f6a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): framework/caching/Cache.php:247-254 | framework/caching/Cache.php:383-390 \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 \u0060framework/caching/Cache.php:247\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":"framework/caching/Cache.php"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"395d5dbe4817969efa2d4d6331b3a0a319d924556abec65018ea1d95812b8846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): framework/db/BaseActiveRecord.php:313-320 | framework/db/BaseActiveRecord.php:531-538 \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 \u0060framework/db/BaseActiveRecord.php:313\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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"a814093dfc2077ae0383d383d635ae99e9b9a7566fdbbb657fb4f617a6571b39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): framework/db/QueryBuilder.php:766-774 | framework/db/QueryBuilder.php:947-954 \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":"framework/db/QueryBuilder.php"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead51461ff0455075af5cd6a1b519dd6d752414f4e389f9f682089a9bb8d551d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): framework/db/QueryBuilder.php:878-885 | framework/db/oci/QueryBuilder.php:177-184 \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 \u0060framework/db/QueryBuilder.php:878\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":"framework/db/QueryBuilder.php"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2b78b7a773b0d1dfdc8f82b2f537596dbfc8404ce88a9ad7c2bae6f4444ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): framework/db/mssql/Schema.php:110-117 | framework/db/mssql/Schema.php:350-357 \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 \u0060framework/db/mssql/Schema.php:110\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/db/mssql/Schema.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"093cb3a9fbd680c5c6f5004e22b045d6410ce1f700a48c6198c93f5653ab261e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): framework/helpers/BaseFileHelper.php:550-557 | framework/helpers/BaseFileHelper.php:592-599 \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 \u0060framework/helpers/BaseFileHelper.php:550\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":"framework/helpers/BaseFileHelper.php"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff29b88cee471740898d687980c19a6e1a7211c0445b1078f15769c3c1e2557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): framework/i18n/Formatter.php:999-1006 | framework/i18n/Formatter.php:1021-1028 \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 \u0060framework/i18n/Formatter.php:999\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":"framework/i18n/Formatter.php"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f2dbb29bec1bf92a891a67d2bea55cb29c9790253670c1c435feefad133935"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): framework/rbac/migrations/m180523_151638_rbac_updates_indexes_without_prefix.php:42-49 | framework/rbac/migrations/m180523_151638_rbac_updates_indexes_without_prefix.php:57-65 \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":"framework/rbac/migrations/m180523_151638_rbac_updates_indexes_without_prefix.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c1d935f12de30578902f809bc2d6134f40e5ed73da2e72b8864f690083b473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): framework/widgets/ActiveField.php:563-570 | framework/widgets/ActiveField.php:615-622 \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 \u0060framework/widgets/ActiveField.php:563\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":"framework/widgets/ActiveField.php"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"4269578624bf4fe399a1cc704461af1ae52d1044a9b6d23de15adbf11d4e2114"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): framework/base/Security.php:202-208 | framework/base/Security.php:252-258 \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 \u0060framework/base/Security.php:202\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":"framework/base/Security.php"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc41c06a71206000f78510546bd23e7264ace7d4947aeb0cd65a2501dca1d14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): framework/caching/DbCache.php:118-124 | framework/caching/DbCache.php:142-148 \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 \u0060framework/caching/DbCache.php:118\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":"framework/caching/DbCache.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ea482384ca4327a2edcec9c1c62597cb4a950c11092eb1b952e379d6768624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): framework/data/Pagination.php:280-286 | framework/data/Sort.php:431-437 \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":"framework/data/Pagination.php"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac434aa21e2749b8a022b4f4fb991ae65d391fcaa58bd7cb70140a13c97b05e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): framework/db/mysql/Schema.php:304-310 | framework/db/sqlite/Schema.php:325-332 \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 \u0060framework/db/mysql/Schema.php:304\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":"framework/db/mysql/Schema.php"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec9766f569a58225586b3bb277f9ac65e174e49276d75acbc909a05e7ab614c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): framework/grid/GridView.php:284-290 | framework/widgets/DetailView.php:136-142 \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 \u0060framework/grid/GridView.php:284\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":"framework/grid/GridView.php"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0d5fa193f4e13e24ac2cbcba5e773fcf225bb7245b47c9f054d4816f41eb93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): framework/helpers/BaseHtml.php:982-988 | framework/helpers/BaseHtml.php:1072-1078 \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":"framework/helpers/BaseHtml.php"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd1b8db46c9cb809172883b1d5a65db793b82f4fe706c6f0a09349cd5b90c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): framework/db/mssql/Schema.php:407-413 | framework/db/sqlite/Schema.php:332-337 \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 \u0060framework/db/mssql/Schema.php:407\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":"framework/db/mssql/Schema.php"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba373674a44ce60eef9971d874b656fbff56ffc415c0435e6519bb507288a3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): framework/i18n/GettextMessageSource.php:74-79 | framework/i18n/PhpMessageSource.php:80-85 \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 \u0060framework/i18n/GettextMessageSource.php:74\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":"framework/i18n/GettextMessageSource.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d31913f7e37a482089f821ea54c017f3b72564cea2042358bb3fbee350c4eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): framework/validators/DateValidator.php:251-256 | framework/validators/NumberValidator.php:76-81 \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":"framework/validators/DateValidator.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e8b80d15ff16e55bf8c8d069813fa59fad5bd97b5857f29f1fa3957b9b24a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): framework/console/controllers/HelpController.php:157-161 | framework/console/controllers/HelpController.php:422-426 \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 \u0060framework/console/controllers/HelpController.php:157\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":"framework/console/controllers/HelpController.php"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e8579d0558a4348f774be2255fc414620c7575d6b844db8250ad9a5790c23e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: framework/i18n/MessageFormatter.php: framework/i18n/MessageFormatter.php changed 2 times in last 90 days, max complexity 42. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/i18n/MessageFormatter.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63aa5922afdbc7b7d7b4a466d2646ec4ca86c20a2bc7b705149c3901d15a79e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: framework/db/BaseActiveRecord.php: framework/db/BaseActiveRecord.php changed 3 times in last 90 days, max complexity 23. 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":"framework/db/BaseActiveRecord.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aabde6413cde4fe448997e5eef0d985a9ac0a43c654aaaa9c50568f9c97c511"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: framework/di/Container.php: framework/di/Container.php changed 2 times in last 90 days, max complexity 33. 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":"framework/di/Container.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"42827497bda63e21c28bb5cf0b305e25dbf07b6c43acb693feecbb15d0b132d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: framework/web/Request.php: framework/web/Request.php changed 4 times in last 90 days, max complexity 16. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/web/Request.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49452d39e63288de6753a41615896e737896e707112fa07ba6c3e3aa8c5902f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: framework/web/UrlRule.php: framework/web/UrlRule.php changed 2 times in last 90 days, max complexity 31. 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":"framework/web/UrlRule.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d363862f15dde6b2d067c2b2bbd72880f75541b30a4dc100e00ecf52dcbf69"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: framework/db/mysql/Schema.php: framework/db/mysql/Schema.php changed 3 times in last 90 days, max complexity 20. 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":"framework/db/mysql/Schema.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1eacb6d52503a91b470181a017b49f07e14c869e63d31daa872cb505a160b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: framework/web/ErrorHandler.php: framework/web/ErrorHandler.php changed 4 times in last 90 days, max complexity 15. 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":"framework/web/ErrorHandler.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"084cdd9da6a88d744fe83370680bca27b634cb987b9328da61aecce484ff3781"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: framework/console/controllers/MessageController.php: framework/console/controllers/MessageController.php changed 2 times in last 90 days, max complexity 29. 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":"framework/console/controllers/MessageController.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"963912788488d9b651b79c49aaf6b8e5a7e7401e74bb23c32aa08059a12b005a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: framework/db/mssql/Schema.php: framework/db/mssql/Schema.php changed 3 times in last 90 days, max complexity 19. 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":"framework/db/mssql/Schema.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff7ccefc1c9ad4b2fb0a49cc97595188cba69737de9d22e6ad7e60cf0a28049"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: framework/db/ActiveRelationTrait.php: framework/db/ActiveRelationTrait.php changed 2 times in last 90 days, max complexity 28. 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":"framework/db/ActiveRelationTrait.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae16ca3bdc125c7d27535176f7c8245fc8c83cf39953efcca99b0a0b15ff0de"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 3 significant file(s) lose their only recent owner: framework/base/Controller.php, framework/requirements/YiiRequirementChecker.php, framework/behaviors/TimestampBehavior.php. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd212529ee19e64cbeb22888ff0d0360135d2749ce0c4bc3055709dc0d71239d"}},{"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":"2bfb9f63bf9e8b1511a7e969a613e1e4ac570abdb932955d543104dff8c13460"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c622bab8f3dace0cacee804422dc55592a6dcb7fd3b196d5086cd478627fe00f"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f3abe22e4c421cc309479e87266cc56cbfbda18790311a09f7837a81bd8e8e95"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ae2dfb06bfe0dcadfc949c881aa237cb2a4aac5b1cc69adf101d9e003549ef46"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b67787f58bbdcde79a43cc08af597219f8bc8ccd5a82b8588a8f7af6b62ec402"}},{"ruleId":"D31","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":"e3456a33515efc2e2b0fc6b725fb30396a686312092c39ebaa9032146e44ed46"}},{"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":"framework/views/errorHandler/exception.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69791ee1802079ed06a9709ca60ace5e694e093fb65381d2369e54e7398f2da2"}},{"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":"framework/helpers/BaseConsole.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d56e182af9af48df175fec30d269bea77dc3ee2aa09765934665128e5f2e40f"}},{"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":"framework/widgets/ActiveField.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ac869f20baf515da3ebce20b09e0f149f3b5d161abd91c82a5364f7c1416a1"}},{"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":"framework/console/controllers/AssetController.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd6127401b247198753c213aa1e1bc995d1af37b5ad5ca7750988bddb6b62184"}},{"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":"framework/helpers/BaseFormatConverter.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"024fa82b1ebeee743dc38e43e779941c2853a26c6cd453791228671dcae8e998"}},{"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":"framework/db/Migration.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d32580a98e6c71439e883aec2f9a753ed54b5b3d6de0d9371ca6aee998f8d02"}},{"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":"framework/caching/Cache.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a231656c0f8686fc478056657b94dc7c51ef267136e05227a3da664bca349983"}},{"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":"framework/helpers/BaseInflector.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a388b75aea2610564e3f47e618d730bcd4b4b7a3930da5dd4e5f07a7834e685"}},{"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":"framework/db/sqlite/QueryBuilder.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2b4b1c4e33f62a707bf0d39e440e180c18402d6998191d4b5ce61a14ef67a8"}},{"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":"framework/db/ActiveRecordInterface.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd12641d3e9a2d7c98f2f71f600db4df871165a068f8065e7e6a8a3197140d3b"}},{"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":"framework/validators/DateValidator.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88315fef3122d476a6a99bb35ef762b7b0421627b7e0a02996c67f47c293215"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 104 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than listed individually (115 orphaned of 257 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":"D35","level":"warning","message":{"text":"Change coupling: mimeExtensions.php \u2194 mimeTypes.php: \u0060framework/helpers/mimeExtensions.php\u0060 and \u0060framework/helpers/mimeTypes.php\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"framework/helpers/mimeExtensions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb38c1888cbb8bedc4804e84c91d0f431fcb4902550acb9de3b423602780c43"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-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-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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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":6,"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."]}]}