{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"],"owasp":"A01:2025"}},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"id":"DM1","name":"Aggregate boundaries","shortDescription":{"text":"Aggregate boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/DM1"},{"id":"DM10","name":"One transaction, one aggregate","shortDescription":{"text":"One transaction, one aggregate"},"helpUri":"https://codehealth.canine.dev/dimensions/DM10"},{"id":"DM11","name":"Constructible invalid state","shortDescription":{"text":"Constructible invalid state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM11"},{"id":"DM12","name":"Ambient inputs in the domain","shortDescription":{"text":"Ambient inputs in the domain"},"helpUri":"https://codehealth.canine.dev/dimensions/DM12"},{"id":"DM4","name":"Rich vs anemic model","shortDescription":{"text":"Rich vs anemic model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"DM9","name":"Scattered domain decisions","shortDescription":{"text":"Scattered domain decisions"},"helpUri":"https://codehealth.canine.dev/dimensions/DM9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"jquery.flexslider.$.flexslider (cyclomatic 331): jquery.flexslider.$.flexslider has cyclomatic complexity 331 (threshold 15). Of this number, 87 points are the body\u0027s own statements and 244 belong to 41 function literals inside it that branch. 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":"wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc783b7ab1174862e98339ea5a89ef920cf1195b9c2169adccce96dd17143f6"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 156): (anonymous) has cyclomatic complexity 156 (threshold 15). Most of this is not in the body itself: 2 of the 156 points are its own statements and the rest belongs to 69 function items inside it that branch (validate_field, update_checkout_action::success, queue_update_checkout, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5df40a86f1afef8538d1fe17be5bc418108cd4d15189fc040dfc2285426078"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.prettyPhoto.$.fn.prettyPhoto (cyclomatic 133): jquery.prettyPhoto.$.fn.prettyPhoto has cyclomatic complexity 133 (threshold 15). Most of this is not in the body itself: 10 of the 133 points are its own statements and the rest belongs to 25 function items inside it that branch (a function literal at line 230, a function literal at line 180, _fitToViewport, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd9d1131e4a281ba6e9e306ed31f3454fb51fa3d6214f5101e536e1a446cd2c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 121): (anonymous) has cyclomatic complexity 121 (threshold 15). Most of this is not in the body itself: 3 of the 121 points are its own statements and the rest belongs to 126 function items inside it that branch (a function literal at line 1451, a function literal at line 1403, change_country, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"921b33b7d2d120388cb35dc0cbbd9cbc7538b23ddfb2d63ad06b8843b3b3410d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 109): (anonymous) has cyclomatic complexity 109 (threshold 15). Most of this is not in the body itself: 6 of the 109 points are its own statements and the rest belongs to 91 function items inside it that branch (a function literal at line 965, show_and_hide_controls, a function literal at line 489, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97ef6ab8bd8afdfe8324adbbd172d62521ecdb224f5f6045d06b8967d982c97"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Products_Controller.prepare_object_for_database (cyclomatic 105): WC_REST_Products_Controller.prepare_object_for_database has cyclomatic complexity 105 (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"080ff1deb99ad17c77c4e7b41f00dc8e30555f212c2b85df7eab50f7378b865c"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.prepare_object_for_database (cyclomatic 105): Controller.prepare_object_for_database has cyclomatic complexity 105 (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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df51d60b76b4ad1dce0a552da33eb043ad9b41a83f9424b3044610c5c7b109c"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.prepare_object_for_database (cyclomatic 93): WC_REST_Products_V2_Controller.prepare_object_for_database has cyclomatic complexity 93 (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef57feb8c03482a4de0420f8db4d821c5542919d453f655953be8e2a186a87e2"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 80): (anonymous) has cyclomatic complexity 80 (threshold 15). Most of this is not in the body itself: 2 of the 80 points are its own statements and the rest belongs to 37 function items inside it that branch (a function literal at line 47, ProductGallery, a function literal at line 11, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/single-product.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d50d21fb7eadb54d6ba71f240c5e4043f028789b0c3469a11010e990f759a9b"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 79): (anonymous) has cyclomatic complexity 79 (threshold 15). Most of this is not in the body itself: 1 of the 79 points is its own statement and the rest belongs to 60 function items inside it that branch (a function literal at line 697, a function literal at line 767, onCloseConfigureShippingMethod, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"314e77c5213631e3772fa3ed2af61d5b782e14ce8a1dc871741334f407be0790"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.get_product_data (cyclomatic 75): WC_REST_Products_V2_Controller.get_product_data has cyclomatic complexity 75 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"493e39c3231d189c2fc61062aaa0be8a4b31472a710798c785406c93f59b63a7"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Products_V1_Controller.set_product_meta (cyclomatic 73): WC_REST_Products_V1_Controller.set_product_meta has cyclomatic complexity 73 (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abd3ccdc340349eb4c916d7d6745f49269c0a2b93429cbfde034ddce235fa60"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Geo_IP._setup_segments (cyclomatic 70): WC_Geo_IP._setup_segments has cyclomatic complexity 70 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9474c04c65a574b1aa25f14673d8c5c62738915c8c39de6f0868d777930f747"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Meta_Box_Order_Data.output (cyclomatic 68): WC_Meta_Box_Order_Data.output has cyclomatic complexity 68 (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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1295762f7989723a15e86646a7cd6d843398ac3c90c75cd07bd73d8100c2fd"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 68): (anonymous) has cyclomatic complexity 68 (threshold 15). Most of this is not in the body itself: 4 of the 68 points are its own statements and the rest belongs to 51 function items inside it that branch (updateLegacyPreview, pickAttachmentDisplayUrl, pickAttachmentThumbnailUrl, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d0c851cc66adac3f60393dd2cbeb4d2f1c950267a16dd888ec3f7ff6b31250"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Admin_Report.get_order_report_data (cyclomatic 62): WC_Admin_Report.get_order_report_data has cyclomatic complexity 62 (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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-admin-report.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd58c149d56aa32230485765151974728c2763230bce224f7c71454e4003070"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::drawGrid (cyclomatic 59): jquery.flot.Plot::drawGrid has cyclomatic complexity 59 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34eaa568d29fc91f6d94d14ea821e292bf09660ceb0f573a5f35b379ecad437"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.time.init (cyclomatic 58): jquery.flot.time.init has cyclomatic complexity 58 (threshold 15). Most of this is not in the body itself: 1 of the 58 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 204, 199, 358). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.time.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9d29e01cb625fb55b9836cb77ac526d85841f7072f74de3557b472f1f0742a"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::processData (cyclomatic 57): jquery.flot.Plot::processData has cyclomatic complexity 57 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::setRange, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"725fb5b976848b62f04269d57dbaf0d292b1ea2d6838fa2fbcef6091e62f789e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 56): (anonymous) has cyclomatic complexity 56 (threshold 15). Most of this is not in the body itself: 5 of the 56 points are its own statements and the rest belongs to 29 function items inside it that branch (a function literal at line 392, displaySuggestions, a function literal at line 449, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f562d8a00deeb1788aeb5d4105f431845721a5606f8abb34407355063bbd8c"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductQuery.prepare_objects_query (cyclomatic 54): ProductQuery.prepare_objects_query has cyclomatic complexity 54 (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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4a23f03dd3d10dfb146359df22131570a893dac83fcc25ac2f6f35f1684327"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 54): (anonymous) has cyclomatic complexity 54 (threshold 15). Most of this is not in the body itself: 8 of the 54 points are its own statements and the rest belongs to 38 function items inside it that branch (a function literal at line 429, a function literal at line 148, a function literal at line 111, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e1cfdf9eba61d3944916d8f692d5f75c8785282edb229bddf0075d262b56d8"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Structured_Data.generate_product_data (cyclomatic 53): WC_Structured_Data.generate_product_data has cyclomatic complexity 53 (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":"wp-content/plugins/woocommerce/includes/class-wc-structured-data.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa321a8fbea44ff1c6ff82e200c657072bee68f6807124020e6ab0873ff4efec"}},{"ruleId":"D1","level":"warning","message":{"text":"_injectTimePicker (cyclomatic 53): _injectTimePicker has cyclomatic complexity 53 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 12 belong to 6 function literals inside it that branch. 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc6658214a526f6851359cb7b2b662f737c44437bcdc08a2cb8caa2e155fc28"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Product_Variations_Controller.prepare_object_for_database (cyclomatic 52): WC_REST_Product_Variations_Controller.prepare_object_for_database has cyclomatic complexity 52 (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fa0181e72205d9065eb5a6a5ef16134156838a5408c82aca46cde4bade116c"}},{"ruleId":"D1","level":"warning","message":{"text":"_limitMinMaxDateTime (cyclomatic 52): _limitMinMaxDateTime has cyclomatic complexity 52 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a334b6a927059103a4859953963cee876e3807f23bc70fab727bcdc671f1184"}},{"ruleId":"D1","level":"warning","message":{"text":"AddToCartWithOptions.render (cyclomatic 51): AddToCartWithOptions.render has cyclomatic complexity 51 (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea124ccdffa3e17582b901ea315a07598b834b5ee319c18973bffc535e181744"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.tipTip.$.fn.tipTip (cyclomatic 50): jquery.tipTip.$.fn.tipTip has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 2 of the 50 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 106, 55, 74, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-tiptip/jquery.tipTip.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3522a077ac0678104c491eae49302c41dc8f5809078e9f7a783cfa5611ca1bd7"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Meta_Box_Product_Data.save (cyclomatic 48): WC_Meta_Box_Product_Data.save has cyclomatic complexity 48 (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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad133c041ca81b67868b7bd6a9a6c4c6a8256018271807f20b6835f46658df3"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Product_Variations_V2_Controller.prepare_object_for_database (cyclomatic 48): WC_REST_Product_Variations_V2_Controller.prepare_object_for_database has cyclomatic complexity 48 (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f9473ce5f585f1b36b4635797fde08d55802c9ff3851bf027a910eeb402dfa"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.prepare_objects_query (cyclomatic 48): Controller.prepare_objects_query has cyclomatic complexity 48 (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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2600e0ebb8ec326b3251d60d04c9a573a2d0cff5e19947e0c47227c9bc6be6"}},{"ruleId":"D1","level":"warning","message":{"text":"_newInst (cyclomatic 48): _newInst has cyclomatic complexity 48 (threshold 15). Of this number, 43 points are the body\u0027s own statements and 5 belong to 7 function items inside it that branch. 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aba26c9be46ee363a347d825481314be837f74cab478916d524dbe2859f3719"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_AJAX.shipping_providers_save_changes (cyclomatic 47): WC_AJAX.shipping_providers_save_changes has cyclomatic complexity 47 (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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3889}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d6518bb8d8c25c8d3c7012234162c0e14fa28479c8f0785d049efd58b0764f"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Cart.add_to_cart (cyclomatic 46): WC_Cart.add_to_cart has cyclomatic complexity 46 (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":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c18da2f09ce2f69aa02937019f6f3a81d1109b5d3ee42acbd1571bb1a3ed46"}},{"ruleId":"D1","level":"warning","message":{"text":"HandlerRegistry.register_core_collections (cyclomatic 46): HandlerRegistry.register_core_collections has cyclomatic complexity 46 (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d33b39139390dbc93bcb2cc1b7c04ebe1a7d6b3e2d39d8fdc379772c3f67081"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductButton.render (cyclomatic 45): ProductButton.render has cyclomatic complexity 45 (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductButton.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7c8458c9aac12a5cafd82312e14d7665a432dd3010444067cbaa998c71fa62"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.nivo.slider.NivoSlider::nivoRun (cyclomatic 45): jquery.nivo.slider.NivoSlider::nivoRun has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/custom-slider/jquery.nivo.slider.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c590bfab7b81b0217d1c10cc7a9b29b11c52c48f604ca957648392a8139762"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 45): (anonymous) has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 1 of the 45 points is its own statement and the rest belongs to 34 function items inside it that branch (settings_scroll_to_active_tab, a function literal at line 219, a function literal at line 159, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ebe447535ce74833a1141185673c2985c15f5e3d3fc09540422cda019a3612"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Form_Handler.save_account_details (cyclomatic 44): WC_Form_Handler.save_account_details has cyclomatic complexity 44 (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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc85ea35062f3a450516c0616dcc0d08d9fd311556ca56dc39ca0119c08ee04"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Products_V1_Controller.save_variations_data (cyclomatic 44): WC_REST_Products_V1_Controller.save_variations_data has cyclomatic complexity 44 (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfbad60a8876327207d406adf1910f606f4d5d08cf1d4049c46505282fbb1a6"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Abstract_Legacy_Product.__get (cyclomatic 43): WC_Abstract_Legacy_Product.__get has cyclomatic complexity 43 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-product.php"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"060bc51d7f329dc0e3a4eb2f70dd5aaa047c1711277acbc8aa259fcddbc02781"}},{"ruleId":"D1","level":"warning","message":{"text":"ShopifyMapper.map_variable_product_data (cyclomatic 43): ShopifyMapper.map_variable_product_data has cyclomatic complexity 43 (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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyMapper.php"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12d10f2669fc799d2315f3d0c95390e7022cfb73fc359d7eaeb798ad318c666"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::drawSeriesLines::plotLineArea (cyclomatic 43): jquery.flot.Plot::drawSeriesLines::plotLineArea has cyclomatic complexity 43 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e07c8b8ff02d30f833a81ba4d74a552a4b102fde1f99cdb19fc5b2831b0346"}},{"ruleId":"D1","level":"warning","message":{"text":"_onTimeChange (cyclomatic 43): _onTimeChange has cyclomatic complexity 43 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b6954eeb77ef06fff2babdd506550d9a90f92758233ae5e9b2f390e30f4f559"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 43): (anonymous) has cyclomatic complexity 43 (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":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b29ee76c8fdd0a2dc026d70e180b0b6b92a6b7a69b4de7348366e19903c7bf"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Meta_Box_Product_Data.save_variations (cyclomatic 42): WC_Meta_Box_Product_Data.save_variations 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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5306567b2c2bba9b246cf9670d0265ec900702ea03a82d9a2d7bfe2a9c1582a"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Form_Handler.update_cart_action (cyclomatic 42): WC_Form_Handler.update_cart_action 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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7456e5916a417fedb132b6552230c27a6a9aeee043b98b6259b3f5ed3253b9"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_CSV_Importer.expand_data (cyclomatic 42): WC_Product_CSV_Importer.expand_data 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":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"4048a1816a4dff4b8569a4f88d84bd3792dae6665088bfeb989d827616ee1f4b"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Products_Controller.prepare_objects_query (cyclomatic 42): WC_REST_Products_Controller.prepare_objects_query has cyclomatic complexity 42 (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ffc5f57a7989afc49145d927e73a6a8198d86db249913e3272a348a3afb264"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::parseOptions (cyclomatic 42): jquery.flot.Plot::parseOptions has cyclomatic complexity 42 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, jquery.flot.Plot::setRange, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"d567696ce39c402bed76faf5e5da66926e5e6ee8548bbbb17d25fff3efa1667e"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Checkout.validate_posted_data (cyclomatic 40): WC_Checkout.validate_posted_data has cyclomatic complexity 40 (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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a3e0db1c35eebc54ab692a346ec10e5cb7e24ad46391a88454658c731cbeb3"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.get_wp_query_args (cyclomatic 40): WC_Product_Data_Store_CPT.get_wp_query_args has cyclomatic complexity 40 (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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e473f0c515f8cdeeabb8174e7278c30d536dcf7423951b72a3a6da2989f45913"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Shortcode_Checkout.order_pay (cyclomatic 40): WC_Shortcode_Checkout.order_pay has cyclomatic complexity 40 (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":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2cdaf54575ad7a60b909057e5d9cbfef55f07e397c3e01256c8f0dcbf66604"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.stack.init::stackData (cyclomatic 40): jquery.flot.stack.init::stackData has cyclomatic complexity 40 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.stack.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f9739273aa0b607ba1766434b82b95b44ca103c10e38d405f2f65d79dea55d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cyclomatic 40): (anonymous)::(anonymous)::apply has cyclomatic complexity 40 (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":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d499da28f5691f89d8657061e797de53ad6a0357d27b36dedaede3a7380132"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cyclomatic 40): (anonymous)::(anonymous)::apply has cyclomatic complexity 40 (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":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"024e188197d871e6f618ec534dfa2247d3f946e450fb635eb9fefd5be9347db4"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cyclomatic 40): (anonymous)::(anonymous)::apply has cyclomatic complexity 40 (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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":4705}}}],"partialFingerprints":{"codehealthFindingId/v1":"032046a992ba485b603b841de09ba4fd3596a607e7a846293f6b1711473915f5"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cyclomatic 40): (anonymous)::(anonymous)::apply has cyclomatic complexity 40 (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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":4689}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6772e8cb4d04e6b309fc4eddb2b999b8a2faaad9cf4b431346b02a4d44eb5d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cyclomatic 40): (anonymous)::(anonymous)::apply has cyclomatic complexity 40 (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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10760265da585dfc6e384748c8b84fc71833f4e09e80a4aeaa2cd0808da27ce"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cyclomatic 40): (anonymous)::(anonymous)::apply has cyclomatic complexity 40 (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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"196f3d4422f0c282e8f06bdfbcf52cfdc34ca5bae5f45ed562165572e7b2fd05"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Frontend_Scripts.load_scripts (cyclomatic 39): WC_Frontend_Scripts.load_scripts has cyclomatic complexity 39 (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":"wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b0e1f306db4ef86551a7b9623c9c63247b98203bf7eea121ccffb12c2cf5bc"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Order_Data_Store_CPT.update_post_meta (cyclomatic 39): WC_Order_Data_Store_CPT.update_post_meta has cyclomatic complexity 39 (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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"45752e2315b1e2405e94a2d11dbf09d5a15fc4608e0c5676ed70ab968711aee5"}},{"ruleId":"D1","level":"warning","message":{"text":"WooPaymentsService.get_onboarding_step_status (cyclomatic 39): WooPaymentsService.get_onboarding_step_status has cyclomatic complexity 39 (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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0ec1f424f5ff4f2e8fb68d117e3096d94c4446531e1be8f156b2dc70ac49d7"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 39): (anonymous) has cyclomatic complexity 39 (threshold 15). Most of this is not in the body itself: 2 of the 39 points are its own statements and the rest belongs to 50 function items inside it that branch (a function literal at line 309, a function literal at line 203, a function literal at line 266, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68a53e814f9a2459917bea15cd0f2ff782018c96e60ca508aae526364f2df10"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 39): (anonymous) has cyclomatic complexity 39 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 12 belong to 14 function items inside it that branch. 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":"wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4e63e7f43bbc39695b04626aa36e3ff46c3c98f89400053ada7dc6a5f87503"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Data_Store_WP.parse_date_for_wp_query (cyclomatic 38): WC_Data_Store_WP.parse_date_for_wp_query has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-data-store-wp.php"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e4e68d3bb33d106f892ab548d7d40b39bc4c802224c51f001a44d641a9ce12"}},{"ruleId":"D1","level":"warning","message":{"text":"WCEmailTemplateSelectiveApplier.merge (cyclomatic 38): WCEmailTemplateSelectiveApplier.merge has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSelectiveApplier.php"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc516af66e8180e60c89955078bfad7b9697d3362f0436b6e601f9e52188daf"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.preSend (cyclomatic 38): PHPMailer.preSend has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"495ce3143ed61e5264f51253ec7d820f2aaf5babff5fc4843f74ab4984109bba"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 38): (anonymous) has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to 51 function items inside it that branch (update_wc_div, cart_submit, show_coupon_error, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7693e78577fcb106e5e4efa76ac71f7a09df3bd8975e6fe0495ae88a1632d33"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-order-functions.wc_create_refund (cyclomatic 37): wc-order-functions.wc_create_refund has cyclomatic complexity 37 (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":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"e134e3445f0519480c57de1e7a8446bfbc5c75baedf4a9534225da168f1a8e24"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Admin_Post_Types.bulk_edit_save (cyclomatic 36): WC_Admin_Post_Types.bulk_edit_save has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f051a3160717339e3a4b7b091793be3f960c59cae6706e252caefed4eaa219"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Meta_Box_Order_Data.save (cyclomatic 36): WC_Meta_Box_Order_Data.save has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1ff230d1514e346c8873d35866b9d05a4f5928f1f99875f9239e6370d24e77b"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Admin_Post_Types.quick_edit_save (cyclomatic 35): WC_Admin_Post_Types.quick_edit_save has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49fbfc5048ac6b21cf9e22f4152548ff6414472b13195266ea01f500af0e965"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.smtpConnect (cyclomatic 34): PHPMailer.smtpConnect has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2320}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c22c0788128bd4dd76ebdc62df22327c39072bf9d5f3a7ff0d02f87dcf35a28"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery-ui-timepicker-addon.$.datepicker._optionDatepicker (cyclomatic 34): jquery-ui-timepicker-addon.$.datepicker._optionDatepicker has cyclomatic complexity 34 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"131855be6f21d88676e2733f1270ba757034d8d75c28487c0e0320e5aac3861c"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::setupTickGeneration (cyclomatic 34): jquery.flot.Plot::setupTickGeneration has cyclomatic complexity 34 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"451806a7af10f84b6bbddf46eda77548be4a839e5f8fbb6b86d1784fb25119a0"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::do_variation_action (cyclomatic 34): (anonymous)::do_variation_action has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd8e958bce40a7f3f1bf1f72df25cf7f82758006959fafd55cad0ea4dc95684"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-admin-functions.wc_save_order_items (cyclomatic 33): wc-admin-functions.wc_save_order_items 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":"wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"d099bcdb2114903abfc7cc6dc0909cfb24b966818b930168627cd7649cc0432f"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_AJAX.update_order_review (cyclomatic 33): WC_AJAX.update_order_review 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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"af46ae936b13be0d0ad4e8133795c91758cc6a986c510ffc3619dd8833966eee"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Product_Variations_Controller.prepare_objects_query (cyclomatic 33): WC_REST_Product_Variations_Controller.prepare_objects_query 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"b36f0f2460c61c039873830c4ce42f29701650eea4b8ad797f70b39fa9194dca"}},{"ruleId":"D1","level":"warning","message":{"text":"SMTP.authenticate (cyclomatic 33): SMTP.authenticate 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":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"f684d08a6db33f9f7a1e70975f9e4c84988480ff1daf13cf9e5c14141762e8c7"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 33): (anonymous) has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 2 of the 33 points are its own statements and the rest belongs to 33 function items inside it that branch (updateModelOnChange, render, updateUrl, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings-views-html-settings-tax.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07a2ca89937845c04db81874f40f5569bb8b23ed9386f5a295e901f6dfaecad"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 33): (anonymous) has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 1 of the 33 points is its own statement and the rest belongs to 9 function items inside it that branch (renderButtons::manageCartForProductPageOrder, renderButtons::createOrder, renderButtons, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/gateways/paypal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee312e20f2188bc562db0679ae6171a4e03800a6bfb7cee2b129a7064a096e2d"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Form_Handler.save_address (cyclomatic 32): WC_Form_Handler.save_address has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"824ed03722e365e945dd957062774a9384cfb1949a5f97e773505c6515753ea9"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Variable_Data_Store_CPT.read_price_data (cyclomatic 32): WC_Product_Variable_Data_Store_CPT.read_price_data has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c3cfe6568eb3076672f42f7edf808052d35ac1d71e886aad88542522d67c5c"}},{"ruleId":"D1","level":"warning","message":{"text":"DataStore.add_sql_query_params (cyclomatic 32): DataStore.add_sql_query_params has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1368557ddfb754c7e69b0009e66cac02d2572fdfdc356940839c3138df7a51"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.createBody (cyclomatic 32): PHPMailer.createBody has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3042}}}],"partialFingerprints":{"codehealthFindingId/v1":"80482f0bf79f9312bc95bd46c5d28576e06fcb281eff3e483dea66719678fcd5"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 32): (anonymous) has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to 30 function items inside it that branch (updatePluginInfo, a function literal at line 119, addPlugins, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-setup.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"950b0085b79a11aeb4a10c9bf083f3c9b5b4cacf210a47cf22f299c97e5c3cff"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cyclomatic 32): (anonymous)::(anonymous)::(anonymous)::normalize has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd47e0af9ccca53d8403b307033602f86a34e883265e102ded7ee9c0dd81858a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cyclomatic 32): (anonymous)::(anonymous)::(anonymous)::normalize has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e57283649ce2b9af653b92e2e3eb35dfd7d337e9669f5bbe62d426241a9e97"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cyclomatic 32): (anonymous)::(anonymous)::(anonymous)::normalize has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3e49599b5055b984e3a5c47537806201cf939b601759b0ce759cc7473784b0"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cyclomatic 32): (anonymous)::(anonymous)::(anonymous)::normalize has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc74a4275bef80dd8cd6d22cbf5d3061453335656ed5cbbf2ab7390e685a021"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cyclomatic 32): (anonymous)::(anonymous)::(anonymous)::normalize has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1316fde3200fc1dea6a1c3ba1f24a973181809912a3a4df2ef36177bebd2e9b"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cyclomatic 32): (anonymous)::(anonymous)::(anonymous)::normalize has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"00555101eb748f8a241c0dadc8303b07af221b57f73c499246c661ea12dcb981"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Order_Data_Store_CPT.get_wp_query_args (cyclomatic 31): WC_Order_Data_Store_CPT.get_wp_query_args 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"659729e735241430a986cf17a9e30da978c3e832823144463e73fd64278cb7db"}},{"ruleId":"D1","level":"warning","message":{"text":"DataStore.add_sql_query_params (cyclomatic 31): DataStore.add_sql_query_params has cyclomatic complexity 31 (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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b3865ab2a1020ca09820ac79ef0cea1e33bbef2b442b0f398015c89efafe98"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 31): (anonymous) has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 3 of the 31 points are its own statements and the rest belongs to 26 function items inside it that branch (discardChanges, onDeleteRow, a function literal at line 252, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zones.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"8844ee3d784b094e90a1e5a390ea2d2825cd832d03be533c41dd466a93638681"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Coupon.get_coupon_error (cyclomatic 30): WC_Coupon.get_coupon_error has cyclomatic complexity 30 (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":"wp-content/plugins/woocommerce/includes/class-wc-coupon.php"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab28a243e273a8ae9d231dc51bbabfe6f4f353bfd10791ec86fcf47d28428275"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_System_Status_Tools_V2_Controller.execute_tool (cyclomatic 30): WC_REST_System_Status_Tools_V2_Controller.execute_tool has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f8c1ae115c0d7efd53e2bf4a7ccc7105f6684fdc5b97b029872a14bae2fde3"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-template-functions.wc_template_redirect (cyclomatic 30): wc-template-functions.wc_template_redirect has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c61270461099f7ed434b8f60c2476586102e60006a678d1abef1c30ef3a72d2"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderMilestoneEasterEgg.handle_admin_enqueue_scripts (cyclomatic 30): OrderMilestoneEasterEgg.handle_admin_enqueue_scripts has cyclomatic complexity 30 (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":"wp-content/plugins/woocommerce/src/Internal/Admin/OrderMilestoneEasterEgg.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a6c96a20b01f2dfca9654ea0c6dc1d091a9248be3f13f073477ad8128dc64c"}},{"ruleId":"D1","level":"warning","message":{"text":"Reviews.handle_reply_to_review (cyclomatic 30): Reviews.handle_reply_to_review has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/Reviews.php"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7aede50c64252a1d5f4c9ac563c3be36a860eba697fe360defe086848260f5"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentsExtensionSuggestions.with_country_details (cyclomatic 30): PaymentsExtensionSuggestions.with_country_details has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php"},"region":{"startLine":3153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b46ecfcf83d3c2b2dbabc0e7a8b333d6b3e92b50180891ca8c27abb957dd095"}},{"ruleId":"D1","level":"warning","message":{"text":"SubmissionHandler.process_rows (cyclomatic 30): SubmissionHandler.process_rows has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/OrderReviews/SubmissionHandler.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"78072c95c3f5e4e39534852ee5e3c0d57af01e5678014dd2f600ad8428392d05"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::drawSeriesLines::plotLine (cyclomatic 30): jquery.flot.Plot::drawSeriesLines::plotLine has cyclomatic complexity 30 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3782fb790290583313114b547b3b966b82a7d4999c14f5238418dcf6bab8b834"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.time.formatDate (cyclomatic 30): jquery.flot.time.formatDate has cyclomatic complexity 30 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. 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":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.time.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9729346e26ae3d336452f5a63526744b02c9b36b62eccec0cdea6f00808f58c4"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Abstract_Legacy_Order.__get (cyclomatic 29): WC_Abstract_Legacy_Order.__get has cyclomatic complexity 29 (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":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b0dba5857e48f07351a21267d31874f3a5caf2c141abd98ef79cde9a576759"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-attribute-functions.wc_create_attribute (cyclomatic 29): wc-attribute-functions.wc_create_attribute 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":"wp-content/plugins/woocommerce/includes/wc-attribute-functions.php"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"6300d0050b5c9ea05fc18f2e66bb956b215a60db8bad869f1ffdb96dba05e620"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-template-functions.wc_get_product_class (cyclomatic 29): wc-template-functions.wc_get_product_class has cyclomatic complexity 29 (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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc1f25f682cfc86aaa90d0904d81f3d467f36bbf38b7ecbf6fc4522eae9c77b"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductFilterChips.render (cyclomatic 29): ProductFilterChips.render 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55415ad5e87d210119cca255a690151ade9a9bd918ebd465bc83757c178652d"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsUISchema.from_legacy_settings (cyclomatic 29): SettingsUISchema.from_legacy_settings 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUISchema.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b0d47a4b4b106fe1d21e211a9cb33b52399b31345282f59ea3482a97630f88"}},{"ruleId":"D1","level":"warning","message":{"text":"ShopifyMapper.map_simple_product_data (cyclomatic 29): ShopifyMapper.map_simple_product_data 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyMapper.php"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4bb69be725c127e549b945454ec67b718a3c4712f4f00c6fa298b582cabdaf"}},{"ruleId":"D1","level":"warning","message":{"text":"LookupDataStore.create_data_for_product_cpt_core (cyclomatic 29): LookupDataStore.create_data_for_product_cpt_core has cyclomatic complexity 29 (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":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14268b0cb0760ed2a2bc50951c0e07f1ca8226577edb56d08eecd92a3dd3127"}},{"ruleId":"D1","level":"warning","message":{"text":"CollectionQuery.get_query_args (cyclomatic 29): CollectionQuery.get_query_args 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"d64b29a9e66a6938b7373da93dceb725329495d42832cfaf1af0a8761ce8a8e3"}},{"ruleId":"D1","level":"warning","message":{"text":"acf.EventManager (cyclomatic 29): acf.EventManager has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 10 function items inside it that branch (_removeHook, _runHook, addAction, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":2573}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59cec3094c326e3b219a71bc43f764357fb502bf54e0a02818975a2c359626c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 29): (anonymous) has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 2 of the 29 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 13, a function literal at line 79, a function literal at line 164, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/reports.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d07d9f1932752eb33527cb96b9c7d4326fb18e8392fa3fc323329e9259e912"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Helper.render_helper_output (cyclomatic 28): WC_Helper.render_helper_output 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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"619ef3a38330c5f13dbabee53625d38b4fd8009045a7c81b4b692eaa6de430d3"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Cart_Session.get_cart_from_session (cyclomatic 28): WC_Cart_Session.get_cart_from_session 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":"wp-content/plugins/woocommerce/includes/class-wc-cart-session.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbb459e22e198fc0d7016a0679df5c51c17c8fe17cbb9088ff0fdfdfcc52f00"}},{"ruleId":"D1","level":"warning","message":{"text":"ReviewsListTable.handle_row_actions (cyclomatic 28): ReviewsListTable.handle_row_actions has cyclomatic complexity 28 (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":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"5110dfc7e13f5eb7e517f6c5828b033f5d218cd7a552e35094dddf8256c0fed8"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::findNearbyItem (cyclomatic 28): jquery.flot.Plot::findNearbyItem has cyclomatic complexity 28 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":2746}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb34f578cfaf3d58fabf0fcea9f1b6c9f195f370debd090464fdc860d21171ba"}},{"ruleId":"D1","level":"warning","message":{"text":"initAjaxSubmit (cyclomatic 28): initAjaxSubmit has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 2 of the 28 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 314, 336, 282, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/order-review.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf1046f3ce85e523c06c65cc4f63d86ccb2a9b519024cf775747075c146ccb7"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.update_post_meta (cyclomatic 27): WC_Product_Data_Store_CPT.update_post_meta 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff41e39132b31065a5bacc1812a5286948874fd6d1490996f16969f1dd1e81dc"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Legacy_Coupon.__get (cyclomatic 27): WC_Legacy_Coupon.__get has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-coupon.php"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"848276014ee3ff1f0d0278af6c85f30db4bd4443e01cf56fbfc4f050df036330"}},{"ruleId":"D1","level":"warning","message":{"text":"AmazonLogisticsShippingProvider.try_parse_tracking_number (cyclomatic 27): AmazonLogisticsShippingProvider.try_parse_tracking_number has cyclomatic complexity 27 (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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AmazonLogisticsShippingProvider.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"782bbc5731f8dd8be3fd57d5d4165035b66616b2ff824812435c15af9e41e5df"}},{"ruleId":"D1","level":"warning","message":{"text":"MiniCart.render_experimental_iapi_mini_cart (cyclomatic 27): MiniCart.render_experimental_iapi_mini_cart 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"9260c35d7e1089018166c4b4b6601d1d4fc29581ae39de694bf331bcbfca36a6"}},{"ruleId":"D1","level":"warning","message":{"text":"Payments.maybe_track_provider_state_change (cyclomatic 27): Payments.maybe_track_provider_state_change 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4ff2413e824376bbd1bea1898f83eb8361d42391f4b5b68f079e348b61e5f5"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentsProviders.get_extension_suggestions (cyclomatic 27): PaymentsProviders.get_extension_suggestions 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b12a6e67c0e2ba4166ee6d16d6784e7f158ee3960c090053f14b198c48ac4e"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.zoom.$.fn.zoom (cyclomatic 27): jquery.zoom.$.fn.zoom has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 1 of the 27 points is its own statement and the rest belongs to 9 function literals inside it that branch (lines 84, 118, 121, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/zoom/jquery.zoom.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55dd7ee0196ce8d81d7bc8142167938b3f8637020f80adddab94b6a238f665d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 27): (anonymous) has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 2 of the 27 points are its own statements and the rest belongs to 21 function items inside it that branch (updateButton, onAddToCart::success, onAddToCart, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c901255ae1b88282beaaec93845833b88933ca32c2e2c1c1d26fab737ed4987"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::handler (cyclomatic 27): (anonymous)::(anonymous)::handler has cyclomatic complexity 27 (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":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":6230}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe2bfc7e0fd4f2e085178ac369f8716a827b4e85868bff245e3e70bb7149adf"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::handler (cyclomatic 27): (anonymous)::(anonymous)::handler has cyclomatic complexity 27 (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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":6405}}}],"partialFingerprints":{"codehealthFindingId/v1":"057334e5bd406fe1ce41f5f254a55c7e106bf891c245fac6aa111a4c4be0ac8f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::handler (cyclomatic 27): (anonymous)::(anonymous)::handler has cyclomatic complexity 27 (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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6230}}}],"partialFingerprints":{"codehealthFindingId/v1":"338f1cfb894c969ba44a53c25cd98020242211958f06db6c2af68fce3b661523"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Checkout.get_posted_data (cyclomatic 26): WC_Checkout.get_posted_data 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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b053ec3055a4323fa19028e6fbcc0172c619c84dca17074794a0674c76a428"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Shortcodes.product_page (cyclomatic 26): WC_Shortcodes.product_page has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f76775832a3b4bd9e17955a2b9989964545c3c792996f34ed87a6204de6cbb"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.search_products (cyclomatic 26): WC_Product_Data_Store_CPT.search_products 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0646c9c6a6f0e5906a2637b2b1e8604a9b4f7464c3e3d359f2993ab0583ec0"}},{"ruleId":"D1","level":"warning","message":{"text":"MobileAppQRLogin.exchange_token (cyclomatic 26): MobileAppQRLogin.exchange_token has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a208e9ed53f3ea36850e5578c6506f30bb705febf842a761b1fd8c4254f9f2"}},{"ruleId":"D1","level":"warning","message":{"text":"MobileAppQRLogin.get_status (cyclomatic 26): MobileAppQRLogin.get_status 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":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac72d6195529d6a1e3797d79d2defc9ad3b4d82d37218ae1e22652d487d97b95"}},{"ruleId":"D1","level":"warning","message":{"text":"Checkout.enqueue_data (cyclomatic 26): Checkout.enqueue_data 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b2db4b906ada522b2c1cc8f3a4e6a5ac809e84c1dbfe333a2da3680ded9190"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 26): (anonymous) has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 4 of the 26 points are its own statements and the rest belongs to 9 function items inside it that branch (update, a function literal at line 36, wc_add_missing_sort_handles, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/term-ordering.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"498f85c87504ae5667e7c5e2907335155904fc60af6deaa350d9a4d542cd2393"}},{"ruleId":"D1","level":"warning","message":{"text":"api-helpers.acf_validate_attachment (cyclomatic 25): api-helpers.acf_validate_attachment 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":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php"},"region":{"startLine":3511}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40110d8457bbb7511aa6284425494ad6eca1a51a261edbc6b79724b94cc244a"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Admin_Setup_Wizard.display_service_item (cyclomatic 25): WC_Admin_Setup_Wizard.display_service_item 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba49e8c533112c1dbf2b61946f8ea5ea453c6b91f8eb73ad63ca9138000e5642"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Cart_Session.populate_cart_from_order (cyclomatic 25): WC_Cart_Session.populate_cart_from_order 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":"wp-content/plugins/woocommerce/includes/class-wc-cart-session.php"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a720108886625e1f055167fa61622ef0e42cf7da44ace493a271fd184f6875"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Checkout.process_customer (cyclomatic 25): WC_Checkout.process_customer 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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d746014fff37e39101b97bb8250abcd859456467f50a6e0079503d6b2813be"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Query.get_catalog_ordering_args (cyclomatic 25): WC_Query.get_catalog_ordering_args 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":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"a743ce00cc92608801fe2afa16d172109d4246687eacef1e357e0527163b4647"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Orders_V1_Controller.prepare_item_for_response (cyclomatic 25): WC_REST_Orders_V1_Controller.prepare_item_for_response has cyclomatic complexity 25 (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f2e9c4ff123811edeb06fcf782589a24d9557c3f52de7ad0d0ba3ee396786e"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_System_Status_V2_Controller.get_pages (cyclomatic 25): WC_REST_System_Status_V2_Controller.get_pages 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ab5ca76c31b163ea2a50e2d691b4e86cc7863050afd348641b279ea880c9ec"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Orders_Controller.save_object (cyclomatic 25): WC_REST_Orders_Controller.save_object 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d14ef734ab0e8a7b8eb2c8afcc1ecddf0fb8258e0b8dab086240624206064af"}},{"ruleId":"D1","level":"warning","message":{"text":"FulfillmentsManager.update_fulfillments_after_refund (cyclomatic 25): FulfillmentsManager.update_fulfillments_after_refund 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcdde1c35742a49d04b7b24353c1a8f932fd0d795de72edaad7f93fc6442ef8"}},{"ruleId":"D1","level":"warning","message":{"text":"FileController.get_files (cyclomatic 25): FileController.get_files has cyclomatic complexity 25 (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":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a49e47a9c2ff7a6ac1d06a81a32b57426fd3114619c180395f604f77891d8b"}},{"ruleId":"D1","level":"warning","message":{"text":"Settings.add_component_settings (cyclomatic 25): Settings.add_component_settings 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"68304a31ab5391ac486a0703217836112433df88f388d6755533dcf1361e529e"}},{"ruleId":"D1","level":"warning","message":{"text":"_updateDateTime (cyclomatic 25): _updateDateTime has cyclomatic complexity 25 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3ade4f7601426d3ec69ac513252c0ac7702b6e41e5cbe865b4cb4c2f326f71"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Query.pre_get_posts (cyclomatic 24): WC_Query.pre_get_posts 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":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"1697f91da2f72a1799494ac8e1c819c5447dc527fe9bf5caefe3452df51669b8"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_CSV_Importer.import (cyclomatic 24): WC_Product_CSV_Importer.import 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":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1f0b57d7697c6df85b2b3940a4ccac7da00cc062cc96ba661f0a017974a286"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_System_Status_V2_Controller.get_environment_info_per_fields (cyclomatic 24): WC_REST_System_Status_V2_Controller.get_environment_info_per_fields 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f728ec6755481b6671f46fa982860c9b0e7b62ea1b748ee87ae05145083e34"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-order-functions.wc_get_order_types (cyclomatic 24): wc-order-functions.wc_get_order_types 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":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"0233ff83bac331877cd45e1548a075e88f346d9982596d982a642f3d5f489020"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-update-functions.wc_update_200_line_items (cyclomatic 24): wc-update-functions.wc_update_200_line_items 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":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8fe0f5d6179ad7d8eab9c1e901d47be08a0d7d4610bf4c6f8961c943dac60e"}},{"ruleId":"D1","level":"warning","message":{"text":"Segmenter.set_all_segments (cyclomatic 24): Segmenter.set_all_segments 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c5e97c9679c63f321623a65af41ed2e09654949c913e9fd2dbb7ffdb8eff3a"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductReviewForm.render (cyclomatic 24): ProductReviewForm.render 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewForm.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8702611f02007f429e33879f47c67d3756e684578de85b6a1dbda77c7282f46d"}},{"ruleId":"D1","level":"warning","message":{"text":"WooCommerceProductImporter.sync_variations (cyclomatic 24): WooCommerceProductImporter.sync_variations 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"00467856450d6f2eef91fbc11675a88da1d2302f55ec94089cd93d9f882ba4be"}},{"ruleId":"D1","level":"warning","message":{"text":"RestApiCache.get_cached_response (cyclomatic 24): RestApiCache.get_cached_response 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":"wp-content/plugins/woocommerce/src/Internal/Traits/RestApiCache.php"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"502c069aad252defb02b86fdd9efc64b86e137855a66b0df4f8c042ed95f6976"}},{"ruleId":"D1","level":"warning","message":{"text":"wp-login.login_header (cyclomatic 24): wp-login.login_header 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":"wp-login.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73a1cca3ae11e7ec7df770904d3983de77edc8758b2fdb8e2b47c35b453ba07"}},{"ruleId":"D1","level":"warning","message":{"text":"add-to-cart-variation.VariationForm.onUpdateAttributes (cyclomatic 24): add-to-cart-variation.VariationForm.onUpdateAttributes has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 505, 622). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee975820b543ad473c9d320ef4e6b1e553e91751a33e4288d09d61c263187cc"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::insertLegend (cyclomatic 24): jquery.flot.Plot::insertLegend has cyclomatic complexity 24 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":2634}}}],"partialFingerprints":{"codehealthFindingId/v1":"6715e14912e7f324a11f4482baa7c88f6103bb49e7ef3ad50aee34ed4a78518f"}},{"ruleId":"D1","level":"warning","message":{"text":"debounce (cyclomatic 24): debounce has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to 11 function items inside it that branch (shouldInvoke, debounced, cancel, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/a8c-address-autocomplete-service.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d047c8ebdecccc76df0bc567f3b9b962b4169b0be5d3fa95ca889dec36e54e62"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cyclomatic 24): (anonymous)::(anonymous)::fromElement has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5071}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a63e5f86d5a9a1a3805f3bb108f7b6447913a876b2d816a8e7dfe85adde838"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_AJAX.refund_line_items (cyclomatic 23): WC_AJAX.refund_line_items has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":2370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d727e29b4cc42e6491c14d2a9c1ae85f0e89e15007b4890bde919b51dd63c6"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Autoloader.autoload (cyclomatic 23): WC_Autoloader.autoload 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":"wp-content/plugins/woocommerce/includes/class-wc-autoloader.php"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c063f2d948ddf48a8437454edbbbffe60fe7c8b8c835efc571200ad48535dc2"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Webhook_Data_Store.search_webhooks (cyclomatic 23): WC_Webhook_Data_Store.search_webhooks has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-webhook-data-store.php"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e188d03c532a3102c1ad5084c6e4af895374725e482b8c44b1c96b9ba2c9b5"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Orders_V2_Controller.get_order_item_data (cyclomatic 23): WC_REST_Orders_V2_Controller.get_order_item_data 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a50ed5610927740c8b06342f81c943bfb37cea46f3072da036e00db160afa48d"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Shipping_Legacy_Free_Shipping.is_available (cyclomatic 23): WC_Shipping_Legacy_Free_Shipping.is_available 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":"wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0a6cf5b04ca4225dde716b9d7316c504882c1da5e46b1d3eb8ae651ca3089e"}},{"ruleId":"D1","level":"warning","message":{"text":"FedExShippingProvider.try_parse_tracking_number (cyclomatic 23): FedExShippingProvider.try_parse_tracking_number 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/FedExShippingProvider.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca82205c91e5c84022eb163ee394838da29f1038d78ece4eebdd2ba7a80a1559"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockHooksTrait.register_hooked_block (cyclomatic 23): BlockHooksTrait.register_hooked_block 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":"wp-content/plugins/woocommerce/src/Blocks/Utils/BlockHooksTrait.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"afec49f16b2485f1e0fe6c935e5082943f3d605896eac0e11e3efb80499d8860"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentsProviders.enhance_payment_gateway_details (cyclomatic 23): PaymentsProviders.enhance_payment_gateway_details 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"20523a835f053a3598a19b759aa8676eb311b9af811e7baa1c0233aee0a997de"}},{"ruleId":"D1","level":"warning","message":{"text":"OrdersTableQuery.process_date_args (cyclomatic 23): OrdersTableQuery.process_date_args 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fab67a56fa8b3e4ce22845ec1d210f43ce2cd1a11e04dcf0b572d8c1e8ca41"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderTagsProvider.register_tags (cyclomatic 23): OrderTagsProvider.register_tags has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92324d1be747466a897fa9cce6363affaeafda3a19faf4a99ddc3e6bffdfeca"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateUtils.update_order_from_request (cyclomatic 23): UpdateUtils.update_order_from_request has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8ea24721306471dfff4801cadfb2e00bd3dcfdf4df1935117d5da2a9d41568"}},{"ruleId":"D1","level":"warning","message":{"text":"SignupService.signup (cyclomatic 23): SignupService.signup has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/SignupService.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30a720f627a2435583e4ce4ee9fea7e325d1e20baaf50f338c274fa278d64b8"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.createHeader (cyclomatic 23): PHPMailer.createHeader has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2846}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f8b6a6855fc68baa9fe3b87fc97381ace9e9d5b09c3f53a57b2e5256b8a56a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cyclomatic 23): (anonymous)::(anonymous)::fromElement 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":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c0d7f86dbef9b1f25e3c375832e9ea3975932973d4c7bcb4d857d6f98c0e9a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cyclomatic 23): (anonymous)::(anonymous)::fromElement 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":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bfbed615e00e5b1fe894119a97f08092d9629cca24f5675b3a648148619f3dd"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cyclomatic 23): (anonymous)::(anonymous)::fromElement 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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":5055}}}],"partialFingerprints":{"codehealthFindingId/v1":"2489005caef2e37e3a38b916bf93e0cf23b571af9957cdcf41106f401f7c9bce"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cyclomatic 23): (anonymous)::(anonymous)::fromElement 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d70bc201c1f914fc8a6095cdeab7484e8175fe67c66e2c7933e9f9457c0d310"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cyclomatic 23): (anonymous)::(anonymous)::fromElement 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c387694618d38489b78716b773a64096b66e7a537d6af4dad6925d55f7e6526"}},{"ruleId":"D1","level":"warning","message":{"text":"api-template.have_rows (cyclomatic 22): api-template.have_rows 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":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b37089acebd48091677405c0adc9d30a8b37f2627d8308700a0654b2b7c04e"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-meta-box-functions.woocommerce_wp_text_input (cyclomatic 22): wc-meta-box-functions.woocommerce_wp_text_input has cyclomatic complexity 22 (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":"wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f56e87116c4fb46c9a2e05a278ad206c29950588f4fc5a17378ed62a1435298"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Orders_V1_Controller.prepare_item_for_database (cyclomatic 22): WC_REST_Orders_V1_Controller.prepare_item_for_database 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b4ffb9f78b6780e46c569d3f504674b4540b590cebe8cebd8389ea4f9e10ba"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Report_Sales_V1_Controller.prepare_item_for_response (cyclomatic 22): WC_REST_Report_Sales_V1_Controller.prepare_item_for_response 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29a25279e78b034eeae48dead26142f59e9e63dba8bfda997625ab739fcb72f"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Orders_V2_Controller.prepare_object_for_database (cyclomatic 22): WC_REST_Orders_V2_Controller.prepare_object_for_database 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5fdf71434cb2f8eed4c3be9182aad6de1e0c140e01c87b59d72314a20ac7ab"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.prepare_objects_query (cyclomatic 22): WC_REST_Products_V2_Controller.prepare_objects_query 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce05ac7cd6e84c97ea8e19aba4c092311ddfd2d69dbfff33d9f07c084f7e98be"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Product_Reviews_Controller.create_item (cyclomatic 22): WC_REST_Product_Reviews_Controller.create_item has cyclomatic complexity 22 (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"65390c94e951e55b1c8046067841a339770fb8b9d4b207251db9686a25f8a37f"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-product-functions.wc_get_formatted_variation (cyclomatic 22): wc-product-functions.wc_get_formatted_variation 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":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"26443e62ad302a3f2f0790cfded673eccef01197d9e9923158d9ea87a7808fbb"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-user-functions.wc_customer_bought_product (cyclomatic 22): wc-user-functions.wc_customer_bought_product 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":"wp-content/plugins/woocommerce/includes/wc-user-functions.php"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbc198270357ec310834fa8d97cd110eb1d43a22a4c35727067dec34b0b258a"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Widget_Brand_Nav.layered_nav_list (cyclomatic 22): WC_Widget_Brand_Nav.layered_nav_list 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"96eadb2658502412a048ae3fd1091e86c76ad3b789fdb109e6bd7babc8c4abd5"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Widget_Product_Categories.widget (cyclomatic 22): WC_Widget_Product_Categories.widget 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-product-categories.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4103893b1a945f77d58f2ad7f584d0cbdbfdbcfb59f64521d5222684262686b"}},{"ruleId":"D1","level":"warning","message":{"text":"CheckoutFields.validate_options (cyclomatic 22): CheckoutFields.validate_options 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":"wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFields.php"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf2900b5f57459532dea86aaeba8d4c692275e247d28a046c034a355f5b7799"}},{"ruleId":"D1","level":"warning","message":{"text":"CLIRunner.verify_cot_data (cyclomatic 22): CLIRunner.verify_cot_data 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":"wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"df07c1cd2267ea2c7360466d7739514eb2f4373cddf1aeec35ae814c879ef1f0"}},{"ruleId":"D1","level":"warning","message":{"text":"RestAbilityFactory.relax_output_schema_for_wc_quirks (cyclomatic 22): RestAbilityFactory.relax_output_schema_for_wc_quirks 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":"wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7db9478b9e22e8a3ff6f0500e545e259ef30fc5303399e05f96021f7119120"}},{"ruleId":"D1","level":"warning","message":{"text":"OrdersTableQuery.build_query (cyclomatic 22): OrdersTableQuery.build_query 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd2e5f21593f6eb8ba6280da3b45f72a45f919a4ae91c08f8eb0833ae1b4e7b"}},{"ruleId":"D1","level":"warning","message":{"text":"StockNotificationsDataStore.query (cyclomatic 22): StockNotificationsDataStore.query has cyclomatic complexity 22 (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":"wp-content/plugins/woocommerce/src/Internal/DataStores/StockNotifications/StockNotificationsDataStore.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfa6ada185a6da0d14c5c5e0b231ad55cc3947aa416b17ff3e7b64f7c6c8693"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractAddressSchema.validate_callback (cyclomatic 22): AbstractAddressSchema.validate_callback 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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/AbstractAddressSchema.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c4ef4e6fe9a64db66fa1aa3f0a7ea05b19d1c347f74f017c33beffcd765aa7"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.msgHTML (cyclomatic 22): PHPMailer.msgHTML 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":4660}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad1167f4f9d08bb58c033f58d5b1c4e1579ba08aa7c977c2c06d53d8e140fd0a"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelConfig.toArray (cyclomatic 22): ModelConfig.toArray has cyclomatic complexity 22 (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. This shape REPEATS in the file: one other method here (ModelConfig.fromArray) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelConfig.php"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"6efa2cebfc09ff4fa854b5c1103433ad79b29da76cac4bdff4ebd547b4aa4fd4"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelConfig.fromArray (cyclomatic 22): ModelConfig.fromArray has cyclomatic complexity 22 (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. This shape REPEATS in the file: one other method here (ModelConfig.toArray) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelConfig.php"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e46da0c2c88d1b97fda81f3d7b4241a7a8bf7becb6e4914c2772af45502b93"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::drawBar (cyclomatic 22): jquery.flot.Plot::drawBar has cyclomatic complexity 22 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"18971d411f0cc6a3d5249d04ec43bc8178e90cdd4541ba4754badf6f4877712d"}},{"ruleId":"D1","level":"warning","message":{"text":"cart.document.addEventListener(\u0022DOMContentLoaded\u0022) (cyclomatic 22): cart.document.addEventListener(\u0022DOMContentLoaded\u0022) has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 42, submitCartForm). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/cart.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d507378694c8ba5aee1b580672721e3220d1b5711b6484dec17fbcb9512f03"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 22): (anonymous) has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 42, submitCartForm, a function literal at line 22, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/cart.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f6a4c92c03ff6d7602c1552fa7d846a174ab211e478cb9138aab54c49f66ea"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cyclomatic 22): (anonymous)::(anonymous)::(anonymous)::main 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":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b296100dc76ebd9e729ec2c3f60eef1b29bcdb1525d2d8b9cb391c51131075"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cyclomatic 22): (anonymous)::(anonymous)::(anonymous)::main 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":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc1119477de1cdbb5c7f0a42976c010e827093341044a5ec44e7360f8458219"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cyclomatic 22): (anonymous)::(anonymous)::(anonymous)::main 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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad9fd9dfce543cbd356eff8b4655b92b5a22d5fb61a60239d5c73f48164b706"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cyclomatic 22): (anonymous)::(anonymous)::(anonymous)::main 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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"5926489ef94729d1444688f8db72dbfc1b10b506e7a004ee62c1dc4ff68dec76"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cyclomatic 22): (anonymous)::(anonymous)::(anonymous)::main 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f89df0f52d7becf691c7c7ca45ab42612dc0f1e53cb343e7be075ce3643166b"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cyclomatic 22): (anonymous)::(anonymous)::(anonymous)::main 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"b98be2cc57924d7d7b88e0eadbc0032a7428d204df4b518a5148a4c0b04778db"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 22): (anonymous) has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 13 function items inside it that branch (a function literal at line 2, a function literal at line 2, a function literal at line 2, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/payment-method-promotions.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7975f1598f3e946532bf9a1ec2fb9456d615190138db811502f10605687ee584"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_AJAX.json_search_products (cyclomatic 21): WC_AJAX.json_search_products 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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48780b1006ca166f4fd4fb5a065dc6065713ecfc0361ddd1231623a9475474c"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Form_Handler.pay_action (cyclomatic 21): WC_Form_Handler.pay_action 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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"963b7d58a1816b5f35e72a337328e1d1acd28c96f3339af3ed42abd69f7e3550"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Orders_V2_Controller.get_formatted_item_data (cyclomatic 21): WC_REST_Orders_V2_Controller.get_formatted_item_data has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3c3a89f95bd7410d10d5361824ca2de1ce573b5cfda001a650c82123955416"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Orders_Controller.prepare_object_for_database (cyclomatic 21): WC_REST_Orders_Controller.prepare_object_for_database 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bca50a474409c2585d190a7f89b817ff55a28be986603c18860f60c3768745c"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Product_Reviews_Controller.update_item (cyclomatic 21): WC_REST_Product_Reviews_Controller.update_item 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b33d7a0887a43e5efafaf9294dd0843d2275151e81bfb595b2825c5bdf0283a"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Collection_Block_Tracking.parse_blocks_track_data (cyclomatic 21): WC_Product_Collection_Block_Tracking.parse_blocks_track_data 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":"wp-content/plugins/woocommerce/includes/tracks/events/class-wc-product-collection-block-tracking.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd587267e8f4835305c5fbf00c79a176bed15b14b6e64d5b424a5f6a1a187a4"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Collection_Block_Tracking.get_query_filters_usage_data (cyclomatic 21): WC_Product_Collection_Block_Tracking.get_query_filters_usage_data has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/tracks/events/class-wc-product-collection-block-tracking.php"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd764049191a81649e401a3f736e42cf11f42460121f4bd7c137ccc2a267a533"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Products_Tracking.track_product_published (cyclomatic 21): WC_Products_Tracking.track_product_published has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"950ff76350baf1a5f99afaed0092f1642455a5dc6872690ba4e40f53dd59e66a"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Widget_Layered_Nav_Filters.widget (cyclomatic 21): WC_Widget_Layered_Nav_Filters.widget 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav-filters.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"99cf15aa48519a78b3ad2b063057e5657142a9ca3227f12b0ae1721bfaf109c0"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Widget_Layered_Nav.layered_nav_list (cyclomatic 21): WC_Widget_Layered_Nav.layered_nav_list 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e070b62930ab9bf64ea93baad67ac5c0bd56b7504ff879de9c9182edcea4ab"}},{"ruleId":"D1","level":"warning","message":{"text":"Connection.slice (cyclomatic 21): Connection.slice 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":"wp-content/plugins/woocommerce/src/Api/Pagination/Connection.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fbf6c67b4bcfadd0be7c5f0bf1bfa461cfe60a5899616cd2da099a1c36e0145"}},{"ruleId":"D1","level":"warning","message":{"text":"Dropdown.render (cyclomatic 21): Dropdown.render has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Dropdown.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28383d798f049dc96646de1a5cca4c28fb359829eaa1fbbb6d058383c88dc17"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductFilterTaxonomy.render (cyclomatic 21): ProductFilterTaxonomy.render has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5892ada0731d4229f192da8582180964a8ef88258221f8302a3ebe4e120875"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductSpecifications.render (cyclomatic 21): ProductSpecifications.render has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductSpecifications.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb352b1f81b2d37fd06487df8da9e47f71b0b0f6491fafddc513167d20523c8e"}},{"ruleId":"D1","level":"warning","message":{"text":"OrdersQuery.execute (cyclomatic 21): OrdersQuery.execute 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":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/OrdersQuery.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"89413927ea222dd9f342c21e54f1538b38b7ba61efd59c419802f458c9c02048"}},{"ruleId":"D1","level":"warning","message":{"text":"WooPayments.get_details (cyclomatic 21): WooPayments.get_details 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f11c4666680d956cd7a0eaf0afb0affb742fb9284761c52d171afb23ba8a67"}},{"ruleId":"D1","level":"warning","message":{"text":"WCEmailTemplateChangeSummary.diff_records (cyclomatic 21): WCEmailTemplateChangeSummary.diff_records 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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e06c6c35e59cee951ec28c5bcdc63847807afd791d5dd57651619d8f60a853"}},{"ruleId":"D1","level":"warning","message":{"text":"ListTable.prepare_items (cyclomatic 21): ListTable.prepare_items has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/ListTable.php"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5cc72c6e94d6f83f9c47f908ee4bc461aaa9778fc96b7740745423f1ffb2e7"}},{"ruleId":"D1","level":"warning","message":{"text":"URL.process_path (cyclomatic 21): URL.process_path 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":"wp-content/plugins/woocommerce/src/Internal/Utilities/URL.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec24b3ed683f90ec0a732c84faf1aab9109d6cf49799278598d20e57903d91b"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.wrapText (cyclomatic 21): PHPMailer.wrapText 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2678}}}],"partialFingerprints":{"codehealthFindingId/v1":"85907eefa8e1c0e4e5bf652b1149094b6adbb9b83388c234e95b1a168a7cbdcc"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRequirements.toRequiredOptions (cyclomatic 21): ModelRequirements.toRequiredOptions has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelRequirements.php"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cac18ad0e4a4ec89c0bca6f8c902f62d5e6233074b37c2e90992374e11b00d6"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-shipping-zone-methods.isValidFormattedNumber (cyclomatic 21): wc-shipping-zone-methods.isValidFormattedNumber has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 9 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 62). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6104678ec2bb8a61c3db8caf0f9088ee4b07794896cbd0be12a227e6f840fb"}},{"ruleId":"D1","level":"warning","message":{"text":"address-autocomplete-common.registerAddressAutocompleteProvider (cyclomatic 21): address-autocomplete-common.registerAddressAutocompleteProvider has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"wp-content/plugins/woocommerce/assets/js/frontend/utils/address-autocomplete-common.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f95808b36e4e80c4b4a7bc25189a69063f9d98b68d3711944ec30cfbca246b2"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::fillInSeriesOptions (cyclomatic 21): jquery.flot.Plot::fillInSeriesOptions has cyclomatic complexity 21 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::processData, jquery.flot.Plot::setRange, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21197c6f619b88cf10dc7ff0877fd707ebda9029f1a62fd460b3c7cf2e0e788"}},{"ruleId":"D1","level":"warning","message":{"text":"renderPostScreen (cyclomatic 21): renderPostScreen has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 7128, sortMetabox, copyEvents, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":7082}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8966c20bd2bbe88f22427da3ec643f2449def42afa4a3f2319edb9c79b5432"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 21): (anonymous) has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 90, a function literal at line 57, a function literal at line 175, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/country-select.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03fe6d59021befd4b5e84a4e222fcafbe922a7130010564dd2d0bcf4850fbd4"}},{"ruleId":"D1","level":"warning","message":{"text":"acf-wp-functions.acf_decode_post_id (cyclomatic 20): acf-wp-functions.acf_decode_post_id has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-wp-functions.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"448e42bf44877915f78a89944abc9a05c29ab3cf08bd143aa229cb72870bd1b3"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Helper._get_return_notices (cyclomatic 20): WC_Helper._get_return_notices 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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a0204da2373d96e36df9c36d5658e1ecd3c2d82ee2696b1255c19aab54a758"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Admin_List_Table_Orders.get_order_preview_item_html (cyclomatic 20): WC_Admin_List_Table_Orders.get_order_preview_item_html 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":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7407c4145deee9814eed7865504eebc5cbed8feeb36da93eed6c611676af63"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_AJAX.shipping_zone_methods_save_changes (cyclomatic 20): WC_AJAX.shipping_zone_methods_save_changes 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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3534}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc94834320f3e6c012a7f57c9c76f91d07bd42330010c443653842fa9a07f051"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Cart.show_shipping (cyclomatic 20): WC_Cart.show_shipping 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":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"c63772e912f27f4227733b953a7f22b1bf5c4c54f52b788ab0042ea0913c1c31"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Importer.set_product_data (cyclomatic 20): WC_Product_Importer.set_product_data 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":"wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c34662ddd4d09ccbf81bb4bb6b7c5903d8ce991287e0c45a0fba3eb16c5c2c8"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Orders_V2_Controller.save_object (cyclomatic 20): WC_REST_Orders_V2_Controller.save_object 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55dd1e9de4b0300e5b710c2296aad5b5cc6583a4c210d76e021fb6cd6cfd5e2"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-user-functions.wc_customer_has_capability (cyclomatic 20): wc-user-functions.wc_customer_has_capability 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":"wp-content/plugins/woocommerce/includes/wc-user-functions.php"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39346fc6827cd413dc044362a8416b2dc0e1403560764f3c8280b48896b7e3d"}},{"ruleId":"D1","level":"warning","message":{"text":"MobileAppQRLogin.approve_token (cyclomatic 20): MobileAppQRLogin.approve_token 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":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a49ce080a4cc92f57870e3c21bce52dd84889163e8952b2370c898570b7fdd5"}},{"ruleId":"D1","level":"warning","message":{"text":"DataStore.update_intervals_sql_params (cyclomatic 20): DataStore.update_intervals_sql_params 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd5f1689ba9860bfec8f4a4c4499108416670072131c41441f123d5116345b7"}},{"ruleId":"D1","level":"warning","message":{"text":"DataStore.sync_order_products (cyclomatic 20): DataStore.sync_order_products 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"be45dbfa1769daa4c9531b91a77bbd3d9a04e0d6482eab425a2c46c82893af97"}},{"ruleId":"D1","level":"warning","message":{"text":"ListProducts.execute (cyclomatic 20): ListProducts.execute 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":"wp-content/plugins/woocommerce/src/Api/Queries/Products/ListProducts.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfceaa6529faf385a5b7de9d4f32c81e15ca233e6401281663e7dcf26e6e6b68"}},{"ruleId":"D1","level":"warning","message":{"text":"BlockTemplatesController.add_db_templates_with_woo_slug (cyclomatic 20): BlockTemplatesController.add_db_templates_with_woo_slug 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTemplatesController.php"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bed8c408ec4ee6667ffe9c065a5745a1786d92b7258287da4ebb01fa959e5db"}},{"ruleId":"D1","level":"warning","message":{"text":"AddToCartForm.render (cyclomatic 20): AddToCartForm.render 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartForm.php"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c57eb918e7eff666fe31b8144991a6f5c743f93d316808a4a97d24663b4a9a9"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductStockIndicator.render (cyclomatic 20): ProductStockIndicator.render 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductStockIndicator.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"293f551a99af63054ea78539ac0b6c5d0c5a10e9efdf29ef67ebb8eb7bbbee9f"}},{"ruleId":"D1","level":"warning","message":{"text":"PatternRegistry.register_block_pattern (cyclomatic 20): PatternRegistry.register_block_pattern 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":"wp-content/plugins/woocommerce/src/Blocks/Patterns/PatternRegistry.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69ff7e9a30f42b554650df06416135a92ac7ee388749c44552696b80c0f3324"}},{"ruleId":"D1","level":"warning","message":{"text":"Request.capture_authorized_payment (cyclomatic 20): Request.capture_authorized_payment 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":"wp-content/plugins/woocommerce/src/Gateways/PayPal/Request.php"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b431705212fa4e2a5f8235da3ea7ece144b11c39ec3d21718ce8173e0cb766ab"}},{"ruleId":"D1","level":"warning","message":{"text":"Loader.add_component_settings (cyclomatic 20): Loader.add_component_settings 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"d903d6ea0a6f28da74567b51e816c238fa3af80a22cd530628fdc2a66ac3dc4d"}},{"ruleId":"D1","level":"warning","message":{"text":"Payments.process_payment_provider_states (cyclomatic 20): Payments.process_payment_provider_states 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0814970f592bc52bbf80de757d35a74ee2f4295edd9f90efa6221fb9cde50ea"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderSchema.get_item_response (cyclomatic 20): OrderSchema.get_item_response has cyclomatic complexity 20 (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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bd2390a3fc0ddcb9bb70dc1fa6ebdda514803ca986d674f7a5bee4dfc5325e"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductCollectionData.get_route_response (cyclomatic 20): ProductCollectionData.get_route_response 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":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductCollectionData.php"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3330cc937e0566699c15dd1971b054d90fa57eee011167edfd7100c2cce78a"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.DKIM_Add (cyclomatic 20): PHPMailer.DKIM_Add 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":5263}}}],"partialFingerprints":{"codehealthFindingId/v1":"5021f52fd0e6e38e339021fecf366d005452552be8ca9846365b18f0c0af24ae"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::displaySuggestions (cyclomatic 20): (anonymous)::displaySuggestions 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":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"967524cebc8d5edce3c8bdf3cc71df6ffce6e1b8c2bc085781fdd8757aef6ffe"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 20): (anonymous) has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 54, field_is_required, a function literal at line 33, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-i18n.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67c2f39f8ffc7eac1245075f9cc742dbf904b4802f298c785b910dfdc1b5482"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 20): (anonymous) has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 104, a function literal at line 45, success, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/geolocation.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b86bb6cd8e41662ca1b6384e6bc4bcb1700e3150a40b0512634b15b54250b23"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchSvg (cyclomatic 20): fetchSvg has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 1364, 1400, 1383, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"c98fabfff097221096b30a6bf1c89c40033eb9b623b52c780cfb930180832971"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Admin_Webhooks.save (cyclomatic 19): WC_Admin_Webhooks.save has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-webhooks.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f7700c30c69d2e3054b35be07202ff7d0146bc9a88a2f10a17232cfbf77e44"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_CSV_Importer_Controller.dispatch_ajax (cyclomatic 19): WC_Product_CSV_Importer_Controller.dispatch_ajax 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":"wp-content/plugins/woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b846ecbd4286f21c5040d5afb718e29230d03cdf375d352d3d27a2f0b22d7a1"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Report_Coupon_Usage.coupons_widget (cyclomatic 19): WC_Report_Coupon_Usage.coupons_widget 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b83762f7c6666e9e680c6b5c04aacf54bd843db24317e8bf26532f145e1c9e1"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Settings_Emails.email_notification_setting (cyclomatic 19): WC_Settings_Emails.email_notification_setting 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":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-emails.php"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4037579f443b70fa6db62a1dc593233c77ef6f2f9aced091ab92ff561e4798"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Settings_Payment_Gateways.suppress_admin_notices (cyclomatic 19): WC_Settings_Payment_Gateways.suppress_admin_notices 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":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1dd3d60e9a429d0d71ae7541a340103b0e1553a40d712c1feb22accbc6ec93"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-meta-box-functions.woocommerce_wp_checkbox (cyclomatic 19): wc-meta-box-functions.woocommerce_wp_checkbox has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2a3d49dd404a3ecc5af95c40a096a3ddfbfff99728a1f130733fd9af1072e7"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_AJAX.remove_order_item (cyclomatic 19): WC_AJAX.remove_order_item 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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"af50b90fdbcc29e474f7c63fec55ad45b634444c75ee68ca9212d9839e10d884"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Download_Handler.download_product (cyclomatic 19): WC_Download_Handler.download_product has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-download-handler.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5224a109c3176abf81d69bf8454ada283e978e3279036bf95060b95d23f68db4"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Form_Handler.process_registration (cyclomatic 19): WC_Form_Handler.process_registration 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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f54d547d34c66d11adaf4434d48c52bc785831af2a0776f8dbb07c86406ae4"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Frontend_Scripts.get_script_data (cyclomatic 19): WC_Frontend_Scripts.get_script_data has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b985bffde4727d5aed10f3bc52bb8fe572fd157c2f1578c8d81eeb37602fa16"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Shipping.calculate_shipping_for_package (cyclomatic 19): WC_Shipping.calculate_shipping_for_package 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":"wp-content/plugins/woocommerce/includes/class-wc-shipping.php"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b67b452baafe19b0f6bc715a0203b9a037073684c774970c638d524da13fdc9"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Controller.batch_items (cyclomatic 19): WC_REST_Controller.batch_items 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dbc4ce4f43d76063c0ede715b00793d39d0edf088021d7dd09063803cb46f1"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-core-functions._wc_delete_transients (cyclomatic 19): wc-core-functions._wc_delete_transients 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":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":2579}}}],"partialFingerprints":{"codehealthFindingId/v1":"868a88616c2251e1dfc440ab7876fed8ba5645d4ab419d095b7190195933c80b"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-product-functions.wc_get_related_products (cyclomatic 19): wc-product-functions.wc_get_related_products has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"108afad4c3290addba17099019f66b517a49177504b2ced3f16fe37f62e6ffce"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Widget_Brand_Nav.get_page_base_url (cyclomatic 19): WC_Widget_Brand_Nav.get_page_base_url 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcb3fe15e540342251a194a4354d485e10688b4c0ad3bb705d033de3f103f74"}},{"ruleId":"D1","level":"warning","message":{"text":"DataStore.get_attribute_subqueries (cyclomatic 19): DataStore.get_attribute_subqueries 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"e870d19ab5e76a6bda232b606ede9ad0cdeac8259a1987608598faba928017db"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductFilterCheckboxList.render (cyclomatic 19): ProductFilterCheckboxList.render 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"32aca50e8870602acc6c04034bf37361ec64565df8152c4fec40f3f88c7a19c7"}},{"ruleId":"D1","level":"warning","message":{"text":"AbilitiesLoader.register_abilities (cyclomatic 19): AbilitiesLoader.register_abilities 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":"wp-content/plugins/woocommerce/src/Internal/Abilities/AbilitiesLoader.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"499fa747a011f775535f9f464e1c255296894e20c96730278c0f68162288aeac"}},{"ruleId":"D1","level":"warning","message":{"text":"RestAbilityFactory.sanitize_schema (cyclomatic 19): RestAbilityFactory.sanitize_schema 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":"wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc7ad280d9b3c683332bcc3c1c4eb02a7091073cce30f66eaa34af2e517b5da"}},{"ruleId":"D1","level":"warning","message":{"text":"WooPaymentsService.standardize_onboarding_step_details (cyclomatic 19): WooPaymentsService.standardize_onboarding_step_details 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":2027}}}],"partialFingerprints":{"codehealthFindingId/v1":"872fcbd85cee86663c338f71d0411a910a1c0144a918fbedfd2c86fa7d1befdd"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsUISchema.get_group_actions (cyclomatic 19): SettingsUISchema.get_group_actions 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUISchema.php"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f154430326334dd1583c5b7c6bd8078d428958b5ec7366399e4084025528c2"}},{"ruleId":"D1","level":"warning","message":{"text":"LegacyDataHandler.backfill_order_to_datastore (cyclomatic 19): LegacyDataHandler.backfill_order_to_datastore 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/LegacyDataHandler.php"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"7428eac71439e41bd154bfff416a6dedbce425519817a1c484171faa4f62cbca"}},{"ruleId":"D1","level":"warning","message":{"text":"OrdersTableMetaQuery.sanitize_meta_query (cyclomatic 19): OrdersTableMetaQuery.sanitize_meta_query 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a3d419a29d04b8b98093701beed4fc2eadc61191994fcd53938c4687bbf23f"}},{"ruleId":"D1","level":"warning","message":{"text":"OrdersTableMetaQuery.generate_where_for_clause_key (cyclomatic 19): OrdersTableMetaQuery.generate_where_for_clause_key has cyclomatic complexity 19 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b3e717315b12ddb1b23ecb0c3b7bc2fb7c5fbe26eeae5c377a47569ec8384f"}},{"ruleId":"D1","level":"warning","message":{"text":"WCEmailTemplateChangeSummary.diff_records_three_way (cyclomatic 19): WCEmailTemplateChangeSummary.diff_records_three_way 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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e6731b3d7f54c903a58b3fe58da5f7530f83f22b6b2d3b6b6c4d3d730634cc"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.validate_setting_value (cyclomatic 19): Controller.validate_setting_value 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2238ea8fb9bcc87d5c95b29d5d6b77dfdeba255cad7a822834c0cbea390a97b"}},{"ruleId":"D1","level":"warning","message":{"text":"Checkout.validate_callback (cyclomatic 19): Checkout.validate_callback 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":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Checkout.php"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"224222a98e232018df4d377ea3ffad18b5ce228c917d81006ff0823003b7c470"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractDataTransferObject.convertEmptyArraysToObjects (cyclomatic 19): AbstractDataTransferObject.convertEmptyArraysToObjects 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":"wp-includes/php-ai-client/src/Common/AbstractDataTransferObject.php"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"684b2716e4d2cec113137397ab6313539d63af17acb1a5840d7ad3fc97d05011"}},{"ruleId":"D1","level":"warning","message":{"text":"observe (cyclomatic 19): observe has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1635, 1633). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c962d6d81c58ceb0a997ab39f50692fd8789826988c99f67a752d14aca008e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 19): (anonymous) has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 5 function items inside it that branch (i, a function literal at line 1, C, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/onboarding/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcf8426ba28c923f7a76224f9377f8882fc72849a146544357e11cb70743e90"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Admin_Post_Types.set_new_price (cyclomatic 18): WC_Admin_Post_Types.set_new_price 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7b272e72f231890162c3d72621034d06b4ca9be9b5fc2e2b245b4247b1aa16"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Admin_List_Table_Products.query_filters (cyclomatic 18): WC_Admin_List_Table_Products.query_filters 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":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbc6dd933120e4c4b0914ba5413ecdd7b279a4dd66c036b4060975d1e6b2c9e"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Report_Customer_List.column_default (cyclomatic 18): WC_Report_Customer_List.column_default 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-customer-list.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8adcb24e80b142e5bf7fb5ab33a868872070ffb475dfab83778f03e3cbb156e"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Settings_Advanced.save (cyclomatic 18): WC_Settings_Advanced.save 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":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-advanced.php"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d0d33d56349d1e421e8e3967c270d15ba29758b811dcb2f89ce6fc83ac3005"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Auth.auth_endpoint (cyclomatic 18): WC_Auth.auth_endpoint 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":"wp-content/plugins/woocommerce/includes/class-wc-auth.php"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b28f57cdb8bb4c4597432736a8160ace452bbf7b20b984310902b522880dd5"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Checkout.create_order (cyclomatic 18): WC_Checkout.create_order 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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"564062138adc34f609ae8cdd1cebb92d56be9149dcbb3bdf7c3e8d5d562494a1"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Order_Factory.get_orders (cyclomatic 18): WC_Order_Factory.get_orders 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":"wp-content/plugins/woocommerce/includes/class-wc-order-factory.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4c007f61dd6390b249af3ad46e07a085259857b22388c4d057c0c1f586757b"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Regenerate_Images_Request.filter_image_sizes_to_only_missing_thumbnails (cyclomatic 18): WC_Regenerate_Images_Request.filter_image_sizes_to_only_missing_thumbnails 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":"wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b1ac5484e02f0de4281417f87b80ecad6cd456b2b5b789734b82a1ce9be4ec"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Regenerate_Images.maybe_resize_image (cyclomatic 18): WC_Regenerate_Images.maybe_resize_image 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":"wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8310efde45316070ea519f77194a5be1b90f25627b0214e36b7b66b9167459c"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Tax.sort_rates_callback (cyclomatic 18): WC_Tax.sort_rates_callback 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":"wp-content/plugins/woocommerce/includes/class-wc-tax.php"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fec0a18bbbe231d9b24976638a14a75fb57f6e074ea432ba944207df63ddb7"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Variable_Data_Store_CPT.validate_prices_data (cyclomatic 18): WC_Product_Variable_Data_Store_CPT.validate_prices_data 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"2917a570c083137f4ca7356ae183992572a047e41b011de6f6060670b28c7728"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Products_V1_Controller.delete_item (cyclomatic 18): WC_REST_Products_V1_Controller.delete_item 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc440cb31a2049e401c3e8573600c3fd6c8ebc014714bf2a49298574d4faf04"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Product_Reviews_Controller.get_items (cyclomatic 18): WC_REST_Product_Reviews_Controller.get_items 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dee91be8d60bd4fa0b12be91c84af76bda6d5cfbfbb92f13a2c351982388769"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-product-functions.wc_product_post_type_link (cyclomatic 18): wc-product-functions.wc_product_post_type_link 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":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fbe78a3e57f956a75188d76ed00bccad658ee9caaa1e1dbc3e3f0b81598468"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-template-functions.wc_get_formatted_cart_item_data (cyclomatic 18): wc-template-functions.wc_get_formatted_cart_item_data 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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":4503}}}],"partialFingerprints":{"codehealthFindingId/v1":"b495ae2fd766b9b86df81fcc25313049fddc17e035caa248c20a075d79ff4cfd"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-term-functions._wc_term_recount (cyclomatic 18): wc-term-functions._wc_term_recount 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":"wp-content/plugins/woocommerce/includes/wc-term-functions.php"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"363dfeb161dbfe176528cdc2a16f6d918b1be50a9da4527d4922ce47a3b35cdf"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Widget_Brand_Nav.widget (cyclomatic 18): WC_Widget_Brand_Nav.widget 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"843bc6e4f5ceaefe42c0984cb1f33f55a4d57238dc5973f8fc1978e71532dff5"}},{"ruleId":"D1","level":"warning","message":{"text":"Orders.get_formatted_item_data (cyclomatic 18): Orders.get_formatted_item_data 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":"wp-content/plugins/woocommerce/src/Admin/API/Orders.php"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"36626bc339ace8eb1021b465be915cccdcf088b7ed85c2d45e80975df1d36b5a"}},{"ruleId":"D1","level":"warning","message":{"text":"TimeInterval.next_quarter_start (cyclomatic 18): TimeInterval.next_quarter_start 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f90e0c0068b21105e4ad49d49cb25bd78a618e6114e02d7c534edbdb09832e"}},{"ruleId":"D1","level":"warning","message":{"text":"CanadaPostShippingProvider.try_parse_tracking_number (cyclomatic 18): CanadaPostShippingProvider.try_parse_tracking_number 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"808b7351bc55ad0a15598b437974e640a2342e04b02c689a8fd152d1a8c77e1b"}},{"ruleId":"D1","level":"warning","message":{"text":"RoyalMailShippingProvider.try_parse_tracking_number (cyclomatic 18): RoyalMailShippingProvider.try_parse_tracking_number 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/RoyalMailShippingProvider.php"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7553ae4f403fa6b630c0e5524fa890cd95ba36dd67dc9ed2d5cc623c0d59ceb0"}},{"ruleId":"D1","level":"warning","message":{"text":"InstalledExtensions.get_data (cyclomatic 18): InstalledExtensions.get_data 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":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4cbaed12e09340ed61775e5fb4e19b1718d33da2f1ca3a01115315be516903"}},{"ruleId":"D1","level":"warning","message":{"text":"SchemaHandle.get_all_metadata (cyclomatic 18): SchemaHandle.get_all_metadata 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":"wp-content/plugins/woocommerce/src/Api/Utils/SchemaHandle.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed57f622da70cafb72354bf07ac7239052c0e29355a8f4c99fed9eb97e89ee83"}},{"ruleId":"D1","level":"warning","message":{"text":"CheckoutExpressPaymentBlock.sync_express_payment_attrs (cyclomatic 18): CheckoutExpressPaymentBlock.sync_express_payment_attrs 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CheckoutExpressPaymentBlock.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88ea5909857f9f08a470d03ab82a086e9b6c817e30646486a2bc4cf2bb1f349"}},{"ruleId":"D1","level":"warning","message":{"text":"Utils.parse_frontend_location_context (cyclomatic 18): Utils.parse_frontend_location_context 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/Utils.php"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e870bda3848562d2b24751b62fe6c938cb4d4d1269db44f72dc1dc673ada69c9"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductFilterAttribute.render (cyclomatic 18): ProductFilterAttribute.render 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"490763d3bc47e13308e62babe38f268bb3282d927426b9dc10c88cceef85f2a3"}},{"ruleId":"D1","level":"warning","message":{"text":"PaymentGateway.get_provider_links (cyclomatic 18): PaymentGateway.get_provider_links 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fa49a5efa7c370ad081e370d3b6e0ac6a28a422cbc8b35082ecdd2bdb0cd7e"}},{"ruleId":"D1","level":"warning","message":{"text":"SubmissionHandler.handle (cyclomatic 18): SubmissionHandler.handle 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":"wp-content/plugins/woocommerce/src/Internal/OrderReviews/SubmissionHandler.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2726584e158100c87ff80c1844bc8e3e713dccbd697e77a05a77c1d2e830064"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderActionsRestController.send_email (cyclomatic 18): OrderActionsRestController.send_email 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":"wp-content/plugins/woocommerce/src/Internal/Orders/OrderActionsRestController.php"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed151ff150304a05f101b1ed9e52ac61c796c1b3a58d09d67fc10a26127bdad"}},{"ruleId":"D1","level":"warning","message":{"text":"PushTokensDataStore.get_by_token_or_device_id (cyclomatic 18): PushTokensDataStore.get_by_token_or_device_id has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/DataStores/PushTokensDataStore.php"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45bbbf1403f0d1f30e6ae0bec87f3415f260db0e70dbb7ebcef94e5a6691d29"}},{"ruleId":"D1","level":"warning","message":{"text":"PushTokenValidator.validate_token (cyclomatic 18): PushTokenValidator.validate_token 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":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/Validators/PushTokenValidator.php"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da0f81cd48275cbefd471fddd27ce121eb6fdcdbea068a131d29dfd3c66a64b"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractPaymentGatewaySettingsSchema.sanitize_field_value (cyclomatic 18): AbstractPaymentGatewaySettingsSchema.sanitize_field_value has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a15f03ff973641230d26d9ed930edd03c84927c5cd7f1e2ccd783c231ddea72"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.sendmailSend (cyclomatic 18): PHPMailer.sendmailSend 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"8689616d2af81f7932353db5269491954b9184a9f6b2988c770cc7425ba22ab6"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery-ui-timepicker-addon.$.datepicker.parseTime::strictParse (cyclomatic 18): jquery-ui-timepicker-addon.$.datepicker.parseTime::strictParse has cyclomatic complexity 18 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This is NOT this file\u0027s highest cyclomatic complexity: jquery-ui-timepicker-addon.$.datepicker.formatTime (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aba6ceb80fe8d4138b104a4b8ba0802d2c58ccf85bc582e839b0af2bc63660b"}},{"ruleId":"D1","level":"warning","message":{"text":"Autoplay (cyclomatic 18): Autoplay has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 8 function literals inside it that branch (lines 2659, 2672, 2687, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":2618}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e115323a2baa3acb8bc7c844156418e6b9e50f89e10c300e7e68a90916d1276"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 21 function items inside it that branch (a function literal at line 27, a function literal at line 143, onLoadBackboneModal, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-providers.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46d26e6a9e29a79ad4bb3710bfc0bd28709a8214ced843c0d053edf07073d1a"}},{"ruleId":"D1","level":"warning","message":{"text":"replaceForPosition (cyclomatic 18): replaceForPosition has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 2229, 2282, 2236, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81b5e490ba7c1bf1c41bb89d6971cb521bd561b057690bf0ecbc402f0836c07"}},{"ruleId":"D1","level":"warning","message":{"text":"acf-wp-functions.acf_get_object_type (cyclomatic 17): acf-wp-functions.acf_get_object_type 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":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-wp-functions.php"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"21909e9c3667a8550df69a176e3365b1b6d9c8db37d4969ce78a92cb8cc5a2a4"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Abstract_Order.update_taxes (cyclomatic 17): WC_Abstract_Order.update_taxes 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"7539c2a9b73a5eea5bd746a6a2e05206b67d8813e9702c55b7b7b9dd6d446334"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Admin_Attributes.add_attribute (cyclomatic 17): WC_Admin_Attributes.add_attribute 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-attributes.php"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7da12d6347f64bdddddbae85b8e2a6b16fde4d43b0aae6a357a673c6ee40a9f"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Helper.get_subscriptions (cyclomatic 17): WC_Helper.get_subscriptions 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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1889}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8a0254bb4ef2314fea3e1f658850a16b23846698cb0e7b524e088146552b71"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Report_Sales_By_Product.products_widget (cyclomatic 17): WC_Report_Sales_By_Product.products_widget 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea16b6c05be0c8ef8394a7f240307432e98164f539b0efe787f8d92ba2e25cf"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Report_Stock.column_default (cyclomatic 17): WC_Report_Stock.column_default 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-stock.php"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a93e139d0dc19d9342ae29772fb069464103dc019d9b9f9f7f85ecb38f6a0c"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Deprecated_Action_Hooks.trigger_hook (cyclomatic 17): WC_Deprecated_Action_Hooks.trigger_hook 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":"wp-content/plugins/woocommerce/includes/class-wc-deprecated-action-hooks.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"75467cb35e55502b10ae929460b24c36cb3b3b3ed0146c84b64cc691bd41550c"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Order_Item.get_formatted_meta_data (cyclomatic 17): WC_Order_Item.get_formatted_meta_data 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":"wp-content/plugins/woocommerce/includes/class-wc-order-item.php"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc97e168abb78230f1650b586d1725c667c768700c67efbd9e29841ff0c437b6"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Post_Types.register_post_types (cyclomatic 17): WC_Post_Types.register_post_types 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":"wp-content/plugins/woocommerce/includes/class-wc-post-types.php"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"106180cda26fb4ec8d94c5070e1237a89f326833b14684cfa8882d2d2d45ffdb"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Variable.get_available_variation (cyclomatic 17): WC_Product_Variable.get_available_variation 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":"wp-content/plugins/woocommerce/includes/class-wc-product-variable.php"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"db42352be62999a65d5ef02b5e44912753f20542381caca6d97a6fc49d4610ce"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Regenerate_Images_Request.task (cyclomatic 17): WC_Regenerate_Images_Request.task 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":"wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5bf2ff086b87d083003121bfca0ce16698e88f374bfccd237dbfe74e0ccaa0"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Taxes_V1_Controller.create_or_update_tax (cyclomatic 17): WC_REST_Taxes_V1_Controller.create_or_update_tax 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e0797c9fb1a01d6a8c2b0391c974bd05ae40c979d1bff510b8f15fdcd49c4c"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.delete_item (cyclomatic 17): WC_REST_Products_V2_Controller.delete_item 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1699}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f0f0f4c3a71b15d48b33fb2caab28115f7384ad9335756420360355fc2cd78"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-update-functions.wc_update_240_shipping_methods (cyclomatic 17): wc-update-functions.wc_update_240_shipping_methods 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":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"a954cecd2e39a3cd2dd35b5606c28cefba0efc28fa664722c07e0fa28acac601"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.consolidate_customer_id_filters (cyclomatic 17): Controller.consolidate_customer_id_filters 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cbb77a9f0e85c425c91e40d5bd9d6517ce1ce8395118a7674cd333ef66ddb02"}},{"ruleId":"D1","level":"warning","message":{"text":"DataStore.update (cyclomatic 17): DataStore.update 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7522010f268b48ef14ec2f6c252224fba8a1f36e48f243006b214951d7496d"}},{"ruleId":"D1","level":"warning","message":{"text":"TimeInterval.get_timeframe_dates (cyclomatic 17): TimeInterval.get_timeframe_dates 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"9680a46069cfc0093278163a8d56dbec47b8d37ff1f9b2ce4a0bb7e65c15f42b"}},{"ruleId":"D1","level":"warning","message":{"text":"PageController.get_current_screen_id (cyclomatic 17): PageController.get_current_screen_id 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":"wp-content/plugins/woocommerce/src/Admin/PageController.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"916f027d66e93d7335a015c51d0b111973134ea3357fef310c260e795b0021ef"}},{"ruleId":"D1","level":"warning","message":{"text":"GraphQLControllerBase.process_request (cyclomatic 17): GraphQLControllerBase.process_request 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":"wp-content/plugins/woocommerce/src/Api/Infrastructure/GraphQLControllerBase.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9c7934841c8e8a59975d5f6b57aabf24381800fbcd8252d2aef54daeca90f2"}},{"ruleId":"D1","level":"warning","message":{"text":"ReserveStock.reserve_stock_for_order (cyclomatic 17): ReserveStock.reserve_stock_for_order 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":"wp-content/plugins/woocommerce/src/Checkout/Helpers/ReserveStock.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"45fb6cc4fdda4b853b49b5a95d62b8be2dabe72db9a785b67c640246dc3d8cb3"}},{"ruleId":"D1","level":"warning","message":{"text":"Request.authorize_or_capture_payment (cyclomatic 17): Request.authorize_or_capture_payment 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":"wp-content/plugins/woocommerce/src/Gateways/PayPal/Request.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ce487b442972302b3274548e70b32168c5a91962759f45fbc4c0ad5b2b947f"}},{"ruleId":"D1","level":"warning","message":{"text":"RestAbilityFactory.sanitize_args_to_schema (cyclomatic 17): RestAbilityFactory.sanitize_args_to_schema 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":"wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d119a946fbff54605d2df68bed092f2e9640c0ca35c458474b0794d0eecc0ad"}},{"ruleId":"D1","level":"warning","message":{"text":"PageController.is_order_screen (cyclomatic 17): PageController.is_order_screen 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"899808e256abbae7e86a3a01d181db7112824d7d373c82057500559a5ebf1dd2"}},{"ruleId":"D1","level":"warning","message":{"text":"Reviews.get_bulk_action_notice_messages (cyclomatic 17): Reviews.get_bulk_action_notice_messages 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":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/Reviews.php"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd431db9dd47671796b03eccc21ac090df76d12aebd90d797fb0ab776c04651"}},{"ruleId":"D1","level":"warning","message":{"text":"WooPaymentsService.sanitize_onboarding_step_error (cyclomatic 17): WooPaymentsService.sanitize_onboarding_step_error 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa3b0210ec1473a8c52daf3d48849833626659021b9403f5bf367f13089df89"}},{"ruleId":"D1","level":"warning","message":{"text":"WooPaymentsService.disable_test_account (cyclomatic 17): WooPaymentsService.disable_test_account 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"6975620dada74d96ed10a873d2e6eb2c414b57b35109950cb735e8f0c3be942e"}},{"ruleId":"D1","level":"warning","message":{"text":"WcPayWelcomePage.get_active_payments_task_slug (cyclomatic 17): WcPayWelcomePage.get_active_payments_task_slug 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":"wp-content/plugins/woocommerce/src/Internal/Admin/WcPayWelcomePage.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3a82618a0ca53f4945cc20a94acd3ffad2e226a8a4beccf89f4a55b8b36228"}},{"ruleId":"D1","level":"warning","message":{"text":"WooCommerceProductImporter.set_product_taxonomies (cyclomatic 17): WooCommerceProductImporter.set_product_taxonomies 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"a197cda8b765b4d89edacdbf00f1665d78af8ddf88de78c90361fb6a522189e1"}},{"ruleId":"D1","level":"warning","message":{"text":"WooCommerceProductImporter.handle_product_images (cyclomatic 17): WooCommerceProductImporter.handle_product_images 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3844e74263db65796856db1ec0a6780b98ba78baf69b9ab31defaad8c851dae"}},{"ruleId":"D1","level":"warning","message":{"text":"OrdersTableDataStore.update (cyclomatic 17): OrdersTableDataStore.update has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":2899}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e6e68f3af43c37cd8db78909650abdeb9ee1d0174754b176b5a9b66be1903ad"}},{"ruleId":"D1","level":"warning","message":{"text":"WCEmailTemplateChangeSummary.summarize (cyclomatic 17): WCEmailTemplateChangeSummary.summarize 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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4bfcfac8d1ed8096e23f4bf60aa52ece497e64e87e76275cbe309ca7243826"}},{"ruleId":"D1","level":"warning","message":{"text":"ReceiptRenderingEngine.get_order_data (cyclomatic 17): ReceiptRenderingEngine.get_order_data 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":"wp-content/plugins/woocommerce/src/Internal/ReceiptRendering/ReceiptRenderingEngine.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"87523fbe644f9a27363a90b10f7559228ddfcb3024a7444f6b4f9da56e5dfc68"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.check_permission_for_fulfillments (cyclomatic 17): Controller.check_permission_for_fulfillments 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2bc8fca05e4f9faebd3dac72504f8e0b5ecfaf757bcc030f18525219bc12a4"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.get_product_data (cyclomatic 17): Controller.get_product_data 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":2453}}}],"partialFingerprints":{"codehealthFindingId/v1":"207594f3e3f8b98101dae39c22a655ce8775266dd26163080dc3adbf89ff202d"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailSettingsSchema.get_item_response (cyclomatic 17): EmailSettingsSchema.get_item_response 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Schema/EmailSettingsSchema.php"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c6c39c7d3cefd4c336a01147b84a908fe2807226d8850ebf02bd2e81586a84"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.validate_setting_value (cyclomatic 17): Controller.validate_setting_value 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea268445ca5c1acf733dbfa349812a7d9cf58bdeb7ac747ab6c82477f21e357c"}},{"ruleId":"D1","level":"warning","message":{"text":"NotificationCreatePage.process_create_form (cyclomatic 17): NotificationCreatePage.process_create_form 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":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/NotificationCreatePage.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"88216a273be2e92f9e3ecb5a33f6ff7e7158e8defc97a2de7e7376b69a6801e3"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderAttributionMeta.get_origin_label (cyclomatic 17): OrderAttributionMeta.get_origin_label 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":"wp-content/plugins/woocommerce/src/Internal/Traits/OrderAttributionMeta.php"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ff7505440ab8cc2a650142875ca79fdbc7a111812d348f7442577b57207ee6"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.encodeHeader (cyclomatic 17): PHPMailer.encodeHeader 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3706}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04da3cbd4db9e06bb80efd242121e51e724d12cb5543ab53ea340912c661a23"}},{"ruleId":"D1","level":"warning","message":{"text":"SMTP.get_lines (cyclomatic 17): SMTP.get_lines 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":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc20616170decff6329cb2061338fa8452321d121f9a26264c591bdce87fff6f"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flexslider.$.fn.flexslider (cyclomatic 17): jquery.flexslider.$.fn.flexslider has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. 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":"wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.js"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a844ab07cace7d0a67b4ea55627b50b85035cb08943f12a605de7cdc1daa20b4"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.Plot::setRange (cyclomatic 17): jquery.flot.Plot::setRange has cyclomatic complexity 17 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages. This shape REPEATS in the file: 10 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 11 times rather than 11 independent problems. Splitting this body alone leaves the other 10 exactly as they are. Where these are variations on one operation, the change that clears all 11 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"729187eb065abca105824d2177d65fd13d262913d71b3ff14c5567f7bbd5e2c7"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.flot.pie.init::combine (cyclomatic 17): jquery.flot.pie.init::combine has cyclomatic complexity 17 (threshold 15). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.pie.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4d67fa3f7da543723680a50a4c3920ee6aca1f2439f5d01849d6d132ca769c"}},{"ruleId":"D1","level":"warning","message":{"text":"free.icon (cyclomatic 17): free.icon has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. 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. This is NOT this file\u0027s highest cyclomatic complexity: free.observe (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":4267}}}],"partialFingerprints":{"codehealthFindingId/v1":"343e25d3df70980ff21e422f9f083cdb7aae305fd36fdf9392fb79d6bb68c044"}},{"ruleId":"D1","level":"warning","message":{"text":"pro.icon (cyclomatic 17): pro.icon has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. 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. This is NOT this file\u0027s highest cyclomatic complexity: pro.observe (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3bfd7a278d1adc9f4c24b9892b44e2dc9aa659a6f8c87fd759d5bdc0a46548"}},{"ruleId":"D1","level":"warning","message":{"text":"Lazy (cyclomatic 17): Lazy has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 1905, 1920). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf7ac28e943f7d9c8cedec5b25e10f4b74fc6e2b7bc6bbd0cb9ff6bc49807f5"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 4 function items inside it that branch (checkPasswordStrength, strengthMeter, includeMeter, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/password-strength-meter.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b362dedcb807d6f26a47b96959af1a6a7366333f6e94f765c48d70a8fc9cee2"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. 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":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84d3a278126e03f4db20892e77800ac9c39b9c4f5d1a69197e1e6da0efbdcb1"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 17 function items inside it that branch (x::E, x, x::f, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/onboarding/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b854f7cd9824a172a054fb59bb24e56662c0ed28856bcbb2d71267549b287d9"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 6 function items inside it that branch (A::C, A::C::c, a function literal at line 1, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/onboarding/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a77514c2baaa86b55cfe3a2dbdff3701bf67a602fb5f0ca8fc17ecb0028c2f2"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 17 function items inside it that branch (V::E, V, V::y, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/payment-method-promotions.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"074dfb36e536c543cd7bab39441f7fc0eaa42497f85b9f1b659fd142c3b28ba0"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Shipping_Method.add_rate (cyclomatic 16): WC_Shipping_Method.add_rate 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1287397e99b7ef0d1b2f7358c4cc6ffbb640e7b760540f14e6765d03785160"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Widget.get_current_page_url (cyclomatic 16): WC_Widget.get_current_page_url 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4189739a4b38dd1e039387f21e64597615edcbcbd3479156304f1cad3901d8f"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Admin_Meta_Boxes.save_meta_boxes (cyclomatic 16): WC_Admin_Meta_Boxes.save_meta_boxes 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc809241bae4be748fe9c3fa94df1145ef30db22b3e5575b18d69a6aa6293ad"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Meta_Box_Coupon_Data.output (cyclomatic 16): WC_Meta_Box_Coupon_Data.output 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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f56e5923750c3f8fd6eb464d27b377712560ce078292fdec8b599f1769da843"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Report_Downloads.column_default (cyclomatic 16): WC_Report_Downloads.column_default 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-downloads.php"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c230317dcfe69a58a13942b8443ad69242d9f6c38c14a2a3deacf26b7f57ec"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-meta-box-functions.woocommerce_wp_textarea_input (cyclomatic 16): wc-meta-box-functions.woocommerce_wp_textarea_input 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":"wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"900ee411bac215b14f1bee4e3407fc13addf9fac6b5fb6776735b13be67a8953"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Checkout.process_checkout (cyclomatic 16): WC_Checkout.process_checkout 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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"c821c085628f5c609a62e84880f27b564a3a89900ec99f2bfc2a36b76fe253ce"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Coupon.is_valid_for_product (cyclomatic 16): WC_Coupon.is_valid_for_product 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":"wp-content/plugins/woocommerce/includes/class-wc-coupon.php"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"28c42deec79eb7ccfdd26d3898151cd65550d10be421b4b3af5190cd21831afa"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Form_Handler.process_login (cyclomatic 16): WC_Form_Handler.process_login 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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec22e0f8536229ee861d468650cfa05bb859685ebb2408a62c2ff462bb4bb096"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Geo_IP._common_get_record (cyclomatic 16): WC_Geo_IP._common_get_record 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":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"daca723d7f512edf4e4a877ccf936e130233b78e939e8df0da06f9fc8067bf87"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Order_Factory.get_order_item (cyclomatic 16): WC_Order_Factory.get_order_item has cyclomatic complexity 16 (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":"wp-content/plugins/woocommerce/includes/class-wc-order-factory.php"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4c7240d6f5c6aacf0d3b574b314ea73e87b35a724c403a93e73d4ef83caee2"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.find_matching_product_variation (cyclomatic 16): WC_Product_Data_Store_CPT.find_matching_product_variation 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccadbc3606aed2120bfa9aa292fb664c497645ba4e99f3a7de01f0fc599fd2d7"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Variable_Data_Store_CPT.read_variation_attributes (cyclomatic 16): WC_Product_Variable_Data_Store_CPT.read_variation_attributes 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22d5d7106ea466616015183cb1373c764ff29953ab0949ad11728bcce8e8939"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Product_Importer.process_item (cyclomatic 16): WC_Product_Importer.process_item 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":"wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f724e93c6e656e514a4e738bc4d56223c61c8c40c2783fe379fb7c7cc8a0bc"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-admin-update-functions.wc_admin_update_270_delete_report_downloads (cyclomatic 16): wc-admin-update-functions.wc_admin_update_270_delete_report_downloads 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":"wp-content/plugins/woocommerce/includes/react-admin/wc-admin-update-functions.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f4737c46b44e74cf12c8b1a49ea161e8bde5a4e81c13ddb994417576505d80"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Controller.get_fields_for_response (cyclomatic 16): WC_REST_Controller.get_fields_for_response 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e30196f466cbe6b186606668e537d01985039188fdfb76f3e768a19cf8e2a6"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Product_Reviews_Controller.prepare_item_for_response (cyclomatic 16): WC_REST_Product_Reviews_Controller.prepare_item_for_response 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c950b408bcc083fc19c2019bd469ca1701e92d51a7906f17493169f240e7ca"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_REST_Terms_Controller.get_items (cyclomatic 16): WC_REST_Terms_Controller.get_items 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cfba1855ca957dd8ba3e2f16b4da24856625e4833d234c327e8012eaeab1a65"}},{"ruleId":"D1","level":"warning","message":{"text":"WC_Shipping_Free_Shipping.is_available (cyclomatic 16): WC_Shipping_Free_Shipping.is_available 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":"wp-content/plugins/woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c265d03eb135459dc2f0f7f4f18c3ac980c1b6fcbf459c9a83831d38f7f4765"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-product-functions.wc_get_price_including_tax (cyclomatic 16): wc-product-functions.wc_get_price_including_tax 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. This is NOT this file\u0027s highest cyclomatic complexity: wc-product-functions.wc_update_product_lookup_tables_column (cyclomatic 17) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"dedb5a6c31b0d502d9ecbed16b2a3793e276de179d35805d17ca9788a48b5a95"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-template-functions.wc_product_post_class (cyclomatic 16): wc-template-functions.wc_product_post_class 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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfff3a5ad5359b83b144a59d360c9c5c3949c44e55e2659068b251db8335a3c"}},{"ruleId":"D1","level":"warning","message":{"text":"wc-update-functions.wc_update_200_taxrates (cyclomatic 16): wc-update-functions.wc_update_200_taxrates 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":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e575de5b044ffb31db09d2c81e1e66dd2f051d60dff0c18618378adcbdd6634"}},{"ruleId":"D1","level":"warning","message":{"text":"UPSShippingProvider.try_parse_tracking_number (cyclomatic 16): UPSShippingProvider.try_parse_tracking_number 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/UPSShippingProvider.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31b636e7cd8fcb37df05da005b780ba4409e620807615577a16d2cf283a5ce9"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteInboxNotificationsDataSourcePoller.validate_spec (cyclomatic 16): RemoteInboxNotificationsDataSourcePoller.validate_spec 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":"wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/RemoteInboxNotificationsDataSourcePoller.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dea25dbca3181efe6607db4edf3861a03cd8a1b9d0e9731060afeccc092e3a6"}},{"ruleId":"D1","level":"warning","message":{"text":"ResolverHelpers.authorize_method_shape_is_valid (cyclomatic 16): ResolverHelpers.authorize_method_shape_is_valid 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":"wp-content/plugins/woocommerce/src/Api/Infrastructure/ResolverHelpers.php"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"79aa7be61f089b945b7bc113e7010f561c75c4eebf1f8b7ff611d16945ed94de"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.disable_enhanced_pagination (cyclomatic 16): Controller.disable_enhanced_pagination 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/Controller.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"72467a2fed6fb7eb0aae6833333a01c6cfacc18b37969acaebc312ad4952e417"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductFilterAttribute.get_default_product_attribute (cyclomatic 16): ProductFilterAttribute.get_default_product_attribute has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d58de77872574b5fa0eeb4aa37522fda6036fc8fb4fd8d8cb69583e35d2df8"}},{"ruleId":"D1","level":"warning","message":{"text":"ProductImage.render_image (cyclomatic 16): ProductImage.render_image 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductImage.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a60e126f98e36766ea9e7fab3ba3be013b4f6e9173d1d9536e059e18f15b86"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractAutomatticAddressProvider.load_jwt (cyclomatic 16): AbstractAutomatticAddressProvider.load_jwt has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/AddressProvider/AbstractAutomatticAddressProvider.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d30a478bfa4362b6205562d39c055df731adc71a0fb706343090d7c7e411a2"}},{"ruleId":"D1","level":"warning","message":{"text":"AddressProviderController.get_registered_providers (cyclomatic 16): AddressProviderController.get_registered_providers 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":"wp-content/plugins/woocommerce/src/Internal/AddressProvider/AddressProviderController.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0b1783f68f1d6e72306832ec13821178096cacb94d2782d661c3385c2fb58c"}},{"ruleId":"D1","level":"warning","message":{"text":"Homescreen.maybe_set_default_shipping_options_on_home (cyclomatic 16): Homescreen.maybe_set_default_shipping_options_on_home 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Homescreen.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b286cf775b97cb30c3b75529f3d549fd2692e095f9444b0436f25d01349765da"}},{"ruleId":"D1","level":"warning","message":{"text":"Payments.get_payment_providers (cyclomatic 16): Payments.get_payment_providers 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5bc20f8beb98c0784668c1786d673a8644f659667e8851ac117e280a822189"}},{"ruleId":"D1","level":"warning","message":{"text":"WooPayments.get_onboarding_url (cyclomatic 16): WooPayments.get_onboarding_url 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c963809dbb89c8322162a348dafdaf9f9f98bfc772eab305befb7901e55fd58"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsUISchema.transform_legacy_field (cyclomatic 16): SettingsUISchema.transform_legacy_field 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUISchema.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4863eb5a296a19c9681e4f80c7a697f68559aab688b67eec6de90ddf72addfb3"}},{"ruleId":"D1","level":"warning","message":{"text":"WooCommerceProductImporter.set_basic_product_properties (cyclomatic 16): WooCommerceProductImporter.set_basic_product_properties 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0b4cc511db338404833f037a142042a3187fd793f3dcf6047491facf57e727"}},{"ruleId":"D1","level":"warning","message":{"text":"ComingSoonRequestHandler.experimental_filter_theme_json_theme (cyclomatic 16): ComingSoonRequestHandler.experimental_filter_theme_json_theme 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":"wp-content/plugins/woocommerce/src/Internal/ComingSoon/ComingSoonRequestHandler.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"591049a64d7d565eb27e08512a3597c6f32171a77ba4b0cb70845ff98a6f0426"}},{"ruleId":"D1","level":"warning","message":{"text":"WCEmailTemplateAutoApplier.apply_to_post (cyclomatic 16): WCEmailTemplateAutoApplier.apply_to_post 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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a89beff770933834a9e8606570136c0c0d16f13d3ad09e076fe109277e7405"}},{"ruleId":"D1","level":"warning","message":{"text":"Controller.create_item (cyclomatic 16): Controller.create_item 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"895fe460c6c6957929c76a8b1afd72f28083daebcfbf00cdae3e16f9f1435d08"}},{"ruleId":"D1","level":"warning","message":{"text":"DataUtils.validate_line_items (cyclomatic 16): DataUtils.validate_line_items 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/DataUtils.php"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"538e16150fd7abce509b4f387c3a7d6403c481fc4c55d014a69570a756b307a4"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailsSettingsSchema.get_field_default_value (cyclomatic 16): EmailsSettingsSchema.get_field_default_value 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eed067b223f8db9628477c718ddf3c43127bcdde6f1886069d9a2bf652297b4"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailsSettingsSchema.sanitize_field_value (cyclomatic 16): EmailsSettingsSchema.sanitize_field_value 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"e894b351d2130640888cece23a6fbc7e0b42ef31ecafb95775bc8a5939c4d196"}},{"ruleId":"D1","level":"warning","message":{"text":"URL.get_parent_url (cyclomatic 16): URL.get_parent_url 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":"wp-content/plugins/woocommerce/src/Internal/Utilities/URL.php"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f7e122792913ef794bc29ed69b1bdf870832b56fd901d90e377c443689d72c"}},{"ruleId":"D1","level":"warning","message":{"text":"OrderController.get_failed_order_stock_error (cyclomatic 16): OrderController.get_failed_order_stock_error 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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/OrderController.php"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"392b86465136cf4e5bf950780e06e22a14a3fcf6fff02792550e5dee16162400"}},{"ruleId":"D1","level":"warning","message":{"text":"ArrayUtil.deep_compute_or_compare_array_diff (cyclomatic 16): ArrayUtil.deep_compute_or_compare_array_diff 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":"wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6ea3a2dffe43deb4da259508946bbf808f1b21f4d482ef27c8ed49edd32756"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.smtpSend (cyclomatic 16): PHPMailer.smtpSend 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b6784c03dad259bfe6091019ea77ea881a5a12c4457f0e477f26c113d457e8"}},{"ruleId":"D1","level":"warning","message":{"text":"PHPMailer.setLanguage (cyclomatic 16): PHPMailer.setLanguage 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2490}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ed110f04e3c6d510ac56b31796327c95b43bd03e178eb01cf9df40c2800983"}},{"ruleId":"D1","level":"warning","message":{"text":"ErrorMessageExtractor.extractFromResponseData (cyclomatic 16): ErrorMessageExtractor.extractFromResponseData has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Http/Util/ErrorMessageExtractor.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b37e90626ba4fed3b15708208d062478bf6a9ee3063317469c147c9e1c5a71"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelRequirements.fromPromptData (cyclomatic 16): ModelRequirements.fromPromptData 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":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelRequirements.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"0316a517ab31d6299fe82b17715f69ed9476fb332e19bc9314ce28a028d6efe3"}},{"ruleId":"D1","level":"warning","message":{"text":"AbstractOpenAiCompatibleTextGenerationModel.prepareGenerateTextParams (cyclomatic 16): AbstractOpenAiCompatibleTextGenerationModel.prepareGenerateTextParams 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":"wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleTextGenerationModel.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bd10401d530860e01d6bd1363d21b15030939eacb05a85692aebcbdce3a19c"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderRegistry.createDefaultProviderRequestAuthentication (cyclomatic 16): ProviderRegistry.createDefaultProviderRequestAuthentication 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":"wp-includes/php-ai-client/src/Providers/ProviderRegistry.php"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19ff3c7e9078e4aab3d605fe4025b28f75c66928e19452b97275e86066d8db0"}},{"ruleId":"D1","level":"warning","message":{"text":"free.makeInlineSvgAbstract (cyclomatic 16): free.makeInlineSvgAbstract has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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. This is NOT this file\u0027s highest cyclomatic complexity: free.observe (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b176a836528470c90833ee56a374bb39a34b329322c1583ac89a2960dfe5f98"}},{"ruleId":"D1","level":"warning","message":{"text":"pro.makeInlineSvgAbstract (cyclomatic 16): pro.makeInlineSvgAbstract has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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. This is NOT this file\u0027s highest cyclomatic complexity: pro.observe (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b007feb4ef8e6a70a6e778d6bb707d02f0b71236006873a79f21ad51e595c1c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 66, a function literal at line 9, a function literal at line 81, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5327b0246b1c14b2239a6cacf74a4b082ded003275089a5cf6f5526a439d08"}},{"ruleId":"D1","level":"warning","message":{"text":"findIcon (cyclomatic 16): findIcon has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 2023, 2050). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"c825893474e82df26de6c5da56af5d59f8adc5670c4aa84e58984f97fe808d92"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 3 function items inside it that branch (a, c, A). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/onboarding/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bb5ba558a8ae788c7ad5f2d1775d078f3e85fd35583e8adfb08bf03659a739"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 3 function items inside it that branch (a, c, A). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/payment-method-promotions.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4c94698156f894d1d466ae23b9521baff74f4ebf94f2d400f2abe8f2288abc"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_Controller.prepare_object_for_database (cognitive 197): WC_REST_Products_Controller.prepare_object_for_database has cognitive complexity 197 (threshold 15). Drivers by points: if/else 80 (140 pts), ternaries 10 (36 pts), boolean chains 11, loops 4 (10 pts) (nesting depth added 92). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d79dda15519b43d3e86bcc04f70938fdd79edcd17e471a0f20922b543838d2"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.prepare_object_for_database (cognitive 197): Controller.prepare_object_for_database has cognitive complexity 197 (threshold 15). Drivers by points: if/else 80 (140 pts), ternaries 10 (36 pts), boolean chains 11, loops 4 (10 pts) (nesting depth added 92). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4592db48fb5e60e9da121a746d44bae8226e0d7e34fa9d7c6bb497f5dce3553"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 180): (anonymous) has cognitive complexity 180 (threshold 15). Drivers by points: if/else 105 (139 pts), boolean chains 21, ternaries 11 (20 pts) (nesting depth added 43). Most of this is not in the body itself: 2 of the 180 points are its own statements and the rest belongs to 126 function items inside it that branch (a function literal at line 1451, a function literal at line 1403, change_country, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dbb730d431b7550313a642ad808d02a5a86316f0367021a40406be48657a7d"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.prepare_object_for_database (cognitive 169): WC_REST_Products_V2_Controller.prepare_object_for_database has cognitive complexity 169 (threshold 15). Drivers by points: if/else 66 (112 pts), ternaries 11 (38 pts), boolean chains 11, loops 3 (8 pts) (nesting depth added 78). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5e2511851c2811b1dede54244e66a8f0bc6b3b819e8848353f441eeeac34e8"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::processData (cognitive 164): jquery.flot.Plot::processData has cognitive complexity 164 (threshold 15). Drivers by points: if/else 31 (128 pts), loops 10 (24 pts), boolean chains 9, match/switch 1 (3 pts) (nesting depth added 113). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc074a23cafb0c7c8e368777c209598b9ee054dc172cd326918690b76cef4669"}},{"ruleId":"D2","level":"warning","message":{"text":"_injectTimePicker (cognitive 147): _injectTimePicker has cognitive complexity 147 (threshold 15). Drivers by points: ternaries 21 (65 pts), if/else 24 (58 pts), loops 4 (14 pts), boolean chains 10 (nesting depth added 88). Of this number, 105 points are the body\u0027s own statements and 42 belong to 6 function literals inside it that branch. 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"5266cf983c8a30fe78be1b043803ffd82826a311dd3524773b72690197ad4980"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V1_Controller.set_product_meta (cognitive 141): WC_REST_Products_V1_Controller.set_product_meta has cognitive complexity 141 (threshold 15). Drivers by points: if/else 51 (94 pts), ternaries 7 (29 pts), boolean chains 10, loops 3 (8 pts) (nesting depth added 70). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a19d4ae6fe42252b939252794072bcb025f5cf8a303b1df1904a41cc84e50e1"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Structured_Data.generate_product_data (cognitive 138): WC_Structured_Data.generate_product_data has cognitive complexity 138 (threshold 15). Drivers by points: if/else 38 (94 pts), ternaries 7 (24 pts), loops 3 (11 pts), boolean chains 9 (nesting depth added 81). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-structured-data.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8abdd15a12be8af6de83310b752e127562f85d0586e4930a1b4e233fc91aac4"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Meta_Box_Order_Data.output (cognitive 128): WC_Meta_Box_Order_Data.output has cognitive complexity 128 (threshold 15). Drivers by points: if/else 50 (98 pts), boolean chains 11, loops 6 (10 pts), match/switch 2 (5 pts), ternaries 3 (4 pts) (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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a53f518bf7e20230296dd03b9a3c27ecfff90f5932f69ae13e1bcff6c19a13b"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Report.get_order_report_data (cognitive 126): WC_Admin_Report.get_order_report_data has cognitive complexity 126 (threshold 15). Drivers by points: if/else 43 (90 pts), ternaries 7 (18 pts), loops 5 (8 pts), boolean chains 6, match/switch 2 (4 pts) (nesting depth added 63). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-admin-report.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"447bab4c07a51043a5265a30673b47a2d6b545a1a934858e8285f0cf99c30aff"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 126): (anonymous) has cognitive complexity 126 (threshold 15). Drivers by points: if/else 77 (88 pts), boolean chains 20, ternaries 12 (16 pts), error handling 1, match/switch 1 (nesting depth added 15). Most of this is not in the body itself: 6 of the 126 points are its own statements and the rest belongs to 91 function items inside it that branch (a function literal at line 965, show_and_hide_controls, a function literal at line 1329, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6813110f64a42c340ab26686c8b57f613689fc6af75ba9d8bedd732003e22a6b"}},{"ruleId":"D2","level":"warning","message":{"text":"_limitMinMaxDateTime (cognitive 120): _limitMinMaxDateTime has cognitive complexity 120 (threshold 15). Drivers by points: if/else 47 (102 pts), boolean chains 18 (nesting depth added 55). 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"803e8086e9067a9dfaeeaa476c09b0f424a4cca06d529471d184eb93e880c63c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Variable_Data_Store_CPT.read_price_data (cognitive 119): WC_Product_Variable_Data_Store_CPT.read_price_data has cognitive complexity 119 (threshold 15). Drivers by points: if/else 16 (61 pts), ternaries 8 (46 pts), boolean chains 6, loops 2 (6 pts) (nesting depth added 87). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"2793556b9e65f0eed350577b7edd35d74ccced395211988c93372a344eb0833c"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 118): (anonymous) has cognitive complexity 118 (threshold 15). Drivers by points: if/else 53 (80 pts), boolean chains 19, ternaries 9 (16 pts), error handling 2 (3 pts) (nesting depth added 35). None of this is in the body itself: all 118 points belong to 60 function items inside it that branch (onSaveResponse, a function literal at line 767, a function literal at line 560, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcb95efa463ddfaf62cd15d0e017326aea3d5f6b1fb2e203a0bac5cc703baf9"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Meta_Box_Product_Data.save_variations (cognitive 117): WC_Meta_Box_Product_Data.save_variations has cognitive complexity 117 (threshold 15). Drivers by points: ternaries 25 (74 pts), if/else 13 (38 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 75). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc48d9551cafed64fa590d0767c48570e37cd3f89b98651a2bf82af03ddba23"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::drawGrid (cognitive 115): jquery.flot.Plot::drawGrid has cognitive complexity 115 (threshold 15). Drivers by points: if/else 40 (97 pts), boolean chains 13, loops 3 (5 pts) (nesting depth added 59). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc19a338c4ac9c6319b334372eaf628f7bf138e4a9b9ccd26f9640dd6c80d5a"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Geo_IP._setup_segments (cognitive 104): WC_Geo_IP._setup_segments has cognitive complexity 104 (threshold 15). Drivers by points: boolean chains 50, if/else 14 (40 pts), loops 4 (14 pts) (nesting depth added 36). 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":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bf7fb4f3a1ef6b953b1c1a2136ec42af3e8a3240d33a461e933a12c2614d5c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shortcode_Checkout.order_pay (cognitive 101): WC_Shortcode_Checkout.order_pay has cognitive complexity 101 (threshold 15). Drivers by points: if/else 22 (67 pts), ternaries 6 (15 pts), boolean chains 10, loops 2 (7 pts), error handling 1 (2 pts) (nesting depth added 60). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5c0eed09f3ee3e1a4544aac16edb216ab88f595a5182e10941666578bdc5f9"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V1_Controller.save_variations_data (cognitive 99): WC_REST_Products_V1_Controller.save_variations_data has cognitive complexity 99 (threshold 15). Drivers by points: if/else 30 (74 pts), ternaries 5 (15 pts), boolean chains 6, loops 2 (4 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c2607c48723350ac80a6c545e64a7dbe4dabda85bd6cbaa6dcefafbd0e5369"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-admin-functions.wc_save_order_items (cognitive 96): wc-admin-functions.wc_save_order_items has cognitive complexity 96 (threshold 15). Drivers by points: if/else 18 (56 pts), loops 6 (18 pts), ternaries 4 (18 pts), boolean chains 4 (nesting depth added 64). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a295f978d2e0400c36ab4a60b3342f34a8afd6919135ccc6a767ce97d74bab8"}},{"ruleId":"D2","level":"warning","message":{"text":"ShopifyMapper.map_variable_product_data (cognitive 95): ShopifyMapper.map_variable_product_data has cognitive complexity 95 (threshold 15). Drivers by points: if/else 16 (48 pts), boolean chains 19, ternaries 5 (19 pts), loops 3 (9 pts) (nesting depth added 52). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyMapper.php"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"2146c3612e027ec44532a8679b7ad6f22d4b15fb885c2ad66d6a50d8532358fb"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductQuery.prepare_objects_query (cognitive 95): ProductQuery.prepare_objects_query has cognitive complexity 95 (threshold 15). Drivers by points: if/else 31 (43 pts), ternaries 15 (39 pts), boolean chains 7, loops 4 (6 pts) (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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab719d490b03cf4e50653353f1402cb9895deb981eeb96a50e155cf0849537e3"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.shipping_providers_save_changes (cognitive 91): WC_AJAX.shipping_providers_save_changes has cognitive complexity 91 (threshold 15). Drivers by points: if/else 34 (72 pts), boolean chains 11, loops 3 (4 pts), ternaries 1 (4 pts) (nesting depth added 42). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3889}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c85af3a87b1119aeaf10a65e7b48e4b3c3d78d0e73ba9961eda356a0668cbea"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.prettyPhoto.$.fn.prettyPhoto (cognitive 91): jquery.prettyPhoto.$.fn.prettyPhoto has cognitive complexity 91 (threshold 15). Drivers by points: if/else 46 (63 pts), boolean chains 18, loops 2 (4 pts), match/switch 1 (4 pts), ternaries 2 (nesting depth added 22). Most of this is not in the body itself: 9 of the 91 points are its own statements and the rest belongs to 25 function items inside it that branch (_fitToViewport, _build_overlay, a function literal at line 114, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8a53bc99b7ff75d7ab284f56d3ace590ff64f8221d02949d839938f9310495"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Checkout.validate_posted_data (cognitive 90): WC_Checkout.validate_posted_data has cognitive complexity 90 (threshold 15). Drivers by points: if/else 14 (49 pts), boolean chains 16, ternaries 4 (14 pts), match/switch 2 (8 pts), loops 2 (3 pts) (nesting depth added 52). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a19d25e330a86cb89d4940f03b86f3f1a9f4420803f501ab35baf8b0b57e95"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flexslider.$.flexslider (cognitive 86): jquery.flexslider.$.flexslider has cognitive complexity 86 (threshold 15). Drivers by points: boolean chains 85, if/else 1. 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":"wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f617678e6db5b85c8cafe8a36a3272416072bb4daae70147e4434dbc5a743f2"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Cart.add_to_cart (cognitive 83): WC_Cart.add_to_cart has cognitive complexity 83 (threshold 15). Drivers by points: if/else 30 (56 pts), ternaries 5 (13 pts), boolean chains 9, loops 2 (4 pts), error handling 1 (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c7801034ea5cc86a13b8603356726085e7d4a70338e0187566475f0d9a0b5d4"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 83): (anonymous) has cognitive complexity 83 (threshold 15). Drivers by points: if/else 55 (69 pts), boolean chains 13, ternaries 1 (nesting depth added 14). Most of this is not in the body itself: 13 of the 83 points are its own statements and the rest belongs to 38 function items inside it that branch (a function literal at line 429, a function literal at line 148, a function literal at line 111, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba04630141e96d566109642b47d216da8dfa14049a6234af5f495eeccaebe292"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Product_Variations_Controller.prepare_object_for_database (cognitive 82): WC_REST_Product_Variations_Controller.prepare_object_for_database has cognitive complexity 82 (threshold 15). Drivers by points: if/else 42 (62 pts), ternaries 5 (11 pts), boolean chains 5, error handling 1 (2 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a01454c78ebc12fd4e4c3f9be341d5fa17c820eddb6cecedf4d3f0d1f839f3b"}},{"ruleId":"D2","level":"warning","message":{"text":"AddToCartWithOptions.render (cognitive 80): AddToCartWithOptions.render has cognitive complexity 80 (threshold 15). Drivers by points: if/else 23 (48 pts), ternaries 6 (14 pts), boolean chains 12, loops 2 (6 pts) (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba9c7fce72563940de752552d924a5cc1d4db87d52a8c0d7f6c0c8020ec4233"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Product_Variations_V2_Controller.prepare_object_for_database (cognitive 76): WC_REST_Product_Variations_V2_Controller.prepare_object_for_database has cognitive complexity 76 (threshold 15). Drivers by points: if/else 39 (58 pts), ternaries 5 (11 pts), boolean chains 5, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e337402c3ad9fa85431fe67ebe710e621e37f962a118442720e4836213057c"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.tipTip.$.fn.tipTip (cognitive 74): jquery.tipTip.$.fn.tipTip has cognitive complexity 74 (threshold 15). Drivers by points: if/else 31 (53 pts), boolean chains 19, ternaries 1 (2 pts) (nesting depth added 23). Most of this is not in the body itself: 2 of the 74 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 106, 55, 74, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-tiptip/jquery.tipTip.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e013e4c9121c27c177be889f33cfdc9084599ac5757f9a24a6593065f1116701"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cognitive 74): (anonymous)::(anonymous)::apply has cognitive complexity 74 (threshold 15). Drivers by points: if/else 34 (59 pts), error handling 2 (7 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"31aa2cb05d6b4f0bfe05c7e49dc95575040cf76e3a59199039f3a737d1ab34b5"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cognitive 74): (anonymous)::(anonymous)::apply has cognitive complexity 74 (threshold 15). Drivers by points: if/else 34 (59 pts), error handling 2 (7 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa67cebe0bad0da660897d5b049a2a98d831e3bbe30e5a4a5399ef39859056b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cognitive 74): (anonymous)::(anonymous)::apply has cognitive complexity 74 (threshold 15). Drivers by points: if/else 34 (59 pts), error handling 2 (7 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":4705}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d075cfb14daa3a639e38d07ac4c3e7f18e08fb15e1a1e91e465e0a3ae67de1b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cognitive 74): (anonymous)::(anonymous)::apply has cognitive complexity 74 (threshold 15). Drivers by points: if/else 34 (59 pts), error handling 2 (7 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":4689}}}],"partialFingerprints":{"codehealthFindingId/v1":"630c6de93de87731c050a8c3bd3ca0dc5a0622cab8886f9dc62662deaaa3564d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cognitive 74): (anonymous)::(anonymous)::apply has cognitive complexity 74 (threshold 15). Drivers by points: if/else 34 (59 pts), error handling 2 (7 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc7b9def905f9ceab3a1197907f79394a1c2b5320788b1ac558f3d838a8b445"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::apply (cognitive 74): (anonymous)::(anonymous)::apply has cognitive complexity 74 (threshold 15). Drivers by points: if/else 34 (59 pts), error handling 2 (7 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a730f6a1e4dd6c6c171059dcef9b64c0428b5cc79e33dc976e0ab9ffbd0b287"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Form_Handler.save_address (cognitive 71): WC_Form_Handler.save_address has cognitive complexity 71 (threshold 15). Drivers by points: if/else 19 (43 pts), match/switch 2 (12 pts), boolean chains 5, loops 2 (5 pts), ternaries 2 (4 pts), error handling 1 (2 pts) (nesting depth added 40). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"845f9181379d2afa434d547e905439414683384df0289860808aec823d42fba2"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.stack.init::stackData (cognitive 71): jquery.flot.stack.init::stackData has cognitive complexity 71 (threshold 15). Drivers by points: if/else 16 (34 pts), loops 8 (27 pts), boolean chains 8, ternaries 2 (nesting depth added 37). 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":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.stack.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bb0dd4130168f02d19bd23f090e8e3178e695dff37466957ab4d0aa143668e"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-order-functions.wc_create_refund (cognitive 70): wc-order-functions.wc_create_refund has cognitive complexity 70 (threshold 15). Drivers by points: if/else 21 (43 pts), loops 3 (10 pts), boolean chains 9, ternaries 3 (7 pts), error handling 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d472badb2a3e3137a7aa28a972ec0627820bac6a0c0c146a8847953d3564ac1"}},{"ruleId":"D2","level":"warning","message":{"text":"add-to-cart-variation.VariationForm.onUpdateAttributes (cognitive 69): add-to-cart-variation.VariationForm.onUpdateAttributes has cognitive complexity 69 (threshold 15). Drivers by points: if/else 18 (54 pts), loops 3 (12 pts), boolean chains 3 (nesting depth added 45). Most of this is not in the body itself: 1 of the 69 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 505, 622). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ddaf665957c307c9ddf4771f811b46fc7cc16e6c2c5b5ba9e3410b4cdd4127"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 69): (anonymous) has cognitive complexity 69 (threshold 15). Drivers by points: if/else 20 (43 pts), loops 8 (21 pts), boolean chains 4, ternaries 1 (nesting depth added 36). Most of this is not in the body itself: 1 of the 69 points is its own statement and the rest belongs to 10 function items inside it that branch (a function literal at line 13, a function literal at line 79, a function literal at line 164, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/reports.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc79dc5befb4e1e74f82822d16d5803f803f79a102b48f00a68c771e33e15a7"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Form_Handler.update_cart_action (cognitive 67): WC_Form_Handler.update_cart_action has cognitive complexity 67 (threshold 15). Drivers by points: if/else 17 (41 pts), boolean chains 18, ternaries 2 (5 pts), loops 1 (3 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d796b7805b4db3694b81ab7ddb989c1ba0fedd86e4b4256d95f3a549c430dd0"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_CSV_Importer.expand_data (cognitive 66): WC_Product_CSV_Importer.expand_data has cognitive complexity 66 (threshold 15). Drivers by points: if/else 27 (48 pts), ternaries 4 (12 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4b455d624dc72999917892021a13389b45ed4ba1a84d8516235f05843e341d"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-update-functions.wc_update_200_line_items (cognitive 65): wc-update-functions.wc_update_200_line_items has cognitive complexity 65 (threshold 15). Drivers by points: if/else 9 (31 pts), ternaries 5 (17 pts), loops 5 (12 pts), boolean chains 5 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"96cf5f702771d6b31bf845bb0f6288330b6a8e9976b2de77c0ee9b2b9a9ae13b"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.prepare_objects_query (cognitive 64): Controller.prepare_objects_query has cognitive complexity 64 (threshold 15). Drivers by points: if/else 36 (46 pts), boolean chains 9, ternaries 4 (8 pts), 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"8925f52eca3f0900cc82dc18fa958d8d2717a07af8eee33c1e753bba4bb37e2e"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 64): (anonymous) has cognitive complexity 64 (threshold 15). Drivers by points: if/else 32, boolean chains 30, ternaries 2. Most of this is not in the body itself: 3 of the 64 points are its own statements and the rest belongs to 51 function items inside it that branch (updateLegacyPreview, pickAttachmentDisplayUrl, getCachedAttachmentUrl, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35d3225273fb71876cde38a05e382cb10690951715e03a9718b9731fa0b902f"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cognitive 63): (anonymous)::(anonymous)::(anonymous)::normalize has cognitive complexity 63 (threshold 15). Drivers by points: if/else 16 (43 pts), boolean chains 11, loops 3 (9 pts) (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe94d9f07b79eca2ab5d2063fc0aae5b265bd637beb493b7c73a390c85cb2be6"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cognitive 63): (anonymous)::(anonymous)::(anonymous)::normalize has cognitive complexity 63 (threshold 15). Drivers by points: if/else 16 (43 pts), boolean chains 11, loops 3 (9 pts) (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab8403d5b6ee69ea6833f79b85e653ad81906231982183bbca598e9439746b1"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cognitive 63): (anonymous)::(anonymous)::(anonymous)::normalize has cognitive complexity 63 (threshold 15). Drivers by points: if/else 16 (43 pts), boolean chains 11, loops 3 (9 pts) (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9434f61d83917cf726e89763321659aa3d0066b549358b62e237c0f4d71fccf"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cognitive 63): (anonymous)::(anonymous)::(anonymous)::normalize has cognitive complexity 63 (threshold 15). Drivers by points: if/else 16 (43 pts), boolean chains 11, loops 3 (9 pts) (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"47db73c10abd5155988973def02860bdf98531f27b2fb6bc09e09b7c459fd0a9"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Canvas.render (cognitive 62): jquery.flot.Canvas.render has cognitive complexity 62 (threshold 15). Drivers by points: if/else 8 (46 pts), loops 4 (16 pts) (nesting depth added 50). 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":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1b2e8d880f66e8cd8bc3cb13b9e522cdcffcedf4715fd1a5ba9c134ee57dcc"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order_Data_Store_CPT.update_post_meta (cognitive 61): WC_Order_Data_Store_CPT.update_post_meta has cognitive complexity 61 (threshold 15). Drivers by points: if/else 15 (28 pts), ternaries 8 (21 pts), boolean chains 6, loops 3 (4 pts), match/switch 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"9314722284a283cc011d06d7e47ec7c849b208f0b4436498007ed01c4638450e"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery-ui-timepicker-addon.$.datepicker._optionDatepicker (cognitive 61): jquery-ui-timepicker-addon.$.datepicker._optionDatepicker has cognitive complexity 61 (threshold 15). Drivers by points: if/else 26 (49 pts), boolean chains 7, loops 2 (5 pts) (nesting depth added 26). 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"7faa81f37b3d0f99a77a2a947a834d1b12364712e4f2b66997ba8c4cdde12067"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::drawSeriesLines::plotLineArea (cognitive 60): jquery.flot.Plot::drawSeriesLines::plotLineArea has cognitive complexity 60 (threshold 15). Drivers by points: if/else 22 (45 pts), boolean chains 14, loops 1 (nesting depth added 23). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":2235}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd9d7831469b2a3db8ebd6eb6e34bf50abe16d6b257a866d2795ee0db487201"}},{"ruleId":"D2","level":"warning","message":{"text":"WCEmailTemplateSelectiveApplier.merge (cognitive 59): WCEmailTemplateSelectiveApplier.merge has cognitive complexity 59 (threshold 15). Drivers by points: if/else 19 (38 pts), loops 8 (11 pts), boolean chains 10 (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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSelectiveApplier.php"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"38693a3be9c2313ffd8918688dc40c34ca0db0c56d419005ac8c35c6f362007f"}},{"ruleId":"D2","level":"warning","message":{"text":"SMTP.authenticate (cognitive 59): SMTP.authenticate has cognitive complexity 59 (threshold 15). Drivers by points: if/else 22 (49 pts), loops 1 (3 pts), boolean chains 2, error handling 1 (2 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc2c1e5b53829be62cdf50c1ca89bd4f58803558e3ad91d8595c41b5bb76e89"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cognitive 59): (anonymous)::(anonymous)::(anonymous)::normalize has cognitive complexity 59 (threshold 15). Drivers by points: if/else 15 (39 pts), boolean chains 12, loops 3 (8 pts) (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c7a557745a1d215db5a1ce0d901b059c26c1cbf47b45f5b9952470a760bfc9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::normalize (cognitive 59): (anonymous)::(anonymous)::(anonymous)::normalize has cognitive complexity 59 (threshold 15). Drivers by points: if/else 15 (39 pts), boolean chains 12, loops 3 (8 pts) (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0aeff202f4d3344a8052998c5f2af6cf98d49ce397f0c725c058c3ef0fdfa4"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Post_Types.quick_edit_save (cognitive 58): WC_Admin_Post_Types.quick_edit_save has cognitive complexity 58 (threshold 15). Drivers by points: if/else 23 (36 pts), ternaries 7 (14 pts), boolean chains 7, loops 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0238fa7b8478bb4f226d0722ea333e97f5b226fbec29c9c27ab3e634998952"}},{"ruleId":"D2","level":"warning","message":{"text":"_newInst (cognitive 58): _newInst has cognitive complexity 58 (threshold 15). Drivers by points: if/else 20 (26 pts), ternaries 13, boolean chains 11, error handling 1 (4 pts), loops 3 (4 pts) (nesting depth added 10). Of this number, 53 points are the body\u0027s own statements and 5 belong to 7 function items inside it that branch. 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"393c438278b384a9284074ded12123cf64b7165e8757712e1da60cb7cf9b57fe"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 58): (anonymous) has cognitive complexity 58 (threshold 15). Drivers by points: if/else 29 (34 pts), boolean chains 20, loops 2, ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 4 of the 58 points are its own statements and the rest belongs to 29 function items inside it that branch (a function literal at line 392, renderLinkout, a function literal at line 449, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f0fc757c2a6e736890536ccf0c74460af97c111a50c89fdd4a73bede1b3b39"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Form_Handler.pay_action (cognitive 57): WC_Form_Handler.pay_action has cognitive complexity 57 (threshold 15). Drivers by points: if/else 10 (29 pts), ternaries 6 (20 pts), boolean chains 4, error handling 1 (4 pts) (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"6315691926e282217b378118923e974c4a5dca2e14bcae5ced5be2045ee126a3"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Importer.set_product_data (cognitive 56): WC_Product_Importer.set_product_data has cognitive complexity 56 (threshold 15). Drivers by points: if/else 15 (44 pts), loops 2 (6 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f26f92b014ec389943d23e900f83decd1355152fd322a653e6c96d2b278a596"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.wrapText (cognitive 56): PHPMailer.wrapText has cognitive complexity 56 (threshold 15). Drivers by points: if/else 15 (47 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2678}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5eb39f2ef697bbc9bae9eaef8af7275085198b85fcf040bdae3cc153e64368"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Meta_Box_Order_Data.save (cognitive 55): WC_Meta_Box_Order_Data.save has cognitive complexity 55 (threshold 15). Drivers by points: if/else 23 (38 pts), boolean chains 9, loops 2 (4 pts), ternaries 2 (4 pts) (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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e4c93cf05cbba32093e972fd2b53b8b268a1323c69bde7b2e69536d1c587a9"}},{"ruleId":"D2","level":"warning","message":{"text":"HandlerRegistry.register_core_collections (cognitive 55): HandlerRegistry.register_core_collections has cognitive complexity 55 (threshold 15). Drivers by points: if/else 27 (37 pts), boolean chains 12, ternaries 6 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc00c32e0368abf96fc4ffb303478ad1b5ebd2ddc78b91bb0b670751241b27d"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.nivo.slider.NivoSlider::nivoRun (cognitive 55): jquery.nivo.slider.NivoSlider::nivoRun has cognitive complexity 55 (threshold 15). Drivers by points: if/else 30 (41 pts), boolean chains 9, loops 2 (5 pts) (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. This shape REPEATS in the file: one other method here (jquery.nivo.slider.NivoSlider) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/custom-slider/jquery.nivo.slider.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4721b72acf81093b66b11e4e3e12282f0b3002a8ebff0ced7bb60ade214638"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 55): (anonymous) has cognitive complexity 55 (threshold 15). Drivers by points: if/else 34 (41 pts), boolean chains 12, loops 1, ternaries 1 (nesting depth added 7). None of this is in the body itself: all 55 points belong to 34 function items inside it that branch (a function literal at line 219, settings_scroll_to_active_tab, a function literal at line 159, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"26007d4bf9ef5708084f786bbd2fa01c07475efd80ddd5ed2bb06b798ae6993f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Meta_Box_Product_Data.save (cognitive 54): WC_Meta_Box_Product_Data.save has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 31 (34 pts), if/else 11 (14 pts), boolean chains 6 (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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b772befa5bdce47dffc2767e8bf42533910db1884c3679dfb3983f5b280e0d5"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_CSV_Exporter.prepare_attributes_for_export (cognitive 54): WC_Product_CSV_Exporter.prepare_attributes_for_export has cognitive complexity 54 (threshold 15). Drivers by points: if/else 11 (30 pts), ternaries 2 (12 pts), loops 2 (9 pts), boolean chains 3 (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/export/class-wc-product-csv-exporter.php"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"afea3f3c7031749d20e06e20360aac35e485c17297144f113b56f2bcbb299a4c"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.update_intervals_sql_params (cognitive 54): DataStore.update_intervals_sql_params has cognitive complexity 54 (threshold 15). Drivers by points: if/else 15 (39 pts), loops 4 (12 pts), ternaries 1 (3 pts) (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7fbfea000a293c17437213d20fe51d4db556162b1dfdd9b828d3fa50098bea"}},{"ruleId":"D2","level":"warning","message":{"text":"WooCommerceProductImporter.sync_variations (cognitive 54): WooCommerceProductImporter.sync_variations has cognitive complexity 54 (threshold 15). Drivers by points: if/else 21 (45 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bef2572df7ebf03154371cab6434d99e636e02b3d1b1703b64b47ed9b2220cb"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.smtpConnect (cognitive 54): PHPMailer.smtpConnect has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (38 pts), boolean chains 12, error handling 1 (3 pts), loops 1 (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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2320}}}],"partialFingerprints":{"codehealthFindingId/v1":"89295e6ad9dfba3879f52a4c5b73085446a0d353bb73b46c19a704c5587ac27d"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_Controller.prepare_objects_query (cognitive 53): WC_REST_Products_Controller.prepare_objects_query has cognitive complexity 53 (threshold 15). Drivers by points: if/else 31 (38 pts), ternaries 4 (8 pts), boolean chains 6, loops 1 (nesting depth added 11). 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"495474ecff662d3395321cdb82317a6dc03e6a042b17a641d081bbd8f3b5d562"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-update-functions.wc_update_240_shipping_methods (cognitive 53): wc-update-functions.wc_update_240_shipping_methods has cognitive complexity 53 (threshold 15). Drivers by points: if/else 6 (21 pts), ternaries 4 (16 pts), loops 5 (15 pts), boolean chains 1 (nesting depth added 37). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c35b9bc7c3947b9afc1e91d8c1c7eed1888f589f4b6b1c36eb8ad2590dffc2d"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentsExtensionSuggestions.with_country_details (cognitive 53): PaymentsExtensionSuggestions.with_country_details has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (36 pts), boolean chains 11, loops 3 (6 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php"},"region":{"startLine":3153}}}],"partialFingerprints":{"codehealthFindingId/v1":"744431f6e4e8f6c58e8f4fc19241b677a0d024131c0b26b1c478f0397abf3ebe"}},{"ruleId":"D2","level":"warning","message":{"text":"SubmissionHandler.process_rows (cognitive 53): SubmissionHandler.process_rows has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 12 (26 pts), if/else 9 (19 pts), boolean chains 7, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/OrderReviews/SubmissionHandler.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e7126e117e693f1f679a8f94720caa79b9382494fa3373c7ff0a737ce8abf2"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Data_Store_WP.parse_date_for_wp_query (cognitive 52): WC_Data_Store_WP.parse_date_for_wp_query has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (26 pts), ternaries 5 (11 pts), boolean chains 10, loops 1 (2 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-data-store-wp.php"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b598e35c735fc8d2f0ae4c52eb6619a80e095e3e14db12b6964cccc8d7da6c7"}},{"ruleId":"D2","level":"warning","message":{"text":"ShopifyMapper.map_simple_product_data (cognitive 52): ShopifyMapper.map_simple_product_data has cognitive complexity 52 (threshold 15). Drivers by points: if/else 12 (23 pts), ternaries 6 (17 pts), boolean chains 12 (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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyMapper.php"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"692641ddd31eabeb31eeeca5fe63a99a62c965cc8dd709255db1d491d5acb6c3"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order_Data_Store_CPT.get_wp_query_args (cognitive 51): WC_Order_Data_Store_CPT.get_wp_query_args has cognitive complexity 51 (threshold 15). Drivers by points: if/else 23 (33 pts), ternaries 3 (9 pts), loops 3 (5 pts), 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4da17d09a3bbcbf8e306ac9963debce07a32f8320e3b6f5ac60362213e3822"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Orders_V2_Controller.prepare_object_for_database (cognitive 51): WC_REST_Orders_V2_Controller.prepare_object_for_database has cognitive complexity 51 (threshold 15). Drivers by points: if/else 7 (28 pts), loops 3 (11 pts), ternaries 2 (7 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 36). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"5179238537e6580aeae57c755add487d97a02dfbd16dbfd0b56c6e913cc051c6"}},{"ruleId":"D2","level":"warning","message":{"text":"WooPaymentsService.get_onboarding_step_status (cognitive 51): WooPaymentsService.get_onboarding_step_status has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 14, match/switch 2 (3 pts), ternaries 1 (3 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7eed113819d1ee0c684e91576e5eda54a9dc304896b5a046c6457479b1de464"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::drawSeriesLines::plotLine (cognitive 51): jquery.flot.Plot::drawSeriesLines::plotLine has cognitive complexity 51 (threshold 15). Drivers by points: if/else 18 (40 pts), boolean chains 10, loops 1 (nesting depth added 22). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":2155}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a5922dcf54cc920799d9233bd6f31aec06111c74ca0cc0ae06e9e2e72cce2c"}},{"ruleId":"D2","level":"warning","message":{"text":"_onTimeChange (cognitive 51): _onTimeChange has cognitive complexity 51 (threshold 15). Drivers by points: if/else 26 (34 pts), boolean chains 10, ternaries 7 (nesting depth added 8). 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b532f9e5ba9e90500032e9f01fc4d8ec9d447ad278c044e7bf7ef80f63d7afb"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Post_Types.bulk_edit_save (cognitive 50): WC_Admin_Post_Types.bulk_edit_save has cognitive complexity 50 (threshold 15). Drivers by points: if/else 26 (36 pts), ternaries 5 (6 pts), boolean chains 5, match/switch 1 (2 pts), 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a2a4e036e168ec92e4de26a332a7aa95ca3e6c3df708508eb5dd8c7c6f889f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.update_order_review (cognitive 50): WC_AJAX.update_order_review has cognitive complexity 50 (threshold 15). Drivers by points: ternaries 22 (34 pts), if/else 9 (11 pts), boolean chains 3, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e9775de1f49cc2b6babe6334ddecd3996f8b33cf7878b0544140b374f983a1"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Frontend_Scripts.load_scripts (cognitive 50): WC_Frontend_Scripts.load_scripts has cognitive complexity 50 (threshold 15). Drivers by points: if/else 22 (32 pts), boolean chains 16, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a504d946d10e26e2f5a4fda1710939d531e8873e6aa66be6fd2c8f3d847b59"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::parseOptions (cognitive 50): jquery.flot.Plot::parseOptions has cognitive complexity 50 (threshold 15). Drivers by points: if/else 25 (34 pts), boolean chains 11, loops 5 (nesting depth added 9). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd27a6680f74106994a3dd285b50fbd4921485646eee37bca6ef5d56272e5a53"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-core-functions._wc_delete_transients (cognitive 49): wc-core-functions._wc_delete_transients has cognitive complexity 49 (threshold 15). Drivers by points: if/else 13 (31 pts), loops 5 (15 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":2579}}}],"partialFingerprints":{"codehealthFindingId/v1":"c782c5c68a358dc779843c9197f009985ab1467507d35c90a5aadd1030a0894e"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniCart.render_experimental_iapi_mini_cart (cognitive 49): MiniCart.render_experimental_iapi_mini_cart has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 8 (18 pts), boolean chains 5, loops 2 (4 pts) (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"610c2f69f7fca9a4382b5fa7b251342631d235ce6bd7daec642e2f531bd97633"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsUISchema.from_legacy_settings (cognitive 49): SettingsUISchema.from_legacy_settings has cognitive complexity 49 (threshold 15). Drivers by points: if/else 11 (23 pts), ternaries 6 (15 pts), boolean chains 9, loops 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUISchema.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9f4d5b59685e56605416a683a9f95a49683709d0f9418ac3534ac8d976794d"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Setup_Wizard.display_service_item (cognitive 48): WC_Admin_Setup_Wizard.display_service_item has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 8 (21 pts), if/else 11 (20 pts), boolean chains 5, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a39a749b88c66ca8381a1358c997830e66a7a4c70935c317cfd1abea61c40e5"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Controller.batch_items (cognitive 48): WC_REST_Controller.batch_items has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (36 pts), loops 4 (9 pts), ternaries 1 (3 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"30df50e8cf3c8bbe999ab1e6017f0bcc7e9e101fc04fc1e0e4b0d2824136156c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Product_Variations_Controller.prepare_objects_query (cognitive 48): WC_REST_Product_Variations_Controller.prepare_objects_query has cognitive complexity 48 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 6, ternaries 3 (6 pts), loops 2 (4 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c9939105cd64f743ed89b5253d5835e4f82741368befa35d745627c81acbc1"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::setupTickGeneration (cognitive 48): jquery.flot.Plot::setupTickGeneration has cognitive complexity 48 (threshold 15). Drivers by points: if/else 19 (34 pts), boolean chains 12, ternaries 1 (2 pts) (nesting depth added 16). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":1609}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b68aabe19ade869ede24947e6361cc536369ddfad73f3dd7a30d43c16a5dc3"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Form_Handler.save_account_details (cognitive 47): WC_Form_Handler.save_account_details has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 12, ternaries 7, error handling 2 (4 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a83061fa456da140e8af3e8b8dfc27df5a817efe192988ca07fdac5ee662e3"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.get_wp_query_args (cognitive 47): WC_Product_Data_Store_CPT.get_wp_query_args has cognitive complexity 47 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 7, loops 5 (7 pts), ternaries 1 (3 pts), match/switch 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce67964637ac79baeb9dba877bb18c893337c1c8da32fc48af64dd25d15dac03"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Variable_Data_Store_CPT.read_variation_attributes (cognitive 47): WC_Product_Variable_Data_Store_CPT.read_variation_attributes has cognitive complexity 47 (threshold 15). Drivers by points: if/else 10 (29 pts), loops 3 (12 pts), ternaries 1 (4 pts), boolean chains 2 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa6e134178d47790fc9ec79c62e5cf4a2bf1a2d59f4ae0ac836d6ee29ef9133"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Orders_V1_Controller.prepare_item_for_response (cognitive 47): WC_REST_Orders_V1_Controller.prepare_item_for_response has cognitive complexity 47 (threshold 15). Drivers by points: loops 12 (24 pts), ternaries 7 (12 pts), if/else 5 (11 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a292adf88d8c699f2fdbc6bebde60238a05d3dffc0950a30023d7e9304cc7e6"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-product-functions.wc_product_post_type_link (cognitive 47): wc-product-functions.wc_product_post_type_link has cognitive complexity 47 (threshold 15). Drivers by points: if/else 11 (27 pts), ternaries 3 (10 pts), loops 2 (7 pts), boolean chains 3 (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"13407113443b112ac240610501bc93c8e87bcff49308c1033c69df23217e519b"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-update-functions.wc_update_200_taxrates (cognitive 47): wc-update-functions.wc_update_200_taxrates has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 5 (19 pts), loops 5 (15 pts), if/else 5 (13 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cb2a4b6572930c908af35cfb84c5778d19ce2a20c9f24e353baf29e667b237"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.preSend (cognitive 47): PHPMailer.preSend has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 19, loops 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aacb560cdb65dff9a5a69b46e5f95de5e9a5e2a2e36c804690f36c97500e54a"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 47): (anonymous) has cognitive complexity 47 (threshold 15). Drivers by points: if/else 21 (34 pts), boolean chains 10, error handling 2 (3 pts) (nesting depth added 14). Of this number, 30 points are the body\u0027s own statements and 17 belong to 14 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c5d5a19277bd41133e5f08c5452ca75a579026addeb6415940fc925b1d2ed7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 47): (anonymous) has cognitive complexity 47 (threshold 15). Drivers by points: if/else 30 (38 pts), boolean chains 6, error handling 1 (2 pts), ternaries 1 (nesting depth added 9). Most of this is not in the body itself: 1 of the 47 points is its own statement and the rest belongs to 51 function items inside it that branch (update_wc_div, cart_submit, show_coupon_error, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"61dd4ff600b57b1ac953d0553f26373f73844f9435e8f13b5e754f8449d2e1e8"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_List_Table_Orders.get_order_preview_item_html (cognitive 46): WC_Admin_List_Table_Orders.get_order_preview_item_html has cognitive complexity 46 (threshold 15). Drivers by points: if/else 8 (27 pts), loops 6 (12 pts), ternaries 2 (4 pts), match/switch 1 (3 pts) (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":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a372e06eab3825442aa9efa1e567be35e4749e43475af686d290b4a9dd72745"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget_Layered_Nav_Filters.widget (cognitive 46): WC_Widget_Layered_Nav_Filters.widget has cognitive complexity 46 (threshold 15). Drivers by points: if/else 8 (20 pts), ternaries 5 (12 pts), loops 3 (10 pts), boolean chains 4 (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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav-filters.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"453a066212188139376a809868f610cbe58034db1d62ae55197e465487c2908d"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderController.get_failed_order_stock_error (cognitive 46): OrderController.get_failed_order_stock_error has cognitive complexity 46 (threshold 15). Drivers by points: if/else 9 (34 pts), loops 2 (5 pts), ternaries 1 (4 pts), boolean chains 3 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/OrderController.php"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0b8076ae11ea165c33198d0a926f92aa926ec9dae4e90f4594d6d70cf02139"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::findNearbyItem (cognitive 46): jquery.flot.Plot::findNearbyItem has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (31 pts), loops 3 (7 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 26). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":2746}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5886a7a830243006179433adf6bc855dfb282fc9e79358753862b63acc3eb4"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.msgHTML (cognitive 45): PHPMailer.msgHTML has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (36 pts), boolean chains 7, loops 1 (2 pts) (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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":4660}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9dbad2417e6f3c921d7dbdbcc468a75bc497e72f68a3d4774de0d7fc663715"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Settings_Emails.email_notification_setting (cognitive 44): WC_Settings_Emails.email_notification_setting has cognitive complexity 44 (threshold 15). Drivers by points: if/else 6 (22 pts), ternaries 3 (14 pts), loops 3 (4 pts), match/switch 1 (3 pts), 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":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-emails.php"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43f32d98496a02117674b98ff916801d688a39e9dcb276358ea53f368945038"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.add_sql_query_params (cognitive 44): DataStore.add_sql_query_params has cognitive complexity 44 (threshold 15). Drivers by points: if/else 21 (30 pts), ternaries 4 (8 pts), boolean chains 4, 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"a256ba7815ce508c5c7b25dad8fd8ae43600e16be362e2a839c38d8e0b2afc59"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaHandle.get_all_metadata (cognitive 44): SchemaHandle.get_all_metadata has cognitive complexity 44 (threshold 15). Drivers by points: if/else 9 (27 pts), loops 5 (14 pts), boolean chains 3 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Utils/SchemaHandle.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5163346b5e532a20c880a00c92178a601e92b0c0f90952d8bc35f7cd2269da"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductButton.render (cognitive 44): ProductButton.render has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 21, boolean chains 12, if/else 10 (11 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductButton.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ec1467bd56a61ede1bc9c1962a48f8a113b5762842614545f9ed6685b8b393"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.createBody (cognitive 44): PHPMailer.createBody has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (31 pts), loops 2 (6 pts), boolean chains 4, error handling 1 (2 pts), match/switch 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3042}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ee3068c268518e69fe824df9679d235fd9d01e14b57e5744e1425987a0effb"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Cart_Session.populate_cart_from_order (cognitive 43): WC_Cart_Session.populate_cart_from_order has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (25 pts), ternaries 3 (8 pts), boolean chains 7, loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-cart-session.php"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac615a6f5a95fa80eb0e2182a6c96671c87203e281ff96faf24c61ae5d68eb7f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.update_post_meta (cognitive 43): WC_Product_Data_Store_CPT.update_post_meta has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (24 pts), ternaries 5 (13 pts), loops 3 (4 pts), match/switch 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef818644bb3d621f9cb3effac4e99686e349dd6e8635a9e8241caea63ce066f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Orders_V1_Controller.prepare_item_for_database (cognitive 43): WC_REST_Orders_V1_Controller.prepare_item_for_database has cognitive complexity 43 (threshold 15). Drivers by points: if/else 9 (29 pts), loops 2 (6 pts), boolean chains 4, match/switch 1 (3 pts), ternaries 1 (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ffd4f04f04c73bae7c08bb5054fbd753b75bacfe0bcff0484f3d50fcf3adf2"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-product-functions.wc_get_formatted_variation (cognitive 43): wc-product-functions.wc_get_formatted_variation has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 6, loops 2 (5 pts), ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4323c05bf69a8b1bb4722860bca92f41ac06e07d8ed673b407eb44d0eb1b99b"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.get_attribute_subqueries (cognitive 43): DataStore.get_attribute_subqueries has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (31 pts), boolean chains 5, loops 3 (4 pts), ternaries 1 (3 pts) (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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":1457}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf614e59c394fa2ba0650619a0a91adf606c6308465d5255d7458aadb2311dc1"}},{"ruleId":"D2","level":"warning","message":{"text":"LookupDataStore.create_data_for_product_cpt_core (cognitive 43): LookupDataStore.create_data_for_product_cpt_core has cognitive complexity 43 (threshold 15). Drivers by points: loops 13 (24 pts), if/else 7 (10 pts), boolean chains 5, ternaries 4 (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":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"645239544fdaf5c52bd8aad310740160f305b97b05f1ae4d2d95f4dd310f2f1b"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductCollectionData.get_route_response (cognitive 43): ProductCollectionData.get_route_response has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 7 (19 pts), 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":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductCollectionData.php"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed7f2921821f8cc623b84e64e542cd1ffc1e46fd2c957af5dfd2ca509017f57"}},{"ruleId":"D2","level":"warning","message":{"text":"CLIRunner.verify_cot_data (cognitive 42): CLIRunner.verify_cot_data has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (27 pts), ternaries 5 (10 pts), boolean chains 4, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e84735b396fec2eb74cd9e848aa7367a5a36c9dee4e074a77454f7a6ec266ef"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 42): (anonymous) has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 17 (19 pts), if/else 15 (17 pts), boolean chains 5, error handling 1 (nesting depth added 4). Most of this is not in the body itself: 1 of the 42 points is its own statement and the rest belongs to 50 function items inside it that branch (a function literal at line 309, a function literal at line 203, a function literal at line 266, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c217a920537b259566439fdba5bec104ff4533bb1644d36c28acbb4396b60f01"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Query.pre_get_posts (cognitive 41): WC_Query.pre_get_posts has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (28 pts), ternaries 2 (7 pts), boolean chains 6 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec77bbfd9a7afad826f23bfa32b978c735ddbcba5a1c78f2fa50b1e847d2dc8"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Abstract_Legacy_Product.sync_attributes (cognitive 41): WC_Abstract_Legacy_Product.sync_attributes has cognitive complexity 41 (threshold 15). Drivers by points: if/else 7 (25 pts), loops 4 (16 pts) (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":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-product.php"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ad58f84f104893ad1f7fca29cc5a98eae0d3ed8895793d06006f51196111c2"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V1_Controller.save_default_attributes (cognitive 41): WC_REST_Products_V1_Controller.save_default_attributes has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (31 pts), ternaries 1 (5 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb81a8c51782977c3a1a61c9764cc536885d4274b72fe0bdb915d22d21f11180"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.save_default_attributes (cognitive 41): WC_REST_Products_V2_Controller.save_default_attributes has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (31 pts), ternaries 1 (5 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"541a432aeba2fd44d5ab392039f1ff4bf4699b44211ab9cfbd62e538276dbfe3"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-attribute-functions.wc_create_attribute (cognitive 41): wc-attribute-functions.wc_create_attribute has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 10, ternaries 3 (4 pts), loops 1 (3 pts) (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":"wp-content/plugins/woocommerce/includes/wc-attribute-functions.php"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b93329ab85d5bb4a50d3757b0fa7d9a38d1ddba1319f81e7e425d4ceb36f18"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-user-functions.wc_customer_bought_product (cognitive 41): wc-user-functions.wc_customer_bought_product has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 7 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-user-functions.php"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"db001216fff47b9a0d1b79063ccb4ff6be1cd96cc4c04f5dd72df2ce6801f544"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockHooksTrait.register_hooked_block (cognitive 41): BlockHooksTrait.register_hooked_block has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (24 pts), boolean chains 10, ternaries 2 (5 pts), loops 1 (2 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Utils/BlockHooksTrait.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b42b7a53548c36b7c2ffc5d9d38f9a14320fc6b68cd19bcbc5f8cefa83bf151"}},{"ruleId":"D2","level":"warning","message":{"text":"Reviews.handle_reply_to_review (cognitive 41): Reviews.handle_reply_to_review has cognitive complexity 41 (threshold 15). Drivers by points: if/else 20 (30 pts), ternaries 4 (6 pts), boolean chains 5 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/Reviews.php"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"4892734d1394d210dc4c7780bfcb46261c2d662741d167cf24f5a44514201c08"}},{"ruleId":"D2","level":"warning","message":{"text":"Settings.add_component_settings (cognitive 41): Settings.add_component_settings has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 4 (9 pts), ternaries 5 (9 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a049aae6add475f1033e84664fdbc160eca95db12ffc826dcfb71ce0f95f219a"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.attachAll (cognitive 41): PHPMailer.attachAll has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (38 pts), 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3514}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb499e19567f885d71e8c4150ce88e691b1660972ac7b84dedbb3f288243a53"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.DKIM_Add (cognitive 41): PHPMailer.DKIM_Add has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 4 (7 pts), boolean chains 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":5263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fee86a2df1415b4d278a8eba53c4de452c923f5f5988845a51341e849ce7557"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::fillInSeriesOptions (cognitive 41): jquery.flot.Plot::fillInSeriesOptions has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (31 pts), loops 4 (6 pts), boolean chains 4 (nesting depth added 19). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1f0e74123b5a14b49c0061112ed8e977194bc9982afcca5bb3f1b3721520d3"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::insertLegend (cognitive 41): jquery.flot.Plot::insertLegend has cognitive complexity 41 (threshold 15). Drivers by points: if/else 22 (38 pts), loops 2, boolean chains 1 (nesting depth added 16). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":2634}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ad5504c54edfd183690c51533e870cbfeec44d62ded4986b5c7aedc867f412"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 41): (anonymous) has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 12, ternaries 5 (6 pts), error handling 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d465a8e909ac3804b6230bc66ce9a21ef36892be3e969d0c74378082f9dc939"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Helper.render_helper_output (cognitive 40): WC_Helper.render_helper_output has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (31 pts), boolean chains 5, loops 3 (4 pts) (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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f45929c6092f086dc4746e9ab85d5f76a35e67d723eba7142a9f0daefcec28"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Checkout.get_posted_data (cognitive 40): WC_Checkout.get_posted_data has cognitive complexity 40 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 5 (9 pts), boolean chains 7, loops 3 (5 pts), match/switch 1 (4 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"2914a0dd71e29af9c0afcdf8814e8878d11cef4465a8630f4fbfdce1a31220b7"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_System_Status_V2_Controller.get_pages (cognitive 40): WC_REST_System_Status_V2_Controller.get_pages has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (29 pts), ternaries 2 (6 pts), boolean chains 4, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php"},"region":{"startLine":1519}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d591daffa17d6a2f3dea2988f6363b55ff47b766c96279a53ab36a77a71589f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Orders_Controller.prepare_object_for_database (cognitive 40): WC_REST_Orders_Controller.prepare_object_for_database has cognitive complexity 40 (threshold 15). Drivers by points: if/else 7 (28 pts), loops 2 (6 pts), match/switch 1 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"786c32e324b86aa08da53782ecbe40a083cdc8cddf1f40fed049efddeca04f4e"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-template-functions.wc_get_formatted_cart_item_data (cognitive 40): wc-template-functions.wc_get_formatted_cart_item_data has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (8 pts), ternaries 2 (6 pts), boolean chains 4 (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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":4503}}}],"partialFingerprints":{"codehealthFindingId/v1":"989457b8b41780bce6fd20a174336cc49436b50ea65108769b136b2b0c47cbfb"}},{"ruleId":"D2","level":"warning","message":{"text":"FulfillmentsManager.update_fulfillments_after_refund (cognitive 40): FulfillmentsManager.update_fulfillments_after_refund has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 5, loops 3 (4 pts), error handling 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05a614a4d5ec31d920c4904599a7c5fb6dac5760adc2a99061cd4fbef0ace9e"}},{"ruleId":"D2","level":"warning","message":{"text":"parseTime::strictParse (cognitive 40): parseTime::strictParse has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (28 pts), ternaries 2 (8 pts), boolean chains 4 (nesting depth added 20). 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e74b6f1a2f1814477b3d217c2ee01b56a99fd2c7b8c22d98ac6090983c5567"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Setup_Wizard.wc_setup_activate_get_feature_list_str (cognitive 39): WC_Admin_Setup_Wizard.wc_setup_activate_get_feature_list_str has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (34 pts), boolean chains 5 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":2063}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a09c22d18fda4a8a2beae33fc90e25dc48c16bd1eb4df7fa3a27c96205776e"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_Controller.set_product_images (cognitive 39): WC_REST_Products_Controller.set_product_images has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (31 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ef7def773eff17a3f94dcc9f64b56377900b6dff3bddaa8ec8309e401a7eb7"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionQuery.get_query_args (cognitive 39): CollectionQuery.get_query_args has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 7 (16 pts), loops 1 (2 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b51e8a81390d78d82e74324be5d0f150d0bc3458753f131bb689ebb7390754"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.set_product_images (cognitive 39): Controller.set_product_images has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (31 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f0acef8ac53d4d8dae07bc4ce0e2459e81e70e288ee12237ee154e2c21265d"}},{"ruleId":"D2","level":"warning","message":{"text":"wp-login.login_header (cognitive 39): wp-login.login_header has cognitive complexity 39 (threshold 15). Drivers by points: if/else 18 (26 pts), loops 3 (9 pts), boolean chains 3, 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":"wp-login.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f30e5c9f044dfa0486a972f28a7f59349e68b77ca968b5cc4aff133417cd3c4"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 39): (anonymous) has cognitive complexity 39 (threshold 15). Drivers by points: if/else 24 (26 pts), boolean chains 7, ternaries 6 (nesting depth added 2). Most of this is not in the body itself: 1 of the 39 points is its own statement and the rest belongs to 33 function items inside it that branch (updateModelOnChange, render, updateUrl, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings-views-html-settings-tax.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6b7913ba57dddfa87e6ac7c4d36f729a45c694f1f9a423d07e2566aa36a3b79"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Query.get_layered_nav_chosen_attributes (cognitive 38): WC_Query.get_layered_nav_chosen_attributes has cognitive complexity 38 (threshold 15). Drivers by points: if/else 5 (17 pts), ternaries 3 (15 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5f7ee077b8a57ac7fe0eede86ded7ff6bb229de97569cef9c88d9995b2bd88"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Customer_Data_Store_Session.read (cognitive 38): WC_Customer_Data_Store_Session.read has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (27 pts), loops 2 (8 pts), boolean chains 3 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"690ada723f5f2d1588282db0670d6ced60fc43d14c2580a10ead80f9c6730dbc"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.sync_order_products (cognitive 38): DataStore.sync_order_products has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (23 pts), ternaries 3 (8 pts), boolean chains 4, loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c0220284f9d1a7fc354a40e2d1503c5b05873ea914227e37eb280aec1a0166"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductFilterChips.render (cognitive 38): ProductFilterChips.render has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (21 pts), ternaries 6 (10 pts), boolean chains 6, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc20a34d61eb06bd62d7ab19e518d55dff4c971921a90b8a681054bfd34b751"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentsProviders.get_extension_suggestions (cognitive 38): PaymentsProviders.get_extension_suggestions has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 15, 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf78be5935d26380d6141a76afff158d2dd61c98a02f9c9889ef72374a12da02"}},{"ruleId":"D2","level":"warning","message":{"text":"ComingSoonRequestHandler.experimental_filter_theme_json_theme (cognitive 38): ComingSoonRequestHandler.experimental_filter_theme_json_theme has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 4 (12 pts), boolean chains 3 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ComingSoon/ComingSoonRequestHandler.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4750037d54775f36503464f93b5b0f86cd3cd44573b5ddd500768979099c8f1"}},{"ruleId":"D2","level":"warning","message":{"text":"WCEmailTemplateChangeSummary.diff_records (cognitive 38): WCEmailTemplateChangeSummary.diff_records has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 8 (9 pts), ternaries 1 (3 pts) (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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0842b73060dcd7dee49369a83251f9d1288b1f19206745421c5cd953e58d382"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.get_product_data (cognitive 38): Controller.get_product_data has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (30 pts), ternaries 2 (6 pts), boolean chains 2 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":2453}}}],"partialFingerprints":{"codehealthFindingId/v1":"6345e5704683cf50347702cfd26e7acf372f79e64ac47a55537b2220cdd74dfb"}},{"ruleId":"D2","level":"warning","message":{"text":"DataUtils.validate_line_items (cognitive 38): DataUtils.validate_line_items has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (30 pts), loops 2 (5 pts), 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/DataUtils.php"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f1d6d35eac222f86a08ba879aeca2f34909f08f6cb9d9dabad84744aaa5093"}},{"ruleId":"D2","level":"warning","message":{"text":"Checkout.validate_callback (cognitive 38): Checkout.validate_callback has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 4 (10 pts), boolean chains 4 (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":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Checkout.php"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5ef9dff5146308a92df7890e5b135056c77433fc2311385a2e8f1004a28529"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 38): (anonymous) has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (26 pts), boolean chains 10, ternaries 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to 26 function items inside it that branch (discardChanges, save, onSaveResponse, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zones.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca148acdca62fb144c1573fd45cb8606ad3e48c809c43963557fa2e0eadd804"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V1_Controller.set_product_images (cognitive 37): WC_REST_Products_V1_Controller.set_product_images has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (30 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"da93c7952846e6959e5a5eac93dae9b462f802dbe1e4ddca7babcfb849e6e5cd"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.set_product_images (cognitive 37): WC_REST_Products_V2_Controller.set_product_images has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (27 pts), ternaries 3 (7 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"0169abf1b054ab5549aae26785dcac3536d2b3e5b01edea033e0f42242914bf4"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-order-functions.wc_get_order_types (cognitive 37): wc-order-functions.wc_get_order_types has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 7 (14 pts), match/switch 1 (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":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"003f2657fd29ee86c2d85465f23d19b04a2c906d5c59b68725685a9f5b5bec47"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductSpecifications.render (cognitive 37): ProductSpecifications.render has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (20 pts), loops 4 (11 pts), boolean chains 3, ternaries 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductSpecifications.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2449a3a910a870bf23ae2431dc3c84d94244e45ded6f1871d94e416b8ff8b40"}},{"ruleId":"D2","level":"warning","message":{"text":"RestAbilityFactory.relax_output_schema_for_wc_quirks (cognitive 37): RestAbilityFactory.relax_output_schema_for_wc_quirks has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 4 (9 pts), boolean chains 7 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c53723b480aa2178dd1c9e0df7f96a6370f947c3c41b7b20b49b6be9c0191b0"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderMilestoneEasterEgg.handle_admin_enqueue_scripts (cognitive 37): OrderMilestoneEasterEgg.handle_admin_enqueue_scripts has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 9, ternaries 6 (7 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/OrderMilestoneEasterEgg.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da4abf57cfda18e595b832dc7b598a1c167d92d23e25385e2220843568924f5"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableQuery.process_date_args (cognitive 37): OrdersTableQuery.process_date_args has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 6, ternaries 2 (5 pts), loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"852fce4b0b154c36c30879eb77edde8f76c93f5884ed5b1abb662cdf9854e747"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractDataTransferObject.convertEmptyArraysToObjects (cognitive 37): AbstractDataTransferObject.convertEmptyArraysToObjects has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 4 (12 pts), boolean chains 7 (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":"wp-includes/php-ai-client/src/Common/AbstractDataTransferObject.php"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cef7fafa86395436e626dc23867ddcbd9a388c6c64bfb111990b401bb17acd"}},{"ruleId":"D2","level":"warning","message":{"text":"_updateDateTime (cognitive 37): _updateDateTime has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 5 (10 pts), boolean chains 8 (nesting depth added 11). 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bdda3fbca20adaa35a6255be7ecd1463d4960b5a13bd8a31e79a577477be789"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Checkout.process_customer (cognitive 36): WC_Checkout.process_customer has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 9, ternaries 4 (8 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c0969ae52a33446c53e45febc6aab0acf2877dcb23305653b9b89db916d074"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Countries.country_dropdown_options (cognitive 36): WC_Countries.country_dropdown_options has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (18 pts), ternaries 2 (9 pts), loops 2 (6 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-countries.php"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"568b15256d42bcf432360e1c68caef8bca98933fae0d7b412874813952cf84f9"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Install.create_options (cognitive 36): WC_Install.create_options has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 3 (16 pts), if/else 4 (12 pts), loops 3 (6 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/class-wc-install.php"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14f70207e02e3775258a51bb9f94d491624cc2ed89345fe4c782cb65f0ff7fc"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shipping.calculate_shipping_for_package (cognitive 36): WC_Shipping.calculate_shipping_for_package has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 6, loops 3 (6 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-shipping.php"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf254699008cc802e915c2c4c9c26111a50d7efc30448f6cbacdec4e52a42f5b"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Report_Sales_V1_Controller.prepare_item_for_response (cognitive 36): WC_REST_Report_Sales_V1_Controller.prepare_item_for_response has cognitive complexity 36 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 6 (12 pts), loops 7 (8 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b9f3aa318f0c9aa88aafe25c4402a465a5f58c91e75926d8d5b96f0955a3a8"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Collection_Block_Tracking.parse_blocks_track_data (cognitive 36): WC_Product_Collection_Block_Tracking.parse_blocks_track_data has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 3 (9 pts), boolean chains 7, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/tracks/events/class-wc-product-collection-block-tracking.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad45d0114de01f1b537bcdd0827693502cdc424703c1e7a1191acc6e40ce6085"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-product-functions.wc_get_price_including_tax (cognitive 36): wc-product-functions.wc_get_price_including_tax has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (27 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1501}}}],"partialFingerprints":{"codehealthFindingId/v1":"42178ca37f3361796969374d3d5e29b7ea3a11b5e851d2877c7bc18b463356bc"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget_Layered_Nav.layered_nav_list (cognitive 36): WC_Widget_Layered_Nav.layered_nav_list has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (20 pts), ternaries 4 (8 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab5a74cc4c3b2091c3c65b49b48aecedda7e62ffa08d13fc140c9a48eff8960"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.include_extended_info (cognitive 36): DataStore.include_extended_info has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (15 pts), ternaries 3 (11 pts), loops 3 (8 pts), boolean chains 2 (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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b48d384eb8b7733ed0d45cb5af8c8826b3baf8808dc5e76927005034d6e901"}},{"ruleId":"D2","level":"warning","message":{"text":"renderPostScreen (cognitive 36): renderPostScreen has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (26 pts), loops 5 (8 pts), boolean chains 2 (nesting depth added 14). None of this is in the body itself: all 36 points belong to 5 function items inside it that branch (a function literal at line 7128, sortMetabox, copyEvents, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":7082}}}],"partialFingerprints":{"codehealthFindingId/v1":"12748e83dc86975147eeb8ad12f181bb0489715fb09d7b7037219ad657e50b83"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::do_variation_action (cognitive 36): (anonymous)::do_variation_action has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (32 pts), boolean chains 3, match/switch 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":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b32f0c2b4eb468086e321756d76e2d5bb929c948e44c8cbd4bd04056c28f3f4"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shipping_Method.get_taxes_per_item (cognitive 35): WC_Shipping_Method.get_taxes_per_item has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 4 (16 pts), if/else 5 (10 pts), loops 3 (8 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e97ced346304ac133914711865987c8bd9ee87aaf1114df26f85196de4ff3af"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Coupon_Usage.coupons_widget (cognitive 35): WC_Report_Coupon_Usage.coupons_widget has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 8 (18 pts), if/else 8, loops 3 (6 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd6a4119c7529022d052a254dc13c507ae492d7ecb2d1d44ee6b04fb1a70935"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Cart_Session.get_cart_from_session (cognitive 35): WC_Cart_Session.get_cart_from_session has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 10, ternaries 3 (6 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-cart-session.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87de3122f63ade54011245ee3ede2e7811feeb6b636678f5a09897f501dfc33"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Install.background_installer (cognitive 35): WC_Install.background_installer has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (24 pts), error handling 2 (6 pts), ternaries 2 (5 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-install.php"},"region":{"startLine":2545}}}],"partialFingerprints":{"codehealthFindingId/v1":"828967b72e127af53f7ad1aef68b287f7c449bffab93e9f9936e7ad4af045b39"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-template-functions.wc_get_product_class (cognitive 35): wc-template-functions.wc_get_product_class has cognitive complexity 35 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 4, ternaries 2 (4 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"234f2e212c819dd097ad6494384d3326ac8eb2d85dfeaf4b02492840ac61dd5e"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget_Brand_Nav.layered_nav_list (cognitive 35): WC_Widget_Brand_Nav.layered_nav_list has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 7 (12 pts), boolean chains 4, loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8b9d004dc9b2a547f32586ab3fd25d12097a630624a1b19e2eb44cdbb684fe"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewsListTable.handle_row_actions (cognitive 35): ReviewsListTable.handle_row_actions has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 13, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"7260c89818ae561c02f4daeba0f59526405b885b6d90cb84ee7c988254a8330b"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentsProviders.enhance_payment_gateway_details (cognitive 35): PaymentsProviders.enhance_payment_gateway_details has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 6, 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"f128f5c70824f09c3fea5137bee04dd915b0e06d21c0ebef2e0c39223ba2ae6f"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentGateway.get_provider_links (cognitive 35): PaymentGateway.get_provider_links has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 7, ternaries 1 (4 pts), loops 1 (3 pts), error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7d95b5385af78824569fa19fd4e027dc9283b0067f8a20b301375c1ff573a5"}},{"ruleId":"D2","level":"warning","message":{"text":"WooCommerceProductImporter.handle_product_images (cognitive 35): WooCommerceProductImporter.handle_product_images has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (29 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"514b5660327c502475329ade0a2304fd65a2cccefe6673bdb10e06f2045ad5a6"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableMetaQuery.sanitize_meta_query (cognitive 35): OrdersTableMetaQuery.sanitize_meta_query has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 5 (14 pts), boolean chains 4, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bf9eebb7776e4f110de9e4457ebea5f11d7cf2729378270394b803916b0b00"}},{"ruleId":"D2","level":"warning","message":{"text":"RestApiCache.get_cached_response (cognitive 35): RestApiCache.get_cached_response has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 3 (5 pts), boolean chains 4, ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Traits/RestApiCache.php"},"region":{"startLine":1337}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f9fea65a1c3b9d2b6ac198df1094ab36d557ebd0bbf03f91049ec673b2cc66"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Canvas.removeText (cognitive 35): jquery.flot.Canvas.removeText has cognitive complexity 35 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 4 (17 pts), boolean chains 1 (nesting depth added 24). 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":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ceff7941c60eb6da4c35d9c5ea879d2cae77f1ac4fd3ea38e5f9b915e855aa1"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 35): (anonymous) has cognitive complexity 35 (threshold 15). Drivers by points: if/else 20, boolean chains 9, ternaries 2 (4 pts), loops 2 (nesting depth added 2). None of this is in the body itself: all 35 points belong to 30 function items inside it that branch (addPlugins, a function literal at line 85, a function literal at line 119, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-setup.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c461675268f7e7ba84cb6ca392a7ce4afac04c66115959d8fa5c0a457d3789"}},{"ruleId":"D2","level":"warning","message":{"text":"initAjaxSubmit (cognitive 35): initAjaxSubmit has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 7, error handling 2 (nesting depth added 9). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 9 function literals inside it that branch (lines 314, 336, 282, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/order-review.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25e274ee32159409391fcbb840fa38c943f959cc670737a9e5ae84a809e857e"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Attributes.add_attribute (cognitive 34): WC_Admin_Attributes.add_attribute has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (21 pts), ternaries 2 (6 pts), loops 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-attributes.php"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceba744daa18e6fc6f22bbf9f5adfd0ce2851b0b9f4f784a6899bf84861a3c28"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.shipping_zone_methods_save_changes (cognitive 34): WC_AJAX.shipping_zone_methods_save_changes has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 3 (6 pts), match/switch 1 (3 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3534}}}],"partialFingerprints":{"codehealthFindingId/v1":"500a1e8005c1671cb01e95a16588193a20405752a63d1436f09435167360f900"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Coupon.get_coupon_error (cognitive 34): WC_Coupon.get_coupon_error has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (11 pts), boolean chains 4, match/switch 1 (nesting depth added 18). 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":"wp-content/plugins/woocommerce/includes/class-wc-coupon.php"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"637809940a9767a5eb0fab12493f7d2d78a23a38f06b4911696564e4259d1953"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Variable_Data_Store_CPT.read_attributes (cognitive 34): WC_Product_Variable_Data_Store_CPT.read_attributes has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (23 pts), loops 2 (8 pts), boolean chains 3 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd606b74d3ac7cad210ef17fd5051efc4f359329322e0ece3553c4f5d223bb7c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Variable_Data_Store_CPT.validate_prices_data (cognitive 34): WC_Product_Variable_Data_Store_CPT.validate_prices_data has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (8 pts), boolean chains 4 (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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a91865296c5f80994bc2e37bc2cfee8a83e723ff4d32fae8e371de380247ab2"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Orders_Controller.save_object (cognitive 34): WC_REST_Orders_Controller.save_object has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 10, error handling 2 (4 pts), ternaries 2 (4 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4ee49d337431457bfbfb8851d829c288f8640a25cc81310245e7c50cba0a0d"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-template-functions.wc_template_redirect (cognitive 34): wc-template-functions.wc_template_redirect has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 19, if/else 11 (15 pts) (nesting depth added 4). 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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5f73ee7f4c03b669c2748cc61da75a0bbfa3da9e933df08d671d7e231b1321"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.add_sql_query_params (cognitive 34): DataStore.add_sql_query_params has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (22 pts), boolean chains 6, ternaries 3 (4 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e59fcbd7d9b102453f7f351b1bd9d0bd5327b06a53a264ea6026636f615c30c"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.include_extended_info (cognitive 34): DataStore.include_extended_info has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 2 (4 pts), ternaries 1 (4 pts) (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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6243c4615d42b548e078b73031228e7fa5e3743556a06fb569af9d8f965f1627"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductReviewForm.render (cognitive 34): ProductReviewForm.render has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (17 pts), ternaries 8 (16 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewForm.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d392bfdd13af226fd4ef11536df072a2d2333a43a5f388efc6451618837b168"}},{"ruleId":"D2","level":"warning","message":{"text":"Loader.add_component_settings (cognitive 34): Loader.add_component_settings has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 4 (9 pts), ternaries 5 (9 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0619405e4a7885ce93e4989f7addd086ef56a7c500b5be81b389488b756b0c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.search_products (cognitive 33): WC_Product_Data_Store_CPT.search_products has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 4, loops 2 (3 pts), 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f425530739cc180222da347929852c700f561625cc80743b007560479b1a43e"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_CSV_Importer.import (cognitive 33): WC_Product_CSV_Importer.import has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 10, ternaries 3 (7 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac65ae8d28c29a0de35542d8b055f95cc19aaebc875890044bfc589e530e9aee"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Orders_V2_Controller.get_order_item_data (cognitive 33): WC_REST_Orders_V2_Controller.get_order_item_data has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 9 (12 pts), boolean chains 5, loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ad2f345001d52a1240a23bdfeb4f9028aca1484a9c1f46ad14782e515d7331"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.delete_item (cognitive 33): WC_REST_Products_V2_Controller.delete_item has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 2 (6 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1699}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f82c6c5054e9ad14f518995d65c8408e4dc054a7589c6f16bd5d5389d956781"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shipping_Legacy_Free_Shipping.is_available (cognitive 33): WC_Shipping_Legacy_Free_Shipping.is_available has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 4, loops 1 (3 pts), match/switch 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":"wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f39fc3cde91ef778f5b4f6983dd4bb9c7963e8f9e89290027adb58e04f27e50"}},{"ruleId":"D2","level":"warning","message":{"text":"MobileAppQRLogin.get_status (cognitive 33): MobileAppQRLogin.get_status has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 9 (16 pts), if/else 10 (11 pts), boolean chains 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":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7627408c42ff0d57ff9756fd3068cf56207d86c0e7aa2db990036d8f5a08e57"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 33): (anonymous) has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 3, ternaries 2 (nesting depth added 8). Most of this is not in the body itself: 1 of the 33 points is its own statement and the rest belongs to 21 function items inside it that branch (updateButton, onAddToCart, onAddToCart::success, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"51647a41f0b2992ebbb2c6a248af4858fade17f808f8bd8c3ffccfd4c01b1756"}},{"ruleId":"D2","level":"warning","message":{"text":"api-helpers.acf_validate_attachment (cognitive 32): api-helpers.acf_validate_attachment has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 8 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php"},"region":{"startLine":3511}}}],"partialFingerprints":{"codehealthFindingId/v1":"e169a4ebf76ce53a0e796229c0d518abf6cd8e2a10721c1ac846eaaab992d800"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Importers.post_importer_compatibility (cognitive 32): WC_Admin_Importers.post_importer_compatibility has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (23 pts), loops 2 (6 pts), boolean chains 3 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-importers.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fafd7f6cfcd7ace0ab366badd2546c46534625a7e185c8f21b00fbc0ad66002"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.json_search_products (cognitive 32): WC_AJAX.json_search_products has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 2 (3 pts), boolean chains 2, 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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"02015e1431a8cd0b739c34e0858bf12cb3e22327ff27dac7b32f4956ec3e5539"}},{"ruleId":"D2","level":"warning","message":{"text":"Abstract_WC_Order_Data_Store_CPT.update_order_meta_from_object (cognitive 32): Abstract_WC_Order_Data_Store_CPT.update_order_meta_from_object has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 3 (5 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c27bc92915958c525b485ce465e958b79c8bc50e6993e40315492f1278e742c"}},{"ruleId":"D2","level":"warning","message":{"text":"Segmenter.set_all_segments (cognitive 32): Segmenter.set_all_segments has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 4 (9 pts), boolean chains 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc5ce7b1f2c6b88a80bb9931b00abf419fa66f679558dfe04e7abef6c2a7ad9"}},{"ruleId":"D2","level":"warning","message":{"text":"Checkout.enqueue_data (cognitive 32): Checkout.enqueue_data has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 9, ternaries 3 (5 pts), 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4e2f65815278c837fe008abcadc6ed086f21b0a87b28a14af4947e1c676489"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductFilterCheckboxList.render (cognitive 32): ProductFilterCheckboxList.render has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (24 pts), ternaries 2 (5 pts), boolean chains 2, 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5b72ae89e7cae9e06f663c161fcfa7ecfe54c6b6e8be6e78b6a2a0e0c1a2e5"}},{"ruleId":"D2","level":"warning","message":{"text":"MetaToMetaTableMigrator.classify_update_insert_records (cognitive 32): MetaToMetaTableMigrator.classify_update_insert_records has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (28 pts), loops 2 (3 pts), boolean chains 1 (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":"wp-content/plugins/woocommerce/src/Database/Migrations/MetaToMetaTableMigrator.php"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"55026fb19b38fef52b67a2222bfff8360837013de9ae82b799d20447e03d99a5"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 32): (anonymous) has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (18 pts), boolean chains 7, error handling 4, ternaries 3 (nesting depth added 1). None of this is in the body itself: all 32 points belong to 9 function items inside it that branch (renderButtons::manageCartForProductPageOrder, renderButtons::createOrder, renderButtons, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/gateways/paypal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c782cded45554d50b31b36dac4268b583c92d3ea05cf443f3f1b6e9dd1edbcb5"}},{"ruleId":"D2","level":"warning","message":{"text":"api-template.have_rows (cognitive 31): api-template.have_rows has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 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":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"496a4ed948a219ee463a2cb991e529f5db80f48264195ec308a860209e30b6af"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Form_Handler.process_registration (cognitive 31): WC_Form_Handler.process_registration has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 4 (6 pts), boolean chains 3, loops 1 (3 pts), error handling 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2f0408a45f1c1c835658bbbab078bd5be4571e8d2085a24e72e75476b38c64"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order_Factory.get_orders (cognitive 31): WC_Order_Factory.get_orders has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 5 (8 pts), error handling 2 (4 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-order-factory.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b221306d37b645cf8c487b17b3ac4632ab1c3c4973759aadf98b8ad4989e50"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Gateway_Paypal_PDT_Handler.check_response_for_order (cognitive 31): WC_Gateway_Paypal_PDT_Handler.check_response_for_order has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (29 pts), ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-pdt-handler.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23a06efb7843e9a8946430ce6df3730ac9e1ee2bd7ccf18f0a0224feeab1dfe"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Importer.set_variation_data (cognitive 31): WC_Product_Importer.set_variation_data has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e40d7fefbd67a4cc978649fbe80ef48f7ee18567c14a04394eb229a363f0ab"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V1_Controller.delete_item (cognitive 31): WC_REST_Products_V1_Controller.delete_item has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 2 (6 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1642}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ea1d4e9227a453f1791ad1444cac501caefcf3e38d9656c2fe13503eb929b9"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-cart-functions.wc_get_default_shipping_method_for_package (cognitive 31): wc-cart-functions.wc_get_default_shipping_method_for_package has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (8 pts), boolean chains 4, ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/wc-cart-functions.php"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"9757edfd9d3d07ef0ec6e7c70af24c231552347c4a2314dc27630926e6ef13e8"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget_Product_Categories.widget (cognitive 31): WC_Widget_Product_Categories.widget has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 9 (11 pts), loops 1 (4 pts), 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-product-categories.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb05bbbf9f2dd22810fa9f01697a64053045727425d328dba01e1b67c28257bb"}},{"ruleId":"D2","level":"warning","message":{"text":"RestAbilityFactory.sanitize_schema (cognitive 31): RestAbilityFactory.sanitize_schema has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 6, loops 2 (5 pts), ternaries 1 (3 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a37192bd6e39327af27435cb1002c27e252dc14320771763c3da2fde05e94a"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayUtil.deep_compute_or_compare_array_diff (cognitive 31): ArrayUtil.deep_compute_or_compare_array_diff has cognitive complexity 31 (threshold 15). Drivers by points: if/else 8 (26 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f3989e77bffecd707a1d645be7bda187accc3dc227475569d0ab86827a9eed"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.sendmailSend (cognitive 31): PHPMailer.sendmailSend has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 3 (6 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":1888}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e3184ac718ff6ec7665476f5edb246365538ed942acbf6ef5c77a649f26c71"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderRegistry.createDefaultProviderRequestAuthentication (cognitive 31): ProviderRegistry.createDefaultProviderRequestAuthentication has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (23 pts), match/switch 1 (4 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-includes/php-ai-client/src/Providers/ProviderRegistry.php"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9bdf60efc62f1726cbd7fccdd1b96f571f813e6663114e96b6dd6e884f25d2"}},{"ruleId":"D2","level":"warning","message":{"text":"_doKeyPress (cognitive 31): _doKeyPress has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 9 (27 pts), if/else 2 (3 pts), boolean chains 1 (nesting depth added 19). 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"7beead1aa4d6a4ec37751e8c05e4cb56537cab492f4c2c03ac08518f7f0168c3"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_CSV_Importer_Controller.dispatch_ajax (cognitive 30): WC_Product_CSV_Importer_Controller.dispatch_ajax has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 15 (25 pts), if/else 4, error handling 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":"wp-content/plugins/woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"c16dac1fca77dacecd0ae43e0b306e5aaf3ce8b1b098a0dba47e44466b34cc9b"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_List_Table_Products.query_filters (cognitive 30): WC_Admin_List_Table_Products.query_filters has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 5 (14 pts), 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":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f367237b227059e3e4984bdccc14459b58799c56f7ac9f2d50ce10ad82a1640"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Sales_By_Category.get_main_chart (cognitive 30): WC_Report_Sales_By_Category.get_main_chart has cognitive complexity 30 (threshold 15). Drivers by points: loops 5 (14 pts), if/else 3 (7 pts), ternaries 2 (5 pts), match/switch 1 (4 pts) (nesting depth added 19). 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-category.php"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a553e9c466afefa2ddcfbdbca7156fea6967ad23d281508310a906c0e47a7df"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Cart.show_shipping (cognitive 30): WC_Cart.show_shipping has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 11 (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":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28b460510a2826c348a191d8f4c99a82521fcd450f769fe15d9e608f676cd14"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Email.admin_options (cognitive 30): WC_Email.admin_options has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (26 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/emails/class-wc-email.php"},"region":{"startLine":1568}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff5088618e721e9509c9881eb4ab30a9b34846f9cfac08845891302bb23bcb4"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.prepare_objects_query (cognitive 30): WC_REST_Products_V2_Controller.prepare_objects_query has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (17 pts), ternaries 5 (10 pts), boolean chains 2, 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abbd2c616c599def65d53aa982c6f3edb046e639499c0fc46e114493763eb95"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_System_Status_V2_Controller.get_environment_info_per_fields (cognitive 30): WC_REST_System_Status_V2_Controller.get_environment_info_per_fields has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 9, ternaries 5 (7 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a6fc0a78532195e864819fc4326c9a022f1046b78f26abfd98d2363511951a"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_System_Status_V2_Controller.get_theme_info (cognitive 30): WC_REST_System_Status_V2_Controller.get_theme_info has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (23 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php"},"region":{"startLine":1321}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe32ec78ecd67fe1191c1a22c4408ca42acda4dde753e8bcee9936d0fd3dac0"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-product-functions.wc_get_product_variation_attributes (cognitive 30): wc-product-functions.wc_get_product_variation_attributes has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 4 (9 pts), boolean chains 2, ternaries 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":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"384087dacc2ce4cba3df80f2ea886d43796b343684459c18cc8829ae46128708"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-user-functions.wc_customer_has_capability (cognitive 30): wc-user-functions.wc_customer_has_capability has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 6, ternaries 1 (3 pts), match/switch 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/wc-user-functions.php"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef9c4851ba39c729a8116eab648ebe6d018bccb6b5abae1c64921923a75b6a3"}},{"ruleId":"D2","level":"warning","message":{"text":"MobileAppQRLogin.exchange_token (cognitive 30): MobileAppQRLogin.exchange_token has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (18 pts), ternaries 6 (9 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"7529fcd17a512f4c72c18a1006a7f06b655bb7f333e7fdb5fa0b6df6fbd18132"}},{"ruleId":"D2","level":"warning","message":{"text":"FedExShippingProvider.try_parse_tracking_number (cognitive 30): FedExShippingProvider.try_parse_tracking_number has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 12 (17 pts), if/else 6 (9 pts), boolean chains 3, 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/FedExShippingProvider.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a601a2efe087358a635180b2fb0dcfaf6f9cfc6607ad78bfee07f40790443e32"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockTemplatesController.add_db_templates_with_woo_slug (cognitive 30): BlockTemplatesController.add_db_templates_with_woo_slug has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 8, loops 2 (4 pts), ternaries 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTemplatesController.php"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"8868d2f349b1268b78a4bf133778e7f33c28d409eed660461212aa4ea5f472d9"}},{"ruleId":"D2","level":"warning","message":{"text":"BlockTemplatesRegistry.init (cognitive 30): BlockTemplatesRegistry.init has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 2 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTemplatesRegistry.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0fe5429a948cfbafe1ca6f2ff6049d67636be1c9b9b3476aec6ef244c4bb7f"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductFilterTaxonomy.render (cognitive 30): ProductFilterTaxonomy.render has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 7, ternaries 2 (4 pts) (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ca5a2f8972437d27ddbb53459c7d59d1e04c4fb982c1a9608cdaf10d3a7335"}},{"ruleId":"D2","level":"warning","message":{"text":"AbilitiesLoader.register_abilities (cognitive 30): AbilitiesLoader.register_abilities has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 7, ternaries 1 (3 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Abilities/AbilitiesLoader.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3884cd9c3f243d3fd94c32bf4d33f3be94f46dd3cfd34e98fbc43f0cad4b32e"}},{"ruleId":"D2","level":"warning","message":{"text":"FileController.search_within_files (cognitive 30): FileController.search_within_files has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (5 pts), ternaries 1 (2 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b138b34028866f419b41e958fed5ef0d538ad2906952fe219c6d51853f93d9"}},{"ruleId":"D2","level":"warning","message":{"text":"WooPayments.get_details (cognitive 30): WooPayments.get_details has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 8, error handling 2 (3 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aab85be70a863f33a7a956dfc9a4bba6f23380a872b12184797c7d653e7a8eb"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationPreferencesService.sanitize_value (cognitive 30): NotificationPreferencesService.sanitize_value has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 4 (12 pts), boolean chains 3, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/Services/NotificationPreferencesService.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da90a7fe2d6cb341e6c796a4bf1e5e414d9087c3c7bc7d1091b60f8604d6c97"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailSettingsSchema.get_item_response (cognitive 30): EmailSettingsSchema.get_item_response has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 4, ternaries 2 (4 pts), 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Schema/EmailSettingsSchema.php"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5d9ddc69b37fc9c5b7a8977d6c2a111dc3b34fadfaf943746690d6c924c700"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cognitive 30): (anonymous)::(anonymous)::fromElement has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 4, loops 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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5071}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ad2301ab607e45a7d8837a85b144780e5531239c96057b7a0f261829ff78eb"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Abstract_Order.update_taxes (cognitive 29): WC_Abstract_Order.update_taxes has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (14 pts), loops 6 (8 pts), if/else 2 (5 pts), 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"864b1da7ee2afd5098999923a6542abcc68bd8218fed4356caf657e3e9c0bba4"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Meta_Box_Product_Data.prepare_attributes (cognitive 29): WC_Meta_Box_Product_Data.prepare_attributes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 4 (11 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0775306d5faae1f043396cf43bb7213456a306fc444608593aec2b714392c16a"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.update_attributes (cognitive 29): WC_Product_Data_Store_CPT.update_attributes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 3 (12 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0830f1e6a7a6a00e9bfc5b2df71b05269e164b46926bc140cb1d23d5fbef7c3"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_System_Status_Tools_V2_Controller.execute_tool (cognitive 29): WC_REST_System_Status_Tools_V2_Controller.execute_tool has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (22 pts), error handling 1 (3 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 13). 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b315ce711805556cefc4269c7540df40d9dfe2b4e78d4605dca570d9e03be8"}},{"ruleId":"D2","level":"warning","message":{"text":"PageController.get_current_screen_id (cognitive 29): PageController.get_current_screen_id has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 4 (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":"wp-content/plugins/woocommerce/src/Admin/PageController.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7a3e54a5cf688c46d26a1ac5ef86b4b0920de6ec0cec05097a941a1a83b410"}},{"ruleId":"D2","level":"warning","message":{"text":"PatternRegistry.register_block_pattern (cognitive 29): PatternRegistry.register_block_pattern has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (21 pts), loops 4 (5 pts), boolean chains 3 (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":"wp-content/plugins/woocommerce/src/Blocks/Patterns/PatternRegistry.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b903b03717da7af420a27da2e60c65df10d184fd6c11383961a61a9d2eda757"}},{"ruleId":"D2","level":"warning","message":{"text":"Payments.process_payment_provider_states (cognitive 29): Payments.process_payment_provider_states has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 8, loops 3 (5 pts), error handling 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d6a8a14cdf3e942b11952c1baa86c7c1fab4564c575f7440719a3392a5d2c5"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableQuery.build_query (cognitive 29): OrdersTableQuery.build_query has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 11 (18 pts), if/else 8 (9 pts), 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e79c935e30a85565a712b72518aea98d6a5593e1f9ca5e5b9f82a606377279"}},{"ruleId":"D2","level":"warning","message":{"text":"WCEmailTemplateChangeSummary.diff_records_three_way (cognitive 29): WCEmailTemplateChangeSummary.diff_records_three_way has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 5, boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e915b33d8ab1310d335e39b93730f4037335613d1a3f25ea99ce25d3241c6a1"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::setRange (cognitive 29): jquery.flot.Plot::setRange has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (22 pts), ternaries 3 (4 pts), boolean chains 3 (nesting depth added 14). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e241c41954c173fed259ba5e18353d6b282b6a60e0ea35833399dfa2111198"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 29): (anonymous) has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 5 (nesting depth added 9). Most of this is not in the body itself: 2 of the 29 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 90, a function literal at line 57, a function literal at line 175, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/country-select.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0306fbf91791c9af8161c05b922f6bc159f9f7fc0008a9a9219bc52723a1fd"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cognitive 29): (anonymous)::(anonymous)::(anonymous)::main has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28946a04912d8891530bf8bd051996e460ab294723a54408431cb5fbe053e18"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cognitive 29): (anonymous)::(anonymous)::fromElement has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"33933c6de680ae23364d57293e0dad16e8bd349d8becbc5e89ba5359305da33b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cognitive 29): (anonymous)::(anonymous)::(anonymous)::main has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"232e0dc1546726625c8da920e45f43e86adeb893926d9a4321e0f891f3b2cf6e"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cognitive 29): (anonymous)::(anonymous)::fromElement has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"974f39020c8e0fb44dd455c51a9baadad4812e2f9aae08cb04cbd7a6b564d57f"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cognitive 29): (anonymous)::(anonymous)::(anonymous)::main has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"7810993d330b37e699c7f706c543e4dfdfe5a5bf196e0c01e27cedacf695d2a7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cognitive 29): (anonymous)::(anonymous)::(anonymous)::main has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c47c6a849363949c2c389d3792218072218c77fe59b894030a516b26b29634d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cognitive 29): (anonymous)::(anonymous)::fromElement has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":5055}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04ea5e539c9c051a294595198f74748ca3a45438a4dca3a5c660d01a123763a"}},{"ruleId":"D2","level":"warning","message":{"text":"replaceForPosition (cognitive 29): replaceForPosition has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 4, ternaries 2 (4 pts), error handling 1 (3 pts) (nesting depth added 11). None of this is in the body itself: all 29 points belong to 4 function literals inside it that branch (lines 2229, 2282, 2236, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3567b1dfe0bdb4be192050c21ee54e2e3247ff613ba5cd046e0d077de91cad"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cognitive 29): (anonymous)::(anonymous)::(anonymous)::main has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (2 pts) (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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb77f8fdff7991a39b60d3be387880c58c62165d92a73aa99a4fd7c2dc486d80"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cognitive 29): (anonymous)::(anonymous)::fromElement has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b552043a3710989c77ffe3f8b01332c44a5d70e0bb8983a3eb76f90efc9a42"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::(anonymous)::main (cognitive 29): (anonymous)::(anonymous)::(anonymous)::main has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (2 pts) (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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"835c27d9f5af8913f89266e4080acf41de80e5a8614d658ea21f55d417cba9bf"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::fromElement (cognitive 29): (anonymous)::(anonymous)::fromElement has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa2d6843eb94a77e4210f5745663be92fed77bced32993d381aa2f1ca0ee9ed"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Sales_By_Product.products_widget (cognitive 28): WC_Report_Sales_By_Product.products_widget has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 9 (15 pts), if/else 7, loops 3 (6 pts) (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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"602364df1816c6d22395e8add5e803ab1e49f35d7bacdff7065dc9a855826941"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.grant_access_to_download (cognitive 28): WC_AJAX.grant_access_to_download has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (5 pts), boolean chains 4 (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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3898706df8903aedc181c335d25aeacbcbe7a69baa3b5f7c2fa873b90d2d79"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.json_search_categories_tree (cognitive 28): WC_AJAX.json_search_categories_tree has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 2 (6 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"626a9022bdbc66b36139c2a42f9848a5fe4c0440bc29435887510d1c7e5198b6"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Autoloader.autoload (cognitive 28): WC_Autoloader.autoload has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2 (7 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-autoloader.php"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94c9820cc794db43d788141726ff737307555701c7587b285cd8afddeef5359"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Query.get_catalog_ordering_args (cognitive 28): WC_Query.get_catalog_ordering_args has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 8 (13 pts), boolean chains 1, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"33194a55f0b14d86d3fd28774b9dc7ca69ef06e30c0bddd14a9c9fd0240032fe"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Webhook_Data_Store.search_webhooks (cognitive 28): WC_Webhook_Data_Store.search_webhooks has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 12 (17 pts), if/else 9, boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-webhook-data-store.php"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e024b9892da231780eee7792b031f0ea709d8652b764d46dfa2515d3d5c20c27"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.get_product_data (cognitive 28): WC_REST_Products_V2_Controller.get_product_data has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 9 (25 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7ff834ad64f6017207c0fcdb34acb24214d1d486c679570c2b716002eeb148"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_Controller.get_product_data (cognitive 28): WC_REST_Products_Controller.get_product_data has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (26 pts), boolean chains 2 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a97b590d0edad0bd4708f6ec710b38933b2cd459d9c2b7cfc4d1fb20b4b6f23"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-user-functions.wc_get_customer_available_downloads (cognitive 28): wc-user-functions.wc_get_customer_available_downloads has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/wc-user-functions.php"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"e151dfb49cb4b591ed9b4209c30fe588e264176a1f4fff3b8ccb2211595f259f"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingTasks.sideload_homepage_images (cognitive 28): OnboardingTasks.sideload_homepage_images has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 6 (10 pts), loops 3 (5 pts), 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":"wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff71c8be3e32e39cd674e99143ef076089fedea3e7d4dc3830751d43065b4b47"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.get_analytics_report_data (cognitive 28): Controller.get_analytics_report_data has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 2 (8 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/PerformanceIndicators/Controller.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98dc99258ffe2239a802bf68ade5028fa43859a0eb0d340d738637bf8b4bdea"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.parse_frontend_location_context (cognitive 28): Utils.parse_frontend_location_context has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (9 pts), boolean chains 7, loops 1 (3 pts) (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/Utils.php"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fbf312950401b8ba530b8ac4405342e810645c922ab31863f6babd7b608eb65"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractAddressSchema.validate_callback (cognitive 28): AbstractAddressSchema.validate_callback has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 6, ternaries 2 (3 pts), 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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/AbstractAddressSchema.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e4c025964a78a140903912a85d239a0a74b48cbab33429979f61d5a1b7d912"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.setLanguage (cognitive 28): PHPMailer.setLanguage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2490}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f09ecb52d9e4841d2b47e913ed98dc02c9167a300a2da125f014fa8f28fa281"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::drawBar (cognitive 28): jquery.flot.Plot::drawBar has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 3 (nesting depth added 6). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":2471}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b53223c8a6f64b817f5d21039a8c56a2d11247aa18ca1a2bf5053f6ecd68db"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::handler (cognitive 28): (anonymous)::(anonymous)::handler has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 6, ternaries 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":6230}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a963b23ac7eb9303e890862b0b65f4d503f2efe9cff6316a9c578077be3e10"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::handler (cognitive 28): (anonymous)::(anonymous)::handler has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 6, ternaries 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":6405}}}],"partialFingerprints":{"codehealthFindingId/v1":"5115a3c2d5864ff2b1a2d41cd8908add9d219cd8a98c2764ab6f5e3020d51849"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::handler (cognitive 28): (anonymous)::(anonymous)::handler has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 6, ternaries 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a770149993fe371c972a0e774233c62342837b499af41db7b0b5b061ba402f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Settings_Advanced.save (cognitive 27): WC_Settings_Advanced.save has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 7, ternaries 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-advanced.php"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"6841c3220303b044e73146374b3cb9351aff707c2b4c8f39f44f1cf41fdc0481"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.remove_order_item (cognitive 27): WC_AJAX.remove_order_item has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 5, boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7e9072beb1ec6fcd26f8d7128cb3061e8464d980414d8ef90e7eb0d4b85a4a"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Form_Handler.process_login (cognitive 27): WC_Form_Handler.process_login has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 4, ternaries 1 (3 pts), error handling 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e8e998fdd487a6c53028a0eb157fed9f4bfbe1a5357f338314cbaabc0c0bd9"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Geolocation.geolocate_via_api (cognitive 27): WC_Geolocation.geolocate_via_api has cognitive complexity 27 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 2 (10 pts), match/switch 1 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-geolocation.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5766535e6fc1d23c2998462aac919e014fcbb6a99c305b39269a261a3012e2"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Privacy_Erasers.remove_order_personal_data (cognitive 27): WC_Privacy_Erasers.remove_order_personal_data has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (6 pts), loops 3 (5 pts), boolean chains 4 (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":"wp-content/plugins/woocommerce/includes/class-wc-privacy-erasers.php"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff18b7aea86cd8e3cb491dfc15dc0234f0f1bc087e4864d5ec3bada1193ef4cb"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shipping_Zone.get_shipping_methods (cognitive 27): WC_Shipping_Zone.get_shipping_methods has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), ternaries 2 (8 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a2415c3a11361c275ce0ac159f93448c6be40353853c9cc3cce6632cd1ed75"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Tracker.extract_group_key (cognitive 27): WC_Tracker.extract_group_key has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 3 (7 pts), boolean chains 4, loops 2 (4 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-tracker.php"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00f672a5ff8c75b8b54aa082ae7e392915fa13d323026cb26b2fa1e6d615ad5"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.consolidate_customer_id_filters (cognitive 27): Controller.consolidate_customer_id_filters has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 6 (10 pts), boolean chains 2, loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ee9a1727bf40af577a107e21ff712630c7570525a0d4f259e00f7b049f7563"}},{"ruleId":"D2","level":"warning","message":{"text":"AmazonLogisticsShippingProvider.try_parse_tracking_number (cognitive 27): AmazonLogisticsShippingProvider.try_parse_tracking_number has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 22, if/else 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AmazonLogisticsShippingProvider.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"276a6942f80abc1b6911fd90dd04edd9a4f2026c03c8b97a1428be4a304513c0"}},{"ruleId":"D2","level":"warning","message":{"text":"Connection.slice (cognitive 27): Connection.slice has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5, loops 2 (4 pts), ternaries 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Pagination/Connection.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b1af7ed6b718ffd6cd1ffd82e9007417bddcb63957cc0d0a53dfa99f46d2b5"}},{"ruleId":"D2","level":"warning","message":{"text":"Dropdown.render (cognitive 27): Dropdown.render has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 7 (9 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Dropdown.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d320c74e754645ed0fb0c668e5baaf21b8ff782da0ef4302f1dd86a4828290"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckoutFields.validate_options (cognitive 27): CheckoutFields.validate_options has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 5, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFields.php"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d918b1281d25d51a268135951cb947ee591562bfad64154428577309f2be55"}},{"ruleId":"D2","level":"warning","message":{"text":"RestAbilityFactory.sanitize_args_to_schema (cognitive 27): RestAbilityFactory.sanitize_args_to_schema has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ed5e33e4d0b04852f483458136ef83953848c3834463e5a36088c48a0c298f"}},{"ruleId":"D2","level":"warning","message":{"text":"WooPaymentsService.standardize_onboarding_step_details (cognitive 27): WooPaymentsService.standardize_onboarding_step_details has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 3, 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":2027}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc5cb5b085ecdbbba7994454293b3e00d5ee4cb898576caef88b69c1bfa0166e"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductsController.simulate_import_batch (cognitive 27): ProductsController.simulate_import_batch has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (5 pts), ternaries 1 (4 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/ProductsController.php"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad54090d8d2e4e2953f62a5c6337e2547f7e429e75715c9f79b4f96c98bccc5"}},{"ruleId":"D2","level":"warning","message":{"text":"SignupService.signup (cognitive 27): SignupService.signup has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (20 pts), ternaries 2 (4 pts), boolean chains 3 (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":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/SignupService.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a333a1f1a94903d707146d8355119b51cc0c1db49a90bd6c96a8e749ba925f24"}},{"ruleId":"D2","level":"warning","message":{"text":"a8c-address-autocomplete-service.Object.entries().forEach() (cognitive 27): a8c-address-autocomplete-service.Object.entries().forEach() has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 6, error handling 3, match/switch 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 27 points are its own statements and the rest belongs to 6 function items inside it that branch (handleApiError, a function literal at line 299, a function literal at line 348, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/a8c-address-autocomplete-service.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebba44cfb4f33da30aeeb80bb9a154bc4e24dfab88449cff86c82bed54dc2f0"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 27): (anonymous) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 9, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 3 of the 27 points are its own statements and the rest belongs to 9 function items inside it that branch (update, a function literal at line 36, a function literal at line 127, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/term-ordering.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"704b44a448d10e75f7be93cce1acd78a4b3e833598d8e1b757e4f1e48fea6cd4"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 27): (anonymous) has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 6, error handling 3, match/switch 1 (nesting depth added 3). None of this is in the body itself: all 27 points belong to 15 function items inside it that branch (handleApiError, a function literal at line 299, canSearch, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/a8c-address-autocomplete-service.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12f0da5c6630f1e795cb5028730cbb833c120cdc082e1a4508b43673a66e783"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::displaySuggestions (cognitive 27): (anonymous)::displaySuggestions has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5, ternaries 1 (3 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d11ab9001da4fcb67d8f1da9378d9fc12a3814f86491761a5a09b4235c817b"}},{"ruleId":"D2","level":"warning","message":{"text":"api-helpers.acf_get_grouped_posts (cognitive 26): api-helpers.acf_get_grouped_posts has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 4 (8 pts), 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":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"420ad744cd2efb0f20c1f935ad85e0410c141ef3bf6d7f3799bb8d5511b0f273"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Abstract_Order.set_coupon_discount_amounts (cognitive 26): WC_Abstract_Order.set_coupon_discount_amounts has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (5 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3857d0a0c414bab45887d6aab3c94c6fb28b5a8ab4c074d3ac09f72fbf2110"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Meta_Box_Product_Data.prepare_set_attributes (cognitive 26): WC_Meta_Box_Product_Data.prepare_set_attributes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 2 (10 pts), loops 1 (2 pts) (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cb7c64ba32eff0bf47b1e92d0277a92c8bfdf6513d5c0bbf623c0f570c64aa"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Report.prepare_chart_data (cognitive 26): WC_Admin_Report.prepare_chart_data has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (5 pts), ternaries 1 (3 pts), match/switch 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-admin-report.php"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86ec2becbda09fd900e9b2898f2967e67e27971fb9159d72d85ed6153bdce25"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Settings_Payment_Gateways.suppress_admin_notices (cognitive 26): WC_Settings_Payment_Gateways.suppress_admin_notices has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 7, loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-payment-gateways.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c87cd939d7073ca4f12ab55bda053be5bf8a1f10570a2dca0ba658e41020cb0"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Cart_Totals.get_fees_from_cart (cognitive 26): WC_Cart_Totals.get_fees_from_cart has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (20 pts), loops 2 (6 pts) (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f85bb460d0b09316502a0b2c4ee1050ccef55defbc71fdcd7b5b079c09a1952"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Cart.check_customer_coupons (cognitive 26): WC_Cart.check_customer_coupons has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (18 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b26b143cac3032e6c5e56420f0746b6e33a6b2cb87a5d65cf3f3c1381fe21f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Emails.order_meta (cognitive 26): WC_Emails.order_meta has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-emails.php"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e04b507266dcb176b882ae148815a7c929ec0cc1d3ec5128b0934df978d164"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shortcodes.product_page (cognitive 26): WC_Shortcodes.product_page has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11, boolean chains 10, loops 2 (3 pts), ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc701898f29deb84701e1a5dc6e878a592588a4e4f03bcd85264ce468be24f4"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Tax.sort_rates_callback (cognitive 26): WC_Tax.sort_rates_callback has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 6 (11 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-tax.php"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"419e71b83592cbeca59b2992a1459cff3aebbf2b895bdacc621ca9e3d8f90ea1"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.find_matching_product_variation (cognitive 26): WC_Product_Data_Store_CPT.find_matching_product_variation has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 4 (5 pts), boolean chains 2, ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d309b7b743fe7cbb119486a23b153bf728b6df0cfc4686778838a559ff95feb"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_CSV_Importer.read_file (cognitive 26): WC_Product_CSV_Importer.read_file has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3578e2a649e38a559d8dfb438f96b15a9d277681c2a16f445aa510003ea441a0"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Product_Reviews_Controller.update_item (cognitive 26): WC_REST_Product_Reviews_Controller.update_item has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"32829c199931b21b818cf7f59006443041d0edfd6e714397970daaf6bc414b11"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Terms_Controller.get_items (cognitive 26): WC_REST_Terms_Controller.get_items has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3b486e7ed22d0e142900b88b4c08fcf594d0387ffad4ff7b1fabb638b8a408"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-core-functions.wc_array_cartesian (cognitive 26): wc-core-functions.wc_array_cartesian has cognitive complexity 26 (threshold 15). Drivers by points: loops 8 (17 pts), if/else 4 (9 pts) (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":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6a0e769ab70dd841524c22c445f697a60c7fb314086625197c85b0ff8e15922"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-term-functions._wc_term_recount (cognitive 26): wc-term-functions._wc_term_recount has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (16 pts), ternaries 2 (5 pts), loops 2 (3 pts), 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":"wp-content/plugins/woocommerce/includes/wc-term-functions.php"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6a1d6d8d06ff061680d61e3ef0f93a577f72d3984f0f36d32e15452afd5fff"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget_Layered_Nav.layered_nav_dropdown (cognitive 26): WC_Widget_Layered_Nav.layered_nav_dropdown has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 4 (9 pts), loops 1 (2 pts), 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d442f6e7b3d2c218c0c8edaa5df1ef01074523bf9e3a0b5d23c2b1a565aa1643"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomAttributeTraits.get_custom_attributes (cognitive 26): CustomAttributeTraits.get_custom_attributes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 4, loops 2 (3 pts), 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":"wp-content/plugins/woocommerce/src/Admin/API/CustomAttributeTraits.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff0ac6a9d928b0d93d9951b7113673620ade07303f4654b10563569ec08c184"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleProductTemplate.replace_first_single_product_template_block_with_password_form (cognitive 26): SingleProductTemplate.replace_first_single_product_template_block_with_password_form has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 4, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Blocks/Templates/SingleProductTemplate.php"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bdcd74b95183233a143562249da3a5cf11bb179011b2251872c80c36614d54"}},{"ruleId":"D2","level":"warning","message":{"text":"Payments.maybe_track_provider_state_change (cognitive 26): Payments.maybe_track_provider_state_change has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (11 pts), ternaries 2 (4 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"a362900f6840c8c1eddcfb4e00900d611d192e32fd07e001244b2cefab983d5c"}},{"ruleId":"D2","level":"warning","message":{"text":"ShippingZoneService.update_shipping_zone (cognitive 26): ShippingZoneService.update_shipping_zone has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 1 (3 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/ShippingZoneService.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b5734a24f6f7568cce5ab3f47e507af1b5145446457425b651631d227d7c74"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRequirements.fromPromptData (cognitive 26): ModelRequirements.fromPromptData has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelRequirements.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7895325531225438a57e0529a03b91324403df646d34d105e2537721d9e7a3"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery-ui-timepicker-addon.$.datepicker._updateAlternate (cognitive 26): jquery-ui-timepicker-addon.$.datepicker._updateAlternate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 4 (12 pts), boolean chains 2 (nesting depth added 14). 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac76e0d9e57962d692202028bc0b2fc1805c321a0aece066980d4cf844a6d91"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.pie.init::combine (cognitive 26): jquery.flot.pie.init::combine has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 4, loops 4 (nesting depth added 8). 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. This shape REPEATS in the file: 2 other methods here (jquery.flot.pie.init::draw, jquery.flot.pie.init::findNearbySlice) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.pie.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2232ff0429049bd36b75affb6dfd2fd26b9f8cdd61d4b2056653ec5620583f97"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.nivo.slider.NivoSlider (cognitive 26): jquery.nivo.slider.NivoSlider has cognitive complexity 26 (threshold 15). Drivers by points: if/else 83 (129 pts), boolean chains 15, loops 7 (12 pts), ternaries 3 (nesting depth added 51). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (jquery.nivo.slider.NivoSlider::nivoRun) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/custom-slider/jquery.nivo.slider.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2cffc290b9f2fb6a72265920420b68d65b2480b6c91930b669fe0fdb79835f5"}},{"ruleId":"D2","level":"warning","message":{"text":"onFindVariation (cognitive 26): onFindVariation has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 1, ternaries 1 (nesting depth added 13). Of this number, 18 points are the body\u0027s own statements and 8 belong to 2 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6014cacdb710174d4dd74b7f19b58aef6241677cbed09487c3503a13f54b06"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::validate_field (cognitive 26): (anonymous)::validate_field has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 3 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3d44a772d0b4f73d476ba966027369fbd40406a0eb0d84a4069979624b7a07"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchSvg (cognitive 26): fetchSvg has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 5, ternaries 4, error handling 1 (3 pts) (nesting depth added 5). Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 1364, 1400, 1383, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"f41a0991dfa43f8068a36eb8ebdcdd70b36db2586f6cc20e44c2bab00545513b"}},{"ruleId":"D2","level":"warning","message":{"text":"api-term.acf_get_grouped_terms (cognitive 25): api-term.acf_get_grouped_terms has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (8 pts), 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":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-term.php"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d080343a2dc757a4fd4d102b54010618b8a98a490eaa13350291fef7d0721a7"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Taxes_By_Date.get_main_chart (cognitive 25): WC_Report_Taxes_By_Date.get_main_chart has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 7 (15 pts), loops 5 (6 pts), if/else 3 (4 pts) (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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-date.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5579737fecadd87c4a7cee47e92f1841bed8781b57b40249fc9210e85f373f0"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Form_Handler.add_payment_method_action (cognitive 25): WC_Form_Handler.add_payment_method_action has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (24 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"a130126debb9ec01713f89eb261dc3c0ea059e87b6acdd246c750260a0ae79ff"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Regenerate_Images_Request.filter_image_sizes_to_only_missing_thumbnails (cognitive 25): WC_Regenerate_Images_Request.filter_image_sizes_to_only_missing_thumbnails has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, loops 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":"wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccb82d6228262694caf157d9911127b97739a5df535996ef4bb8f788ab7e694"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Coupons_V1_Controller.prepare_item_for_database (cognitive 25): WC_REST_Coupons_V1_Controller.prepare_item_for_database has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 2 (5 pts), match/switch 1 (3 pts), boolean chains 1, loops 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8731666e73ce1fe8cfd54bbdee6a5efac5beeb98ae26b78aed9955cc2d7fb06"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Product_Categories_V1_Controller.update_term_meta_fields (cognitive 25): WC_REST_Product_Categories_V1_Controller.update_term_meta_fields has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39d7344d9e3b238a2fa76901819b8031dc5f1dc740bb1bde5f85b8b4c104196"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Product_Categories_Controller.update_term_meta_fields (cognitive 25): WC_REST_Product_Categories_Controller.update_term_meta_fields has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 2 (5 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-categories-controller.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"8555f8abf724fbc22c5df03e1d16779f19b18f4b59154767dc1c2db1210e0ca2"}},{"ruleId":"D2","level":"warning","message":{"text":"Orders.get_formatted_item_data (cognitive 25): Orders.get_formatted_item_data has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 5, ternaries 3 (4 pts), match/switch 1 (2 pts), 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":"wp-content/plugins/woocommerce/src/Admin/API/Orders.php"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d5ba8f5f563ae2aed822f4fd508c3e0f6e9c2e3392a022c3de2e890d559304"}},{"ruleId":"D2","level":"warning","message":{"text":"CanadaPostShippingProvider.try_parse_tracking_number (cognitive 25): CanadaPostShippingProvider.try_parse_tracking_number has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f6debd0a0f7d45fb3fca346b63a8fda4f19ef67dec05be8440edd84f4b54da"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentsProviders.enhance_extension_suggestion (cognitive 25): PaymentsProviders.enhance_extension_suggestion has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 2 (5 pts), match/switch 1 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"89990457b677223d8b9c47cae5b19f10482ceb6360e2a97a675245e10ef138a7"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsUISchema.get_group_actions (cognitive 25): SettingsUISchema.get_group_actions has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 9, ternaries 1 (2 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUISchema.php"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96e21a203e4db08534a1f6a3419c511e15eaef96af4ab49b888b4b3aa5a9abe"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableFieldQuery.sanitize_query (cognitive 25): OrdersTableFieldQuery.sanitize_query has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 2 (5 pts), boolean chains 3, 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a142f0413f3aefedde6012190719cbabcea65d48d27e1006b928d9c17a5c7d0a"}},{"ruleId":"D2","level":"warning","message":{"text":"WCEmailTemplateSelectiveApplier.migrate_woo_email_content_namespace (cognitive 25): WCEmailTemplateSelectiveApplier.migrate_woo_email_content_namespace has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSelectiveApplier.php"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"736cbd8f08ea9e8748ecc0a8b64cb60e51ed2aced4124394700265e9b686dc7c"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderSchema.get_item_response (cognitive 25): OrderSchema.get_item_response has cognitive complexity 25 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 9, boolean chains 2, ternaries 2 (nesting depth added 6). 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"004f01f9a7b79249e46669afc7f89cbb78d8c32ce4d391afc8d3491fe1254fbb"}},{"ruleId":"D2","level":"warning","message":{"text":"cart.document.addEventListener(\u0022DOMContentLoaded\u0022) (cognitive 25): cart.document.addEventListener(\u0022DOMContentLoaded\u0022) has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 7, ternaries 2 (nesting depth added 2). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 2 function items inside it that branch (a function literal at line 42, submitCartForm). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/cart.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d7fedfca8d66908b573bd8c15b3ef216b97253d143d2b9f5a4b9a7097d1c4b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 25): (anonymous) has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 7, ternaries 2 (nesting depth added 2). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 42, submitCartForm, a function literal at line 22, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/cart.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a9c99d8d1a0dc0fa46cab36785414031b9d83adee99e400a4f2d7a6ef5bab8"}},{"ruleId":"D2","level":"warning","message":{"text":"debounce (cognitive 25): debounce has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 5 (7 pts), boolean chains 5 (nesting depth added 4). Most of this is not in the body itself: 7 of the 25 points are its own statements and the rest belongs to 11 function items inside it that branch (debounced, cancel, shouldInvoke, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/a8c-address-autocomplete-service.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a53477b7b4f14db2e1b7edb2a463111ed7c9c28e02a831e0a3ad2494ed38c8bb"}},{"ruleId":"D2","level":"warning","message":{"text":"api-helpers.acf_get_grouped_users (cognitive 24): api-helpers.acf_get_grouped_users has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php"},"region":{"startLine":1807}}}],"partialFingerprints":{"codehealthFindingId/v1":"110c2ad6dccd3f0d99e476f7946575a46392d2a575990f4840c1e9a5a90f7e92"}},{"ruleId":"D2","level":"warning","message":{"text":"upgrades.acf_upgrade_500_field (cognitive 24): upgrades.acf_upgrade_500_field has cognitive complexity 24 (threshold 15). Drivers by points: loops 4 (13 pts), if/else 6 (11 pts) (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":"wp-content/plugins/advanced-custom-fields-pro/includes/upgrades.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"741fec9e09de56fa369e556c7facd3549bccdd5b76be229bf4b20aff87f02423"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Abstract_Order.hold_applied_coupons (cognitive 24): WC_Abstract_Order.hold_applied_coupons has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), ternaries 1 (4 pts), boolean chains 1, error handling 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a98688bdaa1d97d7c6189c7a32951f8825abcabc8883307803004bc3486cdc1"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Setup_Wizard.wc_setup_activate (cognitive 24): WC_Admin_Setup_Wizard.wc_setup_activate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), ternaries 2 (6 pts), 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":2090}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ad427281bf0503f3398bb8976511d95197d7311723d12c43599e30de678c7a"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Status.output_plugins_info (cognitive 24): WC_Admin_Status.output_plugins_info has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 3, loops 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-status.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"50babcbd849089f396b0ebf31f9bc5594f22c3eae7985397d862d11f963492cb"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Webhooks.save (cognitive 24): WC_Admin_Webhooks.save has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 6 (8 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-webhooks.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffd2fa9e59225ed04708f672d22677975a213eb5d7a2091d42fd76c331ecf0d"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.shipping_classes_save_changes (cognitive 24): WC_AJAX.shipping_classes_save_changes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (20 pts), ternaries 1 (3 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3759}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa67533a794820287abad7c6d79a5850c17c0bbb9befde22157895d90c58dca"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Checkout.validate_checkout (cognitive 24): WC_Checkout.validate_checkout has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 1 (3 pts), ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4c1ff1185f85f3fa8c556cf61dadbb0459d4f3111717c9c167035be7b2a221"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Orders_V2_Controller.save_object (cognitive 24): WC_REST_Orders_V2_Controller.save_object has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 8, error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccad258ff6677fa1fe1402e455e0aa8910563ac2ea5f5990645a0bee818a25c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Shipping_Zone_Methods_V2_Controller.update_fields (cognitive 24): WC_REST_Shipping_Zone_Methods_V2_Controller.update_fields has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (19 pts), ternaries 1 (3 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"7849e926fa96b56bea677b6c4b864a32b60a602c8b1c81158f561e994ce2ce0b"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Product_Reviews_Controller.create_item (cognitive 24): WC_REST_Product_Reviews_Controller.create_item has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 2, ternaries 2 (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a08945798362671c4ea3f21c869efc82fba8cc307a92d774a747247f76c23a5"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Collection_Block_Tracking.get_query_filters_usage_data (cognitive 24): WC_Product_Collection_Block_Tracking.get_query_filters_usage_data has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/tracks/events/class-wc-product-collection-block-tracking.php"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9674ead2ec21bc03891cc0cef4e556266f2caa6eb116d696e8eacdf922b64c0b"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-product-functions.wc_get_related_products (cognitive 24): wc-product-functions.wc_get_related_products has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 6 (8 pts), boolean chains 6 (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":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e06919a823c496b7d1e29d2bb0c85703fe6c1656cf4ae10325fb090ff96e10"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget_Brand_Nav.get_page_base_url (cognitive 24): WC_Widget_Brand_Nav.get_page_base_url has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c939980657d00464d2c2e2a6b8928cecf941ab8b90f69ca616eda55a3cc4796"}},{"ruleId":"D2","level":"warning","message":{"text":"AustraliaPostShippingProvider.try_parse_tracking_number (cognitive 24): AustraliaPostShippingProvider.try_parse_tracking_number has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (22 pts), 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e25402c5e7d1808ef94f6610e2ca42262d1bb5fc172d331f9a95c659eb9085"}},{"ruleId":"D2","level":"warning","message":{"text":"RoyalMailShippingProvider.try_parse_tracking_number (cognitive 24): RoyalMailShippingProvider.try_parse_tracking_number has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (22 pts), 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/RoyalMailShippingProvider.php"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df011f54577fb9d8d38e9967c2d26a293337ef6f898ab4e900a568971fa30ee"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleProductTemplate.render_block_template (cognitive 24): SingleProductTemplate.render_block_template has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, loops 1 (3 pts), ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Blocks/Templates/SingleProductTemplate.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"125d49ce601fb070cd6a75f4a406b47fafa0f06f61f322a9771a70e59c9a4cc7"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.capture_authorized_payment (cognitive 24): Request.capture_authorized_payment has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 3 (6 pts), boolean chains 4, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Gateways/PayPal/Request.php"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"5282656d32859a2a61cbe233fa8c3c8f91fe1286f8637fd5c8c00ef6a6f91019"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersQuery.execute (cognitive 24): OrdersQuery.execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, loops 3, ternaries 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/OrdersQuery.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8eb50beb2b8d9eb0b1445911688e99e2671e7928b96338a9539986977eb3672"}},{"ruleId":"D2","level":"warning","message":{"text":"AddressProviderController.get_registered_providers (cognitive 24): AddressProviderController.get_registered_providers has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 2 (3 pts), ternaries 1 (3 pts) (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":"wp-content/plugins/woocommerce/src/Internal/AddressProvider/AddressProviderController.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa82d65e300fb72173d250ea913c33d4f8a9b55caeb035d4469fce25e2540fa5"}},{"ruleId":"D2","level":"warning","message":{"text":"FileController.get_files (cognitive 24): FileController.get_files has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (8 pts), match/switch 2 (3 pts), loops 1 (nesting depth added 3). 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileController.php"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6402ea347400b4cb2d77989b09d3640444a3d230091f9be101ada86af7995b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Payments.get_payment_providers (cognitive 24): Payments.get_payment_providers has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 3 (4 pts), ternaries 1 (2 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec02a887ae204139bc432e1c03a67ed982fc708840dd9a4c7f17a64a1db10f64"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentsProviders.enhance_order_map (cognitive 24): PaymentsProviders.enhance_order_map has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (4 pts), boolean chains 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfc520aba46971067da1b8ac5fc4513f1521f4686819fb6fda875c59395d58f"}},{"ruleId":"D2","level":"warning","message":{"text":"WooPaymentsService.sanitize_onboarding_step_error (cognitive 24): WooPaymentsService.sanitize_onboarding_step_error has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 2 (3 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"444879cc19d9e6f6472aea2cc377bdab81acf9c15a8d9396ca898e8f720d42ab"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableDataStore.get_diff_meta_data_between_orders (cognitive 24): OrdersTableDataStore.get_diff_meta_data_between_orders has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (8 pts), 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":1669}}}],"partialFingerprints":{"codehealthFindingId/v1":"295778fa0bb849350e18e0f9e1b9fc85b4c6f5a3ac5b173f8980c65a70207c53"}},{"ruleId":"D2","level":"warning","message":{"text":"URL.process_path (cognitive 24): URL.process_path has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (10 pts), ternaries 2, 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":"wp-content/plugins/woocommerce/src/Internal/Utilities/URL.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fac58debebc758f96548436a11f0aa00dc031bc60cdad58fee25d55876a8be"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 24): (anonymous) has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20 (22 pts), boolean chains 2 (nesting depth added 2). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 6 function items inside it that branch (a function literal at line 54, field_is_required, a function literal at line 33, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-i18n.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"383d872bbdaf7e65560319b394e9b39827306fb7357fb3c5dc9b737031314299"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Cart.apply_coupon (cognitive 23): WC_Cart.apply_coupon has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3232a5a77e093740f9f336a045aa6860d6eb93d11e2a303091706f4bd92ab6f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order_Item_Meta.get_formatted_legacy (cognitive 23): WC_Order_Item_Meta.get_formatted_legacy has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts), boolean chains 4 (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":"wp-content/plugins/woocommerce/includes/class-wc-order-item-meta.php"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"395b14a2823ccb10a9616e29275c70ca915ec9859cf0774a383eb2145077973e"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Regenerate_Images.maybe_resize_image (cognitive 23): WC_Regenerate_Images.maybe_resize_image has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 8 (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":"wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ae8d95e798a060ebac9e0d50529052209202c1cf9fd4a6eb6810001d14235d6"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.handle_updated_props (cognitive 23): WC_Product_Data_Store_CPT.handle_updated_props has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"3506c75ce54662ab0e65af300cc7045705eae25748439ac1214ffff3d03954ab"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_CSV_Exporter.format_term_ids (cognitive 23): WC_CSV_Exporter.format_term_ids has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/export/abstract-wc-csv-exporter.php"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ebabd94169797d98a326f8d59438f31b0847d7b8864a45faa734e4286f5258"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Abstract_Legacy_Product.__get (cognitive 23): WC_Abstract_Legacy_Product.__get has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 9 (18 pts), if/else 3 (4 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-product.php"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb2860176066c1d2f9d0e8c269f05110723a7716ff3dc7bc4f6746a0a5e36c8"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Setting_Options_Controller.get_group_settings (cognitive 23): WC_REST_Setting_Options_Controller.get_group_settings has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 3 (9 pts), loops 2 (4 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-setting-options-controller.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1bb52affbe72f7f37e4629b4c758909238a32e0cdb99ccc7670bd62c78c67e"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shipping_Flat_Rate.calculate_shipping (cognitive 23): WC_Shipping_Flat_Rate.calculate_shipping has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (7 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1076c01fe7c2046ea6df6461dd84576e027fd0919675ac2e8be44912e5e5da8"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-formatting-functions.wc_array_merge_recursive_numeric (cognitive 23): wc-formatting-functions.wc_array_merge_recursive_numeric has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (6 pts), 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":"wp-content/plugins/woocommerce/includes/wc-formatting-functions.php"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"0884e0acd5d223f70578c9baf0b3a4a578dd84d832a1f02df89e6f6f2d2b0602"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget_Brand_Nav.layered_nav_dropdown (cognitive 23): WC_Widget_Brand_Nav.layered_nav_dropdown has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 2 (6 pts), loops 1 (2 pts), 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"62164cf1183bd480cb37f07c4a6da4467d6821f1ae158486d3f45e282580d8dc"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.build_location_filter_clause (cognitive 23): DataStore.build_location_filter_clause has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 3 (5 pts), loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5c5abde6cbb83a4770e69e317563d6e59c9b27bc364ccb2724cf6b55e77e7f2"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteInboxNotificationsDataSourcePoller.validate_spec (cognitive 23): RemoteInboxNotificationsDataSourcePoller.validate_spec has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (4 pts), 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":"wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/RemoteInboxNotificationsDataSourcePoller.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6562fa664f9bc5f9cff03bcf730cc825d9283038568b380dc67f2efda5740f59"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphQLControllerBase.process_request (cognitive 23): GraphQLControllerBase.process_request has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Api/Infrastructure/GraphQLControllerBase.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d58df7a74888b5d587ce87a98bc6c8b7d274c8ce61ccb133170699f21c5835a"}},{"ruleId":"D2","level":"warning","message":{"text":"Main.extract_namespace_from_php_source (cognitive 23): Main.extract_namespace_from_php_source has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 5, loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/src/Api/Infrastructure/Main.php"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd5a5d01f9d0f7cc05dc8ce431e20d4075c8acc310b9c4aac2eebf58dd05a12"}},{"ruleId":"D2","level":"warning","message":{"text":"ReserveStock.reserve_stock_for_order (cognitive 23): ReserveStock.reserve_stock_for_order has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (3 pts), boolean chains 2, error handling 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":"wp-content/plugins/woocommerce/src/Checkout/Helpers/ReserveStock.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0d3f2c40c3665d1c2c356843f2206c304d4bcb02907331ccb231b5c9dd7235"}},{"ruleId":"D2","level":"warning","message":{"text":"CLIRunner.enable (cognitive 23): CLIRunner.enable has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7e99973c5348c12bfe12ecc2d94d0402c471d4adfa0e2eebc1511605e8aba9"}},{"ruleId":"D2","level":"warning","message":{"text":"RestAbilityFactory.normalize_type (cognitive 23): RestAbilityFactory.normalize_type has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"60202bd4c13c8ac048e9eb94636d7fda2633c0ef38be3035f9a7e6de4fffec98"}},{"ruleId":"D2","level":"warning","message":{"text":"LogHandlerFileV2.determine_source (cognitive 23): LogHandlerFileV2.determine_source has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/LogHandlerFileV2.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b79baca0d8ff50d33ade2ffbff4acbc363d277e822031e1f83248f046535ed"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyDataHandler.backfill_order_to_datastore (cognitive 23): LegacyDataHandler.backfill_order_to_datastore has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2 (5 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/LegacyDataHandler.php"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"3230b8378da7796faf556c5c20f5e57bb5d34c9b0b18c61579cedf96c91eff8a"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryClauses.add_taxonomy_clauses (cognitive 23): QueryClauses.add_taxonomy_clauses has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (5 pts) (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":"wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"114dd1054caabf011a2b46580b191822b46e8c7a7d31987530e9e4187f5e67db"}},{"ruleId":"D2","level":"warning","message":{"text":"ReceiptRenderingEngine.get_order_data (cognitive 23): ReceiptRenderingEngine.get_order_data has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 6 (9 pts), loops 3, boolean chains 1 (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":"wp-content/plugins/woocommerce/src/Internal/ReceiptRendering/ReceiptRenderingEngine.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c3ab514c6872342e2f6275ec2af20cf66368b62d9241d8c65c3737515106e1"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractSchema.get_recursive_validate_callback (cognitive 23): AbstractSchema.get_recursive_validate_callback has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 3 (7 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/AbstractSchema.php"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1750753bdeadeee26bf7673a89c867cf21265b98b8602dbbf574cbe15204fa7"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.createHeader (cognitive 23): PHPMailer.createHeader has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5, loops 2 (4 pts), ternaries 1 (nesting depth added 3). 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2846}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bbda592d144dbced0a1e7d78596b10829e181558f3953a5e34714ea521647a"}},{"ruleId":"D2","level":"warning","message":{"text":"SMTP.parseHelloFields (cognitive 23): SMTP.parseHelloFields has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (13 pts), ternaries 1 (5 pts), match/switch 1 (4 pts), 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":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efb2c6adfa4e32c2f8978706e7414db227493a1d28dfe4c013ddeb6480d7acc"}},{"ruleId":"D2","level":"warning","message":{"text":"SMTP.get_lines (cognitive 23): SMTP.get_lines has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 7, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f5cd26af2d775dc7a90483f8af15f3a529cf6e62da9de8d3f9d9056c64451f"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 23): (anonymous) has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 3, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 21 function items inside it that branch (a function literal at line 27, onLoadBackboneModal, onConfigureShippingProviderSubmitted, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-providers.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc16bb79a43ab63b5699cd61107f7adbd5fb1a872676a57ac9ffc2154be48162"}},{"ruleId":"D2","level":"warning","message":{"text":"onFoundVariation (cognitive 23): onFoundVariation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (16 pts), ternaries 2 (6 pts), boolean chains 1 (nesting depth added 5). Of this number, 21 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d2f6d9d4971fbb307731d4e1c810de8bbf7aaeee1be0e4c1fa5bfaed41f8d1"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 23): (anonymous) has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 6 (nesting depth added 3). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 104, a function literal at line 45, get_geo_hash, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/geolocation.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ef63eb686e83e8394ae6a9684c06868e90c5c49a709f77a3a9892e55fad5c8"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Sales_By_Date.query_report_data (cognitive 22): WC_Report_Sales_By_Date.query_report_data has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (17 pts), loops 3, if/else 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc7fa12f0a508142d23e7186ada5a7f702f3e1f5271d626e6f274cdad77a44d"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.refund_line_items (cognitive 22): WC_AJAX.refund_line_items has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 7, boolean chains 5, if/else 5, loops 4, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":2370}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f44c3a866911133372ccb6380451892cb47fc20464f1c64f73d133b42c45de6"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Checkout.process_checkout (cognitive 22): WC_Checkout.process_checkout has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (3 pts), boolean chains 2, error handling 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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":1284}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40191a007391974db285d523b1bb644c391494bc25096da8596f1e3f05fb855"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Download_Handler.download_product (cognitive 22): WC_Download_Handler.download_product has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 6 (8 pts), boolean chains 6 (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":"wp-content/plugins/woocommerce/includes/class-wc-download-handler.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2495a6c68b0c5ceae71ba7001d2d46bf3230af256883f13852493ba200bae3fe"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order.needs_processing (cognitive 22): WC_Order.needs_processing has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (18 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order.php"},"region":{"startLine":1870}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30bec0f4bf9595fdf8cdf90ae7a883670aad54ca078ee6069e179d7bc126fa6"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Post_Types.register_taxonomies (cognitive 22): WC_Post_Types.register_taxonomies has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 2 (8 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-post-types.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"07536af1cd29b0d8fc52c7c5b72996ed807f522db9be09fba6082ce2c4bf8132"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-admin-update-functions.wc_admin_update_270_delete_report_downloads (cognitive 22): wc-admin-update-functions.wc_admin_update_270_delete_report_downloads has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 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":"wp-content/plugins/woocommerce/includes/react-admin/wc-admin-update-functions.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"287730e854680581e8681e24190aa7978cb541fa5b2f2dd4f735a9acd3e34a84"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Order_Refunds_V1_Controller.prepare_item_for_response (cognitive 22): WC_REST_Order_Refunds_V1_Controller.prepare_item_for_response has cognitive complexity 22 (threshold 15). Drivers by points: loops 4 (9 pts), if/else 4 (6 pts), ternaries 4 (6 pts), 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c68033eb2f18ebd4253531c047308ffdf15df4ab87fe7434d9b63c688ef7942"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V1_Controller.get_attributes (cognitive 22): WC_REST_Products_V1_Controller.get_attributes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), ternaries 1 (4 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ef51d3ac316667146b229c4d0983ec7f4f6033f1eaa1e62fc8806b0a3592c2"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Coupons_V2_Controller.prepare_object_for_database (cognitive 22): WC_REST_Coupons_V2_Controller.prepare_object_for_database has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 2 (5 pts), match/switch 1 (3 pts), 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21bb6d72fdd8bb218a1285d91d8fe2cee0c81b78d3bedd3a9ab6e52e7e355c7"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Payment_Gateways_V2_Controller.update_item (cognitive 22): WC_REST_Payment_Gateways_V2_Controller.update_item has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"398c45e310b637a53829577d0f22b5f81bf0b61bd569a9db9d88d85ba381ffe2"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Payment_Gateways_V2_Controller.get_settings (cognitive 22): WC_REST_Payment_Gateways_V2_Controller.get_settings has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 4 (8 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"738d7798557b71240486be075ab1875448c9fed6cc608a2524fa12a81a003d2a"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V2_Controller.get_attributes (cognitive 22): WC_REST_Products_V2_Controller.get_attributes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (7 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d13eb11cca03fe289f38966ad5704439af3112689d4d84f370baac70e32b2b3"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Product_Reviews_Controller.get_items (cognitive 22): WC_REST_Product_Reviews_Controller.get_items has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 3, ternaries 1 (2 pts), 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d234a63dcd0ac50ef96f9cb2d28891c49769039a365e20fd8465c97f15dcd40"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shipping_Free_Shipping.is_available (cognitive 22): WC_Shipping_Free_Shipping.is_available has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 3, loops 1 (3 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e889280ca8393c5288bfd4e0a45a2e7c5884be43a660e63a074f74e33d280c9"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-core-functions.wc_postcode_location_matcher (cognitive 22): wc-core-functions.wc_postcode_location_matcher has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 2 (7 pts), boolean chains 2, 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":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"c933831bc355f80b22d2e8d346a6f0fb336b68493367a584a17165fa4d285a99"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-order-functions.wc_delete_shop_order_transients (cognitive 22): wc-order-functions.wc_delete_shop_order_transients has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 4 (7 pts), loops 1 (4 pts), 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":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c1d1b87975563649d8fca31a3ad308b37e2f3a295138f13c6a9e0969120fc4"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget_Brand_Nav.widget (cognitive 22): WC_Widget_Brand_Nav.widget has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5, ternaries 3, loops 1 (2 pts) (nesting depth added 3). 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ec9e6c0027d425838163d56eb6029b2dd0786079b097238d6b97f26dcbf740"}},{"ruleId":"D2","level":"warning","message":{"text":"ResolverHelpers.authorize_method_shape_is_valid (cognitive 22): ResolverHelpers.authorize_method_shape_is_valid has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6, 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":"wp-content/plugins/woocommerce/src/Api/Infrastructure/ResolverHelpers.php"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40e425d699ecd0be7269ac5129995c9a798d93a417d6b9a2a7b73e706ea5534"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateProduct.execute (cognitive 22): UpdateProduct.execute has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (7 pts), loops 3 (4 pts), 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":"wp-content/plugins/woocommerce/src/Api/Mutations/Products/UpdateProduct.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"66da3224048371a6786a3d6555494234297df2da8de5e0d2fe8432d8aeae41c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ComingSoon.enqueue_block_assets (cognitive 22): ComingSoon.enqueue_block_assets has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (6 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ComingSoon.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"deef1fd90dd50166ae3f25bd4d1e090e72659048e13d262a2061fdb42f091a38"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.disable_enhanced_pagination (cognitive 22): Controller.disable_enhanced_pagination has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 8, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/Controller.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34cbd4d886392b8413d80764be035d06e43904aab28b27a71dfba41c633ae48"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryFilters.get_chosen_attributes (cognitive 22): QueryFilters.get_chosen_attributes has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 3 (9 pts), boolean chains 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8a382662fffae714342a1e1eb4ae3063afec6323c426cedb5386eab857bb78"}},{"ruleId":"D2","level":"warning","message":{"text":"Events.get_note_from_db (cognitive 22): Events.get_note_from_db has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts), boolean chains 3, ternaries 1 (3 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Admin/Events.php"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"26237eb32ff7b2c32ab1234327790d4d06f05872bdba41573dc33257fc73aa4c"}},{"ruleId":"D2","level":"warning","message":{"text":"WooCommerceProductImporter.set_product_taxonomies (cognitive 22): WooCommerceProductImporter.set_product_taxonomies has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7351e1b3d9186be1a6cb69d0de5279020933dbbe2e3b40e4b541de3060a2b8"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableQuery.get_field_mapping_info (cognitive 22): OrdersTableQuery.get_field_mapping_info has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 3 (5 pts), loops 2 (3 pts), 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"},"region":{"startLine":1503}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edd063a85368640971bbd577320020d8441ff7ccdf1313f874fb905b772a08e"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderTagsProvider.register_tags (cognitive 22): OrderTagsProvider.register_tags has cognitive complexity 22 (threshold 15). Drivers by points: if/else 18, boolean chains 2, loops 1, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"91efd1fd527c19dc9ac474fbbac7f3de5e652c2198b7f7b6a5f55144c72b0ebf"}},{"ruleId":"D2","level":"warning","message":{"text":"FeaturesController.add_feature_settings (cognitive 22): FeaturesController.add_feature_settings has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/FeaturesController.php"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22e325654b16bfd3b7335dbfc5a1ee4f48d799008801617cde06ef405d3e363"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.check_permission_for_fulfillments (cognitive 22): Controller.check_permission_for_fulfillments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (6 pts), boolean chains 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8879a25eed4dfcdf08e7f4dd3006adc3bef53771c7df4149ae9f139b67422cc"}},{"ruleId":"D2","level":"warning","message":{"text":"CartController.parse_variation_data (cognitive 22): CartController.parse_variation_data has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 2, ternaries 1 (2 pts), 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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/CartController.php"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"7064cfcf967f036f01de85c46f61f3bc57b18a0b0f4d879d4169b79bae3dc811"}},{"ruleId":"D2","level":"warning","message":{"text":"CartController.sanitize_variation_data (cognitive 22): CartController.sanitize_variation_data has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 4 (8 pts), 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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/CartController.php"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5b2417a1a9324392c0c88c25a06891f00d5d1a3a92791b9658b2960be4fe1f"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.smtpSend (cognitive 22): PHPMailer.smtpSend has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (14 pts), loops 4 (6 pts), boolean chains 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2227}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d2356269a5039207669a3f154e20ae786c96477edb61dbb3b8bf3c8d3d577a"}},{"ruleId":"D2","level":"warning","message":{"text":"SMTP.data (cognitive 22): SMTP.data has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (5 pts), 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":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d50ee7733997f3a3967370f8d0e204565fb8c482b6564a4d6a81bff90b92ba6"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-shipping-zone-methods.isValidFormattedNumber (cognitive 22): wc-shipping-zone-methods.isValidFormattedNumber has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 6 (nesting depth added 4). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to one function literal inside it that branches (line 62). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c330c2b2279c908498328e668d2c6ca9c570451bce8f906491e602218ab79ac6"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::axisToCanvasCoords (cognitive 22): jquery.flot.Plot::axisToCanvasCoords has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 4, loops 2 (nesting depth added 10). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::fillInSeriesOptions, jquery.flot.Plot::processData, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"688f08f87ca05a55b2b2d14fafafbbc83c7e732886751ff908d56b27336a2393"}},{"ruleId":"D2","level":"warning","message":{"text":"free.replaceForPosition (cognitive 22): free.replaceForPosition has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 7). None of this is in the body itself: all 22 points belong to 2 function literals inside it that branch (lines 3979, 4020). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":3977}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b0f667c7cb06f58cbeb75e27669c8ab7f386277c03e1c1733aa920100b67b4"}},{"ruleId":"D2","level":"warning","message":{"text":"observe (cognitive 22): observe has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 3, ternaries 1 (nesting depth added 6). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1635, 1633). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1619}}}],"partialFingerprints":{"codehealthFindingId/v1":"1381ac7ebd474072c1fc9cf72dedeffa832381894b1348eae320513a76c14b3e"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Customer_List.column_default (cognitive 21): WC_Report_Customer_List.column_default has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 2 (4 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 8). 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-customer-list.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f6b33014cc627a90a487a9352af00775ea54cfefaba36ccd752866fc101b55"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Settings_Emails.email_notification_setting_block_emails (cognitive 21): WC_Settings_Emails.email_notification_setting_block_emails has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 2 (3 pts), 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":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-emails.php"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69ea41fa5efc9b46dcf66cef0d69cd73cc2ffd210d21d9c123e617e04ced88e"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-meta-box-functions.woocommerce_wp_text_input (cognitive 21): wc-meta-box-functions.woocommerce_wp_text_input has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9 (10 pts), if/else 6 (7 pts), loops 1 (2 pts), boolean chains 1, match/switch 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":"wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e90a987d9736c6e415abe544fd104f08e81781230f4eee18f4d221d00e8d16a"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Checkout.create_order (cognitive 21): WC_Checkout.create_order has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, ternaries 3, error handling 1, 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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"677a63b3789454cabb5a40278b8f57960640cb27286cfd1c405debcbaa9073ee"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Download_Handler.get_download_range (cognitive 21): WC_Download_Handler.get_download_range has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 3 (8 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/class-wc-download-handler.php"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"0900ec0edeb0886c60e682cc079e54304ae694987420d8e38fb50513c760d518"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Geo_IP._geoip_seek_country_v6 (cognitive 21): WC_Geo_IP._geoip_seek_country_v6 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (6 pts) (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. This shape REPEATS in the file: one other method here (WC_Geo_IP._geoip_seek_country) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1508}}}],"partialFingerprints":{"codehealthFindingId/v1":"facd819294b77eefe7ff3eea5afeeeb7686c25644afaf4391a785b4c00371a89"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Geo_IP._geoip_seek_country (cognitive 21): WC_Geo_IP._geoip_seek_country has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (6 pts) (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. This shape REPEATS in the file: one other method here (WC_Geo_IP._geoip_seek_country_v6) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"368b239efd92e804c3513656081d4b128807bb1821209850c521c2eede3844b0"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order_Item.get_formatted_meta_data (cognitive 21): WC_Order_Item.get_formatted_meta_data has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (9 pts), ternaries 2, 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":"wp-content/plugins/woocommerce/includes/class-wc-order-item.php"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"26db8847011b0666ead577fd1234a38fa3cb391d31b38242a33121b80ca5416b"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order.get_formatted_order_total (cognitive 21): WC_Order.get_formatted_order_total has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 2 (7 pts), boolean chains 4, loops 1 (3 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-order.php"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"5326010418b1db95ed7dbfb94830116017510d7e1c136f65521a292dcaee9a94"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order.get_downloadable_items (cognitive 21): WC_Order.get_downloadable_items has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (5 pts), ternaries 1 (5 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-order.php"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cedd1296d16096686aef32c674aa157f5698304feec334c2ed7ab9b7945135"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Post_Types.register_post_types (cognitive 21): WC_Post_Types.register_post_types has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 5 (8 pts), boolean chains 5 (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":"wp-content/plugins/woocommerce/includes/class-wc-post-types.php"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d809a2da554b879bf6a30c1f77e6ef3fa31d14c4341c1edb712a1241750c1328"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Query.get_tax_query (cognitive 21): WC_Query.get_tax_query has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 2 (4 pts), ternaries 2 (4 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"311d50afa501ab66b07eee0f4f8cbd6a2f1ad9339a35cc313e4e4bcb63b13aff"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-order-step-logger-functions.wc_log_order_step (cognitive 21): wc-order-step-logger-functions.wc_log_order_step has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 3, boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-order-step-logger-functions.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d56c333973ce4c7ef3dac52a3bbf359af7b62696b0fad8f7b06bea23e1b1dc4"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-page-functions.wc_nav_menu_item_classes (cognitive 21): wc-page-functions.wc_nav_menu_item_classes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 6, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/wc-page-functions.php"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0773195d9e441d087b22917269d7d90c5598519b6233bfd3587d704d7e34c1d7"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-update-functions.wc_update_200_permalinks (cognitive 21): wc-update-functions.wc_update_200_permalinks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 4 (8 pts), 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":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b860ddc96c25bcc9fada37ec2801b91997d75b8b0da814ee46c723956f5dc6a5"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.include_extended_info (cognitive 21): DataStore.include_extended_info has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 2 (4 pts), loops 3, 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc78e4bb9215c2b1f8debd14ab9c052c38d4713a7bc47aaeaacbd83bd3a6d1c"}},{"ruleId":"D2","level":"warning","message":{"text":"Downloads.render_order_download_row (cognitive 21): Downloads.render_order_download_row has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 1 (4 pts), match/switch 1 (3 pts), 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Downloads.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8cb828fd82ae260c4c5ef8f55a0d3c61ddab7e02d7341c7ca6c940af117080"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductFilterAttribute.render (cognitive 21): ProductFilterAttribute.render has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 4, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da71eb2165e8340bc1741a64e9dd6692919129444b8c9f551e6fa332fae4993"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductRating.render (cognitive 21): ProductRating.render has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, ternaries 2 (4 pts) (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad93cf4985863f14b26822dbcf901f9ac5926e5cd7501eea5c8cb2c85d878ec6"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.get_authorization_id_for_capture (cognitive 21): Request.get_authorization_id_for_capture has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 2 (4 pts), 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":"wp-content/plugins/woocommerce/src/Gateways/PayPal/Request.php"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fee3e7640e5a47768bea7b4b1056a66b8103c4cd8554c5ce27dd2f911ab2e2"}},{"ruleId":"D2","level":"warning","message":{"text":"WooCommerceProductImporter.set_basic_product_properties (cognitive 21): WooCommerceProductImporter.set_basic_product_properties has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2 (4 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"3369374c4f1a4d733ea7a3f941b75ed95051ce23b3947437acd6caa73f4d6c2b"}},{"ruleId":"D2","level":"warning","message":{"text":"StockNotificationsDataStore.query (cognitive 21): StockNotificationsDataStore.query has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, ternaries 5, boolean chains 2, loops 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/StockNotifications/StockNotificationsDataStore.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c02419be1ff34db9c5357ce7d099162035af1a85ec96eb7e101b3d09ec4659"}},{"ruleId":"D2","level":"warning","message":{"text":"ItemEligibility.preload_for_items (cognitive 21): ItemEligibility.preload_for_items has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (4 pts), 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":"wp-content/plugins/woocommerce/src/Internal/OrderReviews/ItemEligibility.php"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f55ed38d13ee8f3faea52eee5a365f2abc95600da1088be29a6a5ecf00df17"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneralSettingsSchema.get_item_response (cognitive 21): GeneralSettingsSchema.get_item_response has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"94880d949384c1675d50b4499994a8d577fb9e7d80fdf92db532c1abf02a9ebf"}},{"ruleId":"D2","level":"warning","message":{"text":"TaxSettingsSchema.get_item_response (cognitive 21): TaxSettingsSchema.get_item_response has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Schema/TaxSettingsSchema.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b067458e8de4a462b260aef87e7ae4213580637b21ddb79be38aa895cfe2ed34"}},{"ruleId":"D2","level":"warning","message":{"text":"SignupService.parse_user_data (cognitive 21): SignupService.parse_user_data has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 2 (4 pts), boolean chains 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":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/SignupService.php"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"abffc3700fd21f25a8bdcd234f8226023339ec4132572df38e69b7916670b8a8"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelConfig.toArray (cognitive 21): ModelConfig.toArray has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. 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. This shape REPEATS in the file: one other method here (ModelConfig.fromArray) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelConfig.php"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f94db1dea806c36716cbaed37ff38a96f5d8f7bb93d15c6dd8edd61769f4a20"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelConfig.fromArray (cognitive 21): ModelConfig.fromArray has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. 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. This shape REPEATS in the file: one other method here (ModelConfig.toArray) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelConfig.php"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d96949827543fe45398d84e932ecd8b448ddd95ab778ee9b95311f10b473905"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery-ui-timepicker-addon.$.datepicker._getDateDatepicker (cognitive 21): jquery-ui-timepicker-addon.$.datepicker._getDateDatepicker has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 4 (nesting depth added 8). 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1727}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d3f6419be858d0b3481c441d929f91b04fd6bff945b85a93e33ecf98ab6e2d"}},{"ruleId":"D2","level":"warning","message":{"text":"acf.buildObject (cognitive 21): acf.buildObject has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"7243105d39e1ad89733e2f648de9b0f5649fc1070373d02f417e1c31072a5cb2"}},{"ruleId":"D2","level":"warning","message":{"text":"acf.EventManager::_removeHook (cognitive 21): acf.EventManager::_removeHook has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 2 (6 pts), boolean chains 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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":2701}}}],"partialFingerprints":{"codehealthFindingId/v1":"773173188d18f601857183dab02f78198f4857f87a40634198b321f19e3cd728"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flexslider.$.fn.flexslider (cognitive 21): jquery.flexslider.$.fn.flexslider has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 9). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 1118). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.js"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09310185407ca918f106bc4d91dd5cea9a0875b28a3e81c523dc9361be36131"}},{"ruleId":"D2","level":"warning","message":{"text":"Lazy (cognitive 21): Lazy has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (8 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 5). None of this is in the body itself: all 21 points belong to 2 function literals inside it that branch (lines 1905, 1920). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":1883}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6381379dc496d93b782193b573065f3e751713f70db74585a1043ca07161283"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 21): (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 8 (10 pts), boolean chains 9, error handling 1, if/else 1 (nesting depth added 2). None of this is in the body itself: all 21 points belong to 13 function items inside it that branch (a function literal at line 2, a function literal at line 2, a function literal at line 2, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/payment-method-promotions.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46f759dbc94efef09017d2e4f664eab757fbd951b24efff79437d61d32eba06"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shipping_Method.add_rate (cognitive 20): WC_Shipping_Method.add_rate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 2 (4 pts), ternaries 1 (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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"7220e0fb4fcdd92fb1083cf47ee699a86d5eb95992b9d6777551636cc1de87d9"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget.update (cognitive 20): WC_Widget.update has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (6 pts), boolean chains 2, match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb273cc6410d3b04f5658803b89bdb51c8695a8a4ed4d6ea9c2e34e9eb5a3838"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Brands_Admin.parse_brands_field (cognitive 20): WC_Brands_Admin.parse_brands_field has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (4 pts) (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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-brands.php"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05ebd48dc97add8e1f341146265742ae66c48a8cb36a2e657f3c5b19674c1be"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Duplicate_Product.product_duplicate (cognitive 20): WC_Admin_Duplicate_Product.product_duplicate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (6 pts), 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-duplicate-product.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9b844d791ab23e6c2032c6b197b1e9ffe7bee5114a50c3b8490e716a5f2818"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Permalink_Settings.settings_save (cognitive 20): WC_Admin_Permalink_Settings.settings_save has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (4 pts), 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-permalink-settings.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdde857225b7b1b4c165a679d534710670d120271c7a9e43a01f219481b1f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Downloads.column_default (cognitive 20): WC_Report_Downloads.column_default has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, error handling 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-downloads.php"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"266d9acaf3bf00a70f428168b56fcc0d2bad1c76b73d40e793b3ebd149da0e73"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Sales_By_Category.output_report (cognitive 20): WC_Report_Sales_By_Category.output_report has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (4 pts), match/switch 1 (4 pts), loops 1 (3 pts) (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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-category.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"42cd290e2aa8d0b2747272fe8c703862895133855b9bb9774010bb397c31d9c7"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Stock.column_default (cognitive 20): WC_Report_Stock.column_default has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-stock.php"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"536e60bd32aca3414bcb0c789741a0e8c0999bd7438795bf11e497ddb5133389"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Cart_Totals.calculate_item_subtotals (cognitive 20): WC_Cart_Totals.calculate_item_subtotals has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"6190e59d5ea64f223bb92c8586675d4c673474a912ba033b5d5dfd27bef5e387"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Variable_Data_Store_CPT.get_price_hash (cognitive 20): WC_Product_Variable_Data_Store_CPT.get_price_hash has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (8 pts), ternaries 1 (2 pts), 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"934bbfafb45daca24276f82ee17541939b485a25e6e6ece2d7aaa4c541cd2e74"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Email.get_headers (cognitive 20): WC_Email.get_headers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, ternaries 1 (3 pts) (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":"wp-content/plugins/woocommerce/includes/emails/class-wc-email.php"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb7837d6ef1ad13ba4ec73842725c9d63f1d8b036be993a2372086e566f06b2"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_CSV_Exporter.prepare_data_to_export (cognitive 20): WC_Product_CSV_Exporter.prepare_data_to_export has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (6 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/export/class-wc-product-csv-exporter.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2aff7a4893e7d068f461a78a12e143771ec3575a77cded41275ebf238feaf0"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_CSV_Importer.parse_categories_field (cognitive 20): WC_Product_CSV_Importer.parse_categories_field has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0154061e19f97aa97bf07909045ee6323b277efeb76bb96a39381e9583b216"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Payment_Gateways_Controller.get_settings (cognitive 20): WC_REST_Payment_Gateways_Controller.get_settings has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 3 (6 pts), 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f760718086e24f26ca6177f5eb8c4295f59595cfc47574162b32bb556ed3c1ee"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Products_Tracking.track_product_published (cognitive 20): WC_Products_Tracking.track_product_published has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 16, boolean chains 3, if/else 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a8bab582aa99d828042c6ee9ccb52d7db16ca3ab42e42cdbb144c2db0bf013"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-core-functions.wc_get_template_part (cognitive 20): wc-core-functions.wc_get_template_part has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 3 (10 pts) (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c4bb3f493c4e782614bbf845d9f224a63efdfcd3d4165184a4cf11232dec46"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-core-functions.wc_get_theme_support (cognitive 20): wc-core-functions.wc_get_theme_support has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (4 pts), boolean chains 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e94f625147effde7db44b4694bafe49756ed687699b64bd02b6db13b70c1aa"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-template-functions.wc_display_product_attributes (cognitive 20): wc-template-functions.wc_display_product_attributes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (7 pts), 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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":4228}}}],"partialFingerprints":{"codehealthFindingId/v1":"958378ca92f6151ea28e30d459838d8fd54cb17e894689d1270efb83354c07a2"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-update-functions.wc_update_210_file_paths (cognitive 20): wc-update-functions.wc_update_210_file_paths has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (6 pts) (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":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"faca25cc681c8c68b9f2dab7a7f92ab61ba259141763f323352101eed18a16d5"}},{"ruleId":"D2","level":"warning","message":{"text":"MobileAppQRLogin.approve_token (cognitive 20): MobileAppQRLogin.approve_token has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, ternaries 6 (7 pts), boolean chains 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f8207262c6f224f6ff7566b06c1f31dafee9487fec34b2ab586f1cddb0adb5"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.update (cognitive 20): DataStore.update has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, ternaries 3 (4 pts) (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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9ed6aeb26ebd734a753ffc5ab5bde5fb91af453de6b77679307af69a428b80"}},{"ruleId":"D2","level":"warning","message":{"text":"ListProducts.execute (cognitive 20): ListProducts.execute has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 5, match/switch 1 (2 pts), 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":"wp-content/plugins/woocommerce/src/Api/Queries/Products/ListProducts.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e93f3072ce01ff540a59d4af6eaf2c8dd59bde00c11f7d2e60e937d4bc57a48"}},{"ruleId":"D2","level":"warning","message":{"text":"Api.verify_payment_methods_dependencies (cognitive 20): Api.verify_payment_methods_dependencies has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Payments/Api.php"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"275d4637edaf401b0564b58cf683faa7ecfcc0877c7e7687ebabcd3ede9ecc2e"}},{"ruleId":"D2","level":"warning","message":{"text":"CLIRunner.cleanup_post_data (cognitive 20): CLIRunner.cleanup_post_data has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 3, error handling 1 (3 pts), loops 2 (3 pts), ternaries 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":"wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bde0c834b5de348f4303919137a3b050a46e765cecc5ce22b6d9f698950827d"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductsController.process_batch (cognitive 20): ProductsController.process_batch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1 (2 pts), 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/ProductsController.php"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5eaf91a77eadf23f44c1b5a453f165b4fffeaee58e728a525047615d27e28c6"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductsController.display_saved_arguments (cognitive 20): ProductsController.display_saved_arguments has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 1 (4 pts), boolean chains 3, loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/ProductsController.php"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21b9f020a503fba502e0295ea08b50cda4255b754a2e93e9608f93e3a067adc"}},{"ruleId":"D2","level":"warning","message":{"text":"WooCommerceProductImporter.setup_attributes (cognitive 20): WooCommerceProductImporter.setup_attributes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6270fe2c5fa822709417913c56d9a07011cecd5a0b5ac2a2890d68b6909dd93"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateUtils.update_order_from_request (cognitive 20): UpdateUtils.update_order_from_request has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 7, 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4ab3e0c16946b9006bf8157530e1529ead4871d25e74de10f9314ce2fbe9aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.validate_setting_value (cognitive 20): Controller.validate_setting_value has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 7, match/switch 1 (nesting depth added 6). 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb624acd1bf09526fa43af441b9024876a0bd0f7ef7f795cfe0422e064bb17aa"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailsSettingsSchema.get_values (cognitive 20): EmailsSettingsSchema.get_values has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"201ea4720d30c8609b27eb309cc9ac0029221e1ee5c024d06d268d41fd829f52"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.get_items (cognitive 20): Controller.get_items has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (4 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/OfflinePaymentMethods/Controller.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ba429ab426e25859f84ee59bf6adec9971e4f4796d972faebabaedd5f828ed"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractPaymentGatewaySettingsSchema.get_settings (cognitive 20): AbstractPaymentGatewaySettingsSchema.get_settings has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 3 (6 pts), 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"5419cb30df919c87b9a58b19d327ecfb8cf787a2f03d47d0f9f462382e402a9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductSettingsSchema.get_item_response (cognitive 20): ProductSettingsSchema.get_item_response has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c9c6e7db75b265c9dd1ea9f0eb974048c767adb2982c70c2b8344ac7224e5d"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationCreatePage.process_create_form (cognitive 20): NotificationCreatePage.process_create_form has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, ternaries 2 (4 pts) (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":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/NotificationCreatePage.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fce73a893bdbbeed3e7fcef5da18369330b38cb89f8e1ed54decb92f6524c26"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginInstaller.install_plugin_core (cognitive 20): PluginInstaller.install_plugin_core has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (19 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Utilities/PluginInstaller.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"55dd7ba0700f8429b317d9c0053142c30fa6de375119eb780c25e384660c9d79"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderItemSchema.get_variation_data_from_order_item (cognitive 20): OrderItemSchema.get_variation_data_from_order_item has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 pts), 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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/OrderItemSchema.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e712fe0054bb25583a017c4015e6149827f99e74656c712a4a9c679bf8df34"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRequirements.toRequiredOptions (cognitive 20): ModelRequirements.toRequiredOptions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelRequirements.php"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d42a5bb0e2da242a3712ebfb33906fb6a13f6b76c54d2d42a2aac63a8bff6cb"}},{"ruleId":"D2","level":"warning","message":{"text":"free.handleThenable (cognitive 20): free.handleThenable has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 2, error handling 1 (nesting depth added 9). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 2383, 2393). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":2370}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b09af03ca64150c8b26dbf3200f8f5400def1ed3555fe09b4997eb3425b3a7"}},{"ruleId":"D2","level":"warning","message":{"text":"pro.handleThenable (cognitive 20): pro.handleThenable has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 2, error handling 1 (nesting depth added 9). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 440, 450). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"549cf0806fec768d7e32134f5993a5b02f24c45f0871062bb254c0217205437e"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 20): (anonymous) has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2, ternaries 1 (nesting depth added 1). None of this is in the body itself: all 20 points belong to 5 function literals inside it that branch (lines 7, 128, 154, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/quick-edit.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"5996c4280577dd21ee188b1446a876fd067493a07c39cff51500e5e25b7c6a51"}},{"ruleId":"D2","level":"warning","message":{"text":"acf-wp-functions.acf_get_object_type (cognitive 19): acf-wp-functions.acf_get_object_type has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-wp-functions.php"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a915d5803b7584f4fc00d42f645f273496c488174ea20516676df76be67604"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Data.update_meta_data (cognitive 19): WC_Data.update_meta_data has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (5 pts), ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"3997321ddce1769a44cd0eddbaf7af6742541f263f831c3e7e8b04343e240bc8"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Abstract_Order.get_subtotal_to_display (cognitive 19): WC_Abstract_Order.get_subtotal_to_display has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (5 pts), boolean chains 2, 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fc0caf060edf6420804c52120accce7ea44d07cbba1c432dbedfebae73c1db"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget.get_current_page_url (cognitive 19): WC_Widget.get_current_page_url has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (17 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0841a457fdbcfdc00eef7311f8a8ddd735f1c45d01faab956cf3a252a189de"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Post_Types.set_new_price (cognitive 19): WC_Admin_Post_Types.set_new_price has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, match/switch 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b86cf052590737718f5513d22b4836ec4a66009b34262a0a3063b6693b752de"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Status.get_latest_theme_version (cognitive 19): WC_Admin_Status.get_latest_theme_version has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 1 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-status.php"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"780d93ce952931324e6c908c176962b4aa0907fc99b648d9f703f7fb227b752f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Helper_Updater.get_translations_update_data (cognitive 19): WC_Helper_Updater.get_translations_update_data has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (4 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"05aeef27b9a6c9d07e718640b627d1dc946666251dfd0ec0e8f4eb7914aee302"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Meta_Box_Coupon_Data.output (cognitive 19): WC_Meta_Box_Coupon_Data.output has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 5 (7 pts), ternaries 5 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd587593019cde89e2170765145d00329b0b511e315de3fedf38e41c53258a35"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Meta_Box_Order_Downloads.output (cognitive 19): WC_Meta_Box_Order_Downloads.output has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-downloads.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7650dc185ac9a446b7afcca3f4db2d4147dd6a77d37889d5d4f16e8e6c4152d8"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Plugin_Updates.get_untested_plugins (cognitive 19): WC_Plugin_Updates.get_untested_plugins has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, 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":"wp-content/plugins/woocommerce/includes/admin/plugin-updates/class-wc-plugin-updates.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73c40d8bc7c1a2899480cbeb7fde074e5e9dcadfd25c0ec2caefb26db5164a5"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-meta-box-functions.woocommerce_wp_checkbox (cognitive 19): wc-meta-box-functions.woocommerce_wp_checkbox has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8, if/else 6, boolean chains 3, loops 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"214df5a496c0cf180f5a1ac9eb3277102291472e4b82278fb52973886beabbcf"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.json_search_categories (cognitive 19): WC_AJAX.json_search_categories has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (6 pts), ternaries 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d728534260cc5339658702760e558aa990252a5ed06b1c80fb01b5eccab99c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.toggle_gateway_enabled (cognitive 19): WC_AJAX.toggle_gateway_enabled has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":4122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df0ef75f705b09328880d8df4e16cc82299d784eff34785cbe760015892546d"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Auth.auth_endpoint (cognitive 19): WC_Auth.auth_endpoint has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 7, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-auth.php"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acd511bb9ce49cd285a48d256594b9292b6a8b37b903f0d9c92c50953ceed27"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Background_Emailer.handle (cognitive 19): WC_Background_Emailer.handle has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-background-emailer.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb9e75d6ce05113b8ec32db22b48882b4d16877d74c0bff4115021aea0b5f83"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Download_Handler.readfile_chunked (cognitive 19): WC_Download_Handler.readfile_chunked has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-download-handler.php"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"786aeabf5956c1b90f3a938f73b192a769c8df950c388a5ad26e2a47bb7a40d2"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order_Item_Meta.get_formatted (cognitive 19): WC_Order_Item_Meta.get_formatted has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 5, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-order-item-meta.php"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"2198003f34809b2237de42ebc09c28a4b542cd349065bde01bd567956d061a70"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order.status_transition (cognitive 19): WC_Order.status_transition has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order.php"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b5a9f4be7836ce1b8c420e9d8609283615b1704b92e45b7ecf6f5c0d07aa2f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Regenerate_Images_Request.task (cognitive 19): WC_Regenerate_Images_Request.task has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 3). 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":"wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"7754907b1b6033bf17a3130c704107482d21638007620657d3fa49c9eb0982fc"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Tax.calc_exclusive_tax (cognitive 19): WC_Tax.calc_exclusive_tax has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-tax.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0dbe7f5a1ce4612e06349e1aaced1cdd7490acb8ded6b025714c7923dc178c1"}},{"ruleId":"D2","level":"warning","message":{"text":"Abstract_WC_Order_Data_Store_CPT.prime_order_item_caches_for_orders (cognitive 19): Abstract_WC_Order_Data_Store_CPT.prime_order_item_caches_for_orders has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebc92b5844958097868ef0755a7e3ea9d1380c9ed88649d90b2edea0328f041"}},{"ruleId":"D2","level":"warning","message":{"text":"Abstract_WC_Order_Data_Store_CPT.prime_refund_caches_for_orders (cognitive 19): Abstract_WC_Order_Data_Store_CPT.prime_refund_caches_for_orders has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (5 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"4613ded222bd0c36546bd731c39d3f8e9285995623abc89046c9f93307053fbd"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Data_Store_WP.get_wp_query_args (cognitive 19): WC_Data_Store_WP.get_wp_query_args has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (4 pts), 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-data-store-wp.php"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dd1f83a4afd967c1a99571d1cf138765c66409b61c92317a46870bd94293be"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Abstract_Legacy_Order.update_product (cognitive 19): WC_Abstract_Legacy_Order.update_product has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b53003e43ecc7c16c60e2b55acf233d63de17c3c2ee48ad1eaca029f756ade0f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Controller.get_fields_for_response (cognitive 19): WC_REST_Controller.get_fields_for_response has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acb61e53ce28e56189f90a59393585b30049b1d755ff00b9d27b165e1396a83"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shipping_Legacy_Flat_Rate.get_extra_cost (cognitive 19): WC_Shipping_Legacy_Flat_Rate.get_extra_cost has cognitive complexity 19 (threshold 15). Drivers by points: loops 3 (10 pts), if/else 3 (6 pts), match/switch 2 (3 pts) (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":"wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e485db2f4dceaa094947cfc2204070b9ae7b6206311aceb593d7edfd6898701"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-core-functions.wc_get_image_size (cognitive 19): wc-core-functions.wc_get_image_size has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 5 (8 pts) (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":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c1df41f2aea67cd2e3c16e63bf9773e5324f5479ef3e28311c91a0c480effb"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-product-functions.wc_scheduled_sales (cognitive 19): wc-product-functions.wc_scheduled_sales has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (6 pts), loops 2 (4 pts) (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":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ebe1d8e7c3fb887ee280b1ba38439aae4db7c0398cc9e037cc88ae44809d2e"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-template-functions.wc_query_string_form_fields (cognitive 19): wc-template-functions.wc_query_string_form_fields has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), ternaries 1 (4 pts) (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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42a85651c16dcb16e166370baff7b51c08910e529eca926d7bda417dd084410"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderFulfillmentsRestController.update_fulfillment (cognitive 19): OrderFulfillmentsRestController.update_fulfillment has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 1 (3 pts), boolean chains 2, error handling 2, 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e64179c10d120600bfd73f2440d34ce75e09fc0298b8594ae2110605c0af256"}},{"ruleId":"D2","level":"warning","message":{"text":"DHLShippingProvider.try_parse_tracking_number (cognitive 19): DHLShippingProvider.try_parse_tracking_number has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 3 (6 pts), boolean chains 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/DHLShippingProvider.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"240a89c07842ac1cdac59260512df13f4896245a320e6df8a925e6679ee2962f"}},{"ruleId":"D2","level":"warning","message":{"text":"DeprecatedOptions.update_deprecated_options (cognitive 19): DeprecatedOptions.update_deprecated_options has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 2 (4 pts), match/switch 1 (nesting depth added 10). 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":"wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/DeprecatedOptions.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ffd8ac627b667050706fa282b7e60f325527a793eae0c3b1fea8aa176b8158b"}},{"ruleId":"D2","level":"warning","message":{"text":"PageController.get_breadcrumbs (cognitive 19): PageController.get_breadcrumbs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (5 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Admin/PageController.php"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e01638d88676aff10149739b721708cdc6d26eebabe453ab62ba7f157962d84"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginsHelper.install_plugins (cognitive 19): PluginsHelper.install_plugins has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (7 pts), ternaries 1 (3 pts), 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":"wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf05a6b39b1493c03e66feb26a1c6fcee9b3be5c356a506717a9ca519306dacb"}},{"ruleId":"D2","level":"warning","message":{"text":"AddToCartForm.render (cognitive 19): AddToCartForm.render has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 8, ternaries 3. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartForm.php"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"479b09f0bd47ff0deb3f1b5d9d892f7dd195c0fb79b2dd204a44f56b94deb687"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductStockIndicator.render (cognitive 19): ProductStockIndicator.render has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7, ternaries 3. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductStockIndicator.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd473f96a5ce6c7e7de3b656a419e68bb6fdf140daaeab2578c9ddef8145c350"}},{"ruleId":"D2","level":"warning","message":{"text":"Request.authorize_or_capture_payment (cognitive 19): Request.authorize_or_capture_payment has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, ternaries 2 (3 pts), error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"wp-content/plugins/woocommerce/src/Gateways/PayPal/Request.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"652419461b5101491be21a93826605c2a778daa6cc88a06392b9b1d92435db0d"}},{"ruleId":"D2","level":"warning","message":{"text":"PageController.handle_list_table_bulk_actions (cognitive 19): PageController.handle_list_table_bulk_actions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/PageController.php"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd04e3f39a63f6d2a1b9da2e3dd32425bc98a54222395694cf27dbfe2155acc"}},{"ruleId":"D2","level":"warning","message":{"text":"PageController.is_order_screen (cognitive 19): PageController.is_order_screen has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), match/switch 2 (6 pts), boolean chains 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d8496a91016039ac0fd7705126999dc21be00c6ab9cd99ef980d7cf375288c"}},{"ruleId":"D2","level":"warning","message":{"text":"ReviewsUtil.comments_clauses_without_product_reviews (cognitive 19): ReviewsUtil.comments_clauses_without_product_reviews has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 2 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/ReviewsUtil.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0a0fb42e0fa055c36b032a81a42f6e0201c59ca438e7bc81d322338edebea7"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentGateway.standardize_recommended_payment_method (cognitive 19): PaymentGateway.standardize_recommended_payment_method has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5 (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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fc62b61e4b344b13f585aa4803b32a454cd8ed3e5df217c5cabc3adf0e7438"}},{"ruleId":"D2","level":"warning","message":{"text":"WcPayWelcomePage.get_active_payments_task_slug (cognitive 19): WcPayWelcomePage.get_active_payments_task_slug has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 9 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/WcPayWelcomePage.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ddd8c4800eacbade52b3959c374c818c65e5f449be562b0c9d9f0c9390f824d"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableDataStore.set_order_props_from_data (cognitive 19): OrdersTableDataStore.set_order_props_from_data has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (12 pts), error handling 1 (3 pts), loops 2 (3 pts), boolean chains 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":1763}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98af6cbd7959a6b545444b00e1f66d6bbe2d6071642163dccd5bceaa099a716"}},{"ruleId":"D2","level":"warning","message":{"text":"StockNotificationsDataStore.update (cognitive 19): StockNotificationsDataStore.update has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 6 (9 pts) (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":"wp-content/plugins/woocommerce/src/Internal/DataStores/StockNotifications/StockNotificationsDataStore.php"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5e999535da86e520baf8da94b1a3dc4f760035e44321b008580d3586f3e49e"}},{"ruleId":"D2","level":"warning","message":{"text":"WCEmailTemplateChangeSummary.lcs_matches (cognitive 19): WCEmailTemplateChangeSummary.lcs_matches has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (4 pts), 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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"623bd81f66c2fa1a8b2055d0bc63a10558907ab53f4c23b81a524bb47255ca4d"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteLogger.is_third_party_error (cognitive 19): RemoteLogger.is_third_party_error has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Logging/RemoteLogger.php"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed917142dab724aa6ddae9eef20ea3efc555d2a7c526ee8f661e42e8e1c6a5e"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryClauses.add_attribute_clauses (cognitive 19): QueryClauses.add_attribute_clauses has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 3, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe581450642910dd155ab42a314e1b2ce67ab3089f3dabc8239210cfa4229f3"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryClauses.get_chosen_attributes (cognitive 19): QueryClauses.get_chosen_attributes has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (6 pts), 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":"wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d12735507a2daa34ef11d2f3871c67b5127a8a56182d8a440f100c700210f41c"}},{"ruleId":"D2","level":"warning","message":{"text":"PushTokensDataStore.get_by_token_or_device_id (cognitive 19): PushTokensDataStore.get_by_token_or_device_id has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 3 (4 pts), error handling 1 (2 pts), loops 1 (nesting depth added 2). 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":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/DataStores/PushTokensDataStore.php"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"27856ddb5ffdead094267c4c7463e629823fb2067256ccc4ccec0acd4296df2a"}},{"ruleId":"D2","level":"warning","message":{"text":"AccountSettingsSchema.get_item_response (cognitive 19): AccountSettingsSchema.get_item_response has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 1 (3 pts), 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec6c0c33dae13c239468bec30c93483832b3cba800fa167306777780416d53b"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailsSettingsSchema.validate_field_value (cognitive 19): EmailsSettingsSchema.validate_field_value has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 1 (3 pts) (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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"923c01982379f5310d26d1d059021b621f4189ec43cfef2718136b6dcb3900f6"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.validate_setting_value (cognitive 19): Controller.validate_setting_value has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 1 (2 pts), match/switch 1 (nesting depth added 8). 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39bdb77cb0e2b01b54b2b38af58eed4365c2db4fc6d4bcba51a27fa017e6da5"}},{"ruleId":"D2","level":"warning","message":{"text":"ListTable.prepare_items (cognitive 19): ListTable.prepare_items has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/ListTable.php"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"032fa256a1131e68075eb1974903a6f76b75b0ac1145fd72910faaaba71d26d7"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.parseAddresses (cognitive 19): PHPMailer.parseAddresses has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (2 pts) (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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"725594280edef9277c37a6e0456187fa808b03688d177d8bdb90102b3cb39efa"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.mailSend (cognitive 19): PHPMailer.mailSend has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 3 (6 pts), boolean chains 4 (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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"741cb6027a92bbec8ed5d29fe75520cf314ca20f6c7da5721325741a91d8d8d4"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.encodeHeader (cognitive 19): PHPMailer.encodeHeader has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, match/switch 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3706}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e6dae4944aa6ad038832178480b12c0091d28395956148cea2ae7855ada2a1"}},{"ruleId":"D2","level":"warning","message":{"text":"wp-signup.show_blog_form (cognitive 19): wp-signup.show_blog_form has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 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":"wp-signup.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e789725296ab24b66ad7256a7946f77fad6aa3a7df6428f8bc9b2c05859349"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 2, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 19 function items inside it that branch (onSaveResponse, onConfigureShippingClassSubmitted, a function literal at line 139, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-classes.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc70ac05dd522ccdfaadeab0f0707a6fb644144794d604d93ef4bb889e63671e"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Setup_Wizard.shipping_method_selection_form (cognitive 18): WC_Admin_Setup_Wizard.shipping_method_selection_form has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (10 pts), loops 4 (5 pts), if/else 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f2348115b79647a3a53a10109597cfc6b9332c433c2380915acd8e480fd1e7"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Helper_Updater.transient_update_plugins (cognitive 18): WC_Helper_Updater.transient_update_plugins has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 1 (2 pts), 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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"019ed67520b4c41afe0354bc990649829fbfd318f8df162b61c35d933d4c2bae"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Helper_Updater.get_updates_count (cognitive 18): WC_Helper_Updater.get_updates_count has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), 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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d972afba1194c09609e0d60a508d5a4ec382e76d31039addfb81845482076a"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Helper._get_return_notices (cognitive 18): WC_Helper._get_return_notices has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 7 (13 pts), boolean chains 2, if/else 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfc7d9fedd55e5f079aec42a2d29822b3f22df3b13a1b434968ef0930e4e4b2"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Tax_Rate_Importer.import (cognitive 18): WC_Tax_Rate_Importer.import has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 4 (5 pts), loops 1 (3 pts) (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":"wp-content/plugins/woocommerce/includes/admin/importers/class-wc-tax-rate-importer.php"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5decff79831bb9d2ddbf6f7cb568ba0ac1a0a78d931219960dd8a80986b43157"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_AJAX.tax_rates_save_changes (cognitive 18): WC_AJAX.tax_rates_save_changes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (16 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3229}}}],"partialFingerprints":{"codehealthFindingId/v1":"238f5e1bf623cddfcea8590efe2a6cef72ca3e1d868704d3bb06f3b3565dfdf5"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Cache_Helper.geolocation_ajax_redirect (cognitive 18): WC_Cache_Helper.geolocation_ajax_redirect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 7, ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-cache-helper.php"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a27c3422f041681cbf66b70518f31550df010ac3f8245fa64cfde74ad847f4"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Cart_Totals.calculate_discounts (cognitive 18): WC_Cart_Totals.calculate_discounts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"10802df0117ceb10b48800914a2aeb98c635c337fc01d61818abd774d58312a1"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Discounts.validate_coupon_excluded_product_categories (cognitive 18): WC_Discounts.validate_coupon_excluded_product_categories has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (6 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-discounts.php"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e259cfbc9f1d2c0939438829ea97db4e6610b26c2ea86540b164fe02b85108"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Geo_IP._common_get_record (cognitive 18): WC_Geo_IP._common_get_record has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), loops 6 (8 pts) (nesting depth added 3). 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":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"347d4938653bca462f975221c4ec13f1ce1d4535588390652516db27cadddf85"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order_Item_Product.set_taxes (cognitive 18): WC_Order_Item_Product.set_taxes has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (3 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a4d00e333408e05cd1783854fdeab767e1a7b2c9c4445ab3e83fd53b909091"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Privacy_Exporters.get_order_personal_data (cognitive 18): WC_Privacy_Exporters.get_order_personal_data has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (6 pts), match/switch 1 (2 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-privacy-exporters.php"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"e723e8b85eba8bfd40e928d34f1b7c930adbf1fd852aba0872463ea3b33eb47e"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Variation_Data_Store_CPT.update (cognitive 18): WC_Product_Variation_Data_Store_CPT.update has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 3 (6 pts), 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"60fde0fb6d10d11de802ce5c769ccab368ef669eed6850d90e5dfeb71e40639c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Importer.process_item (cognitive 18): WC_Product_Importer.process_item has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"319902e5064d6a4b81114ec24ded5da529ec6c08ad64949379621d246996d25c"}},{"ruleId":"D2","level":"warning","message":{"text":"WP_Background_Process.handle (cognitive 18): WP_Background_Process.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/includes/libraries/wp-background-process.php"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b1457d570e633605f37748983243cb299f76a53979f0155d3755600aef0555"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Products_V1_Controller.query_args (cognitive 18): WC_REST_Products_V1_Controller.query_args has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1b1412a7779455c9188499976f37bfc33077a1ce158c75d3b9f04461c8cd8a"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shortcode_Products.set_attributes_query_args (cognitive 18): WC_Shortcode_Products.set_attributes_query_args has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (4 pts), loops 1 (3 pts), 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":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"448e6b6ea64f71761aaae67cc06e51b1440d971cfd42dad76bfe3d167f578e0a"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-product-functions.wc_get_price_excluding_tax (cognitive 18): wc-product-functions.wc_get_price_excluding_tax has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 3 (4 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"15538b9d975915f9136b0c5bfbb769893ea00d5e2b24467cead05e506a9c6f71"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.format_data_value (cognitive 18): Controller.format_data_value has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 2 (4 pts), boolean chains 3, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/PerformanceIndicators/Controller.php"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d71c0414e132dd6189ec6284e304f8786e351a0e18e9567903cad188aae1c3a"}},{"ruleId":"D2","level":"warning","message":{"text":"DPDShippingProvider.try_parse_tracking_number (cognitive 18): DPDShippingProvider.try_parse_tracking_number has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/DPDShippingProvider.php"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"16871d3b98832db5967be68d027183e31a191bdcbc10380da7f1f4f43df11e4b"}},{"ruleId":"D2","level":"warning","message":{"text":"EvriHermesShippingProvider.try_parse_tracking_number (cognitive 18): EvriHermesShippingProvider.try_parse_tracking_number has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/EvriHermesShippingProvider.php"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fd42b637091b4bda99ad47748ed5190be2c98545dd3faefc9c18e974951124"}},{"ruleId":"D2","level":"warning","message":{"text":"UPSShippingProvider.try_parse_tracking_number (cognitive 18): UPSShippingProvider.try_parse_tracking_number has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (8 pts), boolean chains 5, if/else 3 (4 pts), loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/UPSShippingProvider.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fede12100bc895319f9e43eed210954ac856d0db72186595f09c633d57e725"}},{"ruleId":"D2","level":"warning","message":{"text":"LaunchYourStore.save_site_visibility_options (cognitive 18): LaunchYourStore.save_site_visibility_options has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 2 (6 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/LaunchYourStore.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc5ba818c82d5b345cf0f9f0dca5fb946155d0783f23a8c489a3b7bd8bfc458"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderTraits.get_item_shipping_tax_amount (cognitive 18): OrderTraits.get_item_shipping_tax_amount has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (7 pts), loops 2 (6 pts), if/else 3 (5 pts) (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":"wp-content/plugins/woocommerce/src/Admin/Overrides/OrderTraits.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"29947a1f3590dd7538ba60db32b02af742a4eb39cb2b2e7bb3aab24b1c47fac9"}},{"ruleId":"D2","level":"warning","message":{"text":"MiniCart.append_script_and_deps_src (cognitive 18): MiniCart.append_script_and_deps_src has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 1 (2 pts), 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b23db5695fb3015cc4f401534164126df6ed2a4ec48aa5302b7db828eff04e"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductDetails.validate_hooked_blocks (cognitive 18): ProductDetails.validate_hooked_blocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 4, loops 2 (4 pts) (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductDetails.php"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc30dc25a1a4777df99c36a381e5437cf9670f16d0cd1879a061f874b42cfcc"}},{"ruleId":"D2","level":"warning","message":{"text":"ShippingController.show_local_pickup_details (cognitive 18): ShippingController.show_local_pickup_details has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Shipping/ShippingController.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace2b452967a514cf8771b267012a3f62d1251169747027ef624a896bd0ae177"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductsQuery.execute (cognitive 18): ProductsQuery.execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, 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":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/ProductsQuery.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb960ca1cd90f1cd86cf98910fd1cbdada77933041d362cb1dbef684c5c974a7"}},{"ruleId":"D2","level":"warning","message":{"text":"Reviews.get_bulk_action_notice_messages (cognitive 18): Reviews.get_bulk_action_notice_messages has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9 (11 pts), if/else 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/Reviews.php"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"8831c280e55748ff9ec5b50f80712edebee7f34471277d3cdf18a6106cbf8564"}},{"ruleId":"D2","level":"warning","message":{"text":"Payments.maybe_track_providers_state_change (cognitive 18): Payments.maybe_track_providers_state_change has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e0163780bbb60e0ef86297c5e53aabff33b09d93944662c05d956e13bb2a74"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentsController.store_has_providers_with_incentive (cognitive 18): PaymentsController.store_has_providers_with_incentive has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, error handling 1, 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsController.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c904f88acc68891a8e7e3cc5ab718c27886b6af7f4fbf33b272f33cdf139a69"}},{"ruleId":"D2","level":"warning","message":{"text":"WooPaymentsService.onboarding_test_account_init (cognitive 18): WooPaymentsService.onboarding_test_account_init has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":952}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec38528c85161c833b9f67735603d830988b8e4bee11d6266739414b9c82c568"}},{"ruleId":"D2","level":"warning","message":{"text":"WCAdminAssets.register_scripts (cognitive 18): WCAdminAssets.register_scripts has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 3 (5 pts), error handling 2 (4 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminAssets.php"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"275c8ee50860d679b1939bb369e36c8d421ee6bbc4369314021eb7cbcc3c4af8"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductsController.migrate_products (cognitive 18): ProductsController.migrate_products has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1, ternaries 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/ProductsController.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad16e25c959b303f7020bb06b1102987815829c3f11dc8feb3f319d82028f1ae"}},{"ruleId":"D2","level":"warning","message":{"text":"WCEmailTemplateChangeSummary.summarize (cognitive 18): WCEmailTemplateChangeSummary.summarize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, error handling 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2b476cb0b5cd25e9e375dd66ce5d2b8b31998a870014afe856a59ef230c6a7"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderActionsRestController.send_email (cognitive 18): OrderActionsRestController.send_email has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 1 (2 pts), loops 1, match/switch 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":"wp-content/plugins/woocommerce/src/Internal/Orders/OrderActionsRestController.php"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8b07e7499981a26e7f6777e21355d2951fb4d953bd191c757fbf9e2ac0f208"}},{"ruleId":"D2","level":"warning","message":{"text":"PushTokenValidator.validate_token (cognitive 18): PushTokenValidator.validate_token has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 8 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/Validators/PushTokenValidator.php"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"152d32232c68c0f2d1cccce6a2409f7caa2f5c4daa99f142fa2ba50b1446ee6e"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.add_embed_context_to_schema_property (cognitive 18): Controller.add_embed_context_to_schema_property has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 2 (4 pts) (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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8a35371c608701018fbe6b236b153a49ada5e0a60363718a9a357d56d3c8df"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.update_item (cognitive 18): Controller.update_item has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6bacc34668ad54ffcbfa339a5564e4d1263a5683c902261144412557efc6c3"}},{"ruleId":"D2","level":"warning","message":{"text":"GeneralSettingsSchema.get_field_options (cognitive 18): GeneralSettingsSchema.get_field_options has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (8 pts), boolean chains 1, match/switch 1 (nesting depth added 9). 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e17c57cd8ec70dc52bf0b4bd79cf997c6939c0dfeae6882a00fd59bac42cae"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderAttributionMeta.get_origin_label (cognitive 18): OrderAttributionMeta.get_origin_label has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Traits/OrderAttributionMeta.php"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b5bbdbb6127e0613724354d993219df87b9b830b452e6970a163733f925f48"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.Plot::setTicks (cognitive 18): jquery.flot.Plot::setTicks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). 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. This shape REPEATS in the file: 12 other methods here (jquery.flot.Plot::parseOptions, jquery.flot.Plot::axisToCanvasCoords, jquery.flot.Plot::fillInSeriesOptions, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 13 times rather than 13 independent problems. Splitting this body alone leaves the other 12 exactly as they are. Where these are variations on one operation, the change that clears all 13 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":1749}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2e23a578b1abd98d56c2f7806f783192a5c776f09920bced53d16a7285a445"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.pie.init::draw (cognitive 18): jquery.flot.pie.init::draw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, loops 1 (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. This shape REPEATS in the file: 2 other methods here (jquery.flot.pie.init::combine, jquery.flot.pie.init::findNearbySlice) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.pie.js"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec2ab1b4ae5cdcba9188e570b1e2176265ae66438ef9172cca10c9355716be3"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.time.formatDate (cognitive 18): jquery.flot.time.formatDate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), match/switch 1 (3 pts), loops 1, ternaries 1 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.time.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6800cfde926e7336c427d29c5ad7c0d1bd69806d72034dd17348cffbb98f07d3"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.qrcode.QRCode.createBytes (cognitive 18): jquery.qrcode.QRCode.createBytes has cognitive complexity 18 (threshold 15). Drivers by points: loops 8 (12 pts), if/else 2 (6 pts) (nesting depth added 8). 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":"wp-content/plugins/woocommerce/assets/js/jquery-qrcode/jquery.qrcode.js"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc0afbdb40b6595566ebd8f9ea575154fbb939f3927375b1e9c08786bc22d13"}},{"ruleId":"D2","level":"warning","message":{"text":"js.cookie.init (cognitive 18): js.cookie.init has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 2, error handling 1 (2 pts), loops 2, ternaries 2 (nesting depth added 4). None of this is in the body itself: all 18 points belong to 2 function items inside it that branch (get, set). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b0f3c398126b94f22c843037eac52799157eef96e9bbb3e2308524f8d5974f"}},{"ruleId":"D2","level":"warning","message":{"text":"free.icon (cognitive 18): free.icon has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 11, if/else 4 (5 pts), boolean chains 2 (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. 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":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":4267}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b814d263e2f0146ffe995905b1cfeddac3df30c64f0e98df185fe934dba0858"}},{"ruleId":"D2","level":"warning","message":{"text":"pro.icon (cognitive 18): pro.icon has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 11, if/else 4 (5 pts), boolean chains 2 (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. 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":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2890fb416c278d85b879e436b66610619537554675dcf4a1d5a9bc774917e9"}},{"ruleId":"D2","level":"warning","message":{"text":"closest (cognitive 18): closest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 6). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 904). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d90efba871a1d1253415cdd30735a86663f30b950159b4b27951afd4008ecb"}},{"ruleId":"D2","level":"warning","message":{"text":"Autoplay (cognitive 18): Autoplay has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 6 (nesting depth added 1). None of this is in the body itself: all 18 points belong to 8 function literals inside it that branch (lines 2659, 2672, 2687, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":2618}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c24f4e4b0890628b22d70e4fce4b44b145bb1b6f6841a14e04e95653624ffa"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 4 (nesting depth added 1). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 134, a function literal at line 9, a function literal at line 66, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d6370fd89c51543664a0af4d1f4a9df2b271db267c03427b470105b6c14375"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 11, if/else 4 (5 pts), boolean chains 2 (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. 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":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"018e96375c90c47e2d942d47dca66dda8d8b95af6c7cafadc3ed66697a953b0b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::i (cognitive 18): (anonymous)::i has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 6, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/onboarding/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e853e0b4648b1f3dad75578cb5d26d4c3ea0eef5692cd142572f2b1796fdd9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 6, loops 4 (6 pts), if/else 3, ternaries 3 (nesting depth added 2). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (A::C, a function literal at line 1, A::C::c, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/onboarding/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"884c543254034e2ba11f88fcba21bf5151f6c385359d6abac7d4fbd78ddc741d"}},{"ruleId":"D2","level":"warning","message":{"text":"acf-field-group-functions.acf_get_field_group_visibility (cognitive 17): acf-field-group-functions.acf_get_field_group_visibility has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (5 pts) (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":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7c307c065f6e66f329f04eead68f28f03fb7dbc975f8d675c190d6f09fcadd"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Abstract_Order.get_items (cognitive 17): WC_Abstract_Order.get_items has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 1 (5 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa7556b664fb11b9e02665f5d5eced3d42fb5544a28c7dd7b1b1d65e8b93a12"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Status.scan_template_files (cognitive 17): WC_Admin_Status.scan_template_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (7 pts), 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-status.php"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe951c40d4c23cbdd832b3616f8d40ac7dd9b9bf76b751c7a30a50cafb18122"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Helper.get_local_woo_plugins (cognitive 17): WC_Helper.get_local_woo_plugins has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e6510b63a16de844f251c5bcedca54f0691d51cf2cfacd79c05217fee2c509"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Downloads.output_report (cognitive 17): WC_Report_Downloads.output_report has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 1 (2 pts), match/switch 1 (2 pts), 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-downloads.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b99443a4254bb9d034b7733b7b9ee63265461599c92757af705618e940d8b7"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Brands.output_product_brand (cognitive 17): WC_Brands.output_product_brand has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (6 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-brands.php"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccfe096ff501149e28f837e2bb426d5f0aa2c8a30c1d374a785df66ee1e7759"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Brands.output_product_brand_list (cognitive 17): WC_Brands.output_product_brand_list has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-brands.php"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaecbd6f7da309fd2750cfd07c38561e3475dddb818660f2b93865a4cedf1637"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Form_Handler.add_to_cart_handler_variable (cognitive 17): WC_Form_Handler.add_to_cart_handler_variable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, ternaries 3 (4 pts), loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f2d685ad9ddf042f686452d5e8f6f5c58659033acd791676f7999d0abbec93"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Install.create_terms (cognitive 17): WC_Install.create_terms has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-install.php"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"266b47b8dff5f45956604577a56d0ffdcfdc1a744f912ee91a4b3c07e19a8a89"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Attribute.get_terms (cognitive 17): WC_Product_Attribute.get_terms has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 1 (4 pts), 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. This shape REPEATS in the file: one other method here (WC_Product_Attribute.get_slugs) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-product-attribute.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"423143ba954f73ffe82008f4f87a12c70255202c231f05cee0c20718f1fe4407"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Attribute.get_slugs (cognitive 17): WC_Product_Attribute.get_slugs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 1 (4 pts), 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. This shape REPEATS in the file: one other method here (WC_Product_Attribute.get_terms) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-product-attribute.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae42871d969e70dcdd5935b7a745e60b2f597f99da5b6fdaa5cb99c43676fa5"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Grouped.get_price_html (cognitive 17): WC_Product_Grouped.get_price_html has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 1 (3 pts), boolean chains 1, 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":"wp-content/plugins/woocommerce/includes/class-wc-product-grouped.php"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c403439797d6af8ceb4271dae96391f48ad604a19dab71fe4c3da75db615d9e6"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shortcodes.product_categories (cognitive 17): WC_Shortcodes.product_categories has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 2 (4 pts), boolean chains 3, ternaries 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":"wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"443be6b9e35cf5177f6ad7fa6a5fd4c5eecda8057be4ab56298c8bdee877590d"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Template_Loader.get_template_loader_files (cognitive 17): WC_Template_Loader.get_template_loader_files has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (16 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-template-loader.php"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad08bf9806cfbee1685554bc6352b7dc271cef3ce158a69513a5467ed857e1e"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Customer_Data_Store.update_user_meta (cognitive 17): WC_Customer_Data_Store.update_user_meta has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3, boolean chains 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2199f9e868ce335d0ef7d62f08de19aaf9054076341781cf7ea7c30bc82116e7"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.get_data_for_lookup_table (cognitive 17): WC_Product_Data_Store_CPT.get_data_for_lookup_table has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (11 pts), if/else 3 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":2477}}}],"partialFingerprints":{"codehealthFindingId/v1":"af04cd00aaecf97b6bed0a61556fb0ee2d0ae4bf01cc18adf99073b1cd22cb7f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Gateway_BACS.bank_details (cognitive 17): WC_Gateway_BACS.bank_details has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (5 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"636745af4d2e7417b59e0b946bf632ea6e50f517ddbd084a2a45c4d90c59c359"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_CSV_Importer.set_parsed_data (cognitive 17): WC_Product_CSV_Importer.set_parsed_data has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts) (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":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f62c82fb0b28ba8f6ab94b777f5f80fe2e597017e8400d910cf4b6f73b6187f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Taxes_V1_Controller.create_or_update_tax (cognitive 17): WC_REST_Taxes_V1_Controller.create_or_update_tax has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (6 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83b1c2c71acfd4ed25df6b761ccc4655cb1cc29edc56e765a66b6be6190a411"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Webhooks_V1_Controller.update_item (cognitive 17): WC_REST_Webhooks_V1_Controller.update_item has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"039d2b6e86b29f086e751f4d5754850840807f07e97f97851265efd996b5e1e4"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Orders_V2_Controller.get_formatted_item_data (cognitive 17): WC_REST_Orders_V2_Controller.get_formatted_item_data has cognitive complexity 17 (threshold 15). Drivers by points: loops 6 (8 pts), ternaries 1 (4 pts), if/else 1 (2 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"2334e302edfa20eadd2a6f22fa901dbe26a86fac656e5b3d54a6828b4dd38808"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shortcode_Order_Tracking.output (cognitive 17): WC_Shortcode_Order_Tracking.output has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, ternaries 2 (4 pts) (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":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-order-tracking.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53b3e19b85cab9da21c1d7e57e673a2251ccdf7b940fef46b8b0149979ffde3"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-cart-functions.wc_clear_cart_after_payment (cognitive 17): wc-cart-functions.wc_clear_cart_after_payment has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/wc-cart-functions.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf49d59ea639975a1ee729c08ede385e1ce24395769b4b702a529bec10ad9c39"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-order-functions.wc_downloadable_product_permissions (cognitive 17): wc-order-functions.wc_downloadable_product_permissions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), loops 2 (6 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd9e7dd983bcabe12977d786064d1706d8e728ab3a460a40316cf1bf061a5ba"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-order-functions.wc_update_coupon_usage_counts (cognitive 17): wc-order-functions.wc_update_coupon_usage_counts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), match/switch 1 (3 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3125cbfc9912830bbbaf95f6247bcddf551665a049200492640b680eff0faf"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.include_extended_info (cognitive 17): DataStore.include_extended_info has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac0dc814cfce2de7e3128a82d1afe9878b3f860b6f58b59be06af248379653e"}},{"ruleId":"D2","level":"warning","message":{"text":"DataStore.add_time_period_sql_params (cognitive 17): DataStore.add_time_period_sql_params has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fb56481bab528224201808239687faf361551b2f1d46477e9d0c9d28d2b143"}},{"ruleId":"D2","level":"warning","message":{"text":"InstalledExtensions.get_data (cognitive 17): InstalledExtensions.get_data has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17. 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":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0c235a8f48e1f90edaaaf8fbbd1da82aaa7b404e099cf1484836147445d805"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSectionRegistry.is_reserved_checkout_section_id (cognitive 17): SettingsSectionRegistry.is_reserved_checkout_section_id has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, error handling 1, 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":"wp-content/plugins/woocommerce/src/Admin/Settings/SettingsSectionRegistry.php"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93fdaab3c0c62eed8a0e73f309b5a84b0a2025cefc7b35a16aa6ca7d47f0df1"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataController.get_value_scalar (cognitive 17): MetadataController.get_value_scalar has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Infrastructure/MetadataController.php"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b11e7c223257bd4ed85855906c964071d76fcf45ec3ab97d4dbeb1449959964"}},{"ruleId":"D2","level":"warning","message":{"text":"SchemaHandle.find_metadata (cognitive 17): SchemaHandle.find_metadata has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 2, 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":"wp-content/plugins/woocommerce/src/Api/Utils/SchemaHandle.php"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b7a25729592dbfd52475b55ef233f122aa849dce10e9c92a153400ac836338"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckoutExpressPaymentBlock.sync_express_payment_attrs (cognitive 17): CheckoutExpressPaymentBlock.sync_express_payment_attrs has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 7, error handling 1, ternaries 1. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CheckoutExpressPaymentBlock.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f3244193f89c7c36932b812aadb425858c35e9ae4a268e6a5d125d7b9ae892"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductFilterAttribute.get_default_product_attribute (cognitive 17): ProductFilterAttribute.get_default_product_attribute has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (7 pts), loops 1 (nesting depth added 2). 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c282594e00080b46a7032d63faf6b4132f41c44ec90efd83d9008cc1d1b90eff"}},{"ruleId":"D2","level":"warning","message":{"text":"SingleProductTemplate.update_single_product_content (cognitive 17): SingleProductTemplate.update_single_product_content has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3 (nesting depth added 8). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Templates/SingleProductTemplate.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd43903fafe7a08803742a301ae5a2e3f2af6e71b8d5a6a9aaf500455ff8f34b"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductAbilityTrait.prepare_product_field_value (cognitive 17): ProductAbilityTrait.prepare_product_field_value has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/ProductAbilityTrait.php"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf51b395e391d3a318aab69fee7cbf3323e28308947f1be12c5f3dcf45ba1cb"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractAutomatticAddressProvider.load_jwt (cognitive 17): AbstractAutomatticAddressProvider.load_jwt has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 6, ternaries 1 (2 pts), error handling 1 (nesting depth added 1). 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":"wp-content/plugins/woocommerce/src/Internal/AddressProvider/AbstractAutomatticAddressProvider.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e47fc03b6de6ad2a4ede67fa903a0b772d34ee0d719cd2f9aa5af96230f9e1e4"}},{"ruleId":"D2","level":"warning","message":{"text":"OnboardingSetupWizard.do_admin_redirects (cognitive 17): OnboardingSetupWizard.do_admin_redirects has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 7, ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"caceff63530000fa715156d549ce708dab051d76e06570cb0fcff32a7ab9646d"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentsProviders.get_payment_gateway_provider_instance (cognitive 17): PaymentsProviders.get_payment_gateway_provider_instance has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5bf57997168210c4cc4aae654bb14153c8b78c524191b4ba51dd7f92aad20ba"}},{"ruleId":"D2","level":"warning","message":{"text":"WooPaymentsService.disable_test_account (cognitive 17): WooPaymentsService.disable_test_account has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, ternaries 4 (6 pts), boolean chains 4, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a3aa182e415f37fec7d87a4159c4a13637c5748c2ed9641df33c19bfab1d3d"}},{"ruleId":"D2","level":"warning","message":{"text":"Utils.order_map_move_at_order (cognitive 17): Utils.order_map_move_at_order has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Utils.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d11925f070a98793265a2a7aead1025c304b87bfc7bed748a8c31182b047cb"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductsCommand.handle_count_request (cognitive 17): ProductsCommand.handle_count_request has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Commands/ProductsCommand.php"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95812d421478a7b402582ee817052861a5fda1b60d74c2afe749750ef3fb2de"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductsController.execute_migration_loop (cognitive 17): ProductsController.execute_migration_loop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 2, error handling 1 (2 pts), ternaries 2, 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/ProductsController.php"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bc4947732d49f4cc286220c7a7dbdacf3300e70c3890cce6808e8075cf011a"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableDataStore.get_post_orders_for_ids (cognitive 17): OrdersTableDataStore.get_post_orders_for_ids has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 4 (5 pts), error handling 1 (3 pts), 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":1556}}}],"partialFingerprints":{"codehealthFindingId/v1":"28eb189f6611a8e090474c5b91c53295c9051d85735113a909ad42081ad7bfa9"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableDataStore.delete (cognitive 17): OrdersTableDataStore.delete has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 pts) (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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":2474}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a5bb15cb2f6af0229776ac769b39d09fdb0100f672319b6c27b401f30f957f"}},{"ruleId":"D2","level":"warning","message":{"text":"WCEmailTemplateAutoApplier.apply_to_post (cognitive 17): WCEmailTemplateAutoApplier.apply_to_post has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 5, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3414e6d15a7efc1774ba213584ccbbc33de6060da836c87ea790b9ba057e1c75"}},{"ruleId":"D2","level":"warning","message":{"text":"WPPostsImporter.register_product_attribute_taxonomies (cognitive 17): WPPostsImporter.register_product_attribute_taxonomies has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 pts), 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":"wp-content/plugins/woocommerce/src/Internal/Integrations/WPPostsImporter.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45e8778bcc840590d7522dab8a902a88bb6446160fb4abf1779a214a885bef1"}},{"ruleId":"D2","level":"warning","message":{"text":"Endpoint.maybe_create_host_page (cognitive 17): Endpoint.maybe_create_host_page has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, ternaries 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":"wp-content/plugins/woocommerce/src/Internal/OrderReviews/Endpoint.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb4f156d74d2aa1d4ee2bd3225e6a62b385c6ad21a4bca937b7c1854a18777e"}},{"ruleId":"D2","level":"warning","message":{"text":"SubmissionHandler.handle (cognitive 17): SubmissionHandler.handle has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5, ternaries 5. 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":"wp-content/plugins/woocommerce/src/Internal/OrderReviews/SubmissionHandler.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c7bdc393753cd6dd1f35ee2f77dbbaf9166bbd05198a63d06e5c24002c93a3"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractPaymentGatewaySettingsSchema.build_fields_from_form_fields (cognitive 17): AbstractPaymentGatewaySettingsSchema.build_fields_from_form_fields has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be4ef703ad299f572c7764e1f01f695ee536cf62c1473378b2e79c83fbab3f8"}},{"ruleId":"D2","level":"warning","message":{"text":"CheckoutSessionsUpdate.get_route_post_response (cognitive 17): CheckoutSessionsUpdate.get_route_post_response has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (5 pts), 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":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Agentic/CheckoutSessionsUpdate.php"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"057ca571f1d094afb7d32f6905f1edfd11e4348e1e5ed4cc36a86bf4d5f1486a"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderController.validate_coupons (cognitive 17): OrderController.validate_coupons has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 3 (7 pts), error handling 1 (2 pts), 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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/OrderController.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac9dcc44504b0e2ffc5d3871725f2ef21d495250d91acd737a27ebca5365284"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.addOrEnqueueAnAddress (cognitive 17): PHPMailer.addOrEnqueueAnAddress has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd076b930003232b66c062b4667ddb70a9e84f2eca84a4b07cdbb081a2ae46b2"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.addAnAddress (cognitive 17): PHPMailer.addAnAddress has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 1 (2 pts), 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c79905eae64cacefc82073ab8408aa40898c50359f69c412f7fbd6e1534af94"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractOpenAiCompatibleTextGenerationModel.prepareGenerateTextParams (cognitive 17): AbstractOpenAiCompatibleTextGenerationModel.prepareGenerateTextParams has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (16 pts), loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleTextGenerationModel.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5bb1bdbf212cc9c85fe1c0a7e772e74738a3ed36e2d1ab7d1129e517cdfd2f"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractOpenAiCompatibleTextGenerationModel.getMessagePartContentData (cognitive 17): AbstractOpenAiCompatibleTextGenerationModel.getMessagePartContentData has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 pts) (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":"wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleTextGenerationModel.php"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a55107be7510856a0937f2aea3d44144687fca4fd2f8c282998017d03c6c73"}},{"ruleId":"D2","level":"warning","message":{"text":"wp-login.login_footer (cognitive 17): wp-login.login_footer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 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":"wp-login.php"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5e7872a0c9554377d457e92148644a1c664da2c5d4681396e5c0791fdaaa30"}},{"ruleId":"D2","level":"warning","message":{"text":"add-to-cart-variation.$.fn.wc_variations_image_update (cognitive 17): add-to-cart-variation.$.fn.wc_variations_image_update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 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":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fd205590248acef7d667f700c345532f9c9c028703b1827e20d6f36770420d"}},{"ruleId":"D2","level":"warning","message":{"text":"buildQuicktags (cognitive 17): buildQuicktags has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":8479}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd2683a272d3f98efd0addbded6f0ac97404ad226cb3c5f7fecccf1ece659d9"}},{"ruleId":"D2","level":"warning","message":{"text":"options (cognitive 17): options has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 2 (nesting depth added 8). 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8165e3ebea402f7b97d69fd2a88e7057a42643f7d765ad2323273ea97a2c7b1"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 3, boolean chains 1 (nesting depth added 1). None of this is in the body itself: all 17 points belong to 16 function items inside it that branch (maybe_disable_save_button, a function literal at line 9, a function literal at line 104, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3054e790d1fce8bd9a36b8033f4a3269c9385e2fc358a749e1e724732b0b98d2"}},{"ruleId":"D2","level":"warning","message":{"text":"onTree (cognitive 17): onTree has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 3, ternaries 2, boolean chains 1 (nesting depth added 3). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 2185, a function literal at line 2202, a function literal at line 2204, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2148}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b63e555a4b8c15622ee8338bf839811184311193bcb258195bc36ae119759b"}},{"ruleId":"D2","level":"warning","message":{"text":"acf-field-functions.acf_render_field_wrap (cognitive 16): acf-field-functions.acf_render_field_wrap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 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":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"043a0d5e93d539340ea055c9fdcf950bced357a5fda0491367e0b2edffe7ff8f"}},{"ruleId":"D2","level":"warning","message":{"text":"acf-field-group-functions.acf_import_field_group (cognitive 16): acf-field-group-functions.acf_import_field_group has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts) (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":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php"},"region":{"startLine":998}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10d60d7c07200161816ec4da4e6b909f765273e06358e58f8cdab37d53bcebd"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Abstract_Order.calculate_totals (cognitive 16): WC_Abstract_Order.calculate_totals has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 5 (7 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":2013}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cf1cb2cc56fd1a562ad20e2643abd56743a4ce33cd3f9c6d20a8071197274f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Background_Process.handle (cognitive 16): WC_Background_Process.handle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), 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":"wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1afe6b2a40db190bca8d09bac942d6e427ed929a8ba2f2daa2279328673ed4"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin_Menus.menu_order_count (cognitive 16): WC_Admin_Menus.menu_order_count has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 1 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-menus.php"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0898ac5f6523f8177c2d054e628cb05c7441483b0b11ace1dd8b58f0f6e2283"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Admin.preview_emails (cognitive 16): WC_Admin.preview_emails has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 2 (6 pts), 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a7b5bcfbf70e97264eec1a10addb749e3f6fe4cbdc07a832b4b3b20f318f32"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Helper.get_local_woo_themes (cognitive 16): WC_Helper.get_local_woo_themes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, 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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc3d2e9f76d9df749daa1c33bf435bc9e0703ef51b724989c8e61d5a00fc2a8"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Report_Taxes_By_Code.get_main_chart (cognitive 16): WC_Report_Taxes_By_Code.get_main_chart has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 3 (4 pts), loops 3 (4 pts), 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-code.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9aa4e43f72ff3c300f55a0e56e5b9f1749da7da1dfd24b56a89aba585b8cd07"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-meta-box-functions.woocommerce_wp_textarea_input (cognitive 16): wc-meta-box-functions.woocommerce_wp_textarea_input has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8, boolean chains 3, if/else 3, loops 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"000c9d4d6fe6c2be9d6ae2006d80091c602db6c3a9c7fe5893765cbed709f99d"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Customer.has_full_shipping_address (cognitive 16): WC_Customer.has_full_shipping_address has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, ternaries 2 (3 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-customer.php"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a7829704690bb386b481688f6000abda000bf4dde54d2f025e810b89719a99"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Deprecated_Action_Hooks.trigger_hook (cognitive 16): WC_Deprecated_Action_Hooks.trigger_hook has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, match/switch 1 (nesting depth added 7). 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":"wp-content/plugins/woocommerce/includes/class-wc-deprecated-action-hooks.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"388ed6d117e74c9e176be885fb0224615d4eacba9385ce506fb68865814a2f34"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Discounts.validate_coupon_product_categories (cognitive 16): WC_Discounts.validate_coupon_product_categories has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 2, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/class-wc-discounts.php"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"f765ae18555b9ac9db48027b46c9e41f9c3e9b4643354ae815681474fb2b4e65"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Form_Handler.cancel_order (cognitive 16): WC_Form_Handler.cancel_order has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (6 pts), ternaries 1 (2 pts) (nesting depth added 3). 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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5633750bc52d16a4cf1e6a760b2bc338ca4399cfef5db07ec47856cc082f59f"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Install.install_actions (cognitive 16): WC_Install.install_actions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 1 (4 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-install.php"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0ba644b526e68f304046016023595c4ea5492fe28fe0c72b7db7cae8f87752"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Order.get_refunds (cognitive 16): WC_Order.get_refunds has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 2 (4 pts), ternaries 1 (2 pts), 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":"wp-content/plugins/woocommerce/includes/class-wc-order.php"},"region":{"startLine":2207}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ad333e807ec86ae0e98e8678aafe2e1bf7c3d813a97b2a96506b0a2126482d"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Variable.get_available_variation (cognitive 16): WC_Product_Variable.get_available_variation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-product-variable.php"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"740538192c4d7bfcabc606cdf19b013af544894b8a0ca1a9a4cdd244c4522e27"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Product_Data_Store_CPT.create_all_product_variations (cognitive 16): WC_Product_Data_Store_CPT.create_all_product_variations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 3 (5 pts), 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"20df7c98563b1b9521b779b327218903db0b18ccb3f348433f44124b078cf499"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Gateway_COD.load_shipping_method_options (cognitive 16): WC_Gateway_COD.load_shipping_method_options has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 2 (5 pts), ternaries 1 (4 pts) (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":"wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e2cfc13bce77ecab89ef1292018184a6ec55569e746ae28d82a36d38157870"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Customers_V1_Controller.update_customer_meta_fields (cognitive 16): WC_REST_Customers_V1_Controller.update_customer_meta_fields has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), boolean chains 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2231f0be5e0b5dab87fd81c8e9fa65f0e4ac55a852809d1ee0b19a5bdcae19"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Orders_V2_Controller.prepare_objects_query (cognitive 16): WC_REST_Orders_V2_Controller.prepare_objects_query has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 1 (2 pts), 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8884a1da59d44a970f669b379374349a97da02b43b155be730adfc585d974ca"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_REST_Product_Reviews_Controller.prepare_item_for_response (cognitive 16): WC_REST_Product_Reviews_Controller.prepare_item_for_response has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, ternaries 2 (3 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e65fa063fda1ef139a1fee44abe076a08268ef943e0a2ba00621b52c0149e5c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Shipping_Legacy_Flat_Rate.calculate_shipping (cognitive 16): WC_Shipping_Legacy_Flat_Rate.calculate_shipping has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (5 pts), boolean chains 2, 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":"wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c77ba1e42a43bc3fe04583f7d2cbc6e4ea2ab06f8fbbeaa436f48727947bd37"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-page-functions.wc_nav_menu_items (cognitive 16): wc-page-functions.wc_nav_menu_items has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/includes/wc-page-functions.php"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"847e1d3e7ffa0499691d86a2a3a1c7521d30445206488927fe672df2269bdb60"}},{"ruleId":"D2","level":"warning","message":{"text":"wc-term-functions.wc_change_term_counts (cognitive 16): wc-term-functions.wc_change_term_counts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-term-functions.php"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5fe96647bf66925d2ba59c4f64437c486542f94c91bd81fda3405d141c95f0"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget_Price_Filter.widget (cognitive 16): WC_Widget_Price_Filter.widget has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10f701872c03aa0c26b16b1bd5f0f62589212f936e65a5c23522fd09d57439c"}},{"ruleId":"D2","level":"warning","message":{"text":"WC_Widget_Rating_Filter.widget (cognitive 16): WC_Widget_Rating_Filter.widget has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (5 pts), boolean chains 1, 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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-rating-filter.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a1ba4fde465fe96e5cb4da9b9cf21784622c88042bb6f0e0fe357b70832add3"}},{"ruleId":"D2","level":"warning","message":{"text":"Themes.upload_theme (cognitive 16): Themes.upload_theme has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Themes.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e187dfe352ef1dfe9755ded04902fac7e1fa3af963f01b4fed0020584ad6e9b"}},{"ruleId":"D2","level":"warning","message":{"text":"RedirectionController.is_product_supported (cognitive 16): RedirectionController.is_product_supported has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 3, ternaries 2 (3 pts), 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":"wp-content/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/RedirectionController.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a068fe060b588d73e3a027347c1d2c81feecbb478654129ad13508e3a19d9018"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductMapper.slice_variation_ids (cognitive 16): ProductMapper.slice_variation_ids has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, ternaries 3 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Utils/Products/ProductMapper.php"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba630d0d41d9a5cba06141a0e9a1b230e26e9d30dcfe60fdd01efef48ff0accb"}},{"ruleId":"D2","level":"warning","message":{"text":"VariationSelectorAttribute.replace_legacy_attribute_options_block (cognitive 16): VariationSelectorAttribute.replace_legacy_attribute_options_block has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 5, loops 1 (2 pts), ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/VariationSelectorAttribute.php"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b70134e39ab9e3a9766ee60ab731e089d5ec5154361c9020326e617aa62e0b"}},{"ruleId":"D2","level":"warning","message":{"text":"VariationSelectorAttribute.get_default_selected_attribute (cognitive 16): VariationSelectorAttribute.get_default_selected_attribute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (5 pts) (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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/VariationSelectorAttribute.php"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20e19f975e4cbf366cb03929c3734fb4ea19f5486360b59140c2321352dad78"}},{"ruleId":"D2","level":"warning","message":{"text":"ProductUpdate.execute (cognitive 16): ProductUpdate.execute has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/ProductUpdate.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7198856e11ea866b01cfe4d0338815a3ef574e3c20ae4424eafca27db5beb0d0"}},{"ruleId":"D2","level":"warning","message":{"text":"PaymentGateway.get_settings_url (cognitive 16): PaymentGateway.get_settings_url has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00fc1c92974d4bdd122251837be999102416e7747a43e04c71e6835f45c1c89"}},{"ruleId":"D2","level":"warning","message":{"text":"WooPayments.get_onboarding_url (cognitive 16): WooPayments.get_onboarding_url has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9d79a69c43d6be1cea57017569a48f0bcf8f5aa7be3a4ff4acf3daeb74d898"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsUISchema.transform_legacy_field (cognitive 16): SettingsUISchema.transform_legacy_field has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUISchema.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e3a72216af807c36415bfc7220ef784273b8473da76d80771250c5964c0e13"}},{"ruleId":"D2","level":"warning","message":{"text":"LegacyDataHandler.build_sql_query_for_cleanup (cognitive 16): LegacyDataHandler.build_sql_query_for_cleanup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (3 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/LegacyDataHandler.php"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8012894eea14527b3486956d9f1dce6cf692a9fa2be7caa559c9ac9b31d114"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableDataStore.read_multiple (cognitive 16): OrdersTableDataStore.read_multiple has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"b540f97f8c87a32171fd13ec93debdd5b02ca8301f66cffe60cab7f0c6ea8b90"}},{"ruleId":"D2","level":"warning","message":{"text":"OrdersTableDataStore.update (cognitive 16): OrdersTableDataStore.update has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 6, ternaries 1. 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":2899}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a583c4932ff272a0435c24e93351e56ac935ca5be4418bca84fd2b7ddafec83"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailApiController.save_email_data (cognitive 16): EmailApiController.save_email_data has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7efa6f90c478661cf33384dd404091f017f96156fd02f1c04b0d258883b218"}},{"ruleId":"D2","level":"warning","message":{"text":"SubmissionHandler.maybe_mark_order_complete (cognitive 16): SubmissionHandler.maybe_mark_order_complete has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3, boolean chains 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":"wp-content/plugins/woocommerce/src/Internal/OrderReviews/SubmissionHandler.php"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"515fa2f84d532e41a781788f934e49582d2af88ed6251deefac9f3579001ec81"}},{"ruleId":"D2","level":"warning","message":{"text":"CLIRunner.regenerate_core (cognitive 16): CLIRunner.regenerate_core has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/CLIRunner.php"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8dd8f2d0fd46f322a4595359630b2013a796af35741d378cc4a5682e69b3d5"}},{"ruleId":"D2","level":"warning","message":{"text":"Filterer.get_product_counts_query_using_lookup_table (cognitive 16): Filterer.get_product_counts_query_using_lookup_table has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 1 (3 pts), 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":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d6d53b9e09bd54061cccfa2ddf4457d253fefcb61ea139252a3054d76438e4"}},{"ruleId":"D2","level":"warning","message":{"text":"FilterData.get_hierarchical_taxonomy_counts (cognitive 16): FilterData.get_hierarchical_taxonomy_counts has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 4 (5 pts), 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":"wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b2c4be76c9e67d38189d2fff8608dd24b2639aba02a7c7a43f53451b9359fa"}},{"ruleId":"D2","level":"warning","message":{"text":"DataUtils.calculate_refund_amount (cognitive 16): DataUtils.calculate_refund_amount has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (4 pts), boolean chains 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/DataUtils.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bcf9e026e71a2cef1ab09fad55048b17216a43bf2500bad7500179563e747f"}},{"ruleId":"D2","level":"warning","message":{"text":"Controller.update_item (cognitive 16): Controller.update_item has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 3, loops 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8d5f322b7f5ec6de56ccb00c6db04f1fcd5656d869b33ff57d583e214f79cb"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractPaymentGatewaySettingsSchema.validate_field_value (cognitive 16): AbstractPaymentGatewaySettingsSchema.validate_field_value has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 1 (3 pts) (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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e62c883a189ee1f48969e942badc603071867917fc6a96b8f3e4e8fdf9e5fd"}},{"ruleId":"D2","level":"warning","message":{"text":"CodGatewaySettingsSchema.load_shipping_method_options (cognitive 16): CodGatewaySettingsSchema.load_shipping_method_options has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 2 (5 pts), ternaries 1 (4 pts) (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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/CodGatewaySettingsSchema.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8627227c7bb863466b7c704a557b7bba1a08c47f0ed3387c486d0a1b72332273"}},{"ruleId":"D2","level":"warning","message":{"text":"SignupService.parse_posted_attributes (cognitive 16): SignupService.parse_posted_attributes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 1, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/SignupService.php"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"136d049da6228721ceb7db985fd4d766cb2a5dcebf3487365fd8b1a675eef885"}},{"ruleId":"D2","level":"warning","message":{"text":"RestApiCache.store_cached_response (cognitive 16): RestApiCache.store_cached_response has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Traits/RestApiCache.php"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca146a91f318f8fb69666781ed41f8a8e3f434895c72e5193884446475db9941"}},{"ruleId":"D2","level":"warning","message":{"text":"ArrayUtil.merge_by_key (cognitive 16): ArrayUtil.merge_by_key has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 pts) (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":"wp-content/plugins/woocommerce/src/Internal/Utilities/ArrayUtil.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"909e36bbe199beaca582475307d45c3aaf2b5f57852f0bcaf9a369908b8e991e"}},{"ruleId":"D2","level":"warning","message":{"text":"URL.get_parent_url (cognitive 16): URL.get_parent_url has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Utilities/URL.php"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab78630c49888de2d010e124f67988767c3da5cc6f86ba1e257b8a2147b69b9"}},{"ruleId":"D2","level":"warning","message":{"text":"BillingAddressSchema.get_item_response (cognitive 16): BillingAddressSchema.get_item_response has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), 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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/BillingAddressSchema.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"16509161284c65bb041d7af399fdcb968c070cc3a3b5748d383086d0a65938c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ShippingAddressSchema.get_item_response (cognitive 16): ShippingAddressSchema.get_item_response has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), 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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ShippingAddressSchema.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"829144d2a62889111fcec121462f659f15be7f472efa0fba6d9aa921c09077ed"}},{"ruleId":"D2","level":"warning","message":{"text":"OrderController.validate_address_fields (cognitive 16): OrderController.validate_address_fields has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 5, if/else 3 (5 pts), loops 3 (4 pts), ternaries 1 (2 pts) (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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/OrderController.php"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"43de43ceeb6ff3cbdcaa3776c4526d6ee7bb64a8e57d0c661d8358446a1afec1"}},{"ruleId":"D2","level":"warning","message":{"text":"CallbackUtil.get_callback_signature (cognitive 16): CallbackUtil.get_callback_signature has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), error handling 2 (4 pts), boolean chains 3, ternaries 1 (3 pts) (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":"wp-content/plugins/woocommerce/src/Utilities/CallbackUtil.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"620e171824a9fec82f25ee90c943ed6b89d41f2b4a976a655f71e53796934b2e"}},{"ruleId":"D2","level":"warning","message":{"text":"PHPMailer.replaceCustomHeader (cognitive 16): PHPMailer.replaceCustomHeader has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 1, loops 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":4371}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ca53b33cb34af43af3aabda9fc9972df8e850feeeda58533c2a53b4e71459f"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery-ui-timepicker-addon.$.timepicker.handleRange (cognitive 16): jquery-ui-timepicker-addon.$.timepicker.handleRange has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 2 function items inside it that branch (selected, checkDates). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":2166}}}],"partialFingerprints":{"codehealthFindingId/v1":"637b0b985c6645d015a6cd1af963b86bcaee2f85566762aa78cc2fb355463503"}},{"ruleId":"D2","level":"warning","message":{"text":"post.$().on(\u0022heartbeat-send.refresh-lock\u0022).on(\u0022heartbeat-tick.refresh-lock\u0022) (cognitive 16): post.$().on(\u0022heartbeat-send.refresh-lock\u0022).on(\u0022heartbeat-tick.refresh-lock\u0022) has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/classic-editor/scripts/post.js"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"056450a8e071d77c240486c87f73ab4508bce7f3bdbdda8bf7a9af38c4a862af"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.pie.init::findNearbySlice (cognitive 16): jquery.flot.pie.init::findNearbySlice has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 1, ternaries 1 (nesting depth added 9). 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. This shape REPEATS in the file: 2 other methods here (jquery.flot.pie.init::combine, jquery.flot.pie.init::draw) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.pie.js"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c6f006c1b5927d28bb9d727d70c190af82c45cf51607099e1583152c4495ad"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.flot.time.init (cognitive 16): jquery.flot.time.init has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 15, if/else 1. None of this is in the body itself: all 16 points belong to 3 function literals inside it that branch (lines 199, 204, 358). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.time.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e10597e18bf27b791b699ffeaeb1adb8d7d817c7019e7abcb34efd0570de07c"}},{"ruleId":"D2","level":"warning","message":{"text":"free.makeInlineSvgAbstract (cognitive 16): free.makeInlineSvgAbstract has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, ternaries 6, if/else 4. Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"252307986e28ee23e6eafc47bd10e8e8f6eb0a694af4396aef8ef7f7a90a95ee"}},{"ruleId":"D2","level":"warning","message":{"text":"free.onTree (cognitive 16): free.onTree has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), error handling 2, ternaries 2, boolean chains 1 (nesting depth added 3). Of this number, 8 points are the body\u0027s own statements and 8 belong to 2 function literals inside it that branch. 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":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":3898}}}],"partialFingerprints":{"codehealthFindingId/v1":"1552af1d874ef32eb81b4324ae039397a722e1f4a6e0978b8b78d2f5eb59ad8e"}},{"ruleId":"D2","level":"warning","message":{"text":"pro.makeInlineSvgAbstract (cognitive 16): pro.makeInlineSvgAbstract has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, ternaries 6, if/else 4. Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. 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":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad8474c88c9e5dd59f655644c9e5ac695ae9dcdbf3a3c3f8d0c042260dd81c5"}},{"ruleId":"D2","level":"warning","message":{"text":"pro.resolveCustomIconVersion (cognitive 16): pro.resolveCustomIconVersion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, ternaries 2 (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"832f28bc3524696bfffa7708abd886077b133f7b7d5e7e442eae7265a1acdfdf"}},{"ruleId":"D2","level":"warning","message":{"text":"update (cognitive 16): update has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 4, loops 1 (2 pts), ternaries 1 (nesting depth added 6). 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":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"007be3fc2558fb1e198be4ac75cb538863e10334edbf3323138cbf17caafd1c9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::submit::success (cognitive 16): (anonymous)::submit::success has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, 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":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"5facb727cee0b96c4f19c92716b3f2e07a47e2e7692fac814dd2e36cd93ac66e"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::ProductGallery (cognitive 16): (anonymous)::ProductGallery has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 3 (6 pts), boolean chains 3 (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":"wp-content/plugins/woocommerce/assets/js/frontend/single-product.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb272ac0f63eaa53ce3481fcf5b43058c551fe21416863dc517f6ae3b2ab9e9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, ternaries 5, if/else 1. None of this is in the body itself: all 16 points belong to 17 function items inside it that branch (x::E, x, x::f, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/onboarding/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0c8a734764e65616176ea35d10a04643c09a8e0efe2a4f7b0268e69174f77f"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, ternaries 5, if/else 1. None of this is in the body itself: all 16 points belong to 17 function items inside it that branch (V::E, V, V::y, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/payment-method-promotions.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"381cbc842bfbf76dfdd004e944299e3adafac5e231d26897afaff2217dca8a0e"}},{"ruleId":"D2","level":"warning","message":{"text":"registerAddressAutocompleteProvider (cognitive 16): registerAddressAutocompleteProvider has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 6, error handling 1. Of this number, 13 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"wp-content/plugins/woocommerce/assets/js/frontend/utils/address-autocomplete-common.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"88c4f9548351c2e695da616f4dde55dfa4d42c7b6ceaf30fa3da645f5c5dd56e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: jquery.flot.Plot: FunctionTooLong \u2014 Plot runs 1599 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1499 over it, 15.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da085d41349464f69cd28d5ba386265a3fff94ac5f1cf4bfd29a5af4ad8213c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/acf-input.js: FileTooLong \u2014 4341 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 2841 over it, 2.89\u00D7 the bar. 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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b954afa475abb8c7a0ce9d3247579007679cad4ad6e951f30358ebfbb00a03"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentsExtensionSuggestions.get_all_extensions_base_details: MethodTooLong \u2014 get_all_extensions_base_details runs 821 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 721 over it, 8.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php"},"region":{"startLine":3347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b764f29492e9b76065304de5fcfe25f10c7d8fa3e081220e5a3cfd97bbdd23c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: selectWoo/selectWoo.full.js: FileTooLong \u2014 3997 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 2497 over it, 2.66\u00D7 the bar. 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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2a4b07d8b5612cc22d0edaaa22a125da7665787d5c5ac1ced8af98e26bc8c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: 4/select2.full.js: FileTooLong \u2014 3891 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 2391 over it, 2.59\u00D7 the bar. 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4b4c93767eb95d328075e39d25480f8b3871bdb89afbd090e0211fc3786dc5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: select2/select2.full.js: FileTooLong \u2014 3891 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 2391 over it, 2.59\u00D7 the bar. 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":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ced7ca242ce362aa10c016c77c429f961cd6a576bb824660d657012a4e33e4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PaymentsExtensionSuggestions: ClassTooLong \u2014 2936 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 2536 over it, 7.34\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9379ff295419d118497fe6261246c2c4023bad98c8be2dcbd90979b1c2cdb7a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Orders_V2_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 733 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 633 over it, 7.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"68001f653068dd41fc1bf8fce1c5ffda9e740811b9274605e11448b47026399c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultPaymentGateways.get_all: MethodTooLong \u2014 get_all runs 723 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 623 over it, 7.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"046c790d61a54aefebb7bbd4030392befff72fa3bb4754723a8d404882f89dc4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: selectWoo/selectWoo.js: FileTooLong \u2014 3590 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 2090 over it, 2.39\u00D7 the bar. 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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6668492b3060ef11db0864e3b02406d36fe0e6b7e950b0435312872eeeea29f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: 4/select2.js: FileTooLong \u2014 3495 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 1995 over it, 2.33\u00D7 the bar. 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbd6b9a4d40cfaada13cc126cc84a8ee9b6ef59bc090a7937655e82840b2752"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: select2/select2.js: FileTooLong \u2014 3495 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 1995 over it, 2.33\u00D7 the bar. 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":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0515d71039db09702f1a888f1d4a5a3cb5f84d11b5ea85275f8cec660645bc2c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Products_V1_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 669 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 569 over it, 6.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1742}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f51ee5bbcbc3176eeb436fb3ca7d1f0a84ce7a8c6a5daac241885d234bc55f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: jquery.flexslider.$.flexslider: FunctionTooLong \u2014 $.flexslider runs 616 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 516 over it, 6.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"5101ce2fe85bd93c0bd6b68f46ef660163293b6e054301ed58629bcb74883a7a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Suggestions/PaymentsExtensionSuggestions.php: FileTooLong \u2014 2944 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: PaymentsExtensionSuggestions (18-4568). The bar is 500 significant lines; this is 2444 over it, 5.89\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ac82c42da5b5a1c50033e280102b3689481f3331946a18ed3a3c3298ed73b0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Product: TooManyMethods \u2014 175 methods. The bar is 30 methods; this is 145 over it, 5.83\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"736316c39d312795d7608f3df917a9552550100f3c4413c7bbeaaef19cd1dacd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 567 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 467 over it, 5.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ce1c413bbc3dbe5a96cccc598b028763a20c3d39e4fa17841e2c5c62e8b719"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PHPMailer: ClassTooLong \u2014 2223 significant lines (blank, comment-only and punctuation-only lines excluded), 128 methods. The bar is 400 significant lines; this is 1823 over it, 5.56\u00D7 the bar. 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"32bc31a92382bbd337cdaefdf182eb5ea8c5390bcb3bc33ef8c3c0ea7aa8f1cf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Countries.get_country_locale: MethodTooLong \u2014 get_country_locale runs 551 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 451 over it, 5.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-countries.php"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edf927839e13830f2e4ba8ce9ca4e42736c483741c1e989113a80e43a225efa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Products_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 536 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 436 over it, 5.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0062822ce6883634d57aa68cb500647439458161a868cf928436c566399e15"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: jquery.prettyPhoto.$.fn.prettyPhoto: FunctionTooLong \u2014 $.fn.prettyPhoto runs 533 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 433 over it, 5.33\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2cc7f725fea5ebaa8e3a6c3c1357510ecb9de0e5029fc1f1fa9117cf695b2e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_AJAX: ClassTooLong \u2014 1976 significant lines (blank, comment-only and punctuation-only lines excluded), 112 methods. The bar is 400 significant lines; this is 1576 over it, 4.94\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d193bff3810e06fbb9ff63b1c675d276538c73bdb19f01d055755102979401bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Products_V2_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 488 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 388 over it, 4.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7c8bb595b48363b5dff22dfeb91cc6d43d21f1143c5a1c2f5f0842534bba2a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Order: TooManyMethods \u2014 145 methods. The bar is 30 methods; this is 115 over it, 4.83\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-order.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba81cbfa46f8251c34232bb9a6247bad8d4b084ae30aa8ea436b2a080ebc220e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: wc-update-functions: TooManyMethods \u2014 144 methods. The bar is 30 methods; this is 114 over it, 4.80\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd5f176a58d31be6d1e333922046898ba6b69449d9c3b455e0859f74c304403"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PHPMailer/PHPMailer.php: FileTooLong \u2014 2225 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: PHPMailer (32-5525). The bar is 500 significant lines; this is 1725 over it, 4.45\u00D7 the bar. 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e9c57caa0e1ff596a41a9e2d67cdb66c9d997714df7b420d23b4b425dd1973"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PHPMailer: TooManyMethods \u2014 128 methods. The bar is 30 methods; this is 98 over it, 4.27\u00D7 the bar. 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c94632a3ce4f2c8c2e7fef7944d53323c2694c55638c1251ef22aadf512225"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProductSchema.get_properties: MethodTooLong \u2014 get_properties runs 423 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 323 over it, 4.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductSchema.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78364a3b5c926f9e3041a5fa21fd2664cd692a5dfb2303530ac3bca8f38edac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/wc-template-functions.php: FileTooLong \u2014 2019 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1519 over it, 4.04\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"175bd2da513476b517f4df1075d52e6d8f86b87a66cf04fe6bc33f552c97efd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: jquery.nivo.slider.NivoSlider: FunctionTooLong \u2014 NivoSlider runs 401 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 301 over it, 4.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/custom-slider/jquery.nivo.slider.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea631a742f621654fccbf75a39255758ac110d73454b6aa9a24ce1a1968d2c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-ajax.php: FileTooLong \u2014 1995 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_AJAX (31-4294). The bar is 500 significant lines; this is 1495 over it, 3.99\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"192d48e74bfdeeb2097ea6f9a579b496ece4ef0b9eff2f055c1632356b3881d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Order_Refunds_V2_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 389 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 289 over it, 3.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e3000ee0cac2323130c3a44a95118d0db9dadb50bac4c8483fae2731e00091"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_Products_V1_Controller: ClassTooLong \u2014 1544 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 1144 over it, 3.86\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6019ac7df81164bed3613e7effa2ae5ff10ffe84f7c8ee6d00fa8c6369e1f1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Abstract_Order: TooManyMethods \u2014 115 methods. The bar is 30 methods; this is 85 over it, 3.83\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cdb96eda5a2e6f77b711d16926f801b25aa529ad5f468faa205977c8d8e963"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: api-helpers: TooManyMethods \u2014 114 methods. The bar is 30 methods; this is 84 over it, 3.80\u00D7 the bar. 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":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1540e3d6d2803bfc62dd010a885a9ae4859056df16f1d6575ec2c37690a3d610"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Cart: TooManyMethods \u2014 114 methods. The bar is 30 methods; this is 84 over it, 3.80\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cdd2405f4a2942a76e8b653d8d55c2c68de522cca055daa46f837eb5e2e368"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/free.js: FileTooLong \u2014 1900 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1400 over it, 3.80\u00D7 the bar. 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":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad1236d14365cd710ecec32c15f98949166e5cfb45ac1377cce2023331d8775"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: jquery.flot.pie.init: FunctionTooLong \u2014 init runs 377 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 277 over it, 3.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.pie.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fc864be6a122856f8fcf20ce727d3b378f3f0d1130c75568cee8ad1ab10207"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_Products_V2_Controller: ClassTooLong \u2014 1502 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 1102 over it, 3.76\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac862cc5d2eba6831b9e5554714e1087c4c01ade04e43f04302c1e42af01f1e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_AJAX: TooManyMethods \u2014 112 methods. The bar is 30 methods; this is 82 over it, 3.73\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28ce3efd604eafc9c887f16173a66565353f631bfd11b3cf2a8adf2f70e00d3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OrdersTableDataStore: TooManyMethods \u2014 112 methods. The bar is 30 methods; this is 82 over it, 3.73\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e4ab045e361cb64ca745f22ee05e9da4d002714ceab9c26b7af5058e6491cd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OrdersTableDataStore: ClassTooLong \u2014 1480 significant lines (blank, comment-only and punctuation-only lines excluded), 112 methods. The bar is 400 significant lines; this is 1080 over it, 3.70\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca31bb6bd5061662d6641d555a7496d16d495c37103010a01ed8c504fd3595b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OrderSchema.get_item_schema_properties: MethodTooLong \u2014 get_item_schema_properties runs 368 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 268 over it, 3.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a1340f10c5d2fac2e9374fc9e7a6f64ce34d52cf911a7028e2542393700870"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: wc-deprecated-functions: TooManyMethods \u2014 110 methods. The bar is 30 methods; this is 80 over it, 3.67\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-deprecated-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"693834410fcf83c9c545c9593507b670402eef5415c6fd0bc96ce624fc5dc5db"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Admin_Setup_Wizard: ClassTooLong \u2014 1465 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods. The bar is 400 significant lines; this is 1065 over it, 3.66\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2383276548eb2a4c60f511f9c1d234c8921ddeca2745b8ba8b427f4d94436492"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Controller: ClassTooLong \u2014 1463 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 1063 over it, 3.66\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7b3a1af0002cfc3b8e6c779580d32b7208116c791d7b777298cb3cc17ae61d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/pro.js: FileTooLong \u2014 1811 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 311 over it, 1.21\u00D7 the bar. 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":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d6f62aa83e4508afde920b5ddebc78dc5219bcc4a77410d0a0d13a5b1143a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-install.php: FileTooLong \u2014 1801 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1301 over it, 3.60\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-install.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4dc15372b653dafc14b7f63eabf2ff27116d8c77174804e5ccf2a7027109352"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jquery-flot/jquery.flot.js: FileTooLong \u2014 1784 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1284 over it, 3.57\u00D7 the bar. 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":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cbf185494ab1499f952d0c8d10167f7505f93cb73852a1ac49e3e037e311e62"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Helper: ClassTooLong \u2014 1412 significant lines (blank, comment-only and punctuation-only lines excluded), 73 methods. The bar is 400 significant lines; this is 1012 over it, 3.53\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c3533b53de07c8fbb98ed2c6e7482cb1103d0305f19f3fcf131ecdb32534c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentsRestController.get_schema_for_payment_provider: MethodTooLong \u2014 get_schema_for_payment_provider runs 343 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 243 over it, 3.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"2797f68e2e858212fb2d9a87e1f44c66a196875dc69b253ad9c7c78e785719c4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultPaymentGateways.get_recommendation_priority: MethodTooLong \u2014 get_recommendation_priority runs 340 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 240 over it, 3.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"08df4ccc029e02ca4c3268c4f457697664bd5241be0b3a9ed44efc31a5d564c4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_Orders_V2_Controller: ClassTooLong \u2014 1312 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 912 over it, 3.28\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe685cdd53ee4370bd7beacf4eb3567de3ee58866dcb2ae92e9dfe564017457"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultMarketingRecommendations.get_all: MethodTooLong \u2014 get_all runs 328 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 228 over it, 3.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/DefaultMarketingRecommendations.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6bb6fd5f6d6dc096808050bc6ed1dae6ed356ce7dea9f40ebca3922c0f09383"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultFreeExtensions.get_plugin: MethodTooLong \u2014 get_plugin runs 324 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 224 over it, 3.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b0ab74a1a7fab2c060403c5ec1f79daa74838f8b6c2569c2731c613c06a440"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Meta_Box_Order_Data.output: MethodTooLong \u2014 output runs 323 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 223 over it, 3.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de332004593ef59c39506369d2c2f08d3cf08f482e6dabd2ad908df801ab7c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/owl.carousel.js: FileTooLong \u2014 1607 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 107 over it, 1.07\u00D7 the bar. 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":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27642ad1a0ee1fe126bcb8dcb9b9af2c7b42fca0202a8d11cfbdc01bfcd821c2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_Products_Controller: ClassTooLong \u2014 1262 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 862 over it, 3.16\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed506ba94fe179ca5b9ade4ade480f3aced25ba75b88643597129c5ecf09a5b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Product_Data_Store_CPT: ClassTooLong \u2014 1245 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 845 over it, 3.11\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4653e430a355471850f323ab37659d0a8cd46f58111e47efcc412854f8f807"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version1/class-wc-rest-products-v1-controller.php: FileTooLong \u2014 1553 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_REST_Products_V1_Controller (30-2653). The bar is 500 significant lines; this is 1053 over it, 3.11\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7693d171e5801e1f7cb396916bfee6040e3328b3a8d6beb41eb792ee33aa018f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WooPaymentsRestController.register_routes: MethodTooLong \u2014 register_routes runs 309 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 209 over it, 3.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7254a32e8cc41135ec91a5df0a2c40aca3b08145437391a5ac5be2a79416fed"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/acf.js: FileTooLong \u2014 1536 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 36 over it, 1.02\u00D7 the bar. 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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"266996ec4052b8222a90f360cc8e4b1848b05aa28831f03c8922d0b1baa65f77"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Customer: TooManyMethods \u2014 92 methods. The bar is 30 methods; this is 62 over it, 3.07\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-customer.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3f85df7c07372b984f23b06a4f47fa841485becacfde93cdebe613a782de3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/wc-update-functions.php: FileTooLong \u2014 1525 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1025 over it, 3.05\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb831c8cb288f0e638e8d7085e93a4cf8ada33248ff2d9d9943e4d510c482f5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Product_Variations_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 305 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 205 over it, 3.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4460b305bd32fd0d78e4469570bf4eefdefac2cd238901d1ae87f443a1a2f4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version2/class-wc-rest-products-v2-controller.php: FileTooLong \u2014 1512 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_REST_Products_V2_Controller (28-2581). The bar is 500 significant lines; this is 1012 over it, 3.02\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45604d99b04aa4a08d7ce2ec86348fecb5a808f066fa68082da85721f55b8739"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Orders/OrdersTableDataStore.php: FileTooLong \u2014 1498 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: OrdersTableDataStore (29-3565). The bar is 500 significant lines; this is 998 over it, 3.00\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a16acf30854972f912c1e1af989e65603e6b3829e309b234b2402bf0a58e91"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Products/Controller.php: FileTooLong \u2014 1487 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Controller (44-2606). The bar is 500 significant lines; this is 987 over it, 2.97\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"967c676ecdbdfbaf4e9afed1f0ac5d65aba13be81b503d983d2e622a0c5fcdcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: admin/class-wc-admin-setup-wizard.php: FileTooLong \u2014 1469 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: WC_Admin_Setup_Wizard (21-2369). The bar is 500 significant lines; this is 969 over it, 2.94\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85e86367233c0062200cad3dd446b19e1f951e7a65f3d47499f6cc92cd53655"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DefaultPaymentGateways: ClassTooLong \u2014 1169 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 769 over it, 2.92\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b258b75661ac4136c557322a956873af4ab7d4c2536cb555bb7d73166b0a935a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: wc-core-functions: TooManyMethods \u2014 87 methods. The bar is 30 methods; this is 57 over it, 2.90\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6260c7c3f65aeaff73edd9e22ba7d9531dddc73286eadeea622b5463219bc920"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FeaturesController.init_feature_definitions: MethodTooLong \u2014 init_feature_definitions runs 284 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 184 over it, 2.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/FeaturesController.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76e84a5c22a6e1dc8147e2666dec26f57c7f52f21b40849d6af501a480fce27"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: helper/class-wc-helper.php: FileTooLong \u2014 1419 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: WC_Helper (21-2933). The bar is 500 significant lines; this is 919 over it, 2.84\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"795b997e89dcd67070afd93e1c5e107c26f7cdc5e07a48e106810c0e5bda7e2c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: timepicker/jquery-ui-timepicker-addon.js: FileTooLong \u2014 1416 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 916 over it, 2.83\u00D7 the bar. 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":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e6a5284c3fb234ca993de4e0e7279348b434c8f5dbe0b46b5421f85924f4d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Product_Variations_V2_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 280 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 180 over it, 2.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b8b1406ff4f105a8995db1a92ca4fb866d7955d079cdbcf16b1159f2599a37"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WooPaymentsService: ClassTooLong \u2014 1111 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods. The bar is 400 significant lines; this is 711 over it, 2.78\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e14585967b15f50d6b2b71b459eeae89a14a1669c63a1ac720f3fcbcd6bf6bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Report_Sales_By_Date.query_report_data: MethodTooLong \u2014 query_report_data runs 277 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 177 over it, 2.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a834b0cc6a6da43e0b71c6d3c28257598b6ac8105dc336a03fa15f2728c471"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version2/class-wc-rest-orders-v2-controller.php: FileTooLong \u2014 1321 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_REST_Orders_V2_Controller (28-2163). The bar is 500 significant lines; this is 821 over it, 2.64\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15689e5f273dfad8c690c1cf7a85bfe7c720e04b9e01fb70b8026a3cd52fcc0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version3/class-wc-rest-products-controller.php: FileTooLong \u2014 1272 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_REST_Products_Controller (28-2177). The bar is 500 significant lines; this is 772 over it, 2.54\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7993a6c908c7416a9f648db576e79d305952a0c28f21e751efd9ca9acd7d7ef9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Products.get_collection_params: MethodTooLong \u2014 get_collection_params runs 252 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 152 over it, 2.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Products.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6fadebd753582b9466ba6dbc8f6e3a6e44915719654211786de0612411228ca"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data-stores/class-wc-product-data-store-cpt.php: FileTooLong \u2014 1257 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_Product_Data_Store_CPT (27-2563). The bar is 500 significant lines; this is 757 over it, 2.51\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac284bf4c70dc5f5cbb9ab4131559874b10e8bbc1f230cd15d8601d6cc625fcc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Settings_General.get_settings_for_default_section: MethodTooLong \u2014 get_settings_for_default_section runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-general.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25d9b18365e3ad38ecf86eaa5d1e1d67e55d021deb8e88b6beaabd52ca33bee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SimpleProductTemplate.add_general_group_blocks: MethodTooLong \u2014 add_general_group_blocks runs 250 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 150 over it, 2.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a23a8826109598594e0a0268ad6f3515845c88107bff4739a804d75a34200d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ItemSchema.get_properties: MethodTooLong \u2014 get_properties runs 247 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 147 over it, 2.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ItemSchema.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc05603f3d9cd45c63516d8c77121d9b94ba0d7108842a05e265b64a241305d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Countries: ClassTooLong \u2014 978 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 578 over it, 2.45\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-countries.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35993551591e716393c88b4985bae2b046fcfb2bb2656994b47324ee60704b6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Helper: TooManyMethods \u2014 73 methods. The bar is 30 methods; this is 43 over it, 2.43\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1dc76de93b98af937335f28b17d1bbb3c86be8328d7f1bec742e1ab51ca9fc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Coupon: TooManyMethods \u2014 72 methods. The bar is 30 methods; this is 42 over it, 2.40\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-coupon.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81b658f2934fafb78ae93e5fdb1bbe492c1de1ce03827869dcc5737cd35675a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PromptBuilder: TooManyMethods \u2014 72 methods. The bar is 30 methods; this is 42 over it, 2.40\u00D7 the bar. 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":"wp-includes/php-ai-client/src/Builders/PromptBuilder.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"662cc5e494569283fc52e155ff4962a5026f0baf0c15e159606b4acc55bbaa27"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Abstract_Order: ClassTooLong \u2014 949 significant lines (blank, comment-only and punctuation-only lines excluded), 115 methods. The bar is 400 significant lines; this is 549 over it, 2.37\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8fdadae887edae91360ab285efd3ad6461e6f355cfde1e91eade7adc40c46b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Settings_Accounts.get_settings_for_default_section: MethodTooLong \u2014 get_settings_for_default_section runs 235 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 135 over it, 2.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-accounts.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5829f04f90a20201d3482acb95e85a8d74d1f46851a2910440b28ddcd48ade"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PaymentGatewaySuggestions/DefaultPaymentGateways.php: FileTooLong \u2014 1174 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: DefaultPaymentGateways (16-1543). The bar is 500 significant lines; this is 674 over it, 2.35\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/DefaultPaymentGateways.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fba6d02d0cb9460570faa594920f2492a8e771f0bfd85d5667fe958476696d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Meta_Box_Coupon_Data.output: MethodTooLong \u2014 output runs 234 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 134 over it, 2.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec47c2a795cf888fd57d5ccd38fa0676ab4536e8e5b3648deac3d2111312be62"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WooCommerce: TooManyMethods \u2014 69 methods. The bar is 30 methods; this is 39 over it, 2.30\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-woocommerce.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"324bb1c18e0853b1390e28d8309e4de3f0cdac66fd3a079db0785e1bc71c8575"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FeaturesController: ClassTooLong \u2014 914 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 514 over it, 2.29\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Features/FeaturesController.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d71b194e52a9c92eb7d9bd0a37e767de76ad0c4e40a23ebece2c07c5ee5d5b9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddToCartWithOptions.render: MethodTooLong \u2014 render runs 226 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 126 over it, 2.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"49959dc4f2954fc2395bd807bdb803ce1bf030af2a668fff0525f6f4e282be5a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: WooPayments/WooPaymentsService.php: FileTooLong \u2014 1125 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WooPaymentsService (23-2708). The bar is 500 significant lines; this is 625 over it, 2.25\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48fa19a1c3d25caee490d0885bcb40f84d84a3f6df06ad1b0ea6e40c62407a0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: api/api-helpers.php: FileTooLong \u2014 1123 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 623 over it, 2.25\u00D7 the bar. 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":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db10d273430b62c87b92cc454985cdd0a614f30a629b334862d067fb67396485"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Install: TooManyMethods \u2014 67 methods. The bar is 30 methods; this is 37 over it, 2.23\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-install.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e48c9e9d8d06a5df692d5543f196f1709b35e6a13f71fedc48cf8b91b66d86"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Products_Controller.prepare_object_for_database: MethodTooLong \u2014 prepare_object_for_database runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a923e5e54b2b59c76d39222a840714fdd84fa11fdfda7008a3403cd46751d2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Controller.prepare_object_for_database: MethodTooLong \u2014 prepare_object_for_database runs 222 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 122 over it, 2.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f43609912be9df4ee710c88b657b69d94c1fbc41d166fce99e7ee8fb1eab10e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Controller.get_collection_params: MethodTooLong \u2014 get_collection_params runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b1239624514e2b271bcdb91e882b82b3cf435f694c415af98ecb29e2e61ad9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: wc-formatting-functions: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 over it, 2.20\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-formatting-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b0cd3f87d1916671bce704688ae7a421f702032aca000f80ef03dfa0bdd098"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: wc-template-functions: TooManyMethods \u2014 66 methods. The bar is 30 methods; this is 36 over it, 2.20\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"855761ca63f342f1db10ab1da5309fdc03ef0144c4d069e604a2abd3e3119001"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PHPMailer.createBody: MethodTooLong \u2014 createBody runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3042}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fc5ff9ca97505987f066875204e708e327df11c17178fee9a9c50f476f2d2ae"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PaymentsRestController: ClassTooLong \u2014 877 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 477 over it, 2.19\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7bd8f86967782bbcf46b5c4481dfacd3987faba1c3df851bd302214ce6072c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version2/class-wc-rest-system-status-v2-controller.php: FileTooLong \u2014 1085 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 585 over it, 2.17\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"082bafdf55f432935e052cec26634ee063a94707f8835e83f478888b60ef910e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WooPaymentsService: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51767cc603bd5775bcf3d72db998a1b61d27e18875e9b4673d33b19d30490ae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Settings_Emails.get_settings_for_default_section: MethodTooLong \u2014 get_settings_for_default_section runs 216 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 116 over it, 2.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-emails.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30ea82d5e4b227af389dd38e12babfb8120dbe1efb946bd3d3217eab85de7c2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MobileAppQRLogin: ClassTooLong \u2014 863 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 463 over it, 2.16\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6b22b9faf0c67d5bc7b05fd6d1e3698414b26e36b401b78457c350b4dc864d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OrderTagsProvider.register_tags: MethodTooLong \u2014 register_tags runs 215 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 115 over it, 2.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8ed95f6a559e7cac689ae75970dc8724a2fa1aaa9ea0cb54827c931c74368f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Admin_Setup_Wizard: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.13\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f01aec685aeb6aebb8fecc872b363da1f789de25360369e6e5bab5e0372a5b4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: wc-product-functions: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.13\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"160a4466ccb7a449a58bf4378542f12f1b1ae0a7928c82483a9d98d88d8dc98e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Cart: ClassTooLong \u2014 829 significant lines (blank, comment-only and punctuation-only lines excluded), 114 methods. The bar is 400 significant lines; this is 429 over it, 2.07\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d501cbf37e7aba4b739b5b830c55b5747e7c89e6dd98502389de3e4d203789"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/acf-field-group.js: FileTooLong \u2014 1027 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 527 over it, 2.05\u00D7 the bar. 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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc01e234a508320b1c3d0b6538ee8561a66bfbb11966fb85728e927456ac52ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Products_V2_Controller.get_product_data: MethodTooLong \u2014 get_product_data runs 205 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 105 over it, 2.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d5a4296866539e7d414712810acc9de5ede3712254300cf7dd09852b55be48"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CheckoutSessionSchema.get_properties: MethodTooLong \u2014 get_properties runs 205 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 105 over it, 2.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b109aea80793d24464b29c9357dbeda397b6969c1945f61ad2511bf3b78c26"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Order: ClassTooLong \u2014 819 significant lines (blank, comment-only and punctuation-only lines excluded), 145 methods. The bar is 400 significant lines; this is 419 over it, 2.05\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-order.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7af76094681e6567d4400fb4df55b1d3a9f1e37d5e2c2fc1dd95631323a04c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version1/class-wc-rest-orders-v1-controller.php: FileTooLong \u2014 1019 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 519 over it, 2.04\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bec1c56244858f1699d758c7dcc3d11ae767ce47a30c01bf2c2b3b711a8d48"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ListTable: ClassTooLong \u2014 814 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 414 over it, 2.04\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ecf929c00709d891e02f16f32906056f6961075fdcf7141669604a91d54b90"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_Product_Variations_Controller: ClassTooLong \u2014 809 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 409 over it, 2.02\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"260efbad54109214f70b24d262eae31f8c6a877bfc5aa18cc7f03a9fbb6a5b40"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/wc-product-functions.php: FileTooLong \u2014 1010 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 510 over it, 2.02\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"107fbd49cb07cae0a3ae3cb01357916397c5bd7162df1daed2664fd9e7a0009f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultShippingPartners.get_all: MethodTooLong \u2014 get_all runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/ShippingPartnerSuggestions/DefaultShippingPartners.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a7573dacc1d150b634c528225c2ad4047160884894497a1e95c27d1d9a6156"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Settings_Advanced.get_settings_for_default_section: MethodTooLong \u2014 get_settings_for_default_section runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-advanced.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78b12b205d8e4707aafc1cf3c51683ed19cfe8e79451e3071de09d5c9c973c1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DataStore: TooManyMethods \u2014 60 methods. The bar is 30 methods; this is 30 over it, 2.00\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b002fedd563afefb22fe223da4e10861730e93d94a1010e0777c30d921c8e241"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Structured_Data.generate_product_data: MethodTooLong \u2014 generate_product_data runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-structured-data.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f137b90bce3721b6153206f795e549c717329a790f7453f631ac73c56c41366a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Post_Types.register_taxonomies: MethodTooLong \u2014 register_taxonomies runs 199 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 99 over it, 1.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-post-types.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5195553291c9b4c5f57c4137d1b50434409e7c984e9ff9ee1639b0c6ec2524c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/wc-core-functions.php: FileTooLong \u2014 987 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 487 over it, 1.97\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b62c86e0a1976b46bfae8b2190f07509c50fbba9f7d76b912f06ea8987850d9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MiniCartProductsTableBlock.render: MethodTooLong \u2014 render runs 197 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 97 over it, 1.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCartProductsTableBlock.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fb7484cbbdc1f9a95e2f5781eda2463ac076dc691bd933a23f800b5eb10baa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-countries.php: FileTooLong \u2014 981 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: WC_Countries (16-1814). The bar is 500 significant lines; this is 481 over it, 1.96\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-countries.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e665f78df770603f9faf30bf006e19a3df757947de845b7a00b9028643fdfe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HandlerRegistry.register_core_collections: MethodTooLong \u2014 register_core_collections runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c28fb60b1f50fc62f1f41e10a15dfebab160346cf0a055c2b6f7b7d4c2501d7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SimpleProductTemplate.add_inventory_group_blocks: MethodTooLong \u2014 add_inventory_group_blocks runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ddf1d663e7e581d59d07f197555e528cb551594bf6089f43c1a48b36a8ad005"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Customers_V2_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7f60700641fb903f1cc66efaa725cae02d997e9aa30d19aae7cd224c8adc8d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: abstracts/abstract-wc-order.php: FileTooLong \u2014 964 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WC_Abstract_Order (33-2705). The bar is 500 significant lines; this is 464 over it, 1.93\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec90e1d2b1b3b740de967b2a7c0f21c578faedad0dc52f004f7882ca59d9cd0c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SimpleProductTemplate: ClassTooLong \u2014 770 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 370 over it, 1.93\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2039b8495a742d38761e695830f9b0165891f3a4cca29c9afae1545da16cd98a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProductFilterCheckboxList.render: MethodTooLong \u2014 render runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b0a72f6f18016976b028c8d1ffda85d9863e7c704aaf8f73fe60007965b89b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Customers_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 189 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-customers-controller.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa52fbe3ab99caa55a2e65b128658af8493f50b10dc3ca0aee245c21ae3982d0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Products_V2_Controller.prepare_object_for_database: MethodTooLong \u2014 prepare_object_for_database runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36c760c26dd302f1e2ad6408f6565bcd7f0a5278af8a21ff9129dbcd741c6f6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ListTable: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8075761960444e76aeced1795e4c055da47598d1bad539ebf73340f44bf36ea7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Features/FeaturesController.php: FileTooLong \u2014 931 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: FeaturesController (37-2094). The bar is 500 significant lines; this is 431 over it, 1.86\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Features/FeaturesController.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"142a0b06526093de49e5f01eb2b23024240ea93aabca6b30b20102a0990a3a7f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WooPaymentsRestController.get_schema_for_get_onboarding_details: MethodTooLong \u2014 get_schema_for_get_onboarding_details runs 186 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 86 over it, 1.86\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"54115a1f9e52effc56d5930f71b06a18f5d8580d64d1081e527517e96f0cd3a8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WooPaymentsRestController: ClassTooLong \u2014 743 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 343 over it, 1.86\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"1278d4f570b64568e25da0240372c241be93734695d755937ef9e83d799c0d47"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomerSchema.get_item_schema_properties: MethodTooLong \u2014 get_item_schema_properties runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/CustomerSchema.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"219ab2e291284eede15b4e47d88669b43e94a1ac12856a9455e26e8a4a46e3cd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Helper.render_helper_output: MethodTooLong \u2014 render_helper_output runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91263302f8df90f10de15a7aff36ac923cc42d94ea6ed4dfb52e84b88de9b18"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OrderFulfillmentsRestController: ClassTooLong \u2014 717 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 317 over it, 1.79\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5fe18f07cac629bd0441982a3f7c633b05964093e9213babddecc9bf89b836"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Controller.get_collection_params: MethodTooLong \u2014 get_collection_params runs 179 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Stats/Controller.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb527babfbd71f5a9da2aa422633533e8c4b1c46be10381dfce136b81d8846f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CartSchema.get_properties: MethodTooLong \u2014 get_properties runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/CartSchema.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5a45cb098c7c83a1ee8ae8b400314599a51280735a8e97ed336d17afe70f18"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: a8c-address-autocomplete-service.Object.entries().forEach(): FunctionTooLong \u2014 Object.entries().forEach() runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/a8c-address-autocomplete-service.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec558fe52958bf89452a000b91c321d84d541534537452ff87b5210ec1f61ba8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/PaymentsRestController.php: FileTooLong \u2014 886 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PaymentsRestController (18-1402). The bar is 500 significant lines; this is 386 over it, 1.77\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"677938bed68b74adbc75c8b6afc3032a55a517840e5194cad73bb172eeb41c6f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OrdersTableQuery: ClassTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 307 over it, 1.77\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6dd1e25956e450feb9d8c4cb1e45071fe7679b04677c4a51efa4db72a595985"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Admin_Report.get_order_report_data: MethodTooLong \u2014 get_order_report_data runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-admin-report.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c314eaa4f380d7b54620c3c0ef16d95b82c8e61bcfe07cfd10daf1c7b683ea1b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ReviewsListTable: ClassTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 297 over it, 1.74\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"747bfebc2eb0afa9d924535431783c3635fbcc220a5329dbb8a8091c357c324d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: API/MobileAppQRLogin.php: FileTooLong \u2014 868 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MobileAppQRLogin (24-2091). The bar is 500 significant lines; this is 368 over it, 1.74\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3de821784dc52808b1861f4131679e4224195a03cfe5f3e37b9b3853e4098c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Query: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"310eb274ad8cb9938f57c2d7eaf40e4c384b6bad6992a57f3036e6436905928d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Product_Data_Store_CPT: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"460964f7cdcb4e961368b2fbb57d21bda315892729a9c38f3522fef462a2f781"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CheckoutFields: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFields.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2c564af7715c8ec422ac0c9dda57ae74a5a3e246b994f630930facfe48e712"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Customers_V1_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"411d3439c8e7a8c350fffae9982fd83a9904130ade368b8b88d053957f12c142"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Post_Types.register_post_types: MethodTooLong \u2014 register_post_types runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-post-types.php"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d9fc90cb5368ee0fe2e56a8df2e6f97cde31a263c4300a5a2c8688a6b508f8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Product: ClassTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded), 175 methods. The bar is 400 significant lines; this is 273 over it, 1.68\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5333ddc66125453b10cc6b75367f58cbcfb90c798fa299de94548d6f478c8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-cart.php: FileTooLong \u2014 841 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_Cart (29-2462). The bar is 500 significant lines; this is 341 over it, 1.68\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"422834712a7a65f2b41c47bec50d43a1322623c91e28b7289fe7cb963191fb95"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Admin_Attributes.add_attribute: MethodTooLong \u2014 add_attribute runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-attributes.php"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25e161791293839cb87f314bf020ddca6a8825fc326d782015a3ac3fc8bf699"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Webhook: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-webhook.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e886b809c280eb5a814e8289264cb9b17a507ed3c5b90e08aa1843798ba75bd2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./wp-login.php: FileTooLong \u2014 833 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 333 over it, 1.67\u00D7 the bar. 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":"wp-login.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46216b45837bbdc1a0f5a1d5af45b5dc57351112fd2a53aef29db15024cb6afc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-tracker.php: FileTooLong \u2014 829 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 329 over it, 1.66\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-tracker.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9a3721a97d36d7c6ec13a79219428587e17b185a2b57d21606f1bcb8cb321a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Settings_Emails: ClassTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 262 over it, 1.66\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-emails.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae42c1691a9e47ca219967ee2922cf8db608ed52b964e9f64ce1b0199e11188"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-order.php: FileTooLong \u2014 826 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_Order (22-2636). The bar is 500 significant lines; this is 326 over it, 1.65\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-order.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98a2c7c8d40324328a925df263cbbb7a3fdfe485ddd9c54e77d95db72003c20"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Product_Data_Store_CPT.get_wp_query_args: MethodTooLong \u2014 get_wp_query_args runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2938ba9920b959134f3b2765da9856c86e6934e34dd2025f182e2ff80231cbff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Orders/ListTable.php: FileTooLong \u2014 824 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ListTable (17-1844). The bar is 500 significant lines; this is 324 over it, 1.65\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0aab1b43aa7e82462d3b546d1cad0f06551f795e70c8c6050cf350148f11c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version3/class-wc-rest-product-variations-controller.php: FileTooLong \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_REST_Product_Variations_Controller (30-1381). The bar is 500 significant lines; this is 320 over it, 1.64\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8738ad51050eeaab7570f03f4cfac926e7735e203587941ee840198e15f9787f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_System_Status_Tools_V2_Controller.execute_tool: MethodTooLong \u2014 execute_tool runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"0826a647f9169c4e25d6862d77e2e52ac16bb34610e8b62e639a22995f080c02"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Report_Sales_By_Date.get_main_chart: MethodTooLong \u2014 get_main_chart runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ecebb60fea349ead59fd6b25836cca9883629a2fc2049e00eae2fda46ac622b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProductSchema: ClassTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 245 over it, 1.61\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductSchema.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4a53b5779fd84140933e56da3cbc5c7702a7732328cff6ba61b2f1ad9103d0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PaymentsProviders: ClassTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 241 over it, 1.60\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2944faa7f772ea493f038fada2e2e6f49943c04c3ff7d2df507670e20f2291"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ModelConfig: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. 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":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelConfig.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17c4d8b9b3cfb1a287d9e6d83694daa71cc247360ca5271b8bec50c6cf87d75"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Checkout: ClassTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 240 over it, 1.60\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0880d65c55706b0613066cad4b6125a94ec9ecb5cc4cdffb9559f3181cb3f4b6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_Product_Variations_V2_Controller: ClassTooLong \u2014 636 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 236 over it, 1.59\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe72b7f375f9f2ee6765e592b7aa185e9f201231d47b735461041162147dda57"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Coupons_V2_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e03d0d482a6ce4f54aa786bd2a4d436124537bf752c8db27268079cab6b099"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DataStore: ClassTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded), 60 methods. The bar is 400 significant lines; this is 232 over it, 1.58\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6228ec70f6ba4f83848e848ec0351f8b65c0c168e9805729b695802e77ad6e7b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Controller.prepare_objects_query: MethodTooLong \u2014 prepare_objects_query runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"c852f5927b0701f61846f76169f0ccbbe030d44b8f2aaae00202192ec7a6566c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProductQuery.prepare_objects_query: MethodTooLong \u2014 prepare_objects_query runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a8d83b9c570777507b5bbec02aeb086d41c2f5ce5a2f521addeba73cb7b682"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WooCommerceProductImporter: ClassTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 228 over it, 1.57\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"683a30e559afdf0c5ce7bad566df4b6ce258c3c9dc9707d5aacae321192c0746"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RefundSchema.get_item_schema_properties: MethodTooLong \u2014 get_item_schema_properties runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Schema/RefundSchema.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff5666e1016aad983e2b08a9a50daf2ea31643561f0b5a55cebf769e24e6cc5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Tax: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-tax.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"962161e988cc07331bcaabee484f58c45b899eb0da0e6c47eb2ceba3646d6e24"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Report_Taxes_By_Date.get_main_chart: MethodTooLong \u2014 get_main_chart runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-date.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"287fb0b0efd28fd2990efd449342bc03d88c34e2337bd8f79cdd54ab3f9d7d3d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProductFilterChips.render: MethodTooLong \u2014 render runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac705e7f69bcba1fbbf4d88c3586ba36f83411a6098c19354a1af0013e4a83e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ProductTemplates/SimpleProductTemplate.php: FileTooLong \u2014 778 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SimpleProductTemplate (18-1204). The bar is 500 significant lines; this is 278 over it, 1.56\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a76d74c3f1f34735c4570f5d53ff32b3a293664aaf576bacf5306f40743680"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Frontend_Scripts.get_scripts: MethodTooLong \u2014 get_scripts runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2f400f5689d89327c06ec4dfbe47ec959ec28a74b00594008adc497ae75ccf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Frontend_Scripts.get_script_data: MethodTooLong \u2014 get_script_data runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"229d40dd902da46486c945b7efa2d57a7a6a3048d48ffe3f66ae6db73f679e32"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProductButton.render: MethodTooLong \u2014 render runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductButton.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9903a86ea27ea7d12614312f4e9b61aa12ca69d5ecbb22fa0d5c2100674b5fd9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Form_Handler: ClassTooLong \u2014 619 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 219 over it, 1.55\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f36c6cf73d360d82238589a763397d8bba39f29fb52d7abf8e6332a87e5ca7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CartController: ClassTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 217 over it, 1.54\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/CartController.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5431560ed947ba9b1fa93f8399ead2c0e2520fd0d66e2a21dbe2314ecf77412b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: frontend/add-to-cart-variation.js: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 271 over it, 1.54\u00D7 the bar. 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":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f3c22ad5b98a692161a6d7c7bfd773fd1cbbc4e76247d52a83b60dcbd6228e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Tracker: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-tracker.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b41a580374576090d024efb999a785ce5eb19da9405480d7a2b390b52f1c5cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ReviewsListTable: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4766974762ef5712a81a9f467597e341317be317a1d5042412a26a207412b49d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FeaturesController: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Features/FeaturesController.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4832282fa8c1375bf68f6bfbea47daabb398343bf4dd67f5414146212fcfb2f2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Order_Data_Store_CPT: ClassTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 213 over it, 1.53\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e7e2badbe4245e8ef3bc7fd7cd47da1839fa708332e7a7d1074a7af46854a5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CLIRunner: ClassTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 212 over it, 1.53\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13fb2e5f3d0e9be7ffa4c02145da616ef911855a0689582f08644c9445d3da1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_Product_Reviews_Controller: ClassTooLong \u2014 609 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 209 over it, 1.52\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"266d402ba326a3c1e4ce30c3a1e0c2f3daad5d001daf99db91596d46d9dbf0dc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OrderSchema.get_properties: MethodTooLong \u2014 get_properties runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/OrderSchema.php"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b7d9ef11b6da4163a657ee01d98b45862ef03d9c5b864a71b25c57308bb792"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: WooPayments/WooPaymentsRestController.php: FileTooLong \u2014 755 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WooPaymentsRestController (21-1283). The bar is 500 significant lines; this is 255 over it, 1.51\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0958346aefa7598c571840fa5b037d50c22e06ecc5e7794f5d3128019a9b9f7e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CLIRunner.verify_cot_data: MethodTooLong \u2014 verify_cot_data runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd35a12dd7db6df146b909d15f1de1a01d3f5cd039aeb9f5831518493994e899"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Products_V1_Controller.set_product_meta: MethodTooLong \u2014 set_product_meta runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa85a9eaa6096004f0d3f011d81d45cd70fdec0d690645c8c58038de0d862840"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jquery-qrcode/jquery.qrcode.js: FileTooLong \u2014 741 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 241 over it, 1.48\u00D7 the bar. 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":"wp-content/plugins/woocommerce/assets/js/jquery-qrcode/jquery.qrcode.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba66711a90f247e03c2f10c491368561afb0a9da2f5798359d67558bf603a94e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Report_Sales_By_Product.get_main_chart: MethodTooLong \u2014 get_main_chart runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"64877372853787007d560bf551dc87502892560436d6db47d6afd3bf810fca58"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MobileAppQRLogin.exchange_token: MethodTooLong \u2014 exchange_token runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fa7acbe1b56bc4cc1a004cd5a51ea6356aa13afa8511e131fd2cf7141f617b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Data: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9601c241722baacd71950416aee29479ba30e7b4e3d440aaf70a4520dc9562b4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Settings_API: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e629ef86a92bee000b0aa413ab037633047c467af9e07aa399b29f67c7a35580"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Admin_List_Table_Products: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"53dab1e5c35f586fce1ba01edff5f8b74e6948792422ff2ae13a7f5b43e88f4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Fulfillments/OrderFulfillmentsRestController.php: FileTooLong \u2014 728 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: OrderFulfillmentsRestController (29-1408). The bar is 500 significant lines; this is 228 over it, 1.46\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c55e64db7e0d2f17f63376c567204e757a86bfbb7264152182e4b05f7e75fc3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: flexslider/jquery.flexslider.js: FileTooLong \u2014 727 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 227 over it, 1.45\u00D7 the bar. 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":"wp-content/plugins/woocommerce/assets/js/flexslider/jquery.flexslider.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1b437aa35c304bb93fca81bc67b17bfc4609b82d449b7934dec3a7c88de6ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Report_Sales_By_Product.products_widget: MethodTooLong \u2014 products_widget runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"921b013c515b5ab54f7ab6322e7b39ac10c21ba455a61bc251d9f7df0b172705"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Controller.get_collection_params: MethodTooLong \u2014 get_collection_params runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a6b02a592f37615d7250fc550fc0496f379402d533f33ba3640102855b1c5f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SMTP: ClassTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 179 over it, 1.45\u00D7 the bar. 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":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58df22d9a5a27db587140c986bc8a3d034c34287edca06524ab884f822cd03f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Shop_Customizer: ClassTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 177 over it, 1.44\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb85ed4fd159fcd18f465aabe37f56ae971540814fc01a8b40fcd4bcc4839d2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Widget_Product_Categories.widget: MethodTooLong \u2014 widget runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-product-categories.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d451244f502014e699fc39624dfd73b08b5413812fe3da67c9ee7741f2ebba"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DataStore: ClassTooLong \u2014 575 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 175 over it, 1.44\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ff1a49290168b8730d4b6f65653553820b9b738ac38b24db77f85162a5dd50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Note: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/Notes/Note.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f18b1b2fdb2f81027792cc9b52979d6c762851ab4220f594667963c013bda7b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SMTP: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. 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":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea275949ca958093f4215ef18373500ea7093475ee0fb013ec31dfac9ac3dcfd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PluginsHelper: ClassTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 172 over it, 1.43\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf9d9578b07d25b3100f7feb390cf31408722412c1a379e3826a68f46895ba7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Controller.get_collection_params: MethodTooLong \u2014 get_collection_params runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"472edc9856004b63059f94341c5beb58ffe9ba37fa0930a711dd4d87b7b520c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Orders/OrdersTableQuery.php: FileTooLong \u2014 711 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: OrdersTableQuery (22-1569). The bar is 500 significant lines; this is 211 over it, 1.42\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bddd56522da45251aa851023d47a8b90a7313bd1bc4eeadfee2793a69a2c685"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_Customers_V1_Controller: ClassTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 168 over it, 1.42\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09eab20b0d530fc07c1901d83328004709a13d71b7885b51a5f2b537b37a670"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Report_Coupon_Usage.coupons_widget: MethodTooLong \u2014 coupons_widget runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"948d1c83aefcf96a822864780d9b1d5d0ec2d26439d7b762a09d36cb9bed59bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Products_Controller.prepare_objects_query: MethodTooLong \u2014 prepare_objects_query runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8b6178b0a057854f3a18c01e0a2d537ae51d0c407fcfc8c209dcd89626d7840"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Bootstrap.register_dependencies: MethodTooLong \u2014 register_dependencies runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Domain/Bootstrap.php"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bccc0a90d40edd6c4ae25b3c2cc3c4f6c7f8245efe222768fd1f3d0dd797063"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Report_Sales_By_Date: ClassTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 166 over it, 1.42\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e487615192e78a43d73b8a346c72f2d60fe2937aaf2946fb2643d2a2d2b3ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scripts/post.js: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 205 over it, 1.41\u00D7 the bar. 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":"wp-content/plugins/classic-editor/scripts/post.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a2ae79420ae9666f2a05b80f1aea83b0e3ae917954d38824ebdd4dceed8d28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ProductReviews/ReviewsListTable.php: FileTooLong \u2014 704 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ReviewsListTable (17-1531). The bar is 500 significant lines; this is 204 over it, 1.41\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9a0eccaf9beb037fd0db0fca9845002e24c2e6d6f68fcbc1441c823d083d2e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Post_Data: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-post-data.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac031913adb6e5e31f679feb0a698a4b355fda6c0f84eabfa6ba860b7833e9b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Order_Data_Store_CPT: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c33b8958f2bce6d32e793b14bc346afcfec68f978cc0d71abc989b1ff6cfd75"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MobileAppQRLogin: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f3fe690067896d67dd4cdc4ec28377d17a274af4b4ebcd6a74b2c64711d590"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Task: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Task.php"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f25443f988f5e9063400a6169638755f0f80dd58781f9a9a1e6e86fdc71f327"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Order_Refunds_V1_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a97ddf4f6ea9a49eb32cd724575ef6198723cf03788ab020b17a05a67b7d12"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Request: ClassTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 148 over it, 1.37\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Gateways/PayPal/Request.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ed46b6e1dd473e23891c37dad5de7812cb49fb331d84af137cba8f64cdf21f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReviewsListTable.handle_row_actions: MethodTooLong \u2014 handle_row_actions runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a22191c41ff9ceda785a480b9996a7b83145b0cb73af83cecf9a0ccb4a33a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: jquery.flot.time.init: FunctionTooLong \u2014 init runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.time.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"966c04dabc634fb1be63796d46a5847c4f5f40117cc8c92374637816e63984c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: abstracts/abstract-wc-product.php: FileTooLong \u2014 684 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WC_Product (34-2519). The bar is 500 significant lines; this is 184 over it, 1.37\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6249bf217d7d08aff1a56f1f297307e489836ccc50b5f2bc82b6351752187ca5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Settings/PaymentsProviders.php: FileTooLong \u2014 684 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: PaymentsProviders (53-1621). The bar is 500 significant lines; this is 184 over it, 1.37\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e41220f2ab3298dcfa31fcf058fdfcb4e6c7435953ad6cc4799e68fa37f6ca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Abstract_Legacy_Product: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-product.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd7a93a6c18d3297215086e366a282c2a6d5b05cc79d91eaf2facd80e33555f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OrderFulfillmentsRestController: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b839240b2edc0948b4ec03b29731a9d35a1d0ce30c661efc4d785ca71eaa18c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_Order_Refunds_V2_Controller: ClassTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 145 over it, 1.36\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad8556bd65e70ac1d68230d41d3de0c012ddcbfd97c89108361b461c8dfb57e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Cart.add_to_cart: MethodTooLong \u2014 add_to_cart runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"800d2173a256d85f525da7791f2e293aa8e4f64ca36cfc173d3cfcea96b8c8b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/class-wc-settings-emails.php: FileTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WC_Settings_Emails (29-1052). The bar is 500 significant lines; this is 177 over it, 1.35\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-emails.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7efd07b045e58e1f08084b039708d0c24fb4a52d64fa67ce2dd543e3a7383c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: QueryBuilder: ClassTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 137 over it, 1.34\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a19323e35d5517151fdf7173b68a200707999a450094e8f6a984a06b319efc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Admin_Setup_Wizard.wc_setup_shipping: MethodTooLong \u2014 wc_setup_shipping runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f248048fa5cf0917af74cc2ee0f21dbc159357b3b23fcda436435e21d6eefc6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Report_Coupon_Usage.get_main_chart: MethodTooLong \u2014 get_main_chart runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64f23504bdb07c5ef9c5668510614c2056fab649d41f025e54efee27dcff669"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: jquery.tipTip.$.fn.tipTip: FunctionTooLong \u2014 $.fn.tipTip runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-tiptip/jquery.tipTip.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d73f0ff5a513208a3e36f90f9b5867e196c7529193dcaa2af7a3d92d56bd37"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Admin_Notices: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-notices.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"818c428e94dce699d0c16bc8558c69a12cf8cea8a4e827c5b475bade597f1e68"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Brands: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-brands.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce25d7af96260b9b96de043f796817b874ce539476a5c7b62b8ea55afb7c73f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DataSynchronizer: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/DataSynchronizer.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b145a302ef6210538a1701591c44435bb031c60fbc98d6ff75fc1bf6f01bcf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Brands: ClassTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 133 over it, 1.33\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-brands.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"445fc003f7e9ccc8aac9b2ba9a5479f431ffd1b3f6b98eb216c036e348b593a1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OrderSchema: ClassTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), 6 methods. The bar is 400 significant lines; this is 130 over it, 1.33\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5350803d29e4f6fbabddecde72a7cc72b40c2ca3a2be81719a21f4f136c02ec3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Coupon: ClassTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 400 significant lines; this is 129 over it, 1.32\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-coupon.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdf57f45d8160113be30a91c0b77a5d8ad2224e06abb262a532a3aebbd81230"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Report_Taxes_By_Code.get_main_chart: MethodTooLong \u2014 get_main_chart runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-code.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d90aa5b5a16870d0ca2fcb7f9c29cb1266544e177fc126621125874e7054f1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Settings_Products.get_settings_for_default_section: MethodTooLong \u2014 get_settings_for_default_section runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-products.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"92248c3b6e84cead778adf83288f59f3bd3de417e87b23827e086f2c1093f38e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DefaultFreeExtensions: ClassTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 123 over it, 1.31\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"15004fd8e08844167572a7ef83e11077eb9451a5e9cbd8faf12fd76bc57c8c85"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: V1/ProductSchema.php: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: ProductSchema (14-1047). The bar is 500 significant lines; this is 153 over it, 1.31\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductSchema.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"880c8f3633d64d4e536370e850cf75dceb8d93ab8b4a7418cba2c9b91560ca44"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProductsController: ClassTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 121 over it, 1.30\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/ProductsController.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0e4bc801718f277f65e0200bf7c26fd4ac112f32b6de9a97cc518dea66b40d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Emails: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-emails.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a392d07faacfb5cc2a654c8f3a0513ddc0f785e21235fae1d9f668bfa177a4f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LookupDataStore: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"1231c0e858c87476747e95b9f7639e5908536d16e5412e0c7349c74900cb2fde"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CartController: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/CartController.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8523252a030481746e02f4a2d52db1444ece19dabbdea07794563b13c3584475"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Report_Customers.get_main_chart: MethodTooLong \u2014 get_main_chart runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-customers.php"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"3297d7400a1538eef4d8973fc7dcd31781884749c49f42ecbe65d94036003ef6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OnboardingTasks.register_routes: MethodTooLong \u2014 register_routes runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"829a6001112d3761bdb3103470892a9e8583a55eba702d24a7a7571a22063c3b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DataStore.sync_order_products: MethodTooLong \u2014 sync_order_products runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"264619c904c6dec9e9ffd54b6cfda69c49f0bd9f37a79b8d44ae0fcca3a36408"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WooPaymentsService.get_onboarding_steps: MethodTooLong \u2014 get_onboarding_steps runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"0371ff06d9ab23cc4100669aa6ac7f7e841f141d3acf09035c12c65c47ad881c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LookupDataStore.create_data_for_product_cpt_core: MethodTooLong \u2014 create_data_for_product_cpt_core runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3b067dd4be0a2462c9a918c8c00a75877c47c5812629b6bf1b128fbc05dda9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-checkout.php: FileTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_Checkout (20-1460). The bar is 500 significant lines; this is 145 over it, 1.29\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d2d0b35db58f0883a564115abf35cc8114de9c28224919d4ee0fb2128adc34"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version2/class-wc-rest-product-variations-v2-controller.php: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_REST_Product_Variations_V2_Controller (25-1127). The bar is 500 significant lines; this is 143 over it, 1.29\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e5ff902a1e5a14f9953cf3affb56b23b79ad075c5183f454a9ba197825a3f9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Shop_Customizer.add_checkout_section: MethodTooLong \u2014 add_checkout_section runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dadf28e9737830ceb6e8fc52978987284dc026c9832a7adc804ad037fef44b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/WooCommerceProductImporter.php: FileTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: WooCommerceProductImporter (31-1294). The bar is 500 significant lines; this is 139 over it, 1.28\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe1019e52d91a202c07a2d5abe0afa748bbd8e3af66c245dd1349b1fbe6dae4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Reports/DataStore.php: FileTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: DataStore (64-1623). The bar is 500 significant lines; this is 138 over it, 1.28\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72707fef85923b189bbf3af325ec91c142fd1b2d068544f2ef323896d15346d8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/CheckoutFields.php: FileTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 138 over it, 1.28\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFields.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bc712431d99579e9fbee77097b67e2094cebf9aa1b72a586b02ef538f5bf20"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OnboardingTasks: ClassTooLong \u2014 509 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 109 over it, 1.27\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"114359322f09fb82fb9893ee9987ac090e6ea50f185d22caee807cbff3486497"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DefaultFreeExtensions.with_core_profiler_fields: MethodTooLong \u2014 with_core_profiler_fields runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4d357e15e6b3a24eb11533098566cf56197a3cd8ff8667fcd8d97bdb67cf4c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: api-template: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. 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":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb6c1053913830218b5ae686ef0ba43ec1a1573c59da7df41ee7ec5e36fbe8c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Discounts: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-discounts.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0305351c88d9044b18e99dc35db3e18ff8a7fc00cbbb9913f8a5f17e626e1db4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Product_Variation: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-product-variation.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72c222c61a7efb1b68b71fceb72f4d1dc8cf5d13b31c85a015b47d641b87918"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QueryBuilder: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfcca58bbe6d5e2fc3b0dbf9a776326384dae4747f42678d2747cb55cd1a5d5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/wc-formatting-functions.php: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-formatting-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b136e28a687c1ee6c4281fa5cebfd8b6ece2996e923c3bc675723201a6151eec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utilities/CartController.php: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: CartController (24-1494). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/CartController.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05dd895665c6f3f1847c6f0363895c9e031712a730fbb37dab4a369e98ca3e27"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Tax: ClassTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 106 over it, 1.27\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-tax.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e2c39fe5d760f13f30c3b872e0c3a61108dc9d5708cad289b2c42422260b2e6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PaymentGateway: ClassTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 106 over it, 1.27\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afed1fc0ad6488c94e9615035d7cc15a8f0e269f6ae53417b3b33735c27e881"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MobileAppQRLogin.register_routes: MethodTooLong \u2014 register_routes runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2954123de718a55865f14541a79e6e7ce0759c14e8d36e338a064a772fec2160"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-form-handler.php: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_Form_Handler (17-1239). The bar is 500 significant lines; this is 125 over it, 1.25\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f94910ea41137b18f2d2cda9a47aaca41b53386ce72e543ed8e308e49e16e0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Product_Variations_Controller.prepare_object_for_database: MethodTooLong \u2014 prepare_object_for_database runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8c7775baea66d06253989da217851613b0f0868bf3033dd2bae471b99988d9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PaymentsRestController.get_schema_for_suggestion: MethodTooLong \u2014 get_schema_for_suggestion runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f982f85e7bc2c2640498daca6a6dd1558572384072254920652b90b8245a4b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: data-stores/class-wc-order-data-store-cpt.php: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_Order_Data_Store_CPT (23-1411). The bar is 500 significant lines; this is 121 over it, 1.24\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7ed5b1f9b8fd7381a71284b433ffa5c70749f030f38369b97746b4b04da33b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CustomOrderTable/CLIRunner.php: FileTooLong \u2014 621 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: CLIRunner (20-1380). The bar is 500 significant lines; this is 121 over it, 1.24\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1f4fff069bbe0b0c1b8f4a49f6ebb03b4bbeceb9b3f9e79422e8bdc6add718"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Coupon.get_coupon_error: MethodTooLong \u2014 get_coupon_error runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-coupon.php"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6396229282da737c3ec7def06fc41e869044e393b44141a46778f76b189fb5fa"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WCEmailTemplateChangeSummary: ClassTooLong \u2014 494 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 94 over it, 1.24\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b68d9db06128b6d07793fc1f48d2bb71d1b1a17029cb47dbb6bbe3197c6a1657"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Fulfillment: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Fulfillment.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f5601407ff09734b407b708c86be41498dfdc7d6a6b8c884845e4e25464370"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CheckoutSessionSchema: ClassTooLong \u2014 493 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 93 over it, 1.23\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f15ea536e1c82a8b1b1c051add985034451d5f5694a51d6eb73436cb9c803a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MiniCart.render_experimental_iapi_mini_cart: MethodTooLong \u2014 render_experimental_iapi_mini_cart runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d41d72de8dbf3e368efe5fea39f53eacc42e8894f08502abdbea530e319c24a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Frontend_Scripts: ClassTooLong \u2014 489 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 89 over it, 1.22\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-frontend-scripts.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d14462ae1c70ad43fd1005bb3c8cd1a7403122a42f791a44b987b8ee6117262"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version3/class-wc-rest-product-reviews-controller.php: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: WC_REST_Product_Reviews_Controller (19-1195). The bar is 500 significant lines; this is 111 over it, 1.22\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3c8e746edbab869d1d7cc22eaeb9bce9548403d6b516dc64cf2d4e0eaa0735"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Admin_Post_Types: ClassTooLong \u2014 488 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 88 over it, 1.22\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"4311cc77f241085ee4f6c51cc80d8cff2fd7abec31bd7a285fcf318f4fe985b5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Admin_Setup_Wizard.wc_setup_activate: MethodTooLong \u2014 wc_setup_activate runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":2090}}}],"partialFingerprints":{"codehealthFindingId/v1":"c720e2f5c277f897cef935bc118180a8b3fdeb8bff0eaf5b2a83088eb16efbff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WCEmailTemplateSelectiveApplier.apply_selectively: MethodTooLong \u2014 apply_selectively runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSelectiveApplier.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58c73ecc4c68d37806843218c109f21201446a59e65df85630f38d0f9664e51"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MiniCart: ClassTooLong \u2014 487 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 87 over it, 1.22\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d377c9b246e3e40c5a825206608b0b5b6a8385ed058c744da82d90d1926f432d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Controller: ClassTooLong \u2014 486 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 86 over it, 1.22\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45d98afd801de327ee49ed690421ac4521bb33a5cc4106243d25b22a2d89b51"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Coupons_V1_Controller.get_item_schema: MethodTooLong \u2014 get_item_schema runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ecb8a207776aa5e7dcfd44f8794893fd657d7063321a4154115a5d74244766"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Product_Variations_Controller.prepare_objects_query: MethodTooLong \u2014 prepare_objects_query runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"a495720f0419596be9263e81dfe80de8479091645d13249cd35cd6f7834eb03d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Checkout.enqueue_data: MethodTooLong \u2014 enqueue_data runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e0c9d617e54decc11396fa3a0ab4512c6e4c2f6aec4d339ab8e59c2d73361a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OrderSchema.get_item_response: MethodTooLong \u2014 get_item_response runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ffafcbc4a471070bcbdf19942781be449c28edb24ae776f4448fdde846b3f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: admin/wc-shipping-zone-methods.js: FileTooLong \u2014 604 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 104 over it, 1.21\u00D7 the bar. 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":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a502b78c9fde7fa1964211c93e70ba82933bb5c4423b567dea66cffa8de25e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Post_Types: ClassTooLong \u2014 483 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 83 over it, 1.21\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-post-types.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd509c95a59266bc0f3c3b31262181f79c93db737f1be6ade5e70c71c5305d00"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-woocommerce.php: FileTooLong \u2014 603 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 103 over it, 1.21\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-woocommerce.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b32a4de5f0c4b2e15ee6fc9ce8e87f0a6b28e3d823bf3e9c1a2be9aeea91c5d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: acf-field-functions: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. 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":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfac87ec4007160f8bf353ba6a5fa063caff832e688c3880253ec4ae1aa1d210"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Countries: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-countries.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3d5d7a14e6c5672e3715cf4832ec2af0c3cb7dabc2c4548002a3d8f9065587"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Product_Variable: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-product-variable.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea3467c0a913e85a2273f6734c4dcab1e2fc1602d0ce0b2490bd328f485b7fc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Abstract_WC_Order_Data_Store_CPT: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"256eafdec00c218a33bbea4fc6b69a46df51e4ff298748b35adac14c8abd38c5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Gateway_Paypal: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcc217467a520d8d63638945bebf5c04fd935c10fd4768ff308ca2b7a6dd8e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_REST_Products_V1_Controller: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe462fad65cc848251e7dddd15904cae77db0c1c62314ddaffa0d4c8addf247"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PaymentsProviders: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a0d369b57dcedf3d5cd1bbab8784afc5d79bdf6e66dab866c5b57dc5143f892"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Meta_Box_Order_Data: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 80 over it, 1.20\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"18de921192e1a83b74f2eb8eaedec43c28b86f74e5b43124065274843a4fc9fc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Abstract_WC_Order_Data_Store_CPT: ClassTooLong \u2014 479 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 79 over it, 1.20\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"934e3f7151ff42ad35ef64a277906da531b9990ab6dddcdd4da7334fd8f09f98"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_Orders_V2_Controller.get_formatted_item_data: MethodTooLong \u2014 get_formatted_item_data runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dadf6ac3b5cc7e1010a004fdc12a8347a8752bff7c9a4009074179e961b9195"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/wc-order-functions.php: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 92 over it, 1.18\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a253065eb735425941f1be6d7d22569c7942a39b51ca1815e78cc0dc61529fa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Admin/PluginsHelper.php: FileTooLong \u2014 590 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: PluginsHelper (33-1289). The bar is 500 significant lines; this is 90 over it, 1.18\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a7ea79f55134648a5091f5fcf092279b7cda78e40c42de42f77c89fe760fe2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Plugins.register_routes: MethodTooLong \u2014 register_routes runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Plugins.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28a892f8c577ced0beeb21e27e446fb621a2d430c12490608af8149beef0b5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProductVariationTemplate.add_general_group_blocks: MethodTooLong \u2014 add_general_group_blocks runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72b8d754ec251995deec605ac36dafedc43d05b3c1950dd5b327a2ed34abd05"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShopperListItemSchema.get_properties: MethodTooLong \u2014 get_properties runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ShopperListItemSchema.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a70e18f4c80921bfd5e4b91fd874404ca371bd1faf1b170e01375079d8bde92"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LookupDataStore: ClassTooLong \u2014 470 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 70 over it, 1.18\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ad43fe7b29ab62c97b6fb44391abf283f4c8b690ac579317dcfe7f5168b23a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CollectionQuery.get_query_schema: MethodTooLong \u2014 get_query_schema runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc1a9afa9f4846524f7e450868e36941dfb9e7972a11c3cc6df19a4919d2d85"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: wp-login.login_header: MethodTooLong \u2014 login_header runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-login.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"800049b2dcc9f45395ad093c8b851595c196d833e6eb656f14d0a4796239fc98"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: jquery-ui-timepicker-addon.$.datepicker.parseTime: FunctionTooLong \u2014 $.datepicker.parseTime runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"1773c1cb5edecf1bc049ed32f66c9feb9a44a49d62a22ad4a331242373a7f8f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Customers/DataStore.php: FileTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: DataStore (20-1188). The bar is 500 significant lines; this is 84 over it, 1.17\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"759ea00ac4ffb8b81e0eaf9ae6596e4d5e32627e823fe8be54d07f73113de967"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Abstract_Legacy_Order: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a8d448d5f1a38cd344ebe015afdc00abb78a327240fb4c7cf22a00713e97d7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_REST_Products_V2_Controller: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"740225d74be6aca095f5ba8990f808bd6e2f14f3a949b1549bf151ebdc9d77a5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ImportSession: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Lib/ImportSession.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac2de07ce5f2eb2e2cdd2b7a47b7688352a9d26c71b479a54adbebc3f95b206"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RestApiCache: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Traits/RestApiCache.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f03df702a49a9370e677a509adf93e840aec846b2863f42536da990bbb909d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Query: ClassTooLong \u2014 466 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 66 over it, 1.17\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc689496e02434d6c6bbf58c40200199ecbf6b538c5e07848951959629819c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PHPMailer/SMTP.php: FileTooLong \u2014 581 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: SMTP (31-1617). The bar is 500 significant lines; this is 81 over it, 1.16\u00D7 the bar. 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":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fa6a075f3638806ad228f92722d904d4dcad44c867f2631508363e3b5acd50"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Discounts: ClassTooLong \u2014 464 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 64 over it, 1.16\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-discounts.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fd1c5921bcf24a07fb4b560214625e87d66693dd299c7acea072577fd21f33"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: customizer/class-wc-shop-customizer.php: FileTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: WC_Shop_Customizer (14-951). The bar is 500 significant lines; this is 79 over it, 1.16\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b92a298b8d618ced81866498ca4702ea6315c00a7688324b9feca6bb1888a8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Emails: ClassTooLong \u2014 460 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 60 over it, 1.15\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-emails.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebff6f930caf22c263dee29e887016417dc367f03fd516f1b467ab885a661f3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_AJAX.shipping_providers_save_changes: MethodTooLong \u2014 shipping_providers_save_changes runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3889}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e10127bb92927425c27b135bb91e281990a7018b83f9eba06e4c7d944ecdf11"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version1/class-wc-rest-customers-v1-controller.php: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_REST_Customers_V1_Controller (25-1048). The bar is 500 significant lines; this is 72 over it, 1.14\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60ac19c49f4b51ba1d76799aeb4e9e6a477bd94cad1803af5f212803ca4e45a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EmailApiController: ClassTooLong \u2014 457 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 57 over it, 1.14\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"37de1e86f9d454d13bf984b12fa95d266a29ecdf0f8f60dcf643176cfbaac3a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: reports/class-wc-report-sales-by-date.php: FileTooLong \u2014 570 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_Report_Sales_By_Date (18-871). The bar is 500 significant lines; this is 70 over it, 1.14\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"385f6200a2182f5be7104b1b2a3a7b5807870896af2b6434fb4347e5033e71a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Admin_Setup_Wizard.get_wizard_available_in_cart_payment_gateways: MethodTooLong \u2014 get_wizard_available_in_cart_payment_gateways runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":1405}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7d8457dec65b229218978d4df73bb1aed0eb9bc34893546864795583819a3a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Session_Handler: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-session-handler.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f345833f50deec416f9df0c6b08b44f7f71dae096d4512f41bc0e7979c1b67"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: wc-order-functions: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"410c11d522e20f77f035bc3e8a7d2aa197f990724acbb9c9c7e5bc8cb1613e4e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WooCommerceProductImporter: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbbdc7f2a9183bb2107c30b460fee22fff2d8ddedbb1564e00efd4b44aced8e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Settings_API: ClassTooLong \u2014 449 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 49 over it, 1.12\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cc2c890007131a74dad029d8102d0767dd756e410a82cbc1fe3f4ac187285d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PayPal/Request.php: FileTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Request (26-1211). The bar is 500 significant lines; this is 60 over it, 1.12\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Gateways/PayPal/Request.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b51b4cfbdeff0b72c1fa3d981feb96a061d741f7d44bddffb0b7480db05e913"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Shop_Customizer.add_product_catalog_section: MethodTooLong \u2014 add_product_catalog_section runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"8057b02dad1192b8a769469d7329c1511983961c268fe617baff2d6aa104f85b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DataStore.add_sql_query_params: MethodTooLong \u2014 add_sql_query_params runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb73b665735cedca9cb6a86d25032526f4de5ed5bf25017ecb8b69611a48bb0b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Post_Data: ClassTooLong \u2014 445 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 45 over it, 1.11\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-post-data.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e82fa02316b02051fd9de383e766e9e4d84106148b0fc91e5262b525481697e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prettyPhoto/jquery.prettyPhoto.js: FileTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 53 over it, 1.11\u00D7 the bar. 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":"wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c668a0956133a2c64ed811d7bd0fbb1c68fc3ec86e9c07682655a01c62dd5747"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Product_CSV_Importer_Controller: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 41 over it, 1.10\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9323ecbbd66d258a252278115557d2be9064d0bc3e31eca792129153c189f628"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Checkout: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9d3cdda24604e211b26e7dbdaad2a5bf3247337e5083bf9ee46407e7b8adb9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Comments: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-comments.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"992d606303c72ae2dbb29c3e9b568c3ce81febbc45fd21ce65af16d0af35f44f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProductQuery: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"41250aff5659f291cc9efc40f2e9cf1fcc6fd7f0b7eb0e267d5813561f54c9d5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Notification: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Notification.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d236b0a1ac47a610c5b034d0ddcbdea8bddbc0a60944094515c506fe9dcdf4fb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Version2/class-wc-rest-order-refunds-v2-controller.php: FileTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_REST_Order_Refunds_V2_Controller (23-878). The bar is 500 significant lines; this is 50 over it, 1.10\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3833f3bf132159e873e6c1dc5437b9f08ab9067ec5d6c9ff71b9606149f44c45"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProductFilterPriceSlider.render: MethodTooLong \u2014 render runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterPriceSlider.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"113610465296a036847eadf8e836662e6f64ed4c6e35bfb29ee739b45981b899"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WCEmailTemplateChangeSummary.diff_records: MethodTooLong \u2014 diff_records runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f755e0c669001e9f47e9e57df3d2f0973bc691c2aae016ace02e5900fe8b3d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ProductCollection/QueryBuilder.php: FileTooLong \u2014 547 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: QueryBuilder (18-1303). The bar is 500 significant lines; this is 47 over it, 1.09\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bce6c1593d4548a7cc4a27ea3794778c35b7d80e151d632433164c801a10d48"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ProductQuery: ClassTooLong \u2014 437 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 37 over it, 1.09\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44509173c52bf23b95fb596b91948a5d9133fe8ccdcb9a0eef63b69ec8d2df0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Notes: ClassTooLong \u2014 435 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 35 over it, 1.09\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/Notes.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e58124c289853a99a4051f70ab185e8c345249b7089e53cb1082a98a6622c42"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Schema/OrderSchema.php: FileTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: OrderSchema (27-811). The bar is 500 significant lines; this is 43 over it, 1.09\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffaaa7daf5f67d38f142b2bec919bb43b034d520c9804b1d34316d99faea681"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DataStore: ClassTooLong \u2014 434 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 34 over it, 1.09\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"477187044be19f7a8c18ca6e98d6a7f1933a738fc8a85cc3e5d4e1676be4b0ff"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Product_Variable_Data_Store_CPT: ClassTooLong \u2014 433 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 33 over it, 1.08\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede99ad5a6ab2047139bcdc3cbbc915a10bc4c737bc0b4ae8927d85d7b3335b7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Admin_Setup_Wizard.wc_setup_store_setup: MethodTooLong \u2014 wc_setup_store_setup runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"363777b54c765f2b3c3e12530f52d40958f31d6225461c5a62fb7729ac4d4692"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-brands.php: FileTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_Brands (14-1205). The bar is 500 significant lines; this is 37 over it, 1.07\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-brands.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2fd1ce9a24a341568ec0d4c2cb3d57fc21e759717f21f96528495b8f9e5d1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./wp-signup.php: FileTooLong \u2014 536 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 36 over it, 1.07\u00D7 the bar. 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":"wp-signup.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd0ff55fe5473c354a87e899c04a7a247985c181b32a7b60c6a9d592e1010b8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PromptBuilder: ClassTooLong \u2014 428 significant lines (blank, comment-only and punctuation-only lines excluded), 72 methods. The bar is 400 significant lines; this is 28 over it, 1.07\u00D7 the bar. 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":"wp-includes/php-ai-client/src/Builders/PromptBuilder.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b2b183f4cbd9431f2c172b1ad8d020254bb76e3d0e679b2ed54cac2d9356bc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-coupon.php: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_Coupon (22-1452). The bar is 500 significant lines; this is 35 over it, 1.07\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-coupon.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe67dc540c932a818e2b46b8f93b383c32d4dab2b519f90fdb75bdb0b291744"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: wc-user-functions.wc_customer_bought_product: MethodTooLong \u2014 wc_customer_bought_product runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-user-functions.php"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fa8925f48bfc917e801f46576ec0622ebfea773e8c14a840d3d150c767699c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Order_Item_Product: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d6ff264f105947d4baec883cfd3c6755c4a2beaa0c849954c7cc2b1933e05f3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_REST_Orders_V2_Controller: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d9fdfff5f3f4d0a88d6f69f7c17721644f1407988e48309b50073a8007d050"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GraphQLControllerBase: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Api/Infrastructure/GraphQLControllerBase.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd995d85bcc5ab7d82b15144cccc7850614d8d931cf88e24535d62806a2f729"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ProductVersionStringInvalidator: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Caches/ProductVersionStringInvalidator.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a8aee02e1dca1ab47a46061a6d07649a617b0f935d33f74bc44980ed72136c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Core/ProductsController.php: FileTooLong \u2014 532 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ProductsController (31-1063). The bar is 500 significant lines; this is 32 over it, 1.06\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/ProductsController.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b4b0951fe9ae5e1db9726c126038977fa8b124ba5615fb97f02491005306f8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Geo_IP._setup_segments: MethodTooLong \u2014 _setup_segments runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f545c8e9dd2490a7c72afcee6bce9cf002ef5366b46d49b8532c25818852cf1d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Order_Data_Store_CPT.update_post_meta: MethodTooLong \u2014 update_post_meta runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a2800b1fd2ae6a898efeaf3757a04922b480f6328745458578a07a1788c005"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Gateway_Paypal: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 23 over it, 1.06\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a035bba7d8919586beeced3453084e76ecb63f654b147660cf5e2b87063575"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: RemoteFreeExtensions/DefaultFreeExtensions.php: FileTooLong \u2014 528 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: DefaultFreeExtensions (18-720). The bar is 500 significant lines; this is 28 over it, 1.06\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/DefaultFreeExtensions.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8b43b253b7907a78eb5990adf898953ff4912a44260d97b838e90606f57487"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Checkout: ClassTooLong \u2014 422 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 22 over it, 1.06\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Checkout.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2368d0c97e6dac37bc50a34ef7ac0545f4d1297a6928db97c7adf0b7622b8bdc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Admin_Attributes.edit_attribute: MethodTooLong \u2014 edit_attribute runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-attributes.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa8bc072e450e55b52083ea11633ed2e46dfc33b54fd53745cf75ed23a8f69a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Shop_Customizer.add_scripts: MethodTooLong \u2014 add_scripts runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c870eda70b402463913eb1c1eb46261ff9e7b360163ecfc5415d7ed7124965"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Webhook_Data_Store.search_webhooks: MethodTooLong \u2014 search_webhooks runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-webhook-data-store.php"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37113e440f11c96ee4131ebcda0882df28d516b5cb61911ad0f11affa9452b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PaymentsProviders/PaymentGateway.php: FileTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: PaymentGateway (23-1279). The bar is 500 significant lines; this is 19 over it, 1.04\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00074948af8bb125fadee594fb49f40eb554fd4b03771d5bc254e81de4850001"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: API/OnboardingTasks.php: FileTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: OnboardingTasks (25-990). The bar is 500 significant lines; this is 18 over it, 1.04\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"142954daed5a7d9f491a4ddb6c577aa570f46d9068b4120acd41d2c28794f364"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WC_Product_CSV_Exporter: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/export/class-wc-product-csv-exporter.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a173f1411528c529e8c1d1bd566ac3e19f2c5279bf541efd0139b998a8574e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PluginsHelper: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5bcbd2c9ed501ec5a4b9a3224086a4af624d3ff6b52926402f71aee06f43e2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StyleAttributesUtils: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"15194837b2128d6a46daa2df0d9aaf07f9c1d6b67fe13b50477724135e05a88e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MetaToCustomTableMigrator: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0c5bd29a71c5e032e0e01340945f10a8b3a70fcf243155b95f8dcdc22ea9ed"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OrdersTableQuery: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ab3650630c9be73b3191a7df83829f07b5621a1b85990a9d45ad6497b56076"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: wc-order-functions.wc_create_refund: MethodTooLong \u2014 wc_create_refund runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"41efbfffa95755c2c2e28695185880f2559007467e014a23f252ba45b253a8b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: includes/class-wc-tax.php: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: WC_Tax (19-1301). The bar is 500 significant lines; this is 12 over it, 1.02\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/class-wc-tax.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8dce572f8463272f99abb92395c950d756900cfe4f17aa664dca52942a6dcb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_System_Status_Tools_V2_Controller: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 8 over it, 1.02\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3851db8f44f5f80a504605db5f369fb59ff893222bd35338b7705ae7371941"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Agentic/CheckoutSessionSchema.php: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: CheckoutSessionSchema (33-875). The bar is 500 significant lines; this is 10 over it, 1.02\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7e97b300feec401f62f99d3b20eea334e418786e092c30d3ee7dfc2372c83b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_REST_CRUD_Controller.get_collection_params: MethodTooLong \u2014 get_collection_params runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"59566efb454153b7ee7ddde5941c9352f2c5b6b5c7fe822eaac9b5c0b43a72d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: wc-product-functions.wc_update_product_lookup_tables_column: MethodTooLong \u2014 wc_update_product_lookup_tables_column runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f7e0e2ab7a54b299c4d7a64fcbc404a028a37d381155d92356ab293f84bbe3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_REST_Taxes_V1_Controller: ClassTooLong \u2014 407 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 7 over it, 1.02\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8f040c70586fc35dd8599f2270b21e647a1166af75048f327ff81159706b9f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Customer_Data_Store: ClassTooLong \u2014 406 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 6 over it, 1.02\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"900cee37e3bfca848dd414244bbc4d46b96a4147be337606b0663b918bd24c60"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Traits/RestApiCache.php: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5 over it, 1.01\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/Traits/RestApiCache.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2748ea13828291e90fa1802c23e738347fb38147f0d3283c7ce3a9e7207a1f31"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Settings_Products.get_settings_for_inventory_section: MethodTooLong \u2014 get_settings_for_inventory_section runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-products.php"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"341286a4d085d0893e706af61758e5c3d3ec945e94f9214bd09b87f847a6dfcb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WC_Shop_Customizer.add_product_images_section: MethodTooLong \u2014 add_product_images_section runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/customizer/class-wc-shop-customizer.php"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"678fcba2e2cc1c3b6735b8247238fe7dac36860b333e992e010d006bae80410b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Notes.get_item_schema: MethodTooLong \u2014 get_item_schema runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Notes.php"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"708535fd7f2ecfb72e3760bb294a4079f2f5b44a27b629fec460720830b365ad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SimpleProductTemplate.add_organization_group_blocks: MethodTooLong \u2014 add_organization_group_blocks runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"718df09a255ade1cb3bd2afe6e60981e5975774f7017b28569a5016dc2430da8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BlockTypes/MiniCart.php: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: MiniCart (26-964). The bar is 500 significant lines; this is 4 over it, 1.01\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f443eaecef41835c199cfee68ff5f4056549768e61e430d04f22ab822a646b71"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WC_Report_Sales_By_Product: ClassTooLong \u2014 403 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 3 over it, 1.01\u00D7 the bar. 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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"b976ee0f67b59b0ff7e0d55bce80704cfeea459e2f1c794f8720d49dddf013e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Orders/DataSynchronizer.php: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2 over it, 1.00\u00D7 the bar. 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/DataSynchronizer.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97571a04af933139a17e0e0e6b968b9a986626cdecb1b044d1370d9a3edf5129"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 44 shared lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:161-247 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php:175-289 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:157-248 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:149-225 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:141-226 \u2014 These 5 members are variants of one another: a block of 44 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab82b9766365c4699bc205bb5b22efdb69ada5ef8b3ce4cab22603f9257669c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 258 shared lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1091-1366 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1071-1440 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:733-1170 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1003-1440 \u2014 These 4 members are variants of one another: a block of 258 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e97c9be739bd95c0e46035cfe1f709226de344784355c4c8f51d36710ef6958"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 46 shared lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:412-683 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Stats/Controller.php:190-412 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:234-411 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:204-386 \u2014 These 4 members are variants of one another: a block of 46 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"629b115a25ac823f468249b09cf88ed8da1bb6860bd622d14df86443a1fdc32b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 75 shared lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1378-1550 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:379-577 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:201-445 \u2014 These 3 members are variants of one another: a block of 75 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"695f577df9d637d551c345e6f28d192e31ddd6d0beedca139a861de50582fc04"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (82 shared lines): wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:319-446 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php:122-269 \u2014 These two members are variants of one another: 82 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27577cbae0660e0f3cce3be663e3bf34aeb75b655949d7aa199434c84536a62"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (50 shared lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php:38-244 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php:47-221 \u2014 These two members are variants of one another: 50 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6d9352f29cd91882dbb2adf94e9cb0c66a36646ef160071dc360fdc6db6a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (43 shared lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:801-854 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:254-326 \u2014 These two members are variants of one another: 43 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"217f2e8adeb929e47c53416f598539b3ff06162bb58c49cd43b70e04e6712236"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:281-342 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php:42-89 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"9514251529383be1005c1b1f8ef60309f56dae42748b5ea6cc42504b1b396b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:226-277 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:289-319 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d5a803ac246dccae15712ba8a3830dc691d01bfa8f2df9c81837b0c2303b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (96 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:569-706 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:957-1064 \u2014 These two members are one piece of code written twice and then edited apart: 96 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"b102845ecc0299e56728d3727edc0b43fbb17382b0e46a455c934c1b9ec042e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (33 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:153-221 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customer-downloads-v1-controller.php:109-132 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:642-684 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:340-363 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:124-230 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:133-364 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php:138-166 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:426-452 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php:55-104 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:443-469 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-shipping-classes-v1-controller.php:54-79 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-tags-v1-controller.php:54-79 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:610-642 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php:98-237 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:551-585 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhook-deliveries-v1-controller.php:170-187 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:561-596 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php:220-237 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-customer-downloads-v2-controller.php:36-66 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php:104-120 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php:90-114 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:197-229 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:257-283 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-categories-v2-controller.php:37-88 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-reviews-v2-controller.php:81-108 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:291-353 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-methods-v2-controller.php:146-168 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-webhook-deliveries-v2-controller.php:37-55 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-webhooks-v2-controller.php:36-73 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:36-61 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php:36-63 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-categories-controller.php:37-88 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-refunds-controller.php:98-113 \u2014 These 33 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 33 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 33 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b0e9172b1e86ec2ec5ad75bbe6f42ef3ce512f0c168310abf3ddb00874c307"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:288-357 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:308-406 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php:54-68 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Controller.php:53-63 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php:40-53 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:56-103 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Stats/Controller.php:45-81 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:39-59 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:53-80 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:53-86 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Revenue/Stats/Controller.php:45-58 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Stock/Controller.php:55-84 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Controller.php:58-68 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Controller.php:70-83 \u2014 These 14 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 14 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b8a265e28b9d9fcd3e5e2110f1af99233c75baf6ee958001c88a032e654cfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:344-431 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:228-338 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:242-302 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:394-447 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:308-406 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-custom-fields-controller.php:70-125 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:279-388 | wp-content/plugins/woocommerce/src/Admin/API/MarketingCampaigns.php:91-132 | wp-content/plugins/woocommerce/src/Admin/API/Reports/GenericController.php:72-96 | wp-content/plugins/woocommerce/src/Admin/API/Taxes.php:58-156 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"30737b6fdf51968376331ac0ea2a301c3daeaa79f0a84b29b6bde0c9488edc58"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php:50-65 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/LaunchChecklist.php:36-58 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MobileApp.php:36-51 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsMoreInfoNeeded.php:63-78 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsRemindMeLater.php:63-78 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PersonalizeStore.php:36-61 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/RealTimeOrderAlerts.php:36-55 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/TrackingOptIn.php:44-74 \u2014 These 8 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 8 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28742dbfadec79d322e0ee14edce9b05e07ce7a9c640ee05339f70fa3d1026a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-refund-returns.php:81-94 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/CustomizeStoreWithBlocks.php:37-84 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/CustomizingProductCatalog.php:38-82 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/FirstProduct.php:37-85 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MigrateFromShopify.php:37-77 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OnboardingPayments.php:36-66 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OnlineClothingStore.php:54-96 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-refund-returns.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f89738f7480b85e9b3b42258363026d077bdce37b709597d4f9d63bc9db9611"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:174-182 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:192-200 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:210-218 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-shipping-zones-controller-base.php:60-68 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-shipping-zones-controller-base.php:78-86 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-shipping-zones-controller-base.php:96-104 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-shipping-zones-controller-base.php:114-122 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8345900c2536d40b2735e7c5e432f0eec74ecfc4c088ed0b722cb6734235227e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-coupons-totals-controller.php:84-106 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-customers-totals-controller.php:95-117 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-orders-totals-controller.php:70-92 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-products-totals-controller.php:74-96 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-reviews-totals-controller.php:73-95 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Stats/Controller.php:109-127 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Stock/Stats/Controller.php:57-77 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-coupons-totals-controller.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3603f9d5c2321da939476f9063135bc2511185b89b59527288c7247bfb3897"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:147-156 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:180-189 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:199-208 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:152-161 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:185-194 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:204-213 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"816f362685e5581edc511ca4c8d231bbf42ccbee6f4909719cdbf2dbb0c24762"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-eleven.php:21-38 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-fifteen.php:22-39 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-fourteen.php:22-39 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-sixteen.php:21-38 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-ten.php:21-38 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-thirteen.php:22-39 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-eleven.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4efa1f8bd7e3b5475dc64d1bef5a98c939736b3b06b6d4a887f85f0e7dff3e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/DataStore.php:150-228 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php:91-158 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php:337-446 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php:156-239 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/DataStore.php:171-251 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php:176-262 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/DataStore.php"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"caade402c680d260c5acd763838a304574a635e6973ccaf83a3ccad25ce9d5ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterActive.php:27-108 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:143-267 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterPrice.php:100-186 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php:87-170 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php:101-172 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php:186-309 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterActive.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bcbfdb29caf3efe5d216feef85115b0c5bea3c01d57b51b2a784cd6537ae81e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php:51-65 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductBrandTemplate.php:58-69 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductCatalogTemplate.php:52-61 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductCategoryTemplate.php:58-69 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductSearchResultsTemplate.php:51-60 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductTagTemplate.php:58-69 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"493d658e8a2d37001e0931c96b807a294c422d2f5514e25f2c979d21269f504f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/EditProductsOnTheMove.php:36-69 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/GivingFeedbackNotes.php:36-53 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MagentoMigration.php:84-98 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/ManageOrdersOnTheGo.php:36-62 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PerformanceOnMobile.php:36-66 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/ScheduledUpdatesPromotion.php:75-98 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/EditProductsOnTheMove.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"002750703e1d41fca5e63d10d38eb15db8f6888febc164c9ebc25611e3a25120"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:146-226 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:343-467 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:949-1158 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:223-481 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:338-618 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b081c12d8da6b3d790738c8450709bd1504500d21b2927688bd4575ad456e680"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php:414-437 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php:503-541 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php:676-699 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php:791-822 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php:840-868 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"9faf345095b614c8d2c1ab02655082cc28f421786b4401394c4c005bde1c4bc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:146-213 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Schema/EmailSettingsSchema.php:149-247 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:146-218 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php:148-214 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Schema/TaxSettingsSchema.php:146-218 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"9034a8d69bf5b18e9a61b4ae2beaa6354bf40019f8ecd6dc3f43b46db53878d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:359-372 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-customers.php:223-236 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-category.php:265-278 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php:613-627 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0200319bf69174ebd58f7fa00e4466437e8f060b08a04d06972099e81e8ac701"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:220-259 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php:179-219 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:323-397 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php:185-279 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"694b6968714935935a5060c6d98c5da2b9587de4b9fee67cfe3f873216ee733f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:219-255 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:265-281 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:291-329 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:71-107 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c99199e5ec77e018fe84f4c2c6983fe527847c0c3dc02ccc1dcfd2477fb9ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:279-331 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:523-579 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:167-212 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:282-327 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad619ed71928d9a6fbd3274429df57977a6ea5d142fc159a50eed1d85c1cc104"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:678-740 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1071-1440 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:733-1170 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1003-1440 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a8325fdcbd3c048186f48fe8b2ab8f858457888edca5f673aa6d63410f30a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:858-907 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1453-1520 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:656-722 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:923-992 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce928779966362e1ef0d291ebba4d18f080b16a79e180efb2499e9ada1da71e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:255-265 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:53-59 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:69-75 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:85-91 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7fbbd7c58bc676970867c1513cb4ee8175db8a8e9a36e40ad4ad7acf05a3aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:103-126 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:164-190 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:200-249 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:259-285 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb3c64e2c41e2f3c97e2e1d5c04765fbc25a65c2bc610af73f29cffc5ee5ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:99-158 | wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:170-229 | wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:241-298 | wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:310-369 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"71608d465cc36ebc3cbb1bf5cf9a5a0c07ae8d3c0d79f5617acc54ea761f7de9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:295-376 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php:355-443 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/DataStore.php:181-241 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php:413-523 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec30bc2e8cb81fb81391b551190f1176e5b01ac61b1c0c31c40703e10c106caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php:94-105 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php:70-91 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:99-123 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php:68-95 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a0e6e8ca623b1fa84ff96e17013caeb47c598c42a39c6e739edba882a1d00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php:154-216 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php:145-210 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/DPDShippingProvider.php:399-465 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/RoyalMailShippingProvider.php:158-227 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"68292e076e527450fa1338b82b758021f746dceb513ff4eabd69dc6e1fb77803"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:935-963 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:308-336 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:468-506 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:504-532 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f59d091ea16f11903d59b94b528773f3bd5fe48f8c22a6cb7189ec06fb34b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:977-1004 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:365-392 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:520-547 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:571-598 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f1eac5ef4853fda1faa3a547ec28cc60fff802a42f97dd2d49c18db1d639e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php:232-277 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php:285-313 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php:327-377 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php:284-371 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c251fff7004ccd04ec94b2b515d936acc1db4754f413f0b7d57356b93e97c49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:271-319 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:338-383 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:297-334 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:278-327 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d29b02f5f09867052f7e4adb92af4520d2162266fc64c854e311bb2f48b0164"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:278-300 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:325-345 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php:305-322 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Schema/TaxSettingsSchema.php:270-289 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc159b0dd854d487ca69b708330c7a0baa92fc78e382c4b11021563fcbe817a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:256-329 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php:349-436 \u2014 These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef352e6dc2c6494e3f427556d42baebca96c8742ab9e75a6d4d06943427e068e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (92 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1643-1734 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1700-1829 \u2014 These two members are one piece of code written twice and then edited apart: 92 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"e939213a439f3633e5d78b9a6b5b5400699c43194d85ee7465a14af4871f94bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php:121-147 | wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php:166-213 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0658d1f10f1fdec47f50f5dfc10824b0c9610356f6892c4b6f5a734350347a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (64 corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php:325-388 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:216-286 \u2014 These two members are one piece of code written twice and then edited apart: 64 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af4aaf3eb84ce68939ae1239be7f76a5891a7843a9a96c5a927dcbe8750d093"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (115 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php:78-201 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingCounter.php:78-192 \u2014 These two members are one piece of code written twice and then edited apart: 115 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"f742b77d8225e68ccf96b691106dd93c0a96038b861502bd93a50770694e32f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php:164-208 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-setting-options-controller.php:75-132 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29d55b7b270ef00f46940a5b60040924f5335522afe93e47efa9da14696fa16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1512-1560 | wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1570-1615 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"519331cd3ab90b1942e8919d84dd2d428cbc87690e85eab50be8e5c86c9f9fe0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:240-301 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php:280-337 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"17aa9e178642ea092bdd40303fb2d87df516601c22b48d78c46d93375c5fc224"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 64\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:598-698 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:457-522 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:416-479 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 64 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"21397cd05914f9063c2b39b68b52960b4e9fee7ad9f6381de6d198136c4b755d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:2050-2098 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2454-2510 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":2050}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e7d5dc4f3dfa657ffb15b3868d049e217f8d632d9ce4fdae033284459631d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (63 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:726-788 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:113-177 \u2014 These two members are one piece of code written twice and then edited apart: 63 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a131aac1b87e519bba681e53b0031200b670de1b8fe24b36e5f35aaefda2d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 78\u002B corresponding lines): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:412-489 | wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php:60-152 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:208-305 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 78 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"629a728622df8f5f5b89684bd2a6196ff863a3ecd5a30d49ff77263e9b333b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php:282-337 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php:602-660 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1b8ee57c520281ddbc4775e4456f2892760b54d0f96e6c2eb5de981b4eb84a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (90 corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php:1462-1581 | wp-content/plugins/advanced-custom-fields-pro/includes/api/api-term.php:172-261 \u2014 These two members are one piece of code written twice and then edited apart: 90 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php"},"region":{"startLine":1462}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2d32fb11c568bf34d561bafc2c8147f78e6b2e74ef12c5105c87d369f3098f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php:244-289 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/CodGatewaySettingsSchema.php:109-156 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75aef60b8c2611ae310c24ede63a228174a0d56cb4484d24a50a297316fd65e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1015-1062 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1631-1679 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e7084cba9d35742d9179881498d71e39647453d0aa33367045b78c8ffe53ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:733-778 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:790-839 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dce42b0cc3c5abd379ed1d51257ec35f1a9cc0890f5981b05b8bd4bc9219f0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:493-549 | wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php:167-217 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9b9df32fe86f3ef5c0ac5ee51db158794b74459b201b7105bc3d1a858693d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): wp-content/plugins/woocommerce/includes/wc-stock-functions.php:165-221 | wp-content/plugins/woocommerce/includes/wc-stock-functions.php:346-393 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-stock-functions.php"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"016098627c89ab36078965511c2d7cea0aaeec4896a067341d868dc709d20668"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (100 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1107-1215 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1231-1330 \u2014 These two members are one piece of code written twice and then edited apart: 100 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf3866007c18f3a55cd2d791a56299258226a055408af6c574cddd43428cfd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (70 corresponding lines): wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php:164-233 | wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:195-277 \u2014 These two members are one piece of code written twice and then edited apart: 70 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"087a2a8e28b4057b6e19d47ca615c85b84280f368f5b6cf2144e3248ce06da70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php:107-152 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php:223-261 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bc312482e9ded1648499a711dce321c731414e7513a177c57453854dca48fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1045-1108 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:202-262 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ead4af49cfba54d1cb23dfbd8fcbdf2cb3c822c33dbc8844b0d1759e1a455b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:988-1022 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php:499-533 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"1218ec077a153d33b7667d2c7628601f33383d525cd8daa7721cfdd3ea5b1991"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/BillingAddressSchema.php:95-151 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ShippingAddressSchema.php:36-91 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/BillingAddressSchema.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f468a1cddfb0afefadb870ee35e0a21c01a2b5905cf9d2bf04c09a8e72a7950d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (78 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-emails.php:1008-1089 | wp-content/plugins/woocommerce/includes/class-wc-emails.php:1099-1176 \u2014 These two members are one piece of code written twice and then edited apart: 78 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-emails.php"},"region":{"startLine":1008}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d35bef5436e61e995450fbd6bfa1ac585ecb88b73471d283e362ddb84e3af0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (192 corresponding lines): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:378-570 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:430-637 \u2014 These two members are one piece of code written twice and then edited apart: 192 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c184773fdbc70d9008de72daa655a1cede2d93c0d19f74dbf7454e40a53f902"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:404-450 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:617-686 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8731fa2786278da0501db6271eb436791cd55165605cd3478af96792e3d114ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:383-432 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:622-681 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1c7d0c29b9758bc805b5d4b7d052f0a534a2277da872b104f04428c1138059"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-query.php:1042-1067 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:499-525 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:557-579 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc37374565931a5cecab2a67f6d69cdd6d9c73eac824ea58eb82bbcd6f090a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php:334-384 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php:281-344 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"a926d682b0c68955709c00dd226627c96cfb4ea684601bf8b3cafedb11de7cbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): wp-content/plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php:550-612 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php:650-709 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a958deb0bd3a681125209811c9664917b71e63301fa10bc2592830145d3c926"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/PlatformRegistry.php:112-171 | wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/PlatformRegistry.php:185-240 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/PlatformRegistry.php"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9989543ec8a3d822b670980b916d4f00659bf1d2503440d01efe76ea529c47f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:278-320 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php:181-219 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"7757b168214a4615a34bf61a47611e310d418019da35243440c5b281713dcd3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 72\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php:920-995 | wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php:1005-1082 | wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php:1091-1162 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 72 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0155c62ecede1d61b5d97e678b6e5fc8bbb33fa22614cbea3c9c04604cbf0ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (109 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1864-1972 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2246-2375 \u2014 These two members are one piece of code written twice and then edited apart: 109 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0523d741c5df02d15cf604717572102632e2eb9214780188994e5a59ca1736b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php:579-630 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php:648-688 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d43dfe9c95ea202ce627f44f837043cc5e71d64b2b17bf16e47c65b7090fb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:479-509 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:761-805 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"b03db02fd66861b767f14746f7cdcaabfc5e1d45dfbc9834ffe2c73c085cbe1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:1301-1335 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:1346-1384 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"562a991c5be425a315940fa24a1e2dc9db3d73bfaf7395a178546fb99ff2f9a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:200-236 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:246-277 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1d472cae65ea9292d466a7ed5b4a01fca359a41631430573d0465ede83a7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php:259-322 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSyncBackfill.php:111-163 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e37b7df77e7521a5177acdd22bff93ef3d1d16d92e4cfb884c147ad7d5fee4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:491-523 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:667-712 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2ce452fe8edf17133aac1cd2b8a0bbbc050546ad2e57f6298789bd975add78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (82 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php:150-244 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Wishlist.php:53-134 \u2014 These two members are one piece of code written twice and then edited apart: 82 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"17700474aa16aa01ac054f130dbe4947fd0684ae352fdf256b97e930d94baead"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/AbstractSchema.php:169-203 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/AbstractSchema.php:221-248 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/AbstractSchema.php"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"add0e27f155d73f3ecc0ffc1201de34b25f491743954d895731fe4ef829eff0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): wp-includes/PHPMailer/PHPMailer.php:913-958 | wp-includes/PHPMailer/SMTP.php:289-335 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"93dc24640d60937b079996c2acdd8b550c9f59b692160f522ed3aa1adcfbabbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:195-230 | wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php:140-178 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ecc56743c6bab1fe783865e2b76f3760685a8bba775c38d0a60074670b9585"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-product-attribute.php:77-97 | wp-content/plugins/woocommerce/includes/class-wc-product-attribute.php:106-125 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-product-attribute.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6801d59eec72129b5222beda4f18ed4536bf906adf26d2e957a06dcb28798455"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:210-250 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php:421-455 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bcf997485ad94f7a772605294deddcdbbf55e7b4c9cbd1758106069abab456"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-post-data.php:461-486 | wp-content/plugins/woocommerce/includes/class-wc-post-data.php:497-524 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-post-data.php"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"337581d234ee549be2bd92ddd0b829210e8d970fa3150674dfe02ca0336b2530"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:311-340 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:838-865 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2f54d0688e31c44f584cb380cd90c1f7f5dab49f9221314e4a90032961fab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-brands.php:816-851 | wp-content/plugins/woocommerce/includes/export/abstract-wc-csv-exporter.php:429-467 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-brands.php"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"438e6199d0be9cf3126c11bee97b1507489caf98e4f68024b0ea8710565fc718"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 33\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:505-539 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:465-497 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:552-589 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95adf017dc9491fa37ab42bca344e70da7a059e9f25207d375b62d7efd582a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:941-958 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:360-386 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"733565cf5c14fa36a52b638f640ab07a43f737450a122a135406017c3abea8aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Translations.php:76-119 | wp-content/plugins/woocommerce/src/Internal/Admin/Translations.php:131-170 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Translations.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"0890e67f7516398998f67d426931c61ae8b426d92b1058632bea43d7f466c008"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:95-120 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:55-86 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"19da98baa45214c9ba3bfd59ca2621f91ddfa216526e6733587459924d852e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php:96-131 | wp-content/plugins/woocommerce/includes/class-wc-background-emailer.php:148-186 | wp-content/plugins/woocommerce/includes/libraries/wp-background-process.php:295-332 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1ddb56d0b1fb137debd6348322e3f0cef6a78cac80224c2421e0b6ab20dbfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:267-307 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-attributes-controller.php:62-109 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"a772a110f6d6c0d8cd82a18016becf9d62de0dbb02b2d704c1c136b8e5549715"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Plugins.php:243-294 | wp-content/plugins/woocommerce/src/Admin/API/Plugins.php:358-407 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Plugins.php"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3c8694401fae5e69991f7863a2fdecd4d0c9a863c939f338c7a8ef9b078df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:350-379 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:875-904 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:793-821 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b36875e80ed4bbf7d216d7cc88d30b5b3ad0a2b35f2d0c1d06468ddd907903e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php:41-85 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php:101-153 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e400c84c67d37eed6ab8a05f4ba2cf81cb84a059deda00d9665cc098e89c18e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:579-619 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:630-658 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"54dc4439f2ece39c49d60afa28c713b85e5ca122d43c12e9282e6ba0f4bcc3d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): wp-content/plugins/woocommerce/src/Database/Migrations/MetaToMetaTableMigrator.php:205-233 | wp-content/plugins/woocommerce/src/Database/Migrations/MetaToMetaTableMigrator.php:244-272 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Database/Migrations/MetaToMetaTableMigrator.php"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0ae4e8293bb73c5c9ee1422bd85d75ac6546f1539e10f6ea92aad38d59fcf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:184-209 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php:36-79 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d93cc920feba50bbdb9986ab0080c0c285b45cc3b01ee56e2ca83eba5a2ce7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 32\u002B corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:442-473 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:499-530 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:542-573 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:598-630 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:642-673 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:685-721 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 32 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"2abd077b25dacbce02d155aa4f60d2a78a3a64bdd85c810c4eb7118c73bae799"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-discounts.php:836-869 | wp-content/plugins/woocommerce/includes/class-wc-discounts.php:1003-1039 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-discounts.php"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"55457d7baf9f121f04c5a67afabe047288d1b65bdcd2fe3ee0cefb7a63c018a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php:599-618 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php:664-689 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"becc613ea2a199e72feaacd91cc282f895d467dafe3842e5cff716b5a59b3531"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:227-256 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:160-189 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:467-492 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4bff29856d67928f5690ac044a7f84734831528d1365e736088038786dd454"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 46\u002B corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3404-3467 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3476-3526 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3706-3751 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 46 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3404}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f46df1594dbabf66df512ee329569337355eba0f1d09e423f9c3245ece8d2ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php:60-96 | wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php:45-65 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f11016d214ed595a6c9d33adaa7374c7922feae5325f1b460776882d36bf95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php:77-118 | wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:121-157 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"301a8883a47eb072d42dc9aa63f3b8a645dae8c73064f7a9ae73551ff2c2136b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php:560-589 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php:628-654 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d76c41648e01f5e5e1d096933e63f9d493ab474ca0646874de652a80ea35cb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductDetails.php:225-242 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductDetails.php:254-277 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductDetails.php"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b95d9b1423eec22ab21a8ed0c2da934cfda5005089c72d9d93d1182b16a56f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 47\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:129-181 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:194-240 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:254-306 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:322-376 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 47 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d343779341b9078fd7a685b877b65aeeeabf96060b64bce6c78ac8c942734e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): wp-includes/PHPMailer/PHPMailer.php:3452-3490 | wp-includes/PHPMailer/PHPMailer.php:4055-4095 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3452}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fad6bd62ceb8233f2332d72a6641652f49a398a57393ffecb055d3d1d69896"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:588-605 | wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:612-629 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5b2808cbf73849274250c7c3b8bb9575b3ed01b1a70bbad63398dced34a7bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-reviews-v2-controller.php:120-138 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:709-741 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-reviews-v2-controller.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de50f12e2f8dc96ab0c069d9470ced628e800f44698c7a63192e2942e6fb60c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1137-1163 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1258-1284 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7c7fb03e1b64b5d8545559109d26bd6e419adbd4827d0cc8ee7a5fbe1fe311"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php:37-61 | wp-content/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/Init.php:33-65 | wp-content/plugins/woocommerce/src/Internal/Admin/WCPayPromotion/Init.php:103-127 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"737731decbc3d518aff17aa6bbf2bcba757e809a98ad2685d064af1c65f822d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wp-content/plugins/woocommerce/src/Api/Mutations/Coupons/CreateCoupon.php:29-47 | wp-content/plugins/woocommerce/src/Api/Mutations/Coupons/UpdateCoupon.php:31-57 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Mutations/Coupons/CreateCoupon.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"42cbd10e589c73fc30bc52de87c8ab25a124826e152670c8d7f6d265e299c98b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): wp-content/plugins/woocommerce/includes/wccom-site/installation/installation-steps/class-wc-wccom-site-installation-step-activate-product.php:58-98 | wp-content/plugins/woocommerce/includes/wccom-site/installation/installation-steps/class-wc-wccom-site-installation-step-activate-product.php:110-139 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wccom-site/installation/installation-steps/class-wc-wccom-site-installation-step-activate-product.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"418ca15f6debaf2cbdab57ca35985fba361d856aecbfff06ce501a4e015c761a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): wp-content/plugins/woocommerce/src/Gateways/PayPal/WebhookHandler.php:138-163 | wp-content/plugins/woocommerce/src/Gateways/PayPal/WebhookHandler.php:175-195 | wp-content/plugins/woocommerce/src/Gateways/PayPal/WebhookHandler.php:207-231 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Gateways/PayPal/WebhookHandler.php"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ddf4248fe8b5fd2b6584b0303bcb6ddc629711d01372b039b2567e24e6278b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/EmailActionController.php:142-188 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/EmailActionController.php:199-226 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/EmailActionController.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"302f52ffab4f48424727f3540c1dc990fdf53fd06e813bced537a56ad7bcedbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-api-keys.php:97-121 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-webhooks.php:296-323 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-api-keys.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7470b09f6edbe1a94441705f156d5334685e02cd35ab9d4329495d4983901df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Blueprint/Init.php:261-326 | wp-content/plugins/woocommerce/src/Admin/Features/Blueprint/Init.php:336-389 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Blueprint/Init.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"427293c07d44ed2031e69246c20bacae138dd9d251d967fbe1988a3ea97bdbeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:401-452 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:700-743 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0f8a723dbaeca546beba8af4a9f5afa12ba806bdba4f21dd87e3a8695abd42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-cart.php:2287-2304 | wp-content/plugins/woocommerce/includes/wc-cart-functions.php:381-397 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":2287}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc2ae394672f9176bf933c213c6d750d091ee791d04d7313c067ce94062b974"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php:20-65 | wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:20-62 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9ece0c39c7c20a427f32499c265f3c9462868503b562d5b4512d7869509e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:500-542 | wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/Incentives/WooPayments.php:300-338 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabb4e5daaca5857734b7da0f96dfcda8cf65759383f0aaaabcef5d3fe212824"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:18-45 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:182-214 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4af45267460403bfa40f2088d05fcd855e2c067b84d955971e5647c981d9c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:391-421 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:473-503 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c92a6ec5df4e0dcc580498cd699926a26165b8a318fe64c5ee228591a516b5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUIRequestContext.php:365-396 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUIRequestContext.php:403-429 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUIRequestContext.php"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"f453162743ca3896e982f5ad92171d7ad993861894ee9ba8597dd35ceb3b7434"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-discounts.php:74-93 | wp-content/plugins/woocommerce/includes/class-wc-discounts.php:103-127 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-discounts.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60eeda68d04770bf0d144779b575e64b021c2a1d85f6802b880d3b38a707d7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/includes/wc-page-functions.php:177-196 | wp-content/plugins/woocommerce/includes/wc-page-functions.php:215-232 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-page-functions.php"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd1466aea695c2cc35aa8d58267e18e7208e00007e4896e60c753fe0f2fb598"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PayPal.php:96-129 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PayPal.php:141-173 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PayPal.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"046353ac60bdc70b10ae4925e77d62e86ef4d6142178370eec17abc628fc6cb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-discounts.php:802-824 | wp-content/plugins/woocommerce/includes/class-wc-discounts.php:969-991 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-discounts.php"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e30d7e71fa1d9a4532b8b2f5dced52917793119302f96e2e48b0ed2dccbdcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-post-data.php:1024-1065 | wp-content/plugins/woocommerce/includes/class-wc-post-data.php:1079-1115 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-post-data.php"},"region":{"startLine":1024}}}],"partialFingerprints":{"codehealthFindingId/v1":"645c9224a7ab1e2f0575bd14cf0e48fcf6543e7f7894e47fa4bf3c3b2b91fe2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/CartSchema.php:90-98 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/OrderSchema.php:97-105 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/CartSchema.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"337668a9ccfce7a19d7343e457624d9ec28b48d8001276a9a914aed8d3550138"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wp-includes/PHPMailer/PHPMailer.php:4373-4399 | wp-includes/PHPMailer/PHPMailer.php:4610-4626 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":4373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3120a86f02aefa482e52adbc53487a4117c7e1586d3758418126c55adda6960"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (677 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1179-1855 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1449-2170 \u2014 These two members are one piece of code written twice and then edited apart: 677 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d3b48220b5098e570b9cc1977455003e58b9b047d9d65e53ee6fcb80dcf7ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Utils.php:367-395 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Utils.php:407-435 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Utils.php"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"4feff998d2aadf7cee2edb4f7e8b3016e9bab9d0b1e08344821b2c6a2efba8cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Schemas/ExtendSchema.php:221-243 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/ExtendSchema.php:255-277 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/ExtendSchema.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"a134928f4b4d4e9459b3d60b2cfac83f92d6590346adc649ff50db7a59258163"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:134-148 | wp-content/plugins/woocommerce/includes/class-wc-customer-download-log.php:42-60 | wp-content/plugins/woocommerce/includes/class-wc-customer-download.php:49-67 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Notification.php:58-75 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"de300db368ef6ca110e7d913bcce2f62439281abb635532cdcb8ad465d86290a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-customer.php:102-128 | wp-content/plugins/woocommerce/includes/class-wc-webhook.php:67-87 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-customer.php"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"592adfd2fe26fce28968910fbcb1dd0fdb7c965f46cc2607645fe25d36ebd7d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:625-636 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:881-892 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7ba3bb8b07d2783b170c641eddf79be21f7a62276f0beb0e466e698b554b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:261-293 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php:465-493 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8492a7b1aaac7c116f0dcdaaba72c88f21954d07a72257a5f7497850a7cd04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/OrderAbilityTrait.php:141-169 | wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/ProductAbilityTrait.php:456-484 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/OrderAbilityTrait.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd7cf0f88302b5312a53efde41f3a92ae2df7fe0e290e0563afcea566e89b4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php:672-721 | wp-content/plugins/advanced-custom-fields-pro/includes/api/api-term.php:92-125 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b49a52b336d8d667fef3d7eaba8979af8adf87b8e17b969a2255746ea99a68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/Init.php:109-132 | wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/Init.php:170-192 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/Init.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab201749bd40754206cf0176937895bc502b22d8eb5f6f625a7e732c4d38b1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php:74-102 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php:484-512 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a538c20316804a63ea28437709d70ef89c8b997daa4ea659c1a718380ac3de47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationNext.php:27-53 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationPrevious.php:26-48 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationNext.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0455237b9a0da7f3305ffd4403d88fa6e8f3326c98cd4a19349bff87d31e8a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php:181-199 | wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php:384-402 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b64165016775274dd576fef50a51b28576b805f2bceaa1a4a280f21411f723f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Lib/ImportSession.php:298-332 | wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Lib/ImportSession.php:521-542 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Lib/ImportSession.php"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52b402836e2d6c891fcd8d1e41f5841251410012d4fc1b8150adeb39323a926"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/GenericController.php:186-210 | wp-content/plugins/woocommerce/src/Admin/API/Reports/GenericStatsController.php:221-244 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/GenericController.php"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4dd218285a84a79b4ca75187344244a3b868890beb946d6b483048364a9406"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractProductGrid.php:701-707 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AllProducts.php:23-36 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractProductGrid.php"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c93a8ff154f3f46f6a83ad11496da80e0d7720fa5b1ed78b2b63979d1272f72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableSearchQuery.php:167-191 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableSearchQuery.php:203-237 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableSearchQuery.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"c529951d9344ca50d1b510124f3bb1f61708a5161b208d1dd5a4650d6cdc9b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 137\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php:101-272 | wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php:279-415 | wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php:533-671 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 137 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12f3b62b7a52bf59cd5085ef74a9a17d031869145be0261858c6c8643462eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Stripe.php:76-100 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Stripe.php:147-171 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Stripe.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0328f32b25c0e9c34c72b62434b86fae9c818c1120c0396ff0db05da0f3af88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wp-content/plugins/woocommerce/src/Internal/PushNotifications/Services/NotificationProcessor.php:276-302 | wp-content/plugins/woocommerce/src/Internal/PushNotifications/Services/NotificationRetryHandler.php:141-168 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/Services/NotificationProcessor.php"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d74499cbd605008fc2e00d59992898b670a63e1e46cd0628dcb461106f6cfe7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 91\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Controller.php:221-311 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:198-288 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:248-350 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php:202-302 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 91 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Controller.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d757550520f1206b13179cc195d55a6012834bf25d7cbd0419fc5acee27739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): wp-includes/PHPMailer/PHPMailer.php:3991-4022 | wp-includes/PHPMailer/PHPMailer.php:4125-4156 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3991}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbba51e2e8f9074e20d5ff85e486b7d5113bc0db7d64be94c5da1ac0eff1c6de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php:55-77 | wp-content/plugins/woocommerce/includes/libraries/wp-background-process.php:257-285 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a032d4598ea8574dfb4fc4169731f407349fc0f54c814670707fbbbffea7b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php:481-501 | wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php:512-532 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"1365f2963edc01fee8a286323c6352bc7544902b116e05b7ca9751e0593d3ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php:224-248 | wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php:292-315 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66c30ce8cc2baba33e5f5e347152958c3c9bc83e311de9f1fbb648e93c3dd27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:839-855 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:866-886 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a4a62c4098fa1af9acdc4cd9a27d6fd6e700a3ce57a438ddbccd7e15d04308"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php:167-188 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php:198-219 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a736b214d9020fb03a1470b489c4f52bde7647fb872887e609d13d1e5ec3f527"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-tracker.php:1370-1422 | wp-content/plugins/woocommerce/includes/class-wc-tracker.php:1432-1481 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-tracker.php"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"178832028e6f3d7d6425b60c1e3d0691b81a1a0116725df3d9769d5baa7a172d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php:241-266 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php:280-311 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"adaaa32d3e09b790c3c49386f80448a72b0ca78f4f9154423bad552cd0280a5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 69\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/DHLShippingProvider.php:109-193 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/FedExShippingProvider.php:96-187 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/USPSShippingProvider.php:99-167 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 69 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/DHLShippingProvider.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb32def6e43ca554fb440535c02615ecfa577fe8e398410e74a7714a78d261d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:269-290 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:299-322 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae8979831aff99d9a9770a94271dce3e4f5642a411618a8ec056ba21e314add"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:64-85 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:130-156 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ba224829a65a5feb33be47f3b8ae7908b3c87b4b18c2653107ad36b1d26998"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/includes/wc-page-functions.php:20-28 | wp-content/plugins/woocommerce/includes/wc-page-functions.php:50-58 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-page-functions.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f383d0bcc28e0d65fe01339c7cf3723eb2f45177fb1f6243e769c3678e5ea492"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/DataStore.php:130-151 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:135-156 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/DataStore.php"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6a03ce9344f524eeabc448d342d01918f0ccf7beae39949452f2bc22fb7048"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:390-403 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:354-366 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6ba3845209df90500c07ae46b29aaba69e9913b57e2a4866b77302b894ccab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php:786-803 | wp-content/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php:815-832 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea329af2a2ab999c4bc28565bf6591f75fa4967df5afdb73f11b74f377ad37b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wp-content/plugins/woocommerce/includes/wc-core-functions.php:751-776 | wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php:47-67 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"36317ab8b589c4cb43b78541e7807ad6aaddabc00537c82eebb4bbe168e717fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Notes.php:200-224 | wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php:86-103 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Notes.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"7247d21a61978d21ca187adb2c877c18d2319a37e1884c58be5f81a17ef75e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php:124-165 | wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:117-156 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9003efeb59bcb528132a34a920e2d6e54cfe590a73136b43a7cd4a18e151f6ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:335-374 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:471-495 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"914ceb845dc1bc6b3b9a4e794f6067c207e1af1d826d932476aa445a2b9aaba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:503-519 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:692-714 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:781-800 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74e89eadb26550425449f621e058f6c3e21c4942bab46b9e7d79b4845814396"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 18\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:530-554 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:565-585 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:596-613 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:624-648 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:659-681 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:749-770 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47c1e916ab71f4bf59aef2b814de3f4793499fa08dd08770361877762e5a280"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1461-1480 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1489-1508 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5795094aaee6a7763904c120df2dd038063af56d6a9b8fb8137693984bf143"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 62\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Notes.php:41-141 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php:46-144 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Import/Controller.php:33-94 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 62 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Notes.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3f2f205146f609ff7af83768e3ca7829d6c7d673a68f34f9f16842b1ced9d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php:211-222 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php:295-317 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php:254-274 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5734c607eb5b6d95a96030ca0701c3e93145fcc5aa5b38e740df764cce8ef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php:835-853 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:3123-3145 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ac5d7679e79355c9915d8a78f777413532c70ebdabc62096d1a43918885619"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/BillingAddress.php:30-42 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/ShippingAddress.php:30-42 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/BillingAddress.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8dce025a974575f64c9eb85358cfa027b32fd505ea0dc4c23eafdb1ebac872"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:3475-3485 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:3497-3506 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":3475}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4447f612a889ae4ff19a2db32304339217674283af2e1be748559af7cabcd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 37\u002B corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:1140-1176 | wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:1258-1296 | wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:1381-1423 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c8e1cc4443d373782b8acb52544a15d4cf2c8c7e0661575884a2cdad7ddb40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-https.php:89-98 | wp-content/plugins/woocommerce/includes/class-wc-https.php:105-118 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-https.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd3004799c42fe7a276b8bba1f1b250b80c43057e806e54b4f0126686da2899"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): wp-includes/php-ai-client/src/Providers/Models/DTO/RequiredOption.php:77-77 | wp-includes/php-ai-client/src/Providers/Models/DTO/SupportedOption.php:157-157 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/RequiredOption.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06bb88c70c1f14d0d01e93274da220721c4248476a116d7b8bc08aeca8eb5c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php:395-430 | wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:359-393 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfa9d5351ef59726c280b68c04ff554ce7a24435bc3474c243fee981723ef6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-install.php:2357-2389 | wp-content/plugins/woocommerce/src/Admin/ReportCSVExporter.php:71-97 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-install.php"},"region":{"startLine":2357}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba29b485817740ede0287af498869156c52c6e12b75b948c422895ca572cda41"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php:356-375 | wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php:446-461 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d82151a761160579837b470324c4b35317c7dd025c508a9630bae4050601b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:341-365 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:550-568 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"276121e8dd42850469d5375e853bb1507a1d9478d7580c52237e12570b1bdabd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:285-311 | wp-content/plugins/woocommerce/includes/class-wc-shipping-zone.php:259-289 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff37f6803b6c95f54acdd79283316be33cdb8616845f979f674a818823b7f583"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-nineteen.php:24-52 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-seventeen.php:22-39 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-twenty.php:24-49 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-nineteen.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c08bad279287ca7d6c3a48f8fde8af5ccba358d4d7fe35d4e6b217579e2544"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 20\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:331-353 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:362-385 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:421-442 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:528-547 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:556-580 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03ea183bb23ae8581c5e6055e22183a1ec865fb60b6f84549741e0afa4ef94e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php:227-247 | wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php:262-282 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"44995c6202fb60044afad8f74db3bb881a5187227bfc3af12a46a16acf3d8285"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:96-96 | wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:96-96 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3076fd5a2bfbe21848ead8a03bc0f8e4b05554a5364a3c05a9507973313f1bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php:122-144 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/Controller.php:192-214 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5ffbe87cf717889e070b7661f6295ed50321c00bcc7d3ab9b800807ad8cbf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php:83-94 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductCategorySchema.php:81-92 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e9129d5877e317a7733f55b946ec3cfcf0741cab8ad5eba8da4e8147573604"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): wp-includes/php-ai-client/src/Providers/Http/DTO/Request.php:316-316 | wp-includes/php-ai-client/src/Providers/Http/DTO/Response.php:184-184 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Http/DTO/Request.php"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa62026730dddefaf96f3323292453237f8ed30ff05c0a98146c384e22b3ce8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php:72-93 | wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php:103-127 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f6b608c2af6cf7e3c6f7be001be1ae31eba323c3d3fcb8a18043126bf58c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/MercadoPago.php:113-140 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/MercadoPago.php:154-183 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/MercadoPago.php"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeb02c55be7463e84e2e626f77d6cc39ba6b8ec3ddce9188c3959d469e2ceae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php:323-348 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php:381-406 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"78aa109c1e810da3d11ac73fa8152b4ee3d39e7f1a3f5c78030bd845eaf5b886"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:728-778 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:788-838 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"77af0437965cdf792d4202905d2953ad3b27f2bcbfc0898db8542abdff6d53ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 63\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:984-1046 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:709-776 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:713-795 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 63 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57b6ec2c07a2297fa158b94833586bc7da7a55b5fb581cc64ee89faa90c7b03"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 56\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:728-783 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractTermsRoute.php:24-105 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductReviews.php:173-239 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 56 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7396227ca4e71a97afef02a2a4ff19264058aacf7b900c4ff9859dab9198d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php:580-601 | wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php:613-634 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab108f0813e64cd13b5677844f9b4c07917ceec8cc091019bc0b8fe795cc627"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php:574-603 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php:619-642 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"f744165d820be3647bebc95016c6054e14f1d6ef939305d1f1898631154a792e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-status.php:173-194 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSyncRegistry.php:239-270 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-status.php"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bb261da66c296d4ebb82b92dc3ac1c470af62f238526b5a3261edf3a6f69cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-discounts.php:736-757 | wp-content/plugins/woocommerce/includes/class-wc-discounts.php:769-790 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-discounts.php"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7d5d1d33b667129fb2818b84073c171f7ddbbf2f614be88b2478798f8ece95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 10\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:971-982 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:995-1006 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1019-1031 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:399-408 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:421-430 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:443-455 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc82065a3b9a0db6da564af7e2f3f3b02c1a15b1f9061daf171e7979597c7ec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php:790-803 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:66-82 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"669775ffd3e763fc7f9f15d5d2f317c973bd0099610c42558141ad944c67daf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php:57-94 | wp-content/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php:117-146 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"115247fc2229f90c1c89d3efbc92e744ef9b22a1af8d1974de4e32552455523b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:2088-2100 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:2112-2124 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:2136-2148 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":2088}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65fcf3b3bf8d091bdd4d1d53f05d88722d6e28eef3249a3066f44a8562e0e87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php:296-307 | wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php:318-325 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65d32126f1fcb987024516a2844a1314b0c47fe6604f13c5334d36600da1ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 13\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-tax-classes-v1-controller.php:139-167 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:123-136 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-methods-v2-controller.php:104-116 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-locations-v2-controller.php:56-75 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php:113-129 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-tax-classes-v1-controller.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70ffb2a9c436b5e7c656174f41a7130bc63fe3091ab2da1952c1da35dbee39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:479-495 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:589-605 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e5d4aca5b0d5f63820b618591007af6b72c686d0a78f6633729bfcf47ca14a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:225-242 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:1032-1049 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"328a4ef9334aca52607db1eb0888f0f59ad50bf2fd93d2cb8d041475a4d64d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/AfterpayClearpay.php:28-46 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Monei.php:28-46 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/AfterpayClearpay.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"524ddbba7413e130185c7f1b5e25fd9dbe8c0d19028a32775185520e90d1cef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/ShippingMethodSchema.php:117-136 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/ShippingZoneSchema.php:190-206 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/ShippingMethodSchema.php"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbff2ac730ae541bda7e3a2bdc59ad39f67c829a05c5039667397d1c830100ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:624-659 | wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:676-711 | wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:728-763 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"329eb10529f91003c7e334a6f262f1d436b5aa13a2a52572cce5d0a3f3313579"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:1258-1266 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:1280-1288 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc65733b417e829e603340967d5e0e38023b247f5a673f9bf6cb57e42ce45f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:132-153 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-code.php:54-71 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-date.php:51-68 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf9f218e78def9fba8926a2f746bd7adfd7f63372e2d03773e79855416dbbaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:553-568 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:805-821 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"29c5a75429e1ed7c8b431af9849406db3883249e94ba541c3c81e23e5ed03503"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:368-384 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Stock/Controller.php:94-110 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"4496de61a16dfdc9f60dba1846411b77189ac06b27b3010428ca648222c4c9e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:761-785 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:795-820 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:874-900 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:964-987 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a9cd9839bd8f0f4c283407409d9e39ddf635b12896d10576cef089c32d2577"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Caches/ProductVersionStringInvalidator.php:137-155 | wp-content/plugins/woocommerce/src/Internal/Caches/ProductVersionStringInvalidator.php:228-242 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Caches/ProductVersionStringInvalidator.php"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca89f047745211e360d00d34ed14057741a8f5fe584f4ecf327c40a50f18e841"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php:566-579 | wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php:591-605 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7dd71b685c842ab88d522449a8f502112c40116e139a732494780759d8e3e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php:405-420 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php:235-252 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed2cbc5723140ece28a131c495eb98e4a28ab237f7925dc3b79c18fd13d6f79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php:625-639 | wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php:512-526 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"1660b95de669fdb9b0cfeabd8acd805dbf852a08418727fd69ac3f7bf382ebe4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:137-152 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:451-470 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"282ac0880857c8e8b6a3129c6f19d6b7a3cc04b6fbfc7b1694bbeb93cf6677ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:213-231 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:240-260 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"492f197aaf6b6791be1badf66a29a5fca12c5f7ee6d52e31870d21dce2ae53b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): wp-content/plugins/woocommerce/src/Admin/PageController.php:557-576 | wp-content/plugins/woocommerce/src/Internal/Admin/Homescreen.php:245-267 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/PageController.php"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8a58cca80addfb94a7908adc0ebfea66f39fce32b222925ca7c377b6f57a25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:280-291 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:305-316 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:393-404 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:579-594 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"0871f0424bcaa2ca9b3902ecaf8fbb06ea88883f93707665986874580e0b01f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewOrderNotification.php:98-116 | wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewReviewNotification.php:42-61 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewOrderNotification.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ead635c9e29d26207ca9593efd7dfda4e177ef245f74a039833811ebcf5c54e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/acf-meta-functions.php:168-193 | wp-content/plugins/advanced-custom-fields-pro/includes/acf-meta-functions.php:212-235 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-meta-functions.php"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"8509917b2a5b7ca70c86bfb9b776b2bc2a5cfcf665b55c77a3dc9a9229cbb3a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-brands.php:422-446 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-description.php:74-101 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-brands.php"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee1a8633bf0870c7dc8bdfb13e50568fb3a766b2a4c321e8f8174e8af1acd9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 30\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php:162-191 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php:204-233 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php:245-276 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8bba1a5443ddfeb8b2304e5a9c4e2f94188f646fbcb741ef3dd3ddb8ef897c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:395-423 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:491-514 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"8136b2dd32edbf12ebd71ddac1d25e4dff25d700c3cc0db04a9dcdc7a895db3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:1164-1183 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:1194-1215 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:1283-1301 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b9fce435954a09bb5d764ce0b96efe401a022030bfa3a17ddf91da31d4be47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsController.php:202-226 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsController.php:235-261 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsController.php"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9aeebdb7f00a7e7ad9c36c58a4d366b94ab83b5ec8c6756e912217491d547bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.php:84-97 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SingleProduct.php:108-121 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"a22bfdf562f1320795973e1e767d3fa2fb7359b077c174eb3d1523a839b84f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php:66-74 | wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleTextGenerationModel.php:73-81 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"18670a2771f90fe55e5a0e9c6cf29ec4f1dc72a237193d2a26e731b9f7507e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-discounts.php:881-903 | wp-content/plugins/woocommerce/includes/class-wc-discounts.php:915-938 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-discounts.php"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5edcf3ea2eacb1c9e0bda16e09b722c0ffa4524e77533666127e1e7d08fbc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-install.php:487-497 | wp-content/plugins/woocommerce/includes/class-wc-install.php:508-518 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-install.php"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b89d05e541da3f7c3fbdb1030643598466e4895cb99ae8d9059ac6fe5bddc4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php:130-157 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:381-398 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa9c02a54ddda9142328da72f470344cceaf05bc4e7d3813a917e66d18b1e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wp-content/plugins/woocommerce/src/Internal/DataStores/CustomMetaDataStore.php:172-198 | wp-content/plugins/woocommerce/src/Internal/DataStores/CustomMetaDataStore.php:210-238 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/CustomMetaDataStore.php"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6576fb61e9e3e86801d38c33ab651b9936f66d930ea0dea7e007e3740a1faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/DataRegenerator.php:426-440 | wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/DataRegenerator.php:478-494 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/DataRegenerator.php"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7a0512455de2dd686e6f1be1985b19bbf4a3bbb71d22b860ada17271b0cd96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wp-content/plugins/woocommerce/src/Internal/ShopperLists/ShopperListsController.php:123-139 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/SettingsController.php:40-56 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ShopperLists/ShopperListsController.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad574e60b1bbcd245f1af2792ef2dfed8d2ac0fd77154a90280894020118195"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:2592-2651 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:2077-2132 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":2592}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea506fb6fd9e4f87c8020a4fbfb0b91771ea51e71d501d58ec7ab61e54b1129b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): wp-content/plugins/woocommerce/src/Gateways/PayPal/Notices.php:135-153 | wp-content/plugins/woocommerce/src/Gateways/PayPal/Notices.php:164-188 | wp-content/plugins/woocommerce/src/Gateways/PayPal/Notices.php:198-222 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Gateways/PayPal/Notices.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff217bc9161cd9d0d2c7b63663b8b76fcbb648ffbf9cfb3b1a317c2a3040590e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/ProductPageIntegration.php:148-156 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/ProductPageIntegration.php:178-186 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/ProductPageIntegration.php"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2eaba2694f8ce1ad43470a1d5ca23c1663297d3b1c265603854abc940f8138"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:2829-2843 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:2857-2871 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":2829}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5a05edf1212515699a80e1b16dd7aaff0ff380ee0bd09e754d37b861e10a1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php:484-499 | wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php:506-521 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/CustomerEffortScoreTracks.php"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"9446b0a9e730a6e353cffe04846f79ff1073872ac36fc590016887294350cf6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php:147-161 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php:176-190 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"8838957e9f0c4f8f8be7b5806cefc9d896a1fb6b03b2bd94e4dd2e5fd84e20b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:702-712 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:725-735 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:748-759 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95c76a15a4907fd3ce25e8238494ca6c773144debd764d4449ef701a26fac44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php:277-306 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ShopperListsNonceCheck.php:75-96 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"3872ddb68d7f58f6d5c7d8fceaa05af63846d4d92ac84d1f00046c320c8c1696"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:1202-1235 | wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:1321-1358 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b76dae4408b7a4b7c7717b0895978b6d4865519b416732e2ac59a84b458d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php:74-84 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-importers.php:78-88 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37b363b7c989e37fc160530bf6d582c7d27a344086905c59424a85ec54b087d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 13\u002B corresponding lines): wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:31-43 | wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:55-68 | wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:78-94 | wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:109-125 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c615fd5aea24ee3d7aed0f593591fa137ee7e0e98b66c60283d03271cb118b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:93-103 | wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:78-90 | wp-content/plugins/woocommerce/includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php:78-89 | wp-content/plugins/woocommerce/includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php:69-80 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"be42fa3d327b604eafb4ffd4a97a1543fe573e9844d86042adc1862d88bfa6ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CustomerAccount.php:70-84 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php:154-164 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CustomerAccount.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3530381c1337079d507679942973b220a1ce3460ed3b3b5e4770cc129d6dd50b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php:85-100 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php:112-126 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6514928287da50a8b456c0bd47f1a15570efad87b48b664f9f9e289c9f6824"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php:395-420 | wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php:146-171 | wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php:312-336 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"478bc9e594c04537ade02b4ec532af2433b30ba6dc6bf244839ab1aeb8159fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:214-242 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php:182-250 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b10a31af8c32fe347586567dc5dc2ed41387812a2f2c93fdd0ef3e0dea5a6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php:708-722 | wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php:731-745 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58aa9c115bdbdf84ec0672adefb91ea2ad32ebca56cf71e1d54a9aedc54b801"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/OrderAwareControllerTrait.php:30-49 | wp-content/plugins/woocommerce/src/Admin/API/Reports/OrderAwareControllerTrait.php:70-84 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/OrderAwareControllerTrait.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c3fe1eeb5ba608380cba2f84975c3e472d0775b0c84836bb6b08785b6a8af8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/DataStore/FulfillmentsDataStore.php:431-462 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/DataStore/FulfillmentsDataStore.php:477-511 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/DataStore/FulfillmentsDataStore.php"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5ae68892fca27c319dd906db252ced40edfc7871d054ec10ea68878cf480ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:1384-1391 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Schema/FulfillmentSchema.php:178-185 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":1384}}}],"partialFingerprints":{"codehealthFindingId/v1":"638811913d2e9f7d2f9eea34eab222f7059b9c34cb1ca5681cf132bf482fe2c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ClassicTemplate.php:111-130 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductImageGallery.php:56-82 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ClassicTemplate.php"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae924a121ace12f02dca7f8e3a88f3f7027f9840f33b157a7593d7ca72a8036c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:625-638 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:698-711 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"b250cb3a140b5a8e40c8789cdd19ac43b511460d600641ec4ed82e72590c3287"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:402-421 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:431-444 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ae95c2c9ba50bd9483089622470a68db2b8babf7c12e16aa164c6a5520c506"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:565-580 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:590-603 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f20ce38fcf71c9474598f137d1085e3ca2b26db1a57a1d500ecdb0ea788286"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): wp-includes/php-ai-client/src/Providers/Models/DTO/ModelMetadata.php:146-147 | wp-includes/php-ai-client/src/Providers/Models/DTO/ModelRequirements.php:312-313 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelMetadata.php"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4961363dcd4f3b942c0c299eed3b4d737b87fb97e6324667a866cec0f1f5a20f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 7\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:928-934 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:944-950 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:960-966 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:169-175 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:185-191 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:201-207 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae52c5ae1d756ebb4f51c07228614d3edc113725b8924c1460fbe44b3561946"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:243-257 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:177-191 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9672fcb7ab02b38daeca3922b19d546c50768ae477afd11d872f50ba14e0b14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wp-content/plugins/woocommerce/includes/wc-formatting-functions.php:1409-1421 | wp-content/plugins/woocommerce/includes/wc-formatting-functions.php:1435-1447 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-formatting-functions.php"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2ed1699a4bf09c35e3a31f5cc6f6ba8b70898397f29429c9cb7002411a0d37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Task.php:399-411 | wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskList.php:342-365 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Task.php"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d5f970cb1befd60d2292be6907f8881a0e6bdcf16d740e425c69c1a8f6b4e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Payfast.php:28-45 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Payoneer.php:56-73 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Paytrail.php:56-76 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Payfast.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c08fce94d35f544c3b05dbdb8e76643da6d332e10b66ecf89d720d41046b8d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-product-grouped.php:244-254 | wp-content/plugins/woocommerce/includes/class-wc-product-variable.php:735-747 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-product-grouped.php"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c6f224e35ea054a6d8d82c463b056755c248de919ea69d16686eb1b7d78812"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:460-490 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:709-738 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2fcdb1e49ed283134b4ee4d54e5a4f8ccf5f31493c6bdc8f111c1a6ec3501a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/Utils/CartCheckoutUtils.php:447-459 | wp-content/plugins/woocommerce/src/Blocks/Utils/CartCheckoutUtils.php:504-513 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Utils/CartCheckoutUtils.php"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6e42cd5fb64851cbb34b2ab557aab238c8f2b8a6b8c8ee15039aeed41b7b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): wp-content/plugins/woocommerce/src/Internal/PushNotifications/DataStores/PushTokensDataStore.php:54-84 | wp-content/plugins/woocommerce/src/Internal/PushNotifications/DataStores/PushTokensDataStore.php:146-177 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/DataStores/PushTokensDataStore.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba36c71e54c662038c8882285c9790baa327f200f8d59038179c6017aeb5a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/locations.php:176-195 | wp-content/plugins/advanced-custom-fields-pro/includes/locations.php:208-227 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/locations.php"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f746edd5375c75bc79c10da0cac4e994ddea30f8bfa246db23d197161e163f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:4176-4188 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:4197-4208 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":4176}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0792a9c8b6f42635b43603f6616462d139e96b7a2ac866edceb4cde4312f13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wp-content/plugins/woocommerce/includes/emails/class-wc-email.php:1141-1179 | wp-content/plugins/woocommerce/includes/emails/class-wc-email.php:1195-1215 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/emails/class-wc-email.php"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28cba26a918c404009c5e63f66584f1244d1735fc7b250bb608b890a9dff979"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:385-391 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:677-689 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"c936a679a626c23438203bf39331eefd63236900dbc482c4c7662fbe8f6467e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:217-241 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:300-324 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"992265a71122d31b3cf6ca29f0ab87c16ee2dc2489e4be354fe7dafece2e2d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/Blueprint/Init.php:120-142 | wp-content/plugins/woocommerce/src/Admin/Features/Blueprint/Init.php:165-186 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Blueprint/Init.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"72208f163a6bcfa8cc74834a4e0543c5f3a7d4318622fb932d7a95725473d26d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/AdditionalPayments.php:118-130 | wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php:353-366 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/AdditionalPayments.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68558a964f519258600ae491514a3a5d05cec62c28869c586c78797f7a14375"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): wp-content/plugins/woocommerce/src/Api/Mutations/Coupons/DeleteCoupon.php:32-58 | wp-content/plugins/woocommerce/src/Api/Mutations/Products/DeleteProduct.php:33-55 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Mutations/Coupons/DeleteCoupon.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec53e3b867e54ae2919d664c3b3c5464046424d231bb8be2b278f7727508e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php:373-393 | wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php:662-684 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c7f3b51c587dea75db88b424ef534174485724652a07305a7544dc995770d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:519-530 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php:393-402 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ad1c60b226c99658b8eada7392b8926010ceec66338fdf6666483e97048227"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php:655-672 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php:814-834 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PaymentGateway.php"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e451618ecff61cff82a594c6d60b41d7427efce195d6520b188af69571adfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 9\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-settings-v2-controller.php:117-125 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-locations-v2-controller.php:129-138 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:352-375 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php:232-256 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php:351-359 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-settings-v2-controller.php"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"82af7903466cf6ff00669ccb45eb95d37e9338ad984524b5cca1ea1a673d60c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:911-927 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:938-954 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d5ffdacc2c91961a3014fa5c37464f0682be6b8388273a268c0da88cdbe776"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php:70-86 | wp-content/plugins/woocommerce/src/Internal/Admin/WCPayPromotion/Init.php:136-144 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d025a7bc14428a215dc19fb0c239162d1e9249cbbde669d1f8a9bdaf992c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php:428-439 | wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php:536-551 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd82585079ac8aeb4403fc217ede2d7efe41ecad5cc18a2038851f15f45c005e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php:1258-1269 | wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php:1280-1290 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Orders/ListTable.php"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"655ca8f507b9c88e14b7326cd852f8626f7097522219b9d3abeb2a94b2ed6ddd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php:359-377 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php:389-404 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc2e7f0b44aa50941911c6dced97a4261c3ef5506d04b7d718fb226c380a16e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:113-146 | wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:814-847 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0022b41b3f7353057b40a55ee2aa1b0085df675a90e4f7ea3dd49f5703a2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:66-81 | wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-run-db-update.php:74-93 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e7d622a5c333555ac384d59ebc26612c3b8aaf54f58b5a7d9883b388fb92ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-order.php:2260-2271 | wp-content/plugins/woocommerce/includes/class-wc-order.php:2281-2292 | wp-content/plugins/woocommerce/includes/class-wc-order.php:2302-2317 | wp-content/plugins/woocommerce/includes/class-wc-order.php:2327-2338 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order.php"},"region":{"startLine":2260}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8a9f35708ecd0d40f283cb7edcf3e411db5384e87ee13e03c79c4e05f028e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:1009-1033 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:3278-3299 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9a1ebc3f1afb69fc420a329fda8e9fae4545ca4940368e37ab16164cd518b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php:107-117 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:2831-2850 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"48462d68176c62c34ef3face547a840e5fd1f15095e5425a7796ac0eb269038d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): wp-content/plugins/woocommerce/includes/emails/class-wc-email.php:651-655 | wp-content/plugins/woocommerce/includes/emails/class-wc-email.php:672-676 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/emails/class-wc-email.php"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb035c0ab78b77a4ab73ff5f8458b81b98c4a344dc55b7acc456138b63ce72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-network-orders-v2-controller.php:57-90 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-taxes-controller.php:74-100 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-network-orders-v2-controller.php"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09bb6cb5dffc07b4d9cbe09e86eb76f19072ffef8037e229a31c99ff8420a61"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:56-63 | wp-content/plugins/woocommerce/includes/shipping/legacy-international-delivery/class-wc-shipping-legacy-international-delivery.php:27-33 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06d9d448c003a64bd910fc626a41094bbfe841ff65af18da1ce5d638ec58bc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/includes/tracks/class-wc-tracks-client.php:101-115 | wp-content/plugins/woocommerce/includes/tracks/class-wc-tracks-client.php:128-142 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/tracks/class-wc-tracks-client.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0434fa94f2cf345a937e0ee9bd599ea57357c6b4193322555488ab1340e1f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php:152-166 | wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php:177-190 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-installer-controller.php"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"9baeceb21dae467fc1c1397f9a06807dee537e188950a8b55854bed6b7a3ad39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php:4509-4526 | wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php:4549-4566 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php"},"region":{"startLine":4509}}}],"partialFingerprints":{"codehealthFindingId/v1":"7620856f2bf27e939bf567276dbf1e48bfe570fa8c12838264a176de80344a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyClient.php:43-53 | wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyClient.php:64-74 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyClient.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5f8fc062bf6c8e664c646774be55bc69b9e342f5b79e5852561fee9344a1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSyncTracker.php:211-224 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSyncTracker.php:241-254 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSyncTracker.php"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"32aebd925637396fdc737e22acbf9e68b36bfac6f26e9b1665e77a2747e2bd07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-subscriptions-api.php:227-251 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-subscriptions-api.php:260-284 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-subscriptions-api.php"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"401bb207dbb6b8f59f5d541cf07eadead258a5a3c127ea990b37897bd5c1cccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1061-1082 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1091-1108 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd0b8f9506c67a9f4ab77843136fed06368294bc365d6d48aeef08c50e62bd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-downloads.php:234-250 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-stock.php:190-205 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-downloads.php"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6d4556b35d8465320e2d0a264065d808d761e3e6995124afc3c105942de1df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-order-factory.php:229-239 | wp-content/plugins/woocommerce/includes/class-wc-product-factory.php:134-146 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-factory.php"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7de4f17c52708f3a5e00a920b694fbe17efea0f2f180ea16ce06ace202c24f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (89 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:46-134 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:135-238 \u2014 These two members are one piece of code written twice and then edited apart: 89 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17306360665d1c739fc96a7b8f5218149a00cc22e809ba53d6e12f882ff6e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/includes/wc-formatting-functions.php:472-482 | wp-content/plugins/woocommerce/src/Api/Infrastructure/QueryInfoExtractor.php:153-167 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-formatting-functions.php"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"671597f5e70146d96f2e6ce49149aeedf8f3c2d7a3538a8e0b61d5ca6de9f982"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php:109-118 | wp-content/plugins/woocommerce/src/Admin/API/ShippingPartnerSuggestions.php:97-106 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82f5dbefc72094f9a0e7c3c1fc4700ef9d8a167ed14e69e1296f6c88ddb37f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Affirm.php:27-43 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Paystack.php:27-46 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Affirm.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a6c418f6ac162acadd9e490d1ad1b3fc7916fd08d915e52e71278670f7263a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-countries.php:492-496 | wp-content/plugins/woocommerce/includes/class-wc-countries.php:506-510 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-countries.php"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"241cb4e47d17f899dff93debec27d673bc187fe0201ccfe07d16e0d15b2ecaca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php:100-110 | wp-content/plugins/woocommerce/src/Admin/Features/ShippingPartnerSuggestions/ShippingPartnerSuggestions.php:84-109 | wp-content/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/Init.php:79-89 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"9163ecd258d5dc54dac86f718661d78e220a997d32d19638d17e277e39867424"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php:205-218 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php:228-241 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaab1a01680f65ec3b881e9690adce7385eb0300c03e5a199fa065906692b79e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php:273-281 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php:292-300 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e3fd7f3b431892465d2eed5ed04ec89b291233c74a4fa80447286165cb1d12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-coupon.php:918-926 | wp-content/plugins/woocommerce/includes/class-wc-coupon.php:936-944 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-coupon.php"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4ea391bb97bce5e5183f42238c6ee2f25de123879c9c6c6dfa7610679e1894"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:451-461 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:312-321 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1eb1a813bc6995b8c8f9431fb8b057556447b6152acba345d16bbacabe45ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): wp-content/plugins/woocommerce/src/Api/Infrastructure/GraphQLControllerBase.php:740-771 | wp-content/plugins/woocommerce/src/Api/Infrastructure/GraphQLControllerBase.php:793-827 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Infrastructure/GraphQLControllerBase.php"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc2029f247562c0ff0abaa805083a82875e5779737834bcb7fd0a92ada8181c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/PushNotifications/Validators/PushTokenValidator.php:132-144 | wp-content/plugins/woocommerce/src/Internal/PushNotifications/Validators/PushTokenValidator.php:157-169 | wp-content/plugins/woocommerce/src/Internal/PushNotifications/Validators/PushTokenValidator.php:416-430 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/Validators/PushTokenValidator.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf69b30dfdb6638b0ba671620036cb30414f418434a505dd9c7378b2ef3ba40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:107-117 | wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:107-115 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8a47d47ed91fb334009276785c104c4f04a1e44c63f90d3361c28194dec919"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): wp-content/plugins/woocommerce/includes/wc-stock-functions.php:105-117 | wp-content/plugins/woocommerce/includes/wc-stock-functions.php:136-148 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-stock-functions.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab72431ccebf657e56e42337a47cc207bc315f76f3fe4de36b8418576ca98d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php:288-304 | wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php:122-135 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91f5ce3d9e2dbcd71d9c6883d80777474578959f7d095d65fee20dfb0ddd007"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Task.php:250-262 | wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Task.php:271-279 | wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Task.php:370-380 | wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Task.php:583-592 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Task.php"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb2ead1d8c5189e5766f95a16b525fc1c0458b07a554139582585643a6afa93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OrderMilestones.php:182-201 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OrderMilestones.php:211-227 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OrderMilestones.php"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9cfbb215ebde6e09b0915f68c3376b5a7d43117a273db5b1b029ba51ccb9f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php:686-706 | wp-content/plugins/woocommerce/includes/class-wc-background-emailer.php:79-96 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7be648d0c2a8260c34b1b0fcdd589306fccf6243fb4aaa0ababf429b3d086d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): wp-content/plugins/woocommerce/includes/wc-attribute-functions.php:100-108 | wp-content/plugins/woocommerce/includes/wc-attribute-functions.php:122-130 | wp-content/plugins/woocommerce/includes/wc-attribute-functions.php:771-780 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-attribute-functions.php"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"56656c22a076095a6de65ff011d335addb0affecec74dfbc4a1aa75d3ed185a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/WooCommercePayments.php:259-270 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:553-567 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/WooCommercePayments.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba85673105b6360eb1b7eb5b2c855673997dd7b53b0ad2b085b20aa00bd8adc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php:32-46 | wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php:184-198 | wp-content/plugins/woocommerce/includes/libraries/wp-background-process.php:186-204 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6e5a2705ca6807007019e0c7987d19b88bc380c90cb0b312552185f8ef1026"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/includes/data-stores/class-wc-shipping-zone-data-store.php:26-39 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-shipping-zone-data-store.php:49-64 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-shipping-zone-data-store.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ddedac70db4040aa2caefd134c4f30363a4e71d1008f3d837773daf68cab26"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:150-156 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:84-90 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"4152138f27994125f804d000a52c4988c466d1a186b2ee3c120d1e904d45af23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Notes.php:151-167 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:302-313 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:323-335 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Notes.php"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b024fc8b1261547ea9b1fac22520478e14715f44e884bc1103a139767e0e4a7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Klarna.php:27-45 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Razorpay.php:28-45 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Klarna.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b681826afa35fdd94521e93b5cd0bb574545ca77a6ba3a53c759b1dc7f3d332"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): wp-content/plugins/woocommerce/src/Internal/ProductFeed/Integrations/POSCatalog/POSProductVisibilitySync.php:52-67 | wp-content/plugins/woocommerce/src/Internal/ProductFeed/Integrations/POSCatalog/POSProductVisibilitySync.php:80-93 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ProductFeed/Integrations/POSCatalog/POSProductVisibilitySync.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3051297633bc8a100dad3e4d5bf7a8ded65b3feddb9b4c39bf1c46874ec4c320"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:411-424 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-code.php:36-47 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bac45a8f67730fbcfca91e5e2bf329999043f04a6b10f6e5f91adda633e086f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customer-downloads-v1-controller.php:69-79 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:323-334 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customer-downloads-v1-controller.php"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ba8d28544db1f9474b27ca1cb5157304478d37f71083d546001ddb296eb047"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:471-479 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php:73-79 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"20463c881a26e76fd5c0d10e73fb578383ea3f6c83c07b44f9332114fc0f3f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Airwallex.php:90-109 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/AmazonPay.php:132-151 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Airwallex.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a43f4f97746f51784cfb0c698c7d7131c3a8faa22e71627eb4d5a377692c30b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): wp-includes/php-ai-client/src/Results/DTO/GenerativeAiResult.php:189-197 | wp-includes/php-ai-client/src/Results/DTO/GenerativeAiResult.php:211-219 | wp-includes/php-ai-client/src/Results/DTO/GenerativeAiResult.php:289-301 | wp-includes/php-ai-client/src/Results/DTO/GenerativeAiResult.php:312-324 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Results/DTO/GenerativeAiResult.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"886ebf12b68ef4278d78d787790447a03fdb2dc3c7e0b05299f8099b62a95881"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:2635-2646 | wp-content/plugins/woocommerce/includes/class-wc-order.php:2621-2634 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":2635}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fed14cebfb7d61b7fd8492510bc62bbb4289065e1d3dfb110c9e0a9ff10823"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (103 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:846-948 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductReviewSchema.php:49-152 \u2014 These two members are one piece of code written twice and then edited apart: 103 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c4d4bb173c831cc6fd0196223404b0bd2a6f9a181ac93db1345da1d42d8019"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:805-823 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:571-588 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1d1bcc04333e201eaa33f53e6e08b55003265706e4e0634f4cb1a632b4e0f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php:89-100 | wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-coupons.php:45-49 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae30a2969387de1118717d40521205eefa5409899ade39a11bbbd9bb5c18313f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php:35-48 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php:248-259 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-coupons-controller.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ffbb318e9a69142eb7fa09a5c52240f5099c96e5955fbcd4781e498a1f7f25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wp-content/plugins/woocommerce/includes/wc-update-functions.php:659-674 | wp-content/plugins/woocommerce/includes/wc-update-functions.php:989-1007 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d43b9ce303c4e193f4dc77b35a38d3ceb4dc33b176e1601b9d23b8e16640e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:91-106 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Stock/Controller.php:288-315 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f82d793bf03df78802aa7f4518764d13773358b2fc654eb9f828a4aeaaed9ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Commands/ResetCommand.php:60-70 | wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Commands/SetupCommand.php:60-70 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Commands/ResetCommand.php"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b3bf3688020f75b33fea01d4d61daa189fa2272c6836541cd4e15a9f1cba48"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wp-content/plugins/woocommerce/includes/data-stores/class-wc-payment-token-data-store.php:185-190 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:550-555 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-payment-token-data-store.php"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"42820cc8617b24e38baf333088b0410a7ef0ac0d491a9592da4a3071c70980c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/Utils/BlockTemplateUtils.php:352-364 | wp-content/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/BlockTemplateUtils.php:37-45 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Utils/BlockTemplateUtils.php"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f529ecdab1b5c1002fde313861b012265dc40d33bc765b4f2194dd5c6dac498"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsMoreInfoNeeded.php:42-54 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsRemindMeLater.php:42-53 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsMoreInfoNeeded.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"94748126ba519fd6b104457ad6ed54dda89e6fac23539d8b924c0b4dbfbaf3ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php:179-188 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-countries-controller.php:126-135 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-currencies-controller.php:124-132 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductAttributes.php:65-74 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e58a7a3d9b55908788b70ea1a03814f46f593aa03f2e12c4a5f0978375c87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/GoCardless.php:28-42 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Paytrail.php:30-44 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/GoCardless.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d42fabbc80aebab469337be0ae27c99216f4f6ff1141efed0aca081d002b1fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php:104-113 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-importers.php:108-110 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baff7b9cf477c8b575b392620b2127af7226aa393a44f153d77c47aa38fdb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-reports-v1-controller.php:94-102 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-controller.php:89-110 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-reports-v1-controller.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efb1cc017b651517efb2f5b5a8ad260c78d3013e45090ec9a52965f6dcf6673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/CartItemsByKey.php:87-96 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/CartItemsByKey.php:124-133 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/CartItemsByKey.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb558015040439a3d87179fa59e84937eaa95bcc0cf9379617369fd50469736"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Controller.php:185-212 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Controller.php:196-220 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Controller.php"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"0868ee1db7dca492f61316c76de79f01413a99ae118eae7d536949add2c4f6fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): wp-content/plugins/woocommerce/includes/walkers/class-wc-product-cat-dropdown-walker.php:97-100 | wp-content/plugins/woocommerce/includes/walkers/class-wc-product-cat-list-walker.php:148-151 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/walkers/class-wc-product-cat-dropdown-walker.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d531d1500101505762f940f6ef31f0002a80a8113f03329b7bbd9c1466d3ff6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/HelioPay.php:30-46 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Payoneer.php:30-44 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Razorpay.php:59-75 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Stripe.php:32-50 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/HelioPay.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e448acfd373e3ae2fcf533f886df389f8a694c705b87101843bf7eab14dba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-product-variation.php:106-114 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php:2085-2090 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-product-variation.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bd0a503c4ea6bc6c3fd02afc5bac63cb0845b8a23bd2c2ee92ef90ceff1b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:512-515 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php:673-676 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f961025da73f2a73b4f140a3524a1c2e4953127b0cfef07b63a4f0718a3b0bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php:311-315 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php:629-633 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"473fef796e9af544a3430ca6579b366e9b8c86aafcd4334459369000dac14667"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/Controller.php:415-417 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:426-429 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/Controller.php"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec89e448934adb3b989d6d68dbddd5dc8d6cda24c755dce3636fc251cf64e61a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): wp-includes/php-ai-client/src/Providers/Models/DTO/ModelMetadata.php:64-73 | wp-includes/php-ai-client/src/Providers/Models/DTO/ModelRequirements.php:53-60 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/ModelMetadata.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffab6fe2005ec182495999c0ff77845b1410299b0f7454b80e7558a6a3bf8ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version4/class-wc-rest-v4-controller.php:76-88 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractRoute.php:303-311 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version4/class-wc-rest-v4-controller.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb36232175c8f1e0a64f6c597522363e6fa1ccd20743ba7e25ba5c67ca92b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Logging/OrderLogsCleanupHelper.php:61-66 | wp-content/plugins/woocommerce/src/Internal/Logging/OrderLogsDeletionProcessor.php:63-69 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Logging/OrderLogsCleanupHelper.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c16e2bfa5b533f42864e16a6b8bea99a2bfb6ad917f41ff04b925ddc998baa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:495-504 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:514-522 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"041a9d1b153a00c051922c7fbed2fa10a06f09ea8e777474e484cb64d96edd50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewOrderNotification.php:135-140 | wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/StockNotification.php:278-283 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewOrderNotification.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d0514ae37bf7240c8eabf321eefb86046852396a9e27b06cd9f9c4d0d954b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php:65-67 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-importers.php:69-71 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3d7db1ffe0a7d9f51b486ee413a9d0393ed4c00b187778e0d350ffd546654c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php:746-752 | wp-content/plugins/woocommerce/includes/libraries/wp-background-process.php:344-352 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10bda4e72c143a44b9fa233b144760cd7da0e2517da52c832041460656baa72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:261-265 | wp-content/plugins/woocommerce/src/Admin/Features/Blueprint/RestApi.php:163-169 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"299e63449c33950324da98728961930bbcd0de26431dced66e2ec220748d4fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:377-384 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:298-304 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be747e0d1cb137a2b1475dc4271484a59faf7718887c54d77344f2d81b4127b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/Section.php:30-33 | wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/Subsection.php:29-32 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/Section.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c03c548f6824790ff2c393b7f6e4a6ef9ab4068a3c48ca0f6de33db0170407"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): wp-includes/php-ai-client/src/Common/AbstractEnum.php:232-236 | wp-includes/php-ai-client/src/Providers/AbstractProvider.php:39-43 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Common/AbstractEnum.php"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfe8565fd1b2a17e2fa976fcb649a5858b8bc616b4578bfc36dda1e936c7400"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:719-722 | wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:148-151 | wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php:80-83 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"1004be79be3f592ec81084d9b659146776401f65b2c8ccb6a712cdffa419d221"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-customer.php:1132-1135 | wp-content/plugins/woocommerce/includes/class-wc-order.php:1382-1385 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-customer.php"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"7668702a15c7722ba926d3d4a98164d557cdb2f3dc663942834a6693fcfe932f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:317-325 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:265-273 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php:118-126 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fab3d31af04878bd5f93010269e09dd64d9d321d16b5f59868166dc03bc3f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): wp-content/plugins/woocommerce/src/Api/Infrastructure/MetadataController.php:239-244 | wp-content/plugins/woocommerce/src/Api/Infrastructure/ResolverHelpers.php:150-154 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Infrastructure/MetadataController.php"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9951d5c7b1522943d4f65b23a25b7ca14dda9733d2defb0517601c2e1a3597a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php:784-789 | wp-content/plugins/woocommerce/includes/libraries/wp-background-process.php:385-392 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9961a0f149b85ac841f694747cf69b8b74c8a65695d851f41052efef735329f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:433-444 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:305-311 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"3daca795185e946cb169daf55f93445ff6ae9516b4c637588eda0461e9bdc1e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:630-639 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php:878-884 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a68318f339ed019b44ffc0665191fe91e1a9492205bfc0ab98487dddf3067d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 4\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Features.php:61-65 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:274-278 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingProductTypes.php:61-65 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php:154-158 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Import/Controller.php:104-107 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Features.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1bb00ea5cdaf0f882cd42db921515a9a50152c2e15e3d691b13bfaf3fa7633"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/MarketingCampaignTypes.php:124-140 | wp-content/plugins/woocommerce/src/Admin/API/MarketingChannels.php:110-125 | wp-content/plugins/woocommerce/src/Admin/API/MarketingRecommendations.php:118-122 | wp-content/plugins/woocommerce/src/Admin/API/Reports/GenericController.php:229-236 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/MarketingCampaignTypes.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"408e81e5c91bdddfde83427f884356d82965c5b89e76ae2bdb0db3ae5b243337"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): wp-content/plugins/woocommerce/src/Admin/API/Notes.php:288-292 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php:168-172 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Notes.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1df28060eea5039e5810c866a521e8c5fdadd62af283e7ffc4799e39f51d432"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php:101-109 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsController.php:235-243 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/Tasks/Payments.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77ec02ecaa4e86f1db628c6c8ace67a70947a05b6c996a424a63e64f7767c82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewOrderNotification.php:149-154 | wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/StockNotification.php:292-297 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewOrderNotification.php"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e2005182954a55907b3151df86c153e58b9574979a0055df69a790482cc183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:133-137 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-reviews-v2-controller.php:67-70 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:138-142 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18571751c15969b2404118e572a53bc1da08eb9be2e8cdba8f2129be9dec92e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:166-170 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:171-175 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de51bcd4bd6613068d51eb2220c844e8950197c8e8dd522555d959404a82da6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.php:47-49 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SingleProduct.php:44-47 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.php"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8584b22de78adfb2dfc47d11170a965b794ca748c5bec24a4cff4aef517b0edb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php:86-88 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/StockFilter.php:24-26 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"04b038624cfde9ce8873f2189e2a753251f5e54763e6dd96f4b21a72df3c795e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php:245-251 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php:154-162 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf3fdc221e1a640d6e85c440d1edfcfc6e7310e017b86afc1b47df05d49b1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): wp-includes/php-ai-client/src/Files/ValueObjects/MimeType.php:136-140 | wp-includes/php-ai-client/src/Providers/ApiBasedImplementation/AbstractApiBasedModelMetadataDirectory.php:61-65 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Files/ValueObjects/MimeType.php"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1aa2d69a69c6df9deff11de62d5a9c4eded71a093e9b83d07c10c3fb3727f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): wp-includes/php-ai-client/src/Providers/Models/DTO/RequiredOption.php:97-98 | wp-includes/php-ai-client/src/Providers/Models/DTO/SupportedOption.php:183-184 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Models/DTO/RequiredOption.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e091001e08ef85d4b09871456b339c08141cf05541dc357a7a6a1bdf753399"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:49-54 | wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:49-54 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4396ee8ac87bfadc7c11e9823af25430e2738a38526e55febc7c932b9a072a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php:75-83 | wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php:294-302 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7403e20b5e8709f29ed23cae92937167d84eb891111906e2caa2a76a39be37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:912-918 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1136-1142 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8871ededfe3a0718dadd4946927b8a59cce77f88ffcc5103c7d1f27f706633a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php:270-272 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php:247-249 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9ded19370721f7ce4bdc4a68cf0947cbce60540c7e271adb31d3e19904f6e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-integration.php:82-83 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php:248-249 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-integration.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f373d462ab5dd4bdde0c734fe788d150d9f8b731d022f6aefb7de8990202557"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-coupons.php:99-104 | wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php:165-170 | wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php:191-196 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-coupons.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d54689e0285540f6026396356278eedcfd7d31ad492873e02a092e0cf1d4be27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/BillingAddress.php:53-54 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/ShippingAddress.php:53-54 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/BillingAddress.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"59859a3ea992fc1ba05c99a18f20559a1ada1ab7f1f680b28ae408f2ff238dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/Utils.php:179-185 | wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php:339-344 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/Utils.php"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"779379ae19b3a26de1c622a40853e199acaa2389c946075a49eb9b9f644d5199"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php:282-290 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/CacheController.php:121-132 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbbe73924432c1aaebde1bd609fa757ab83c646296d90bfb54fed29aa6ca48d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-api-keys.php:46-46 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-webhooks.php:48-48 \u2014 These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-api-keys.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e81a2f0fc163236e1fddad4c37f617b048b5f864ef9c34a3994836febe5869"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): wp-content/plugins/woocommerce/src/Admin/Features/ShippingPartnerSuggestions/ShippingPartnerSuggestionsDataSourcePoller.php:36-39 | wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/RemoteInboxNotificationsDataSourcePoller.php:40-50 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/ShippingPartnerSuggestions/ShippingPartnerSuggestionsDataSourcePoller.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"358023ccd438e6cdf0e05e05f97c62af267e993f005fd4d75477384d55eddb24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): wp-content/plugins/woocommerce/src/Internal/Admin/Schedulers/CustomersScheduler.php:133-144 | wp-content/plugins/woocommerce/src/Internal/Admin/Schedulers/OrdersScheduler.php:758-769 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Schedulers/CustomersScheduler.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8760d82e04a267bfeb6603cff5f501136973390733edb9165ee54c3ae9c53c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:378-381 | wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php:616-619 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"65be6bf902320f3fbae3c7b45db965370b1e4374016b886ec403112098c4ba74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): wp-content/plugins/woocommerce/includes/class-wc-order-refund.php:85-85 | wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:402-402 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-refund-data-store-cpt.php:149-153 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-refund.php"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae2e67a1d0437354b70e3835fe9553e43e2385e8df000f4dfa3d6fab08a8106"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php:255-270 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-log-data-store.php:264-267 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"747a4a48c7579a88f158ed8396ddaa4a6fa801048be180b891423d8d6fa9c784"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-item-coupon-data-store.php:34-42 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-item-fee-data-store.php:34-45 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-item-product-data-store.php:34-47 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-item-tax-data-store.php:35-47 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-item-coupon-data-store.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd3fc6865e95a8c2c303634947b86b3d83690935ba5e5ce161fb448b9b06a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:266-269 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:264-269 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f229d2387a4edc65183175eb992cfa2b028a903e0a263df6afb4a6c2c140031"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php:200-203 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php:507-510 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php:439-442 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"9311e3b10cbcfaa681fca85076296bc3fcbc937baefb039e4b59370d02c7746b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php:213-216 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php:533-536 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php:465-468 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb9f9b3fd3bf4815e19061fdeb5fba7a9ebd90abd05d6345e84c1d8f65839d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php:87-87 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php:89-89 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifyEmail.php:90-90 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5a97a455967f7036541ac5833fce86c79d90c1c682b00cb06b53f2dd9ca9ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:331-331 | wp-content/plugins/woocommerce/includes/class-wc-order.php:532-536 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Fulfillment.php:554-554 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"20eaa1b51f1a9df8858307b932902a66dc187cefd802f5b8f170aa0567ec0a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-taxonomies.php:469-472 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductGalleryLargeImage.php:256-259 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductTemplate.php:203-206 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-taxonomies.php"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"08327a0a05676627b5415e48a6434fab279ae18e4a43b1cd78026864075d4fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:981-984 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:3251-3254 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":981}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9c377e0e07190622cf0a0019f6d1514700acb7feee9318d1a7adc9e5d4e2bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:241-255 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhook-deliveries-v1-controller.php:197-211 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"74fa215d56f8f805221b161d0b3e6a08a3ec828e4a4c9fb70335bd3cf1c54adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/VariationSelectorAttribute.php:34-41 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:45-49 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php:31-35 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/VariationSelectorAttribute.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60c0e654dd1cd6a25f84a5235e0a1d5722b2363c89fdd4c4261309a45f8c8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (93\u2013100 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1864-1956 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2246-2345 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd17a8a2fd894ac8252edafa4e24cbfa5fa71917320e6aaad37b234f2d87bcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (77\u201386 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php:279-355 | wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php:712-797 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php:799\u0060 calls \u0060get_option\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php:356\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"4360153bd5e5ff2c8aed32aa307e06c12f6a12d08942ba06a1de5688e30cab7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64\u201378 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php:422-485 | wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/SimpleProductTemplate.php:1000-1077 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/ProductBlockEditor/ProductTemplates/ProductVariationTemplate.php"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f537acaec54ff013dc6cf73c39117fd33fa624c6b625d0731c8e52a44315b1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (76 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:341-416 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:455-530 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:341\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0ee1e8e6e1019d83eabab2c0de8539fe92190449a8d926a42e51ce69b392b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69\u201375 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php:165-239 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Wishlist.php:62-130 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Wishlist.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bba63fcc5aa084c3363224ecba5235962292fa56339080f8bf06c9145a0fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201373 lines \u00D7 26): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:988-1045 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:2594-2637 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:713-766 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:2079-2130 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:2463-2506 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:573-619 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:623-679 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:961-1011 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1210-1281 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1895-1963 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:717-779 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:618-683 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:445-490 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Stats/Controller.php:192-239 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Controller.php:228-293 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:205-269 | wp-content/plugins/woocommerce/src/Admin/API/Reports/GenericController.php:119-169 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:243-312 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:213-283 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:258-321 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php:226-291 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2280-2352 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractTermsRoute.php:28-90 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductReviews.php:177-237 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Products.php:112-170 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Products.php:327-376 \u2014 there are 26 copies across 25 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 26 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Products.php:327\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:2461\u0060 calls \u0060array_merge\u0060, \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:2592\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd46ef2de61144a4818dea1b7d1b9ed7341a2f646b5aeb77718b3243535cf685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201372 lines \u00D7 9): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:205-238 | wp-content/plugins/woocommerce/src/Admin/API/LaunchYourStore.php:42-91 | wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:248-293 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:44-115 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingPlugins.php:75-107 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php:61-101 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:132-172 | wp-content/plugins/woocommerce/src/Admin/API/Plugins.php:43-90 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Import/Controller.php:36-81 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:205\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b724cc57626a0fbd9b87f3f1f27294cc7ef2ca28480c87094f08e5bf1d5e423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65\u201368 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:658-722 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:925-992 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:658\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cfaf645913670775ac33604d933b4dd8c86592714c5ba597fa1b87a0a675e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63\u201366 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:144-209 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:180-242 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:144\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:176\u0060 calls \u0060get_address\u0060, \u0060foreach\u0060, \u0060get_items\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:144\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1358e972c096143beb99365a6466e50671458b1fae8d7049bcc1e41a692df3ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201364 lines \u00D7 9): wp-content/plugins/woocommerce/src/Admin/API/LaunchYourStore.php:39-82 | wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:204-223 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:55-118 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingPlugins.php:75-105 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php:73-101 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:55-105 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:135-175 | wp-content/plugins/woocommerce/src/Admin/API/Plugins.php:40-80 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Import/Controller.php:46-83 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/LaunchYourStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/LaunchYourStore.php:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/API/Notes.php:55\u0060 calls \u0060register_rest_route\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/OnboardingPlugins.php:75\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/LaunchYourStore.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b0f37e01c8aca6f4a788eb550d298a328dfe31e04997d04750e3f8a59f48eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1132-1194 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1245-1307 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1132\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1197\u0060 calls \u0060call_function\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1311\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"6014808bef231e6f5d7cfa1dfd0effd08e196e4d85875d91aeaced0e7ba027b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53\u201360 lines \u00D7 8): wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php:174-233 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:426-480 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Controller.php:222-275 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:199-251 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:236-292 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:205-262 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:249-303 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php:213-272 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6436a62a149bed26f82a264d003c65bcda576a085b71a6c5ad903431f3abd9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201359 lines \u00D7 10): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:986-1038 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:730-781 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:711-755 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:571-613 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:621-665 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:959-999 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:715-773 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractTermsRoute.php:26-78 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductReviews.php:175-230 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Products.php:110-157 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e582dbe6615389b1bb44d2306529a471ce84a0bd9884e04696b10f200e1589d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:101-158 | wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:172-229 | wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:312-369 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:101\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"662a0051fb6f1d28337e75357cde579d33eb68956c4e21302ace70d5837cb51c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52\u201356 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:280-331 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:524-579 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6130394d6fb4f89ccbe29072b572c69665bb12260025c0d7548a66e9faebc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54\u201356 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php:156-209 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php:176-231 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"422d9acd9273c09ab8ff235d586aa75f6d3ae9b55d3b2eb1e84c134bd1284063"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:284-337 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:408-461 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb760f1510333f57f4eee1cb285fbf0c5e7680fc80f23c25066e6c95fef2676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201353 lines \u00D7 5): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:135-164 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:41-93 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php:58-99 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:132-162 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Import/Controller.php:33-71 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:135\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php:58\u0060 calls \u0060register_rest_route\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:132\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3827297032297321b757af03d8acd98712eaa5ae54b6fe160d5cd37ef7d987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201353 lines \u00D7 3): wp-content/plugins/woocommerce/includes/class-wc-emails.php:1037-1089 | wp-content/plugins/woocommerce/includes/class-wc-emails.php:1126-1176 | wp-content/plugins/woocommerce/includes/class-wc-emails.php:1212-1262 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-emails.php:1037\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":"wp-content/plugins/woocommerce/includes/class-wc-emails.php"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23bb1968c1cbdc8e624d3e14be872e522bfafb0f23cd4096f52d2940738dc7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201352 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php:114-164 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php:115-166 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 82 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php:114\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"429a6e85056db9f1471f64758bf65ea1bdead0c418472bf30496d117bab0e537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201351 lines \u00D7 6): wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Controller.php:221-266 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:198-242 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:204-253 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php:233-280 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php:199-249 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:248-296 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 318 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Controller.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2085279b5885fb21d96be5916e75a14e73ccc61ef7ee801b945a48d9700629e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201351 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-brands.php:694-744 | wp-content/plugins/woocommerce/includes/class-wc-brands.php:754-802 \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":"wp-content/plugins/woocommerce/includes/class-wc-brands.php"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de02bc019ca01bf25a7a3d3f7ca3c5406794ec4069945939b9a186d9c2d7a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201350 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:119-125 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:360-387 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php:76-125 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:119\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a642f8bf12dd79f15a1c6a650bc0752abcac83795c068560fbab37c2b221676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 3): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php:152-200 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingCounter.php:143-191 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingStars.php:99-147 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingCounter.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php:152\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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f6a1ccc8d6579416ecf21de0e0b3ad200baa150fdcd04a0fc077d67bdf4829"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46\u201348 lines \u00D7 3): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:444-489 | wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php:105-152 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:260-305 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:444\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"37713bf48fff5d163cf4e2feb195110f9e2c6ee49cfc653e09a6050df2ee44c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:234-281 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:349-396 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:234\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d6a373c3b72abf2c54ed45ba36bab00fafbf8dcb2801f5603334379c77d354"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php:216-263 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php:298-345 \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 \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php:216\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php:354\u0060 calls \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php:265\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd4293bbdff32b17efadd27d1bd17f2b61765ab6cb622adc8f07ee16dfca383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201347 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php:115-159 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-categories-controller.php:223-269 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-categories-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f6432d443beb3c563e389037e7f1b63aa2e67d5cdf984a81f459d326ccbdb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (120 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1051-1170 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1321-1440 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1051\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"704432176b5078fd92f8c3b738f6676c1b742bfa7746d3478246c540e1981064"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:168-212 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:283-327 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"19efa5826ea8020fa466ef38049b3f51a5288d3f1a09e315764fbcde8a1c0dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44\u201345 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/BillingAddressSchema.php:107-151 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ShippingAddressSchema.php:48-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/BillingAddressSchema.php:107\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/BillingAddressSchema.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab58344173dbf6eba4a9e888927e7331bccbade65348fd3a400da540a841bf0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1280-1322 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1331-1373 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1014-1056 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1284-1326 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1280\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1012\u0060 calls \u0060set_low_stock_amount\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1278\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1752d427578643deb4507f0960b6c1cd09854db675234de6067c2f6eef6ea6fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201343 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:499-541 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:747-788 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2a2fabe35e74e0e991ac2b2c040d839801b5498bff9d7712c30d4616f310fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1129-1185 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1172-1228 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:844-900 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1114-1170 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1129\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"6099059b29f3086ee506771b263f8eec110617b150d6b96f0d60f2f95cff376c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1234-1273 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1285-1324 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:957-996 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1227-1266 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1234\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc20beb97b1dd10b482b67abeb9c609a8877d5e2442fb428b1218cbc5a5bd25e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201340 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php:164-203 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-setting-options-controller.php:75-112 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-setting-options-controller.php\u0060 as WHOLE FILES: 85% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php:164\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e03960591a984acc1d25b91c4e2804f6cba069600d3089b362d1ca672b7c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1091-1129 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1134-1172 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:801-839 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1071-1109 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1091\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:840\u0060 calls \u0060set_global_unique_id\u0060, \u0060wc_clean\u0060, \u0060isset\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1130\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1091}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2aeea0aed90219f49f8f385f7da4911eb86b121244ec77ba661867b3893fde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201339 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php:55-91 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-categories-v2-controller.php:37-75 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-categories-controller.php:37-75 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-categories-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"44464e9869defa66956f19f5173a465baa710ab391968ae44acc834747bebb5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201339 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:982-1020 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1121-1157 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1234-1270 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:982\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e80b705e5963320ef2b09f54c59bc3668b179bf87d47a71ef79033531bc16d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:269-307 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-attributes-controller.php:71-109 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-attributes-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d80a40f76eeef8aa31b3a915685ed7ea42083b8dc3576d9a3c2a4f397730d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 20): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:996-1046 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:2613-2651 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:724-776 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:2086-2132 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1223-1290 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1916-1972 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:740-795 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:624-684 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:627-683 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Stats/Controller.php:365-412 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Controller.php:257-311 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:233-288 | wp-content/plugins/woocommerce/src/Admin/API/Reports/GenericController.php:126-171 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:353-411 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:296-350 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php:243-302 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2323-2375 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractTermsRoute.php:50-105 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductReviews.php:184-239 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Products.php:411-448 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 20 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 20 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:996\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:994\u0060 calls \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:626\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"2308df65d6aea72a24a32000e0b2b09bfae5279b494b0ce170726877819825f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:330-367 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:524-560 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"029ae310a19791c4a9a40e7bdf23cc89f9316d0fa915a584213cc0a222325910"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201337 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:696-728 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1095-1131 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:757-793 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1027-1063 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1095\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"0047bdc5ca2062b7a646aca1240dd79d0922fc604c247fd63cf8541e0a2c5a93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:603-639 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1716-1752 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 1018 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:603\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac027c0b666d054e66011411d2ca433ff41bbf89efa8780c97cb3b84815c19c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php:96-130 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Segmenter.php:97-133 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Segmenter.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f91c03722ff8e2c218ac4f62dfe976a992d8caf8da9e538f0dc5772602fc2b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201337 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php:596-630 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php:652-688 \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 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php:596\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdc5bcb9b5c5cb41ce57ee1b9f66538182c5661add06027fbc70f11222854bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 21): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:996-1045 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:2613-2649 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:724-774 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:2086-2130 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:999-1052 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1223-1288 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1916-1970 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:740-793 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:624-683 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:627-682 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Stats/Controller.php:365-410 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Controller.php:257-309 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:233-286 | wp-content/plugins/woocommerce/src/Admin/API/Reports/GenericController.php:126-169 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:353-409 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:296-348 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php:243-300 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2323-2373 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractTermsRoute.php:50-103 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductReviews.php:184-237 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Products.php:411-446 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 21 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 21 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:996\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:994\u0060 calls \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:626\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"d641f08c4aaa861e1bdd5b3fc2f429abfdb514536a0a22fc44b1caa68f77f0ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201336 lines \u00D7 3): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToWishlistButton.php:174-200 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php:255-290 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Wishlist.php:146-180 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Wishlist.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToWishlistButton.php"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ca901c270b0a058ed069fc93d7a368b6b83083c6a8ec7c5322aa8751c36478"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:479-514 | wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:617-652 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:662\u0060 calls \u0060apply_filters\u0060, \u0060get_option\u0060 and \u0060wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:515\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fa1aa2c4bc0ed0ef7d56263ca04027dbec4b99f2b65f8b80c80463e95c62bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-post-data.php:1030-1065 | wp-content/plugins/woocommerce/includes/class-wc-post-data.php:1080-1115 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-post-data.php:1030\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":"wp-content/plugins/woocommerce/includes/class-wc-post-data.php"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b09935fc5c9496d9704d4e987c6332a2da6ac900565d89139169eb01be87621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 4): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:191-225 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:192-226 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:171-203 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:171-205 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 184 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:191\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab99dde13735f8e1fe921254b808941ea2ffb98f664a707fb461ed2283c6339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:285-319 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:349-383 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:302-334 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 184 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:285\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:282\u0060 calls \u0060sanitize_textarea_field\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:346\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"1931be386bbe42aa1cb589acfba01cd8c91eed65e7259a518df09933d556eefc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:588-622 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:855-889 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:588\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"239a600396eba0cf6deb37744dc904286d4f8eabe02f68e3e9f5575b523e3609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201335 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:329-363 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php:132-157 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:329\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php:159\u0060 calls \u0060wp_prime_option_caches\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:364\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ce40d9660af26ee5d8c8369c62dc4a0b9957057a025371a70ca89e378a5d96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/PlatformRegistry.php:112-146 | wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/PlatformRegistry.php:185-219 \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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/PlatformRegistry.php"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"268fda5082f49e8b694f36a507de393ac905d8787227f9cb149f28e2d961240a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:919-952 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1533-1566 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"18857937b35e4ecdf1d61deccc44f4dfea4791716cd65c04a4bf8a213cc5eb76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:281-313 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php:44-77 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7fdaaa5957b6c8bc3ff56f229c00313285382a857311033d59862202d951e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php:134-165 | wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:124-156 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php:134\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php:131\u0060 calls \u0060acf_is_field_key\u0060 and \u0060wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:121\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"08843029fe74c9fecf076a5469a9b27ba596bde227c695bd99f689dbcf9a9d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-importers.php:195-227 | wp-content/plugins/woocommerce/src/Internal/Integrations/WPPostsImporter.php:51-83 \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 \u0060wp-content/plugins/woocommerce/includes/admin/class-wc-admin-importers.php:195\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-importers.php"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fe08eeeb032fec20785fc2d19ce01988bceee99dd4dff32bcfcf3a6dc16a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201333 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:610-636 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:668-700 \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 \u0060wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:610\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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea36277eeafcc73c790649d4f3df4b7d3325fa16f51c6cff547c9d32a33d2338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:307-339 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php:206-238 \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 \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:307\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"82301db1de454e92bd3ce26f46f96457f94b2973635d08109ec9c84427f158c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201333 lines \u00D7 2): wp-content/plugins/woocommerce/includes/wc-user-functions.php:479-504 | wp-content/plugins/woocommerce/includes/wc-user-functions.php:510-542 \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 \u0060wp-content/plugins/woocommerce/includes/wc-user-functions.php:479\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":"wp-content/plugins/woocommerce/includes/wc-user-functions.php"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76b32b665d2cc7569fdb1f25cb9f794e3b01ea4ff1bb387df70004f80c1e91f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201333 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php:90-120 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingCounter.php:88-120 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingCounter.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php:90\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php:122\u0060 calls \u0060sprintf\u0060, \u0060__\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingCounter.php:120\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2db34f62db68765f94d1b921941c25208cb6355e61f7ecc9e91627e7d61bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 4): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:146-177 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:146-177 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php:148-179 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Schema/TaxSettingsSchema.php:146-177 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:146\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:180\u0060 calls \u0060in_array\u0060, \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:180\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8c8889965dc63d8d24a3f4c929a3dd200a78a78f65a467508f0c3bf6a2a4ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php:248-287 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/CodGatewaySettingsSchema.php:113-152 \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 \u0060wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php:248\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":"wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a6744283c7a85969f846b24f0fc3accd67f738df640184b8cdb57cf7b9a926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:165-196 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:361-392 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:165\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:161\u0060 calls \u0060empty\u0060, \u0060is_array\u0060, \u0060array_filter\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:360\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"617a2b9210e4b4635a4bd3afc0d24f0e4850f71b4773269bb9130b627d659aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php:87-118 | wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:126-157 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb91cc78ee1ce14247d7ecf18189c98b27567a23739c5add98341d77d1cab75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php:304-335 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Segmenter.php:87-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a87666b08d52dd81d49ce9a075687edb3316d6fc7f6b71896f1181658b7bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:230-261 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php:272-303 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:230\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:227\u0060 calls \u0060get_empty_visual\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php:269\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"49572d89e039404fa65e455001e757f5e8f64e18ecccd3797f76bc69b8d19c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 5): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:213-243 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php:255-285 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:214-244 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:191-221 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:193-223 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 105 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff16ffe56516ac76054d7081f98e4c89af728b7757652b7f39b6a6e5935488d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php:395-425 | wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:359-388 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php:395\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":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"928dbaa9e950a1ea9b27664a77e566a8a411c19e7b857973f6ba595027e029bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:617-647 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php:85-115 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php:118\u0060 calls \u0060update_attributes\u0060 and \u0060wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:648\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad43af475ba0865a7150186a88aa470bae8a7ec0be233c429fcf509e8638d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:535-565 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:398-428 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:535\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbab2f942a482f450a6883375927fedfc597ee73d3ad066c74c99268556bc71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php:190-220 | wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:218-248 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php:187\u0060 calls \u0060WC\u0060, \u0060shipping\u0060, \u0060get_shipping_classes\u0060 and \u0060wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:215\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f0605c335c204041c5ff7e80e32da959d13548c8d3998064fe5ae302d38437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:623-653 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:976-1005 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d35acff783c425901dc7a14a846a81e68c39173c13a9ad2dd4005a7b94ba71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyMapper.php:421-451 | wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyMapper.php:520-550 \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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyMapper.php"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3df2c8303b562af0df8522b192de9b056f79cda80d2491f9e12da125819159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201331 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php:191-221 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/CollectionQuery.php:105-131 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/CollectionQuery.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1cd7747deb01ca82fdef9f63dc7565e3fa50cd73a25332625e3e8dc3ee0a9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): wp-includes/PHPMailer/PHPMailer.php:3118-3148 | wp-includes/PHPMailer/PHPMailer.php:3186-3216 \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 \u0060wp-includes/PHPMailer/PHPMailer.php:3118\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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cb4c6f813311f8a9e5cf037ca500fc23238a0783e251ba2cef273a94e2f43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1451-1480 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:454-483 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 1094 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"31482e0d149d3ccfac15df4fa3830084832f41b9b57b76eee6e548eb5de442ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): wp-content/plugins/woocommerce/includes/wc-template-functions.php:566-595 | wp-content/plugins/woocommerce/includes/wc-template-functions.php:704-733 \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 \u0060wp-content/plugins/woocommerce/includes/wc-template-functions.php:566\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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"329dbe0265b7d5f74b38323178c2970d88cd8d0e681686c4c6fed15d362b6307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php:56-85 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php:124-153 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php:56\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentOrderNotes.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ed1306f4d91984cd0eda07d1e9424f6eeeea125bcb0585f15505856909e6e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CartOrderSummaryBlock.php:50-76 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CheckoutOrderSummaryBlock.php:50-78 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CartOrderSummaryBlock.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d1c47a3a5d0ac5108308031d637103b1ca20702320989be93b3fa1693b4531"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 4): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:977-1004 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:365-392 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:520-547 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:571-598 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70525cce8c3b44de8f592504a00ba8d6a1d49148ad2f38a29a0563d73efec91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php:274-301 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php:244-271 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifyEmail.php:268-295 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8719fbce4c3f81143b37e464b1a06a7dc383b62f9966c1a8a808912525c513"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201328 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php:743-760 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php:763-790 \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 \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php:743\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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7e84a8be9ecda00347deb8b31a10c25328820e120a96b1b73354c8e6799b6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1514-1540 | wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1570-1597 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1514\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":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1514}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e07b329560408c76efbcbffdf2a7d7ef23da456ef8fdacdb18454ae4578f5bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:350-377 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:378-405 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 608 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d05a527e017da51aada7ec1050f233bed41b53cdcd18a99ca9240a94b6f782"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:454-481 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:591-618 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc3234f633077c606ae5db6995b6a519195a3332bfed74deba596548d0f624e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:587-614 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:797-824 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ce6721a75b0574d9912292834b7118d6a16f82bdec571fbfc4cf3246ff32eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u201327 lines \u00D7 8): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1171-1171 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1186-1212 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1214-1214 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1229-1255 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:886-886 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:901-927 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1156-1156 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1171-1197 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1186\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff89fd53679bccef81c038189bb39636370fc6b8fdd1d4de80e80215a55ccb04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201327 lines \u00D7 3): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-customers.php:169-189 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php:578-604 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:143-162 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-customers.php"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aecd5201a0f540b7820a809aff82f33dd1107ce752f6fc5463edeb02cb3c550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1747-1773 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1920-1946 \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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1747}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6870dee990bd3ed4075a1f2e91dcbd8454fd62f645313dd0c2d5cddf76d1c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:561-585 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-webhooks-v2-controller.php:36-62 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-webhooks-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed5f4a4af4a41ed2924853d25129faf8bb93c91b699212fbdd11a1e5c500dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Init.php:106-132 | wp-content/plugins/woocommerce/src/Admin/API/Init.php:199-221 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Init.php:106\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":"wp-content/plugins/woocommerce/src/Admin/API/Init.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a1cb277a7273652f8696aa92e4e6b41993f590ebcf4267bd5843d84b28dd2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php:173-197 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/RoyalMailShippingProvider.php:181-207 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/RoyalMailShippingProvider.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php:173\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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d98b7344117e25183e7128ce5d9a4d092e20f7aa51eb20e478dd39fab9de57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php:48-73 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php:55-81 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9223609f0ed14c239c21c9e1a0268d5337f9208716e8535fdf487891bfa6559d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:511-537 | wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/Incentives/WooPayments.php:307-333 \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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c009c85f165f0f5836a0f5c90137262e41a8c79b2087873a3d71b673141a33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/StoreTagsProvider.php:35-61 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/StoreTagsProvider.php:81-107 \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 \u0060wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/StoreTagsProvider.php:35\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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/StoreTagsProvider.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"17170a0f1f7872c25c2a14b59f86e210aedc12dbf166ca55f891e4979223ef66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 9): wp-content/plugins/woocommerce/src/Admin/API/LaunchYourStore.php:42-82 | wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:248-276 | wp-content/plugins/woocommerce/src/Admin/API/Notes.php:58-118 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingPlugins.php:75-105 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php:76-101 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:58-105 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:138-175 | wp-content/plugins/woocommerce/src/Admin/API/Plugins.php:43-80 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Import/Controller.php:49-83 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/LaunchYourStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 197 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/LaunchYourStore.php:42\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with 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":"wp-content/plugins/woocommerce/src/Admin/API/LaunchYourStore.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"716661fdeee4dd1fea6c6d5e756e444c8ab3c2143be1d587a4648cc50bc26ab7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:287-309 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:284-308 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php:47-72 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 126 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba98a3118398834c37a7f826c09d5fb8cd8519d3bbfd572d6c78f366cfda9a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:949-974 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:223-248 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:338-363 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"31203e7dcfa7e1bc65f3e6c193a1b0b0b3840907700de55559e08e9619771598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php:200-225 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php:170-195 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifyEmail.php:194-219 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"4215428bdbab0d0571b4f763542fd7ff7febc6e89c66ae2ae3117d0715e9b244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 3): wp-includes/PHPMailer/PHPMailer.php:3466-3490 | wp-includes/PHPMailer/PHPMailer.php:3997-4022 | wp-includes/PHPMailer/PHPMailer.php:4131-4156 \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 \u0060wp-includes/PHPMailer/PHPMailer.php:3466\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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3466}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ef238751f6fc3319ca00bda7bcca57f8f6fbedb1e60bab9efc073ef7e8227e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201326 lines \u00D7 2): wp-content/plugins/woocommerce/includes/emails/class-wc-email.php:1154-1179 | wp-content/plugins/woocommerce/includes/emails/class-wc-email.php:1195-1215 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/emails/class-wc-email.php"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb12fe3c30e4311a467aee47625f469ed6f5b15c210efd0e301a5037c897360"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:673-698 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1804-1829 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 1018 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"4808d99ef0b7798330320650ad86816e35d4f3e598a712e971989d6c9558b311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php:74-99 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php:484-509 \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 \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"930f84775eb374bce6440aa68ec3f1e285c571f26d668c2459b5a3e586b75c5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:2073-2098 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2485-2510 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:2073\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"a767e70cbdfbe567db07f845571fd54d43f965a230202d2a5a35757e65fdcdc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-recently-viewed.php:86-110 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-top-rated-products.php:78-103 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-recently-viewed.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-top-rated-products.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-top-rated-products.php:105\u0060 calls \u0060cache_widget\u0060 and \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-recently-viewed.php:111\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-recently-viewed.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c68bb12c26ddd08c7e398f3134b6f872d53b5aadfe5bcf5a562ee4c6e5d2d9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1340-1364 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1391-1415 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1101-1125 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1371-1395 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1340\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6100f7d183181175b171c7dbcd1be7b8141644aada486b8a8562cc2e12d879"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:412-436 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1043-1067 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:405-429 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:519-543 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:412\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ed946de36580e9be0ac05ca55145b50865ef36999c90b19f30409f85da51d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1015-1038 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1631-1655 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1015\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"55219f44bb3146d318c08abe8c93ecf73a33b7eba1fe49b4f8214a6d207f61b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1651-1675 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:421-445 \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 \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1651\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fff73d1f641dc696362fe7bee26474b2808a21dc19e0f362b0e9e93cad4ab6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:2108-2130 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2520-2544 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3463d330e99ea7345f117a58dab841b2568f87270598c76a553e207f2da1545a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:130-157 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:214-238 \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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33a30bd3ebf83a2c1b0e20362078544e71dcabe6d35e9ac496493e5b4bbb4dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:399-423 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:491-514 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:395\u0060 calls \u0060empty\u0060, \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:490\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1cb081748ba72f95804f92a3f68dc4ed9738152a3d3726998f8f784e18f884"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php:291-315 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php:352-376 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php:377\u0060 calls \u0060set_content\u0060, \u0060set_content_data\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php:316\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"486af09080a4a7b2a4b74296336b77cee86c7da2243704abfc5ed49b11828627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php:555-579 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php:582-606 \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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c57844385c32237ec5f365a2730f1a98bfb77a4c8c5d5ff586193e7f3a7b30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 5): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:442-465 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:499-522 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:542-565 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:598-620 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:642-665 \u2014 all 5 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"7017639cf09d046a6dbdb713ee8f7ba596164471dcb0fe077fc9e42391631474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:940-963 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:313-336 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:483-506 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:509-532 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b90452041e71f2512fb1bdca0dd3e1c0e42453d043366724fb97230b9b4396e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:176-199 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:181-204 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php:183-206 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Schema/TaxSettingsSchema.php:181-204 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:176\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:180\u0060 calls \u0060in_array\u0060, \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:175\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbfacf749266d1679be2a69aef8e5daac3cd297b282b72a341847e510662da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:303-324 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php:79-102 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php:489-512 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:303\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50c5327551d3c9d6e9c0a7f3680dc7f930cd2e8e08dd56ad7666fc041c4dcb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php:79-105 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php:150-173 \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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e690311c622dd3e59aeb414274f6e456ebd72872d01a8bf9b6b2826266d098e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-most-stocked.php:26-49 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-out-of-stock.php:33-56 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-most-stocked.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"78340b9a6b8bc348110e621a8735189cc68629d5301909a03e2c586789ecaa39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:200-223 | wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php:145-167 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php:145\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php:167\u0060 calls \u0060array_map\u0060, \u0060elseif\u0060, \u0060empty\u0060 and \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:223\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"1821dd74d97f7625df63adba01b96900f0a0fd899a6e375439dcb851d5c07a67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201324 lines \u00D7 2): wp-content/plugins/woocommerce/includes/wc-template-functions.php:4247-4265 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductSpecifications.php:78-101 \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 \u0060wp-content/plugins/woocommerce/includes/wc-template-functions.php:4247\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":"wp-content/plugins/woocommerce/includes/wc-template-functions.php"},"region":{"startLine":4247}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adf8e5ba0d25d45d5e7a13a6a6af59703e20e01ca9cd4fc688b54b02246e5b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php:107-128 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php:168-191 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php:107\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e610719d4ffc77917f4d764a2253d2ee52b14186308152cc9b1384d8b472eaa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:227-250 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:295-317 \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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0c56b79ecafd6d60c4a36a190cc8ae339be0972cde760b0c796092977188dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201324 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php:123-140 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingCounter.php:120-143 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingCounter.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php:122\u0060 calls \u0060sprintf\u0060, \u0060__\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingCounter.php:118\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e61d2164657885396bb0b37c4bc32354c39786968a5dfc52d4119bd6aea3e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php:275-298 | wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php:308-329 \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":"wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac906fcf23f9a7384f607f2fe846b227a0e2d5effe41a728a7d57fcecf99024"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201324 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:364-387 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php:160-179 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:364\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php:159\u0060 calls \u0060wp_prime_option_caches\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:363\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"1215784e3c6786b1c65cf7b5d11dadca4f1faa7cf28a337dcf3e7920973f9efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:100-123 | wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:171-194 | wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:242-264 | wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:311-334 \u2014 all 4 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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:100\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:124\u0060 calls \u0060isset\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:265\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fdef2c3be4f34b25ed720fdf7100a785999c674e7282e1e630e8940ff38efe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:1144-1166 | wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:1264-1286 | wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php:1387-1409 \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. 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":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b4ca8d33f9ed62b1acebd386980acd29cb8af24f61cb92eb3a6d190d771e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php:340-362 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:239-261 \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 \u0060wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php:340\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php:365\u0060 calls \u0060is_shop\u0060, \u0060remove_query_arg\u0060 and \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:262\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd3544afacc7900ee00f1d1f2321c762e827a80584e2764940178d7d9a072685"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:454-476 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-customers.php:302-324 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:454\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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cdd5007e13d9d609e74c50530372dc1eeece58244dc76f0b0495c791f62c8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store.php:391-413 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store.php:452-473 \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 \u0060wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store.php:391\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store.php:388\u0060 calls \u0060implode\u0060, \u0060array_map\u0060, \u0060array_keys\u0060 and \u0060wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store.php:449\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store.php"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6371104d61b6da71015140513c879a0b80be0810f8a243761be0ba99b93986eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:233-255 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:85-107 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"357785a792a201941bc0f8c498ca7422cc828ed87c73e1e4fde857559aca7a15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:409-429 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:708-730 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:409\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac0f4275d3beaff5f68487878117092c3104f6b389798dcd7ea6aef2573e689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:801-823 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:255-277 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:801\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb368e6e3a6c0a14c18d07b7ab880bfa8d33e2ac2d200b697dc477770b460dcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-nineteen.php:24-46 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-twenty.php:24-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-nineteen.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da114a79e4aff9422ab9dc11a086e5f8692ed6eaf569f7e2ef7780c01f9a6fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsController.php:204-226 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsController.php:243-261 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsController.php:204\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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsController.php"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"715d2efb29dac0476659a2a2e8a231d5337e5b7c82a40fc3fea20bd2c0057109"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:64-83 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:130-152 \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":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f1873402db1a51bdd0be3a1c26ebccdfd21dab396cb411b74ba59b4782afa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php:259-281 | wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php:326-347 \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":"wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae37507e5f565e3861e86a515842f5b9d2286d53c1f1b53875c3ed4cc12399b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201323 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:396-412 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php:182-204 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68ffb82fe670b8ed7139141f3ee117798df63ad902b7dcb1439ffc2d9703310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php:398-420 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1631-1653 \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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"723ab24a8daca871c06d1ab42eec5eb9c9df931a459855194d47b046b6ca6686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:24-43 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:188-210 \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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d076c02daeca83ee835f837f52727ab2baebe5ef658a24146ec6421adc7d84d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 7): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1327-1348 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1421-1441 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:420-440 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1378-1399 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:270-290 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1088-1109 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1358-1379 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 1094 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"63fc37b4c420c9386b116eaf2f5c0c838927f6f5cb3593c9e2a4a9dd68f916e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:175-194 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:371-390 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:300-321 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:424-445 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:175\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:322\u0060 calls \u0060empty\u0060, \u0060array_merge\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:195\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b31d4c9649d581a4fd0397311cd5ce22feaf204c78c40d82806b608d00ce137"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:231-252 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php:183-204 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php:222-248 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:231\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":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"065a9ca9c8ba25696d298bb05c8f9efdf69807654f6e22ee33c5acb599836c20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php:155-175 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php:146-167 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/RoyalMailShippingProvider.php:159-180 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php:155\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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe94d3579c412649b2a9392a6fc4c7352e08fb77452b6595e7e5f5d93c877b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php:417-438 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php:453-474 \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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-updater.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a014724a35e66e79df19f19918cde871a3e855374677194446d12ba8e76dc93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:362-383 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php:247-268 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:362\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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2eb69d969209a78fe1e6a28d7837a9ecb37172df755a676deb40bd1310d6714"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-api-handler.php:105-126 | wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-api-handler.php:138-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-api-handler.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d88a633a53a9f7e2c07852cb25180b8f893872bac9e1f0152ed83a22adb2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:358-379 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:883-904 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:358\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2870fde36954e402109444934e3c61e34e297181b70f2ef40df12c7baa494bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1041-1062 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1658-1679 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1041\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"37df7bbc4dc0d47ca97bc49d629bcf7b5a32d1308a0b5db84d012673427a871c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:493-514 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:348-369 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 148 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:493\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f50921b95b811e59469406015df414325eba359c1d7db0c9d47388e14b19ef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1832-1853 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2102-2123 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1832\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"219f34adc1dcb72dd70df2dffa3070a96f0e3443bb601a91e36c4572b9af5ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:2050-2071 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2454-2475 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:2050\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":2050}}}],"partialFingerprints":{"codehealthFindingId/v1":"d637a367f634ec46b8292d3a011ed2c169f90976b4b0895d709cc58fa85f9db6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201322 lines \u00D7 2): wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php:160-168 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/OrderController.php:755-776 \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 \u0060wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php:160\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":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"faac37c929b9e929a25a8779a4cd789e28d10211b03ce4b12c59abb291ead856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:761-782 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:795-816 \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":"wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"a65c28db3421df7c9c98eb333ea06afe2d6ad4bc610322dc557b03265e5e535c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:99-118 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php:68-89 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 300 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:99\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5a95d3c982e1c7ccd21e48f34a53678fadf8e1115db31027dffd63a26d159d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/BlockRegistry.php:213-234 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:102-123 \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":"wp-content/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/BlockRegistry.php"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6f699ef838d838054a635839af902614f563597231c81ed300633665e2416d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php:929-950 | wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php:1010-1029 \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 \u0060wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php:929\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":"wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea70f8bcc66960dd8355c32e64076ee5450167bd30825c690334855bc1e7655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartForm.php:77-98 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/Utils.php:44-65 \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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartForm.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cc6139b89a1fe94ae27ecd0324df66d2810b976f75da16f884cf6d5106c8dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Utils.php:374-395 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Utils.php:414-435 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Utils.php"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfe6a369e695bac0a4ec23ed0601d3d55650da0535358d09ca60ef3a09e877b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Translations.php:98-119 | wp-content/plugins/woocommerce/src/Internal/Admin/Translations.php:149-170 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Translations.php:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Translations.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bebcebcc236763d97e7e7bd656da0e8eebebd3a9fcb57768c61930fd7da5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:254-275 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:322-341 \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 \u0060wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:254\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:343\u0060 calls \u0060is_taxonomy_hierarchical\u0060, \u0060get_hierarchical_taxonomy_counts\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:276\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fe78516846c8f4a88e39b56c9d1686903c2c95d3f005697fb40bae02ed4c11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-includes/PHPMailer/PHPMailer.php:937-958 | wp-includes/PHPMailer/SMTP.php:314-335 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-includes/PHPMailer/PHPMailer.php:937\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a5d52439d70e76ffded49b21d91a7b3ae8ad06afe87b678a1cac834ca1a0da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:270-290 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:340-360 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-attributes-controller.php:72-92 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-attributes-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:270\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"437b7c91874d5cebf8cf8048a8cb905ad0997ac62983f32550c3fe2e4ebe5b73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1263-1283 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:935-955 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1205-1225 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 599 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1263\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"308474e27ea9d977cc7c8e40ea0491294434283556caeed0fed830e4dca051dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-brands.php:148-168 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-brands.php:171-191 \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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-brands.php"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f79cdb9eb181836dbda4b39e98745bdd4f920afaa2bdc3a38bd0744c8580b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-cart.php:1170-1190 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/SignupService.php:431-450 \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":"wp-content/plugins/woocommerce/includes/class-wc-cart.php"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"053ec0f33a6524bc97844a984744ee1c41c9b8b7057b6e70a7d0b4c6cb4b12ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:230-250 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php:435-455 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0dad7ebdf590921793110fbae824a74281713070cec40746ed0fdccc9fd18b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:354-374 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:645-665 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3ecdb71751fd53d854bc1f5a4a7f36877b1b8305f17df915a1fb982a98b712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201321 lines \u00D7 2): wp-content/plugins/woocommerce/includes/wc-core-functions.php:757-774 | wp-content/plugins/woocommerce/src/Utilities/ArrayUtil.php:47-67 \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 \u0060wp-content/plugins/woocommerce/includes/wc-core-functions.php:757\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":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa28c3d8d5a4e01eafbd2a3559ae780eaa78f8e85ca849a0ad2433ddd9a9c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php:70-90 | wp-content/plugins/woocommerce/src/Api/Queries/Products/ListProducts.php:158-177 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Api/Queries/Products/ListProducts.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Api/Queries/Products/ListProducts.php:186\u0060 calls \u0060connection_node_info\u0060 and \u0060wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php:93\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2662314bb97fac5a7c792dae7ec0fd0d897d06122442ea8824ec66328167231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php:99-119 | wp-content/plugins/woocommerce/src/Api/Queries/Products/ListProducts.php:199-219 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Api/Queries/Products/ListProducts.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php:99\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7117fd27c176c173b23423d3633602982ab266a67b795f6886dc2a3faae6e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php:668-688 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php:691-711 \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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Payments.php"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5bb60b39db1e8da97bdbb563e95787df991e9076b43bd5d5737513df1673b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:917-937 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php:352-372 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41cbd59aebdea181262a53f6a58811ff0a8b704d28e8aa51a158ba4e883a92f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyClient.php:156-176 | wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyClient.php:230-250 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Platforms/Shopify/ShopifyClient.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3f3ef87e40c8607e3c940837f7d49bb8db24c322919943aa387d1d6b60e8c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php:229-249 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php:260-280 \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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d104de6948883c1e7aa0695b48599ece1dd32b6ebde24f1575f263678d4e70d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php:104-124 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductCategorySchema.php:102-122 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php\u0060 and \u0060wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductCategorySchema.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php:104\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7c6c7cffd382738a034faa0bed6f024268475eead9d1e3336675f30659dfa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-products.php:199-218 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-recently-viewed.php:88-106 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-top-rated-products.php:80-99 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-recently-viewed.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-top-rated-products.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-products.php:199\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-top-rated-products.php:105\u0060 calls \u0060cache_widget\u0060 and \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-recently-viewed.php:111\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-products.php"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"853f960bcbd28719389d57ddea65a1a66c4358daf76661bf5c84ab54e834554b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-api-keys-table-list.php:215-234 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-webhooks-table-list.php:259-278 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-api-keys-table-list.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"166360b360a1cb2dc85e4117fd2f16eee3f6739c6e96021f39cc3b6c6a4716b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:485-504 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:740-759 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:485\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dabebf2bfa38629598e41d714d4e52229d8771405faffe8c81f1c3808ec6072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:862-880 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1459-1478 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:862\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"7897f9ac83b0c825c198e8d51b70cc5add25fda4b3db0fa813b5964c3a576612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1675-1694 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1752-1771 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1675\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d32bc3c626660742b266ec3975e08e3cf21f90c1955840ad59c3259c4b6d5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-twenty-three.php:24-43 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-twenty-two.php:24-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-twenty-three.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0014c3455893c11b8f82a367315bd39527c85b79a998d8040b169ce094639ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php:630-649 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php:365-384 \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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"c216d6dc06b824a6e58f94c56001b4280f3af7636a32265d2318e152f00fdf30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/RemoteInboxNotificationsDataSourcePoller.php:66-85 | wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/RemoteInboxNotificationsDataSourcePoller.php:205-224 \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 \u0060wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/RemoteInboxNotificationsDataSourcePoller.php:66\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":"wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/RemoteInboxNotificationsDataSourcePoller.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0e6be929b7ae8e3a62f3e4b492e62242042e698bf9cfbc836ac743e130910d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartForm.php:109-128 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/Utils.php:76-95 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartForm.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c5d6c069e5ec63322a2e5a55156877d4d20159867a15d0afdae761dff9c454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201320 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:2509-2528 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableRefundDataStore.php:85-98 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":2509}}}],"partialFingerprints":{"codehealthFindingId/v1":"71cd37beef2be3750022c4fae39bc5ba0d151272be4576ada15dac5e546200d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php:753-772 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Schema/RefundSchema.php:352-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a457c8f4d91400eebfb731d2e150dd5762e286ef0f4065a89c98c86de2f90e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:338-357 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:278-297 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 155 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:338\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb809b51027bfdc8dfdad1140824ed2b988dbb92c375fcec4c775c05a7e22e75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/ListTable.php:762-781 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/ListTable.php:783-802 \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 \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/ListTable.php:762\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":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/ListTable.php"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"78916f1f7eeae484e1c22de42b1924e0d38d160c5b9e5a674d648ac8881e087b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:481-499 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1251-1269 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:336-354 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:923-941 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1193-1211 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 1018 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:502\u0060 calls \u0060isset\u0060, \u0060set_tax_class\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1270\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bd71b885339d081baf782ce337bbd8da336a2a4d5de558c9c6a8cd5c19c088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php:414-432 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php:503-521 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php:676-694 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php:791-809 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php:840-858 \u2014 all 5 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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailApiController.php"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83e8dec737c0d265afec5044fb597820225a449c35e684a4a9bbbb469fa750a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Schema/EmailSettingsSchema.php:162-180 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:159-177 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php:161-179 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Schema/TaxSettingsSchema.php:159-177 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Schema/EmailSettingsSchema.php:162\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Schema/EmailSettingsSchema.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c3da0141eb69273eb68b92782d72076151f3774b6c7a0b806173d352dab1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php:201-221 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:567-585 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-webhooks-v2-controller.php:42-62 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-webhooks-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"49616f04d8c5fbcc4c37b820af868d3a10310a6a596fdb26667d7f7bb5379485"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:440-458 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1108-1126 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:433-451 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:440\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c2875215c9eae1f53bf5904f7d22a58115b89b3df8a02827697f311378de88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:223-241 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:228-246 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php:224-242 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"34150b37a91c4698f231a5996fc005695409584522cd06466a79f9c11d7eb3c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:481-499 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:762-780 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b39c2880ea9e23eedfa3482ab99b93b06783a61e3d19d33c510f464e9d2c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:964-982 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1579-1597 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b462f81f7c9369389603f005586bf817b85eafa012d3a99899bf7833d7e034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201319 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:631-649 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:482-491 \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 \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:631\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f83c3dbd40c09b28fa87baeeda1827126878825310b616800faca700cbe9f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php:243-261 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-setting-options-controller.php:142-158 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-setting-options-controller.php\u0060 as WHOLE FILES: 85% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"74992872d66134bfb2753884952b1eeb331e0686dbae7b772dda73e7835d4943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:496-514 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:678-696 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:496\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:673\u0060 calls \u0060add_filter\u0060, \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:495\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7160f090adaf1f637d44ce24a1ec5cc87f4a5dad813c11a5276d93effe515c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wp-content/plugins/woocommerce/includes/wc-stock-functions.php:165-183 | wp-content/plugins/woocommerce/includes/wc-stock-functions.php:346-364 \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 \u0060wp-content/plugins/woocommerce/includes/wc-stock-functions.php:165\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-stock-functions.php"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"899051a393002a703b043e38a5ea95598adc94d80dc98381b2c52bcfde5d272d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php:292-309 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php:340-358 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php:292\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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"10be94b566c9b3915043bf8268810e0795cc5f196fe467efa2ffbb903561eb04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:601-619 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:640-658 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:601\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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"c752d987f02e7a4bc4db4c5d767879a242eee4d52f23d760fd0dbbc67231406c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/AssetsController.php:483-501 | wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminAssets.php:511-529 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Blocks/AssetsController.php:479\u0060 calls \u0060update_block_settings_dependencies\u0060, \u0060wp_scripts\u0060, \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminAssets.php:510\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/AssetsController.php"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e2aee6561a4aa1659d318ef39e6ba612e6891f02a1cf5e0c4637b11e61a5ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php:502-520 | wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php:530-548 \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":"wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65d00eb5570abc579202261e6c2146eed7ac224ed01a7a328d16d74471707a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1451-1466 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1569-1587 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:1569\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af41bce076897fa3fb3ce0165b42294f9d6af88f38c81e4f68c04b7ae46c318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 14): wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:56-73 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:79-94 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:96-111 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:113-128 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:130-145 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:147-162 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:164-179 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:181-196 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:198-213 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:215-230 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:232-247 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:249-264 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:266-281 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:283-298 \u2014 all 14 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 \u0060wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:56\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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"073eb570b1cb04f572b1449ed022494132dd249af78c7d731916b09bc644ff6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 10): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:417-431 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:324-338 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:288-302 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:433-447 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:392-406 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-custom-fields-controller.php:111-125 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:374-388 | wp-content/plugins/woocommerce/src/Admin/API/MarketingCampaigns.php:118-132 | wp-content/plugins/woocommerce/src/Admin/API/Reports/GenericController.php:79-96 | wp-content/plugins/woocommerce/src/Admin/API/Taxes.php:142-156 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/GenericController.php:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f187b4f21181bc5695ff9699819b5b88abe1be45c308ebf0955b8bda7684bca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 9): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:671-684 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:347-363 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:435-452 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:569-585 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhook-deliveries-v1-controller.php:171-187 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php:106-120 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php:98-114 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-webhook-deliveries-v2-controller.php:39-55 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:45-61 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"82217d3e2139f2bb94f6ac7548f5d401dfddbb4f4bef62558cacff452a41f346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 6): wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-eleven.php:21-38 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-fifteen.php:22-39 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-fourteen.php:22-39 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-sixteen.php:21-38 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-ten.php:21-38 | wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-thirteen.php:22-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/theme-support/class-wc-twenty-eleven.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24f5c9933d6b039cfd0a6c783fee62b59c5742fc2a7826a5e401bd041a876d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:161-178 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php:175-192 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Controller.php:226-243 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:157-174 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:149-166 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 105 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:177\u0060 calls \u0060isset\u0060, \u0060unset\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:181\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a61da688799f2cd935b799ceea397b5ba12522ef37d8c427338a66d9ec5f6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:324-341 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php:223-240 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/CollectionQuery.php:119-136 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/CollectionQuery.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae8f4eb93569857f634cae3f15056a847dea2f88d7bfdc106c523078c324eda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/Admin/ProductForm/Field.php:28-45 | wp-content/plugins/woocommerce/src/Internal/Admin/ProductForm/Section.php:27-40 | wp-content/plugins/woocommerce/src/Internal/Admin/ProductForm/Tab.php:28-44 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductForm/Field.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e42edcf8fa41df00c4c5cc5f7d6e81ba5cb285da7d08daf157ab4134e974f24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:64-81 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:129-146 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:194-211 \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 \u0060wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php:64\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":"wp-content/plugins/woocommerce/src/Internal/ProductFilters/FilterData.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c357280424fcf8019df586a0a571f963ca3fb058198c75c63f6edc4b599ac031"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:443-459 | wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:580-597 \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 \u0060wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:443\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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"090d00e56356172472994abf6fa385e354968918f306b47515d4b1ac9cd2a009"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3314-3331 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3760-3777 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3314\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3778\u0060 calls \u0060absint\u0060 and \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3332\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3314}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfd8808be654047170a400b5d684c5d8e304135b830223c084e3ded05e410cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-customer.php:105-122 | wp-content/plugins/woocommerce/includes/class-wc-webhook.php:70-87 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/class-wc-customer.php:105\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":"wp-content/plugins/woocommerce/includes/class-wc-customer.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb880b9bdda49f5b2500a13f7f13ceb3ea0c26c19d101c7b8748c95bc5bfa84d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-structured-data.php:339-355 | wp-content/plugins/woocommerce/includes/class-wc-structured-data.php:386-403 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-structured-data.php:339\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":"wp-content/plugins/woocommerce/includes/class-wc-structured-data.php"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"733544365868d86c9a5397201f2423b99235b5fd8fd2edcd73bcb6e75a3a4bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1088-1105 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:239-253 \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 \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1088\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":1088}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1db6f63692ebafa5bc013baa421099f248e13357d57df7c4697f275db994b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:257-273 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php:36-53 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28f60446aa35343d6ebd6c6c3261dfda701b778e5ea8a21862464f3d7098374"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:406-423 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1024-1041 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:406\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1042\u0060 calls \u0060array_map\u0060, \u0060explode\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:424\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8bf0858ac624422155bceb42120a1e4526523f43495f90b83e9b33b9ba28bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:103-120 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:259-275 \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 \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ac6c90d09e0c36a087d18154d622b7f6d02af45c31dd0e9c34820a8060c7ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:140-157 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:231-248 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"46958b0e4c5f144f8eee438be742260422367fd507249c09fc85608abcd565e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:560-577 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:827-844 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab28d6a76d689a075cd5a06290534901eea7c42921701f0782a7569fcc4b4983"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201335 lines \u00D7 2): wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php:129-154 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/OrderController.php:716-750 \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 \u0060wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php:129\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":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"aafce9146e86548ffc4fb121bc0ae8681ca96f59cf76d7310d23b9f93c49af9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:527-544 | wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php:196-213 \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 \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:527\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":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f79c203dac2d090a2f5845f2dd8de73dc9ac757dc79e0ee5f6f2bdf79fb7e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:309-323 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:462-479 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:309\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"26106a6e90978781d17f6d354817fb96c731fa8c310118297b25e82f60ba61c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:161-178 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:187-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. 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":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2109962bb6ff3b308e0aa384ffabff127ce341e0068647452a6d89c25eef6ceb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php:272-289 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php:574-591 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php:272\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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aed96c8d4688821e3dc158f77c2ad0160a5f041ab9f8c673a91ffedb85f3845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:139-156 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:198-214 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95c90d458b010388cabe60dc5cc4cecb043d54e9895818f1f9afc8b54aa9bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/OrdersQuery.php:86-104 | wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/ProductsQuery.php:92-109 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/OrdersQuery.php:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/OrdersQuery.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"980e2b71fce5cbc926f71aae12d98380e6b453c3b883494c604da37c4d686698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:988-1005 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php:499-516 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:988\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"46984fe169bd1de37f3d2b4befb73226d28c5fde5f5786f90fdf8f415da5af23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php:286-301 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php:610-627 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php:286\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a327f179debcfcedac138fc8c3ec1ddd9ec16f6abebf1fff13d03b83d41e517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php:1073-1091 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php:1093-1111 \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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8eaef449de88da772a3677b3951074b07d606e9ce09bb0d77197231bbb8fc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php:127-144 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/Controller.php:197-214 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php:127\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"98be117efef3433f245c5aec09bbc2776ae47af49bac67c310c6a91c31dadb11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 7): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-coupons-totals-controller.php:90-106 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-customers-totals-controller.php:101-117 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-orders-totals-controller.php:76-92 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-products-totals-controller.php:80-96 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-reviews-totals-controller.php:79-95 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Stats/Controller.php:111-127 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Stock/Stats/Controller.php:59-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 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 7 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-coupons-totals-controller.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2716d2cbacfb09fa90149ed30fd087b48533b401d65ffc1beb067e2ae497ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 4): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:284-314 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:348-378 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:301-331 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:288-319 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 184 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:284\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:282\u0060 calls \u0060sanitize_textarea_field\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:346\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82a145257c8eb54d3ef2f7dd24b4763f44d138673724c76fb5f8a4f6d422639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php:132-147 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php:212-227 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php:234-250 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php:132\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b62db213365af18e42b902c9bfbcfb8ae7eb7e21ad8acd767eb93bf2f7eab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-api-keys.php:105-121 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-webhooks.php:307-323 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/admin/class-wc-admin-api-keys.php:105\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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-api-keys.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b973f8618e959d86ff5e98407a41351b4846f808b414ed24acc14fe97a85c8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:1415-1431 | wp-content/plugins/woocommerce/src/Internal/Orders/CouponsController.php:55-71 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f4d2f6c60248167e30b2e1604b963d9b8b4b755310049f8a7f8c2ee840dc69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3405-3421 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3477-3493 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3405\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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3405}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1b187995bf6348aa6443e66f9c115ff9f03e3c2d9b3a2e0805679238c809ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:86-102 | wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:238-254 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:86\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c1f4cf15b982377403ce0f3c5b3731f85b8be4c1810a6f119dbf23a6833aed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1546-1560 | wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1599-1615 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1546\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":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a86bca9b3423bc46b1ce97cf5c936dc0631eaceadc0bac9ac9b66257e916233"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:266-282 | wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:297-313 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d255c29b4d63e3fcbc4a3d3df8ccc4ef0c96a82ddd06f41f051d2e962c84d4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:261-277 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php:296-312 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:261\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f94b913f2a1102dea34d2bbea58b57432b3a228ae0244d7579d6c0286d762aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:228-244 | wp-content/plugins/woocommerce/src/Admin/API/Taxes.php:58-73 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Taxes.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dea433b34c7fc07d5f537c572bd11b0eb32364d5d91b3be354224a6ff9292b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:640-656 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1771-1787 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 1018 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:640\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a5b64e7cc09b5b976ce01a2fb1d39123d8808da35a9d7f8355793a3c5ba74f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php:263-279 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php:298-314 \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 \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php:263\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f80e9794749901b4818db0eca546fbada22eb0153a6fe4f1924644c182fa843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 2): wp-content/plugins/woocommerce/includes/wc-product-functions.php:835-851 | wp-content/plugins/woocommerce/includes/wc-product-functions.php:854-867 \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 \u0060wp-content/plugins/woocommerce/includes/wc-product-functions.php:835\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/wc-product-functions.php:869\u0060 calls \u0060wc_apply_sale_state_for_product\u0060 and \u0060wp-content/plugins/woocommerce/includes/wc-product-functions.php:852\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"132e9d9428ba5cf242d645aee18237aebca1332788a161fb07abd1cf6cf2e16f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php:359-374 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php:315-331 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php:359\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php:334\u0060 calls \u0060include_extended_info\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php:376\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed438038440a30a6d833e6fffd43be29fccb019f5f3e9037e1e0f84fffb6cdf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php:419-433 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php:491-507 \u2014 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php:419\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ddaad43cfa0086eb91107b0e5ff92946ec7ccdf2b746106f048b02ef101d5ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:562-578 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:649-665 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"296a58a459693a07d8fbd75af9306de571376f158974f3452a883ff8fe303dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php:231-247 | wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php:266-282 \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 \u0060wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php:231\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":"wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b3a6d511d8695cc40fa822be299126515ad14fc5f88b2bba5c95b180293da1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:104-120 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:70-86 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca495fa9fd7d6284d3dcf2e3e70555307cdcefa335413234893dc725e718f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/OrderAbilityTrait.php:141-157 | wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/ProductAbilityTrait.php:456-472 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/Traits/OrderAbilityTrait.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f593b85b75b71916b6ad79d07d600912a98bdf8dbb9e85a3b88cf1a70635a26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:405-421 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php:487-503 \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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a7b60e80a2ca9037b266709e48946540b8f26d0052d398bab70a4f6e7790d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Orders/OrderActionsRestController.php:512-528 | wp-content/plugins/woocommerce/src/Internal/Orders/OrderActionsRestController.php:645-661 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/Orders/OrderActionsRestController.php:511\u0060 calls \u0060get_param\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Orders/OrderActionsRestController.php:644\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Orders/OrderActionsRestController.php"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"930628c2d139c7944bdba15b4cb4bb9a416fd7731997f027a46ee48b8828ba09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php:21-37 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifyEmail.php:22-38 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifyEmail.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 76 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf190de00882f656c62d302914605350a00fcbd06ac67cf905c147227d9927e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Schemas/ExtendSchema.php:221-237 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/ExtendSchema.php:255-271 \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 \u0060wp-content/plugins/woocommerce/src/StoreApi/Schemas/ExtendSchema.php:221\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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/ExtendSchema.php"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5522e2a991b68f5fc83f9a482a747e4dc44fdac4e1ccc589dc2603f39d14580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 5): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:199-211 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:405-420 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1023-1038 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:385-400 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:499-514 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:194\u0060 calls \u0060empty\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1019\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d789332a20cdf51048cc5893029b128c93e8565d43df5e04a68fc91b8cbe70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:678-693 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1071-1086 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:733-748 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1003-1018 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"84880e2418bc55bc7f261f67a78a09b1ff5806f8dcbc19db41c2b8b16a793c6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:440-455 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1108-1123 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:433-448 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:561-577 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 223 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:440\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d5e3d98fb14ab744fb114f730d612ca048ab851368cb6dcd709611e1c22a5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 4): wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php:128-143 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php:413-427 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php:208-223 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php:230-246 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e035e911c2ec471a4e4dcf95caa3ac8b3fd2ab61ce4582bca3c34257d92d4ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 4): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:252-265 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php:155-168 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php:155-170 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php:294-307 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:252\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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"013a0379540734f29e4dc230f5318ca18b9f3a37e4ab5f07517bc303de8c7cc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 3): wp-content/plugins/woocommerce/includes/class-wc-order.php:189-204 | wp-content/plugins/woocommerce/includes/class-wc-order.php:409-421 | wp-content/plugins/woocommerce/includes/class-wc-order.php:500-512 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-order.php:189\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":"wp-content/plugins/woocommerce/includes/class-wc-order.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9371ba2927dc7ecc7371e6f34ab94e591a605aa16594cdbfc7c44135e78520c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:237-252 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:309-324 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:89-104 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2ff061f82e503ee40a73c1d03147919a71eced69134b4e7e57542390ec49fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1528-1543 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:542-557 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:405-420 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 1094 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1528\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa3a64ecd8bc4d6f64957dc09936b6c99fcf9abe2a93b1c544845f02fa67d2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:173-188 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php:187-202 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:153-168 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 105 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:173\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd01a910b03f115da8641605e5696f05846d9a028228ccc89fd9403346c23a6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:344-359 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:297-312 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:284-299 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 190 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"b752cc4b49c9f1a05c1fa978b770c9195b428f2be958da436256f8a10c55beb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:278-293 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php:478-493 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"f162a85abaaac0bd5bc6deed3599cb70fabf5c5aacb0f863905cdd6cd8852215"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:2024-2038 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2427-2442 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":2024}}}],"partialFingerprints":{"codehealthFindingId/v1":"1877377f9d5e1b7d8abeb31b7add24da84a0a4740a0fa4840f41b379064499fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:2160-2175 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2589-2604 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":2160}}}],"partialFingerprints":{"codehealthFindingId/v1":"865152f0a07fcd3fbdc70c78303e15789528af807d93436c00df11338ba4bb5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Plugins.php:265-280 | wp-content/plugins/woocommerce/src/Admin/API/Plugins.php:379-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Plugins.php"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7065ec5f208586490b8dbf4f8416abc68f7729df93710e39d7b314d212327b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:449-464 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php:645-660 \u2014 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:449\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c26439d9a7522899da98924b34b594c109c84bf86ea0c5ca54ca75d6df644a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201316 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php:94-100 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php:70-85 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php:94\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e488509d56a9bd4e6f98a6a41d52bcf790e14e85b527c153cd5f71273e47acb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php:149-164 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Segmenter.php:152-167 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Segmenter.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php:149\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9d46b3390e7429ed10b60d43d678b7231bf5ae2752421ef4e5a22c82c0cf76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php:558-573 | wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php:584-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"a002093451278536d80cf45650c7f74b55d3b9952c55962b710d9bd365343efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php:788-803 | wp-content/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php:817-832 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php:788\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":"wp-content/plugins/woocommerce/src/Database/Migrations/MetaToCustomTableMigrator.php"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6b7bd07b4ec2932a10505d2d56b3014a6b2ba323cb9a23d924d67cd4e60f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/ProductCreate.php:95-110 | wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/ProductUpdate.php:137-152 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/ProductCreate.php:95\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":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/ProductCreate.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"69abd44d9f73659e4dc31b31042a10b31046d9c6f7bef8a5de39de10d5d74f00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:950-965 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php:385-400 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd09b228d76c35d5df5425459c04d742a61fb921dc38888b12c98048e0037e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:279-294 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:326-341 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:279\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:295\u0060 calls \u0060sanitize_textarea_field\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:342\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"819749c937c567c0d4184a6885f2aad4247d10a7bc0071f48effd39d30188f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:359-372 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-customers.php:223-236 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-category.php:265-278 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php:613-627 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbadd4551404b65a327ce51eef4f796829c2935b8b28af50b172aa2456263e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:279-293 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:523-537 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:167-181 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:282-296 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c74797df98b5fb34547667fe6d8d54506736ac9fb62811803e9a0a3186b667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:864-875 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1461-1472 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:666-677 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:933-947 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:864\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2170239c886a8fb8eaa5cab2de5f48aa58080588c79105c64d1bca961c36f07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:168-182 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php:182-196 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:156-170 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:148-162 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 105 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:168\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a06144fbf4f466b493a50c4e4f03fe373a5560dff653095efb19048190dbdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:1235-1249 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:1301-1315 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:1346-1360 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:1235\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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a0ee08dd241d849ffa83080082f20d79623bc14cb79a165eab537871bb5554"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:347-361 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:231-244 | wp-content/plugins/woocommerce/src/Admin/API/Taxes.php:61-73 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"901327794d3faefb19df7e44343b4168be6f85a45a0dfb042a7536819173ab9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:173-187 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:211-225 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:268-282 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6f23be80ec9faa617ba0d94dc9677c0b77977570dc5658c4099ffc46836b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:229-243 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:252-266 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:297-310 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:229\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"3603db87706eea7413aed43e24ff77854180f7e01adcfb84aae02c33efb53426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:309-323 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:462-476 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:508-522 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:309\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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"25267f83a9826efa045de89ca502f6c00aa511e3623ec2add1844be56e9430c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php:279-292 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php:349-363 \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 \u0060wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php:279\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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"3923a0b53a951b93da893557765f8bae5530178a0f8b3503b7bacab91907a3fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:2258-2272 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:2394-2408 \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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":2258}}}],"partialFingerprints":{"codehealthFindingId/v1":"906428c8423fe99fa1ca52be718fd518694ea7da805ae0de534c07b74cf15506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-rest-authentication.php:261-275 | wp-content/plugins/woocommerce/includes/wccom-site/class-wc-wccom-site.php:149-163 \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":"wp-content/plugins/woocommerce/includes/class-wc-rest-authentication.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8252a0daebcde7b0210d1fb564eccbdea9c15d06b69bec66a55da167cda2c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php:487-501 | wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php:518-532 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"342e6b6c706476e9097108415406d64fd834ff2bcda7eace9b9219d4183e910d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:465-479 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:312-326 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"304bd1990559eb0e17fbcd3ce97e0ae2e9e2ee6c56dbe8fb7cdaa4c21ab06b40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:177-193 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:306-322 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:177\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:324\u0060 calls \u0060update_option\u0060, \u0060get_instance_option_key\u0060, \u0060apply_filters\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:194\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ecfd37f3474111306dc6255af52412c277329c69eab8715954d5a3d7815f4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:327-341 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductReviews.php:116-130 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductReviews.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:327\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:323\u0060 calls \u0060wc_rest_check_product_reviews_permissions\u0060 and \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductReviews.php:115\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11b0ce873d1baf3146079f691b8cc0b207789cfe52fc7cbb490d2f318f2dfc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php:259-273 | wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:303-317 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8192a344d11f9e7b3d91930808df943f84b80b8bae237319e49f82b290d2144"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:256-270 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Segmenter.php:147-160 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:256\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:271\u0060 calls \u0060get_segment_selections_order_level\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Segmenter.php:161\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5668027b8242ff29c5b0f0e7d052256b569c4d7487807c4ade1333e396a3b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AttributeFilter.php:25-39 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/PriceFilter.php:27-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AttributeFilter.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9b8997a7eaee9ab866072b11e79dcf1dda8cb29bc40bca7dd2787f762a4662"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php:142-156 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php:140-154 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"7daf0dedcbdd51b5f65dbe7ce962d9c375143336d503531b2cdce8990155d1db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php:3156-3170 | wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php:3189-3202 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php:3156\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/PaymentsExtensionSuggestions.php"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a1a15b8a98a14bad118aefb6e85342241328ce5262de3143eadf5ddb16c19e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-includes/PHPMailer/PHPMailer.php:3179-3193 | wp-includes/PHPMailer/PHPMailer.php:3221-3235 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-includes/PHPMailer/PHPMailer.php:3178\u0060 calls \u0060endBoundary\u0060 and \u0060wp-includes/PHPMailer/PHPMailer.php:3220\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3179}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1cfca059633a2fdfc73e4b9fbdc2cf22a54e9c02d1f017b1db8cee6ac14c3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:465-479 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:238-252 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:312-326 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:849-862 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:290-304 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:424-438 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:90-104 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-attributes-controller.php:92-106 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:848\u0060 calls \u0060get_post\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:288\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0dcd9b175f6e5bfef0f1391ccf2e6dddbe54dcd475549598eee569d46aed788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 7): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1203-1216 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1473-1486 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:476-489 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1246-1259 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:331-344 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:918-931 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1188-1201 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 1094 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1203\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:490\u0060 calls \u0060set_date_on_sale_from\u0060, \u0060strtotime\u0060, \u0060isset\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1217\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"af897ed0de0f5ca6d6a03a7b73937ec92d617fb1d74ca34320780a3e34e4aa14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 6): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/CustomizeStoreWithBlocks.php:68-80 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/CustomizingProductCatalog.php:66-79 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/FirstProduct.php:69-82 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MigrateFromShopify.php:60-73 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OnboardingPayments.php:49-61 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OnlineClothingStore.php:80-92 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Notes/CustomizeStoreWithBlocks.php:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/CustomizeStoreWithBlocks.php"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be0610f5c4f84b9bc3430f3562309c9edbd0827cd39a09cac7c59f4122ca6f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/CustomerTagsProvider.php:34-47 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/CustomerTagsProvider.php:53-66 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/CustomerTagsProvider.php:72-85 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/CustomerTagsProvider.php:93-106 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/CustomerTagsProvider.php:110-123 \u2014 all 5 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 \u0060wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/CustomerTagsProvider.php:34\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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/CustomerTagsProvider.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f73c890296d9e1e8905d8aa46464b3f41de857a3ef8054ff19edec2c9b833b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1020-1033 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1506-1519 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:518-531 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1637-1650 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 1094 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"4920161515a716e0ad3a1c2c8b194cb070a64c0d1bcfce51d53bd3528119b686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201314 lines \u00D7 6): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/DataStore.php:217-219 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php:135-148 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php:435-437 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php:215-228 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/DataStore.php:228-241 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php:238-251 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/DataStore.php:217\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/DataStore.php:224\u0060 calls \u0060add_sql_clause\u0060, \u0060get_sql_clause\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php:133\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/DataStore.php"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8ad6fc8ae90205993b5bf40e2361de4e9e9f309054d329e30c8dd8923fc94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php:256-269 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php:297-310 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php:338-351 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php:350-363 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 107 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fad6f948c2eb3398dfa35c992924ace59a8097f57c92c4f44ef7471b0e817e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php:140-153 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:258-273 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php:37-53 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"243fcfaf37b2ca9217293a29e4c3cffe7e288efb3efb46d410ed4ac9842a2c9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Eway.php:29-42 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/PayUIndia.php:29-42 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Paytrail.php:62-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Eway.php:29\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/Eway.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e3220db61a7f3bc8b471b335cabeefdeeb90c01c0056e1106aafd8c24bb0d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1461-1474 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1489-1502 \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 \u0060wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1461\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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad36f6adfb14fe4b0e232bc64f78b56269352c3884c5e8d3f73d2dd67371862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-customer.php:526-544 | wp-content/plugins/woocommerce/includes/class-wc-order.php:639-657 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-customer.php"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"96960a379153b9dda8686c2bd6954b5d4ff9a7101bbd536dbc7d5d5d161123f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-product-attribute.php:80-93 | wp-content/plugins/woocommerce/includes/class-wc-product-attribute.php:109-121 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-product-attribute.php:80\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":"wp-content/plugins/woocommerce/includes/class-wc-product-attribute.php"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b9f119bfe60afcb759594b149988275a3a6ffefcff363744bb3cd21c489159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:196-209 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php:66-79 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1f595ba24fbb5dde23b3e68d5c697acb5b39e13787a66562499b6438440115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:181-194 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php:368-381 \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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d3ccefb2affb62c25a965c7cbcf1919aabc0f2a32b936a0ccc89dfe775f91c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:482-495 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:592-605 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:482\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":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d74dbf1a2a8606431a97713200593c2e38dc9d8558795bd5b76d33de94cad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:765-778 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:915-928 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede2f2f6f2c20eb80804075dc5ea29d6ee1babb0a7af5495e58e6bbc0d3e01d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php:231-244 | wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php:299-310 \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 \u0060wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php:231\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php:311\u0060 calls \u0060log\u0060, \u0060wc_print_r\u0060 and \u0060wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php:245\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Gateways/PayPal/TransactAccountManager.php"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf29f0c1c592685cdd036dfad892309ab1e1b3dc80e95d545a6c6b49257747b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Marketing.php:179-192 | wp-content/plugins/woocommerce/src/Internal/Admin/Marketing.php:195-208 \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":"wp-content/plugins/woocommerce/src/Internal/Admin/Marketing.php"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bd68116a4fc97516bfcef5fc198a93899efdd4a28db80733a5b72bf38b53be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsMoreInfoNeeded.php:63-76 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsRemindMeLater.php:63-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsMoreInfoNeeded.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b51a57ce7bf32a0b723f99efb57bfec0601d6aff0a89bc39fda98e03d473d4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201314 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php:932-945 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php:957-962 \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 \u0060wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php:932\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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"230d992d8b28a79e702fe417ef5444a69fe16e6ea64b0f590bedf35c9522433b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php:541-554 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php:598-611 \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 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php:541\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfdf6c30f70322f330299ffa7a7fa2ac801be042b4a15c30c0c6a61c854a90f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php:306-319 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Schema/TaxSettingsSchema.php:271-284 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Schema/TaxSettingsSchema.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php:306\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"492f6824ce44d0441f4c65f08d7d59f6a9c6a120f546761122b99eeb9a905f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:408-421 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:431-444 \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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"694c8ea267eaa9e82ec7edcb826a0ace7f37e943723dd294c88980c799d9c473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201314 lines \u00D7 3): wp-includes/PHPMailer/PHPMailer.php:3106-3108 | wp-includes/PHPMailer/PHPMailer.php:3165-3178 | wp-includes/PHPMailer/PHPMailer.php:3238-3251 \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. 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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3106}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c66fdcae5bd75aa0c7adee32fbb2b4a36116797a9d3c54e59054d31c7f1b772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 6): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3315-3328 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3405-3418 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3477-3490 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3536-3548 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3707-3719 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3761-3773 \u2014 all 6 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 \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3315\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3778\u0060 calls \u0060absint\u0060 and \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3332\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3315}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5155d46f22916776939c3c914c94a07a87fd985b5d8ef40a37d64a2806ec66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 6): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/EditProductsOnTheMove.php:55-65 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/GivingFeedbackNotes.php:41-50 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MagentoMigration.php:84-94 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/ManageOrdersOnTheGo.php:48-58 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PerformanceOnMobile.php:52-62 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/ScheduledUpdatesPromotion.php:79-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Notes/EditProductsOnTheMove.php:55\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MagentoMigration.php:75\u0060 calls \u0060save\u0060, \u0060get_note\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Notes/EditProductsOnTheMove.php:53\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/EditProductsOnTheMove.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"399718151158068ec1d81ae99318e05e9b61746fd85baa5facc92fd4ccc5deb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 5): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:197-209 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php:239-251 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:198-210 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:175-187 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:177-189 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 105 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:197\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e45ac9ccaa4acce64b1fd167ab0ddf6b0ed45ff4cadbc56e3e1012582b3f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:110-122 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:171-182 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:208-220 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:265-277 \u2014 all 4 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"607407b490be41547b809b73b53e42b254c581734ea2d603d3726f12b86e9a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:608-626 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1721-1739 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:465-477 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 1018 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:608\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"436d3817d076c75b844157340241541a7902746c0de2cf1b079e1b335393a4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:1367-1379 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:632-644 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:899-911 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef4e39898370b39b1cd5ab378efebf1612a00a4c5eec627e4ac496dc3fadefb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:479-491 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:504-516 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:589-601 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:479\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":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"59ea7ad773fde3029762907bab19a33c2161f1b1bc78facfa4e20578a63a8a7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): wp-content/plugins/woocommerce/src/Gateways/PayPal/WebhookHandler.php:138-150 | wp-content/plugins/woocommerce/src/Gateways/PayPal/WebhookHandler.php:175-187 | wp-content/plugins/woocommerce/src/Gateways/PayPal/WebhookHandler.php:207-219 \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":"wp-content/plugins/woocommerce/src/Gateways/PayPal/WebhookHandler.php"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"493951bab0300d56e2dd65d5e030cde89cdb47d99ab36163f8f027ea0286154b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:24-36 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:131-143 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:188-200 \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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b86321a18421416467a402572412e40cd14ecb658a1f67fcb264fcec329a2f99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php:96-108 | wp-content/plugins/woocommerce/includes/libraries/wp-background-process.php:295-307 \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 \u0060wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php:96\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":"wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e0886118a2b235e24a4ea597ae55fd896864f7513e14c09619fb4bb958690c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php:317-329 | wp-content/plugins/woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php:200-214 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php:316\u0060 calls \u0060_deprecated_function\u0060 and \u0060wp-content/plugins/woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php:199\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a01a2ab8ef134bc70ccc8cf480918904dbce43ce417a7b9356778b5cf8c780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1778-1790 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1951-1963 \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 \u0060wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1778\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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fff28bcb9297f55cb951c34a6e4e31c38dc833f69aa5153fd5a113e3ddf8a54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-product-usage-notice.php:342-354 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-product-usage-notice.php:369-381 \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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-product-usage-notice.php"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadbf77ac8cc1633a4d1f5fe27bf693c3f73344fe7b3fd2d38435bac9228ead3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-run-db-update.php:188-200 | wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-run-db-update.php:270-281 \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":"wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-run-db-update.php"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6c66daab199a94f9f1a644d7d1459eb467f3c273f3bcb40006bc4c822194d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:339-351 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:407-419 \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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1c3f0ab852a4e81eba5c0c2babb3bc9bc6995433a247e8eda36cc74510bb39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3246-3258 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3325-3337 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3246\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3243\u0060 calls \u0060format_tax_rate_class\u0060 and \u0060wp-content/plugins/woocommerce/includes/class-wc-ajax.php:3322\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":3246}}}],"partialFingerprints":{"codehealthFindingId/v1":"feef48083d03abd8d6f33ab9f32443a5aac57a258195e48d34aab09da5b4e809"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-customer.php:555-567 | wp-content/plugins/woocommerce/includes/class-wc-customer.php:698-710 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-customer.php"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4921653c00d1657114f70c78c21d62f59cbc814d8c4df67dad997d0d31a32fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php:566-578 | wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php:592-604 \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":"wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de5d49c5b90812ee05f972c1f49797a3e72a8feaea640ffbcd12b8c6967c2d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:919-931 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:3445-3457 \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 \u0060wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:919\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":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"021b75847cb0970eab47ff1e2e49dd5bed879cf5ccd030897c9eccd9832661e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-grouped-data-store-cpt.php:27-39 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php:598-610 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-grouped-data-store-cpt.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"847c68726eb1eeead972882ac6d54d84feeedb3be7cf4f646626bde70764f3a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1513-1525 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:390-402 \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 \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1513\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b08036d90af4512e267507e739ed8b3da56b40dd75cfdc8472fe16e49d67cef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:408-420 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php:404-416 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php:418\u0060 calls \u0060wc_attribute_taxonomy_slug\u0060 and \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:422\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53e6a48040d11519682baf2b7f17569e9d8e586c0a8ec30195e8e998f7538e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:448-460 | wp-content/plugins/woocommerce/src/Admin/API/Reports/PerformanceIndicators/Controller.php:458-470 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/PerformanceIndicators/Controller.php:456\u0060 calls \u0060usort\u0060, \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:446\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d69a87f00129035b1e08b7e10266d339d8a99a0463d8b44e7a70fdf7b46d57c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:1513-1525 | wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:1659-1671 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:1513\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:1526\u0060 calls \u0060check_invalid_scan_rate_limit\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:1672\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":1513}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e338b7f260d16b6125ca2538dc67b99e29df852c296470a169377e3b7cf23f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Notes.php:200-212 | wp-content/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php:86-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Notes.php:200\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":"wp-content/plugins/woocommerce/src/Admin/API/Notes.php"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"56db979bbf7ef292a4678728d7516aadfcbe96d5d90efb5e1dfabb38726f4cce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/OrderAwareControllerTrait.php:30-43 | wp-content/plugins/woocommerce/src/Admin/API/Reports/OrderAwareControllerTrait.php:70-82 \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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/OrderAwareControllerTrait.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0929f51b76336aaa29ab535e24d7508e0fc92e700b0620024ee39bfa530655"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:94-105 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:289-301 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece72b6f572fa704eac45c3cc37fc2150e05d7a1aa2d96fb8ed46126140bf312"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php:577-589 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php:642-654 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php:577\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"42143f2cd88416fd8afd2ec29ebfb453b9d430eed408ff4f127488f1245e99e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:407-419 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:588-600 \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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"f492a54f53353b98edf998d32c1ae7d864881e06da170538de7f0cd86c585165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php:225-237 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php:770-782 \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 \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php:225\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php:784\u0060 calls \u0060do_blocks\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php:238\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b073f4175f98638e69b56f835cee04b70a3fd9c32df04bdb029b8fedf72d6c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationNext.php:63-74 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationPrevious.php:58-70 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationNext.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"74efea96eb442237432b5b16667d2c805641451e62a7f0551f6e95ee3be5ff82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:424-436 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php:226-238 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"f975f2900ea6323321b1badd6b131399749486af73e664d1eddd560aa4c32da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:847-855 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:874-886 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:847\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":847}}}],"partialFingerprints":{"codehealthFindingId/v1":"069930836bd95397d6ace12bcde0a0f08af13287e344b3cf065868dd02038d89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Caches/ProductVersionStringInvalidator.php:143-155 | wp-content/plugins/woocommerce/src/Internal/Caches/ProductVersionStringInvalidator.php:230-242 \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":"wp-content/plugins/woocommerce/src/Internal/Caches/ProductVersionStringInvalidator.php"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92d811f7b9d81158ac9dfe59d5a12c7bd21eb1579718e4aa880b3c1b07dcfde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:34-46 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:300-312 \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 \u0060wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php:34\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":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/PersonalizationTags/OrderTagsProvider.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da798ec5a64274585c4c0a5bb311f973dc39624c0c757e5a787d0d4356ae514"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:568-580 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:591-603 \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 \u0060wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php:568\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":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/Agentic/CheckoutSessionSchema.php"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"941f617c1b7bcbb578cb235331de1590470c71225dcf6080d7fd006ca10ab8d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 6): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterActive.php:97-108 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:256-267 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterPrice.php:175-186 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php:159-170 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php:159-172 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php:298-309 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterActive.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"15490bdba966455c569f24651217339ee1f0ab09b8953eadb412d06d3a85d0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:278-289 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php:325-336 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php:305-316 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Schema/TaxSettingsSchema.php:270-281 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 103 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php:278\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd94fd04875dd12bb0f6b4eb88ded3a299bec110b326773fb9717d42745e5d07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:141-152 | wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:190-201 | wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:229-240 \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 \u0060wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:141\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":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf497e964756f43d923455e106be6c89ca93ccca19cbaedad33ede8202e9121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:676-687 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:944-955 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:363-374 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:956\u0060 calls \u0060maybe_set_item_meta_data\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:689\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f11312b2b7a089dada40f71127a78873094d2093c10eb9abd448cc9787951e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1455-1466 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:458-469 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:304-315 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 1094 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1455\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2d433d70e0ff0969db7719c59dbbd61f717944b31edc3767e42944fb784c97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1491-1502 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:502-513 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:357-368 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 1094 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1491\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:514\u0060 calls \u0060wc_get_product\u0060, \u0060get_parent_id\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1503\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1491}}}],"partialFingerprints":{"codehealthFindingId/v1":"12af857d81aa36d63a83f9fa52483e237a9ff1148cf658e5daf3fb7225da9b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): wp-content/plugins/woocommerce/src/Blocks/Templates/ProductBrandTemplate.php:58-69 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductCategoryTemplate.php:58-69 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductTagTemplate.php:58-69 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/Templates/ProductBrandTemplate.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/Templates/ProductCategoryTemplate.php\u0060 as WHOLE FILES: 85% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Templates/ProductBrandTemplate.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba39134ef6ae8e6f0357334b047cf17ef617a06a0c686ad67540641870553c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php:213-222 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php:308-317 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php:263-274 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 107 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php:263\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afc6e151397fd57a5ee97b870e5fd26bb3a4cc9d288cf12f168dbe99507ca20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:234-245 | wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:251-260 \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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7612eae7b1cd140001979e27aae06c030331a12442c823608a022bac30665c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:280-291 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:332-343 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:372-398 \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 \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:280\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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ab096f3324bb05c32f3463b3b52a99954709d715ae5e687fbaa0aede4933f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-background-emailer.php:175-186 | wp-content/plugins/woocommerce/includes/libraries/wp-background-process.php:319-330 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-background-emailer.php:175\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":"wp-content/plugins/woocommerce/includes/class-wc-background-emailer.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c700eb09ee421792e04804d9e552c8c44a9b51bb799d16fb4682e01c105d661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-post-data.php:461-473 | wp-content/plugins/woocommerce/includes/class-wc-post-data.php:497-508 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-post-data.php:461\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":"wp-content/plugins/woocommerce/includes/class-wc-post-data.php"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c770ff4c95646b1df8d90ec2b62bbe36deef91a85ff82edf7392cc5a1b332de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:570-581 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php:431-442 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb75034ace71eb55dae0ab7ea4ce6a6a8c8a808ca59482b22784719df34e1853"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:1682-1693 | wp-content/plugins/woocommerce/includes/wc-term-functions.php:462-473 \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 \u0060wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:1682\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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":1682}}}],"partialFingerprints":{"codehealthFindingId/v1":"24cf1ae566738d6ea769d5d2f0590944c820246ee9a9dcf95ee286ad683d92c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php:492-503 | wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php:543-554 \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":"wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fab509cb18da8661328796819411563f9e9752582da2255137089e1e7102b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:403-414 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:500-511 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8e3e1a697d241c5c0f6e475923fa4c158636def4d5419eda417021fb739543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:508-519 | wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php:331-342 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php:344\u0060 calls \u0060get_term_ids_sql\u0060 and \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:520\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fc935297645fd3633d7316eea9c7cbf3cd4ee06db7d400b65ccc33955bf87e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:296-307 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php:390-401 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:296\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca22214fc7d770b3677db3ac6ba12eb67b032074e1535624e580026d2c115f38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php:154-168 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php:158-172 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"124dfec5f3a1b4c724de5730f90a9974a24ebd262836f8b892d17db4bbb01d1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php:179-190 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php:182-193 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb1b685eaf5cec1599242682d060e9cdf84dea500ecd45f4901b73dbb8ad6150"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductDetails.php:227-238 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductDetails.php:262-273 \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 \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductDetails.php:227\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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductDetails.php"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"274b958761d356782228c69db14039434d3563ce8b7dc63ddeb88fad9e605fb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:288-298 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php:390-401 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:288\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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd2f6aba034158fe15e48985b458fade2c05504939c2a0645415cfa9759c698"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewAuthorName.php:26-37 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewContent.php:26-37 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewAuthorName.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4f358aa5134aacfab2893cceb66cfb41f0d5c1a7fcdd9183cec5210115454a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsAdmin.php:124-135 | wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsAdmin.php:147-158 \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":"wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsAdmin.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"596d634f59cc5b3648054d5c7b010eebbd65dea6725d43aab2276330d3e1ed7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:98-109 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:169-180 \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":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd30e8e043f4e3ea065ec2c422e32384606b436b26fd01a23eab97cf72a6760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php:1472-1483 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php:1489-1500 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php:1472\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"f027d0f818f7ee2dae37d4ecc56a41779eccca44c1f8b10e30c6412c37301817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:530-541 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:624-635 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:530\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0adf2a7a389c11a841169d68d8ef9f33966e8546a26a8f5e122ba35ab6c71ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUIRequestContext.php:377-388 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUIRequestContext.php:415-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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUIRequestContext.php:377\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUIRequestContext.php"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1d3b68ae9f7341a5f50919d1e889b66288ba807385cdc621bd5ead4eaf5b5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/ShippingMethodSchema.php:125-136 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/ShippingZoneSchema.php:195-206 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/ShippingMethodSchema.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff641a8945a137a3a3e7a5f0e797ec715e23351ebc1191773f5ad4839865885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php:114-125 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Checkout.php:149-160 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php:114\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Checkout.php:162\u0060 calls \u0060get_route_error_response_from_object\u0060, \u0060getError\u0060, \u0060getCode\u0060 and \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php:127\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2938f6599ce5a5ca60f5040be29c5f9a018125658bb1900330531111bdcdcc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Agentic/CheckoutSessions.php:165-176 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Agentic/CheckoutSessionsUpdate.php:230-241 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Agentic/CheckoutSessions.php"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ca4963e179443e660a34cae08d63a6fba8dd372796df2766ef1c4dd96dba77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Agentic/CheckoutSessionsComplete.php:183-194 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Agentic/CheckoutSessionsUpdate.php:150-161 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Agentic/CheckoutSessionsComplete.php"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ea9364a5920d3e4771e1a834498bb1c7abbe2b6a55196641bed4c3b721979c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 21): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:206-221 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customer-downloads-v1-controller.php:117-132 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:212-230 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:346-364 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php:150-166 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php:88-104 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:454-469 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-shipping-classes-v1-controller.php:63-79 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-tags-v1-controller.php:63-79 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:624-642 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php:222-237 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-customer-downloads-v2-controller.php:51-66 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:211-229 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:270-283 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-categories-v2-controller.php:72-88 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-reviews-v2-controller.php:93-108 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:338-353 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-methods-v2-controller.php:153-168 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php:50-63 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-categories-controller.php:72-88 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-refunds-controller.php:103-113 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customer-downloads-v1-controller.php:143\u0060 calls \u0060str_replace\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-methods-v2-controller.php:179\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8646743b08d3d5c39f885693b3a7c0c7e23dce68f2fabdcc353b5577dddc50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 6): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php:52-60 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/LaunchChecklist.php:50-56 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MobileApp.php:43-49 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PersonalizeStore.php:53-59 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/RealTimeOrderAlerts.php:47-53 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/TrackingOptIn.php:62-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php:52\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b42e432d346164e038cb9793b0b8b5350e510be36e6fb91eae192ac369c1510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1222-1232 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1273-1283 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:945-955 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1215-1225 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1222\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afed0984e806918eb5f15f32779b54ab32db3363ea725e6d5b836aa6f35c3aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php:96-105 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php:81-91 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:114-123 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Controller.php:85-95 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cacbb4299fd89c83509b36a19bf48dd94d16c7d6efce1033e9646af9635e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php:154-164 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php:145-155 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/DPDShippingProvider.php:399-409 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/RoyalMailShippingProvider.php:158-168 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"320762a330be4e89fc986ecc858062c7b8327fcd49e5e111b631cd87a6ae7a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:124-134 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php:49-96 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php:132-159 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/OnboardingTasks.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 298 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:124\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6e1ac9bf68e2be4546792c01123841e5b16007a870024fb632f153e5291404"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:467-477 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:811-821 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:265-275 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:467\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2f9f2b84d4d8fac592ecdd30ba30afdf8290cee4e79f62b2549f355be299b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:352-362 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php:799-809 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Schema/RefundSchema.php:424-434 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd43092a6e91c1fda7b00d7bb141f4860da3263a697988f85b282bfa1b446a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:215-225 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:834-844 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1104-1114 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php:215\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc63f9a89b23db2ea1bb891d5b469c8ea2ba2c940bbd7da319dadc8010b7bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php:163-173 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php:248-258 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php:330-340 \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 \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php:163\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/HandlerRegistry.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2856d40fb6154e73521ca1dcdc3e18a812e22d3bc034f2e620b064c4fb3de3e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:1664-1674 | wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-order.php:152-162 \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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":1664}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a577bb8e58ea666f74fd2bf77dcf4155d1153b93166af80b8a97e7b874d02d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-brands.php:769-779 | wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php:433-444 \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 \u0060wp-content/plugins/woocommerce/includes/admin/class-wc-admin-brands.php:769\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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-brands.php"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"9628a1dc5453cc939d20310fb8d383e5665efb9101b0fd725e9c2a0c507838fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php:434-444 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php:563-572 \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 \u0060wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php:434\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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf61dd99f344086f0b11d9a783106a3258f21473f9f38d1161bff4e5e456ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php:295-305 | wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php:312-322 \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":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2d303637eb925e78d70891ce58555b102af2a993fa0a0d613bce84ee68c683"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-customer-download-log.php:50-60 | wp-content/plugins/woocommerce/includes/class-wc-customer-download.php:57-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/class-wc-customer-download-log.php:50\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-customer-download-log.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c108d7992aea865607dbd66dcd32ae95dde9858457454ea2b5a6332494b537"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1420-1430 | wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1434-1444 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1420\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":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8eae7d002cdf6bc6085cf7495a29588f41f41eb598263358721798f9a83fcce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:337-347 | wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:387-397 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php:337\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"868669ba0ed3c9bc0fc025e8717425af20d8c9d03690d001fe6f61ccb42f1a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php:83-93 | wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-item-type-data-store.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0891cfbf64fb90217242b8d5ff61d543d2137eb5d3da8f6b97654364d5fe91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php:1173-1183 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:3228-3238 \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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"078ab2f3c13c189b54c2bc66c88c9b20cdcdc2bb7bbe9d7480d4336c6ae532d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php:683-693 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php:705-715 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"25863b17e7c01eb01e2f1b999429ca6998b05689c1a8b0dc8f7cb2ce20b2e77d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php:181-191 | wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php:384-394 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3763e562249f31bb0d3293d1d5f155c5b3472641d11f48b18118b7a7fde331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:266-276 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:299-309 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec88e4b35095c44d664a2b31ec55cf0c02a3940f6f971520e5f4be64e4f6371"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:727-737 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:114-124 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:727\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:127\u0060 calls \u0060unset\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:739\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"736a4a9c5f7f2f265190d8bf66f70ea0a671e976af9e2708263ef9678e8db47f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:840-850 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:298-308 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:840\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5805dc723a93ad0e9abb70c60b354aa66cc14c8abcfc9e294d41630d514729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-locations-v2-controller.php:63-73 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php:117-127 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-locations-v2-controller.php"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"84364096ef80e4a9115c5573b47f06b34672354f630fc268e647a7e5b959962e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): wp-content/plugins/woocommerce/includes/wc-update-functions.php:1329-1338 | wp-content/plugins/woocommerce/includes/wc-update-functions.php:1342-1352 \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 \u0060wp-content/plugins/woocommerce/includes/wc-update-functions.php:1342\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":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":1329}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ab138fcb97a8c74e472eed8ec6647dbdb370cf427b3c524406da72adc097f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/DataStore.php:262-272 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:322-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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/DataStore.php:262\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/DataStore.php"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08f5266f1c3f5ac0fefbe315f7366ddc06ddbcabc9bea4dc65168837e766309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php:602-611 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php:353-363 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php:602\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php:600\u0060 calls \u0060get_var\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php:352\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"d814eee9267cd19609be7edf0e3eb6f55ee3b832a5ba87b64419d842a19adb46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php:47-57 | wp-content/plugins/woocommerce/src/Internal/Admin/WCPayPromotion/Init.php:113-123 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8018e9dacff9e692a62a8abdc557df708c035020b5abc684b82b6406bb0b2b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CustomerAccount.php:74-84 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php:154-164 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CustomerAccount.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e33caf3aea36b0d12ff21c7cc8d2d9c1a4303c7173c2563806b6773da50a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/EUVATNumber.php:50-60 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/SellingOnlineCourses.php:72-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/EUVATNumber.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"016312b079e0f80e28e070d74b6ff738bed737881d894b1a752d4a9c5ccbc62d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php:405-415 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php:455-465 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders.php"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b05976bb8eb304cdb00e9c1b96b6f97cab156bfc4e311158a4dbef813b391d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-includes/PHPMailer/PHPMailer.php:3115-3125 | wp-includes/PHPMailer/PHPMailer.php:3152-3162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8e10129ff645d71bbeba8bfad67ae2138aba9f48bbe2b0899f7e82fa52feeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-refund-returns.php:81-90 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/CustomizeStoreWithBlocks.php:71-80 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/CustomizingProductCatalog.php:69-78 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/FirstProduct.php:72-81 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MigrateFromShopify.php:64-73 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OnboardingPayments.php:52-61 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OnlineClothingStore.php:83-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 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 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-refund-returns.php:81\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":"wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-refund-returns.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa36cd21953578c1fd02e474e9b3a4b2cee238522ce94b939232ada65c58d256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1017-1026 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1130-1139 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1173-1182 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1634-1643 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:845-854 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1115-1124 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1017\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1ccc3f8ac7a7a4fd7fde0500cb605c68b545f84a815654e4b95887a6bd01e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 3): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:142-151 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-category.php:125-132 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-code.php:58-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:142\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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f08ac0c4a2ffb8836f8329a7d7ee753273a7d83e5b42a6e37ff924a901b460"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-tax-classes-v1-controller.php:158-167 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:127-136 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-methods-v2-controller.php:107-116 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-methods-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 133 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-tax-classes-v1-controller.php:158\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-tax-classes-v1-controller.php"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a764b83904fd024d1255bc80a170492cb07e99aef229942bb0f1f30fde2fe3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php:115-124 | wp-content/plugins/woocommerce/src/Api/Queries/Products/ListProducts.php:215-224 | wp-content/plugins/woocommerce/src/Api/Utils/Products/ProductMapper.php:509-518 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Api/Queries/Products/ListProducts.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Queries/Coupons/ListCoupons.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7779d64e5aeedc1f004c6250c22b126084bc999da9cca66a0ef9a905b027f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-code.php:62-71 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-date.php:59-68 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-code.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"683e19dbbd227cad2e945ecbd72a6e71bcdb03b47e175084fd2e121840017695"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-customer.php:970-979 | wp-content/plugins/woocommerce/includes/class-wc-customer.php:992-1001 \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":"wp-content/plugins/woocommerce/includes/class-wc-customer.php"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"4018ebc5f9b1f2b078fa487c32c9a00555fb795f7c83b9f3b54078a2faa8f9ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-emails.php:1025-1034 | wp-content/plugins/woocommerce/includes/class-wc-emails.php:1116-1122 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-emails.php:1025\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":"wp-content/plugins/woocommerce/includes/class-wc-emails.php"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"6677633bdec37535c8d34ffa5ce464b790d4256f224894253de61f1ec14c844a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/includes/export/abstract-wc-csv-exporter.php:190-199 | wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileExporter.php:69-78 \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":"wp-content/plugins/woocommerce/includes/export/abstract-wc-csv-exporter.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e696c49718c0f23b5405e06b9ddc41e5250cb86900b5a6dfa50ef81cccdca28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php:64-73 | wp-content/plugins/woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php:49-58 \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":"wp-content/plugins/woocommerce/includes/gateways/bacs/class-wc-gateway-bacs.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1cb0cb0c0aeaf04aad16557b64736dbe89ecdcbc9bfeba8f6cdc8a615b2df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:219-228 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:71-80 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ae019dc922d8ab96b4d721ed7af81ac33140e82ba8e3f761fc2d517fdaed96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:284-295 | wp-content/plugins/woocommerce/src/Admin/API/Taxes.php:120-129 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Taxes.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 71 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:284\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc042ad7efc364a2300c0934657684872e5fb974a879bc40ae2e0f6a58111312"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:154-163 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:453-462 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:465\u0060 calls \u0060remove_status_prefix\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:166\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0f3c797499cb1b93f2415f1dd1b3297837542bfb0eb72009ece01ca3781e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:161-170 | wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:179-188 \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 \u0060wp-content/plugins/woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:161\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":"wp-content/plugins/woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f0e49baac76203b8caa23613261a7754b795f9a0a0143bf96f8e9378c3ebd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): wp-content/plugins/woocommerce/includes/wc-update-functions.php:1901-1910 | wp-content/plugins/woocommerce/includes/wc-update-functions.php:2557-2565 \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 \u0060wp-content/plugins/woocommerce/includes/wc-update-functions.php:1901\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":"wp-content/plugins/woocommerce/includes/wc-update-functions.php"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f30498bf61b95c915288ed9d6839f6033add083ade3b27f320ab6369be7eb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:1714-1723 | wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:1737-1746 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php:1714\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":"wp-content/plugins/woocommerce/src/Admin/API/MobileAppQRLogin.php"},"region":{"startLine":1714}}}],"partialFingerprints":{"codehealthFindingId/v1":"c669576ad2342829d6e1a1ff93bc8145be17de1fdef6d39df957d304ea9d5e64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:278-293 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php:372-387 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php:163-172 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:278\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffeff7c5a4f4488d877537c6f26d5ff696c65e66b117dd75c9e0383ea3846a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:125-134 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:151-160 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"420abc2ca0496e33ab0659a4b1f88cf04bbb56b3b2bcb14041af66846c80a0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:421-430 | wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:528-537 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php:421\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":"wp-content/plugins/woocommerce/src/Admin/Marketing/InstalledExtensions.php"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c536ca858965ade0d2da7f10466929755a2900c687419c2912147a73717e792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.php:84-93 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SingleProduct.php:108-117 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"47bf3fcbef349f71312cac406b917023788013569559961c723a765379794ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Downloads.php:59-68 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Totals.php:65-74 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/Downloads.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa471102ef98cb886bb3fbd978f50cf5274795db70ff64fb63e384458b10314"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php:521-530 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php:393-402 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 105 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40d1c43f92df4bc7cbb4a2cef2a56f08cce47d5cc5b06dabbb51b93de0f6fe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:579-588 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:608-617 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:579\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0420bfdc685f51490a21ac74b77518b66f7e549ed2836ceac5769c2fd16b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:791-800 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:819-828 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php:791\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"d465ee5f959b93d25bf608283927256d529ad47d2c321cb3519aaa9cca125684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php:181-190 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php:226-235 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd0ee2bd75464691ca06907e93c37ca6db3aa5a877dc57f96d175aa0ecc7ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/NotificationEditPage.php:86-95 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/NotificationEditPage.php:99-108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/NotificationEditPage.php:97\u0060 calls \u0060set_date_cancelled\u0060, \u0060time\u0060, \u0060set_cancellation_source\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/NotificationEditPage.php:85\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/NotificationEditPage.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fefc2942d974762b3b5a999a3bd0b201b83c8336252bf83580f8b81e304f504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-includes/PHPMailer/PHPMailer.php:914-923 | wp-includes/PHPMailer/SMTP.php:290-300 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-includes/PHPMailer/PHPMailer.php:914\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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfe83a72fc673c5a93a2b72de95e5c0615f94760d7a5e2642ee034648b13a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-includes/PHPMailer/PHPMailer.php:3155-3165 | wp-includes/PHPMailer/PHPMailer.php:3228-3238 \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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3155}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7646a3ba4bdcfb6865726ece22ca424f5e4f4b461023a2902e4ba76adf994c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1019-1027 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1132-1140 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1505-1513 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:517-525 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1175-1183 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1636-1644 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:847-855 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:1117-1125 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 1094 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1019\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1503\u0060 calls \u0060get_attributes\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1130\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb9f7e572e1038bb0c64aafe6daaf665bb09b26084c98b848ee96934a7e9638"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:148-156 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:181-189 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:200-208 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:153-161 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:186-194 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:205-213 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f6c12e613bf31861f53ce5818fb4ba73ed528aea3933b8c2eaaf898d3652d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:514-522 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:557-565 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:750-758 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:808-816 \u2014 all 4 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:748\u0060 calls \u0060get_option\u0060 and \u0060wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:512\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed3b2b13f14ac85bc666c4c1ab32ed3ecd90f689da294b6026797621d376b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:2060-2068 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:2131-2139 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:2228-2236 \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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":2060}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7841e6ed1a886d91bf57a06662355faa453a1b4f03d2599110f9af1a68a8007"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 3): wp-content/plugins/woocommerce/includes/class-wc-privacy.php:88-94 | wp-content/plugins/woocommerce/includes/class-wc-privacy.php:106-111 | wp-content/plugins/woocommerce/includes/class-wc-privacy.php:114-122 \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. 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":"wp-content/plugins/woocommerce/includes/class-wc-privacy.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3821bde00cd7c3572c5f9e061d17071cc05418ba33cb21adb11c8d0ffafd4583"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): wp-content/plugins/woocommerce/includes/class-wc-privacy.php:96-104 | wp-content/plugins/woocommerce/includes/class-wc-privacy.php:106-112 | wp-content/plugins/woocommerce/includes/class-wc-privacy.php:115-123 \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. 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":"wp-content/plugins/woocommerce/includes/class-wc-privacy.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"383f2736fb626a5e5060e6300b452f130305e452acdcc1e509d22de99a3ac0a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-tax-classes-v1-controller.php:156-164 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-locations-v2-controller.php:63-72 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php:117-126 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-tax-classes-v1-controller.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"838d6de6d44ba763062c8f404621c19fa8ca712fc359c5d0cb32de959fa52e26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php:57-65 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductCatalogTemplate.php:53-61 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductSearchResultsTemplate.php:52-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php:57\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":"wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"09428e6951cb4eb3f9f0c7ed9f889726f814623ea9b1560966f5dad1a14a4d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20139 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php:869-873 | wp-content/plugins/woocommerce/includes/export/class-wc-product-csv-exporter.php:173-181 \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 \u0060wp-content/plugins/woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php:869\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":"wp-content/plugins/woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88ebae70ffbd1998e5ff13047e09cdb3c0327cc5e87a20dee78290a7be09ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:195-203 | wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php:213-221 \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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78aed043f4cbc9bb16dc150cf77e1b1c3f65813cc23e85e43dc94e3f1bb77e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:729-737 | wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:757-765 \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 \u0060wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:729\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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b2b4b8274d7e1e114f458c0fa850880e372ed7ff44c0c668f17e78a8c2f56c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:742-750 | wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:770-778 \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 \u0060wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php:742\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":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-data.php"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5400820595cfe274e8dd62be07caccc3b8a7d350f6a0b5a6cf0a4bc15d575a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:222-230 | wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php:170-178 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:222\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php:167\u0060 calls \u0060array_map\u0060, \u0060elseif\u0060, \u0060empty\u0060 and \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:220\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"631744f59a028da5144027f1053e20479f913dbafe36b686222130afd409630d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-query.php:1046-1054 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:505-513 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-query.php:1046\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":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"42629424629679c36681ab228389134de94411e9bd463f593162aafaaf0df1f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php:212-220 | wp-content/plugins/woocommerce/src/Gateways/PayPal/Request.php:1201-1209 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef8deee1e1920b3c56c9bb56224c76c4d97af0c0e7637c8e0abad764b5fa633"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:628-636 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:884-892 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:628\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"259519b226fa998191c3b50c939c23f089269f405eee1dcd3058c9eceaf58afb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/wc-user-functions.php:613-621 | wp-content/plugins/woocommerce/includes/wc-user-functions.php:634-642 \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 \u0060wp-content/plugins/woocommerce/includes/wc-user-functions.php:613\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-user-functions.php"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a8861a2615a7f04145564d797b2c2d25fe57f2d25d5267e19ace918d351385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:204-212 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:215-223 \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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bca61a9d80900a757eb88ad5ad5560f22df49490aa76422fc7394875a2090c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/Api/Pagination/Connection.php:121-129 | wp-content/plugins/woocommerce/src/Api/Utils/Products/ProductMapper.php:181-189 \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":"wp-content/plugins/woocommerce/src/Api/Pagination/Connection.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcd0cb0445c6a39ddf89b14d136fa085fae94264d4a9c4cc134a31aa61ec1ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewAuthorName.php:37-45 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewContent.php:63-71 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewAuthorName.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2d4fd0228a6e38c1d7656de045ce67b1377609a73d46292b72a5ab45fd9b6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:236-244 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:246-254 \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":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7948d7d2861ef6c8a05fc94da1533d0c33b65ec88f14be8a6dfc7a24a960e29f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php:107-115 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php:223-231 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php:107\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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7343a17a708408bef4be189d698440847cdaad2998a6899bc182ebb784454e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:169-177 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:179-187 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f790d3ae160cfdcfd3731506c7c623d29a9f709a04cdaea7dc226f6dc60c1b47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php:711-719 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php:737-745 \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 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php:711\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"64400f52c35bd991af18ac1ff152c23855170a4d0495a11ffe5baea9a6211efd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/CartUpdateCustomer.php:89-97 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/CartUpdateCustomer.php:100-108 \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 \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/CartUpdateCustomer.php:89\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/CartUpdateCustomer.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35557640c0b4b1ed8c3bff065793fa507863824efa881fcaf04e5bb44cd89bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:472-480 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:482-490 \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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e1cbe54e09f1eac33982fa16858dd6f33dba407fcc4f3d1f335ba818e8c0f70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-includes/PHPMailer/PHPMailer.php:2710-2718 | wp-includes/PHPMailer/PHPMailer.php:2731-2739 \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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2710}}}],"partialFingerprints":{"codehealthFindingId/v1":"472e3ed8fe6096c601fbcec3129dcb86dee81f33fb1dc64f05559c76c24ab25e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:111-119 | wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php:121-129 \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":"wp-includes/php-ai-client/src/Providers/Http/HttpTransporter.php"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8244ab2b24999e5ca7afc61a152757d00584b2d6bbcce4d04a779cde011390f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php:251-260 | wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleTextGenerationModel.php:442-451 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e23337f1011bb673cb9390464eb44f047134e19cd2ea593a7bf576c792fffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:175-182 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:193-200 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:211-218 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-shipping-zones-controller-base.php:61-68 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-shipping-zones-controller-base.php:79-86 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-shipping-zones-controller-base.php:97-104 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-shipping-zones-controller-base.php:115-122 \u2014 there are 7 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:175\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bfdcb9850a16e89ea98111f6e9175ef098cfbedcfe4aff388531f772c53c260"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php:57-64 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductBrandTemplate.php:59-66 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductCatalogTemplate.php:53-60 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductCategoryTemplate.php:59-66 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductSearchResultsTemplate.php:52-59 | wp-content/plugins/woocommerce/src/Blocks/Templates/ProductTagTemplate.php:59-66 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/Templates/ProductBrandTemplate.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/Templates/ProductCategoryTemplate.php\u0060 as WHOLE FILES: 85% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Blocks/Templates/ProductBrandTemplate.php:68\u0060 calls \u0060add_filter\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php:65\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"cece5688a39cb0c8748e8e323435d7889c651658564e0ac663b6356b887857d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:30-37 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:68-75 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:137-144 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:194-201 \u2014 all 4 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:67\u0060 calls \u0060unset\u0060 and \u0060wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:29\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1cab1945e90562b11c17a0c2c31076fc451f8435b2f06cc145dcb35fa7b40a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-settings-v2-controller.php:117-123 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php:238-245 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php:351-357 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-settings-v2-controller.php"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b39eeb379386b94cd811697d9ddf356ecebd44acc90db2e64bf9c6fa911846b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:288-295 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php:191-198 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php:390-398 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php:288\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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6f2b656ee64d27bc9d65a617624d9cd05d606f79c4e1091049bba00dcb8fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:181-188 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:182-189 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Tax/Controller.php:161-168 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 184 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:181\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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9794296e0d76014785d001eca51604f78c10d346ee18bd7a813beedbd1b9d41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php:379-386 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php:277-284 \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 \u0060wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php:379\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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-widget.php"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"65743eeb2a942c4d9adfa5c8d7444ee3989f90eb5944563254f6623db771b296"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php:77-84 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-importers.php:81-88 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17a213291b123e2861ae843ae397140577f4c6c731196227c9f6ff0270e60c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1137-1145 | wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1258-1266 \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 \u0060wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php:1137\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":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6653038711d615aca3cbbfac9ae8ac781f33994bb577442ef7c8140ed96b4568"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:267-274 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:319-326 \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 \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:266\u0060 calls \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:318\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b574f572e385db03c26d55096be9959a2c5be30b37c50b0319b48917f304869d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-code.php:167-174 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-code.php:184-191 \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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-code.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ca97999c8dd4a1beaee44a223d46734872ea61a01c3f4ae7e931f68957b2b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-date.php:177-184 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-date.php:185-192 \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 \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-date.php:177\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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-taxes-by-date.php"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"0514071b3df506caf52721916c6c62e97c164bb3bde92a5d52154233700d2528"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php:358-366 | wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php:412-420 \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 \u0060wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php:358\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":"wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2170b5543c9af8f472a7eea3a1b315c4e7f64ccc45a64af3f6bc0233b7a5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:700-707 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php:1195-1202 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:700\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":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"701317cf97e611438e19a6446877f0e18f95bfbf9b7a4a3fcf4dea976bd5b87a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php:465-472 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-log-data-store.php:193-200 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-log-data-store.php:192\u0060 calls \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php:463\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-download-data-store.php"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6a145fef17a8e222e6ddfcf821b0f636f1afd2815a46273403d427728eed0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:750-757 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1021-1028 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1029\u0060 calls \u0060maybe_set_item_meta_data\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:759\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4844f5a82e2f29ecd284fbf1d4eb40ec30db33faf56044aa522f73f04f2eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1395-1402 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:391-398 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 1094 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"34488cfae8a40a08fab83b65dd01639b690f5548b85aa7a7ef4f05bf8893fbb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:186-194 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:269-276 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"826134fbc5b2377a0396e36f268388235d13b89c7a041ff8e3bd1466bfd8954d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php:46-53 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Controller.php:76-83 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Controller.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"404869bd84ee0619255c5862cd215270e7040b9a3c9647379ae93ca2028b89f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php:102-109 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php:121-128 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d844e428a682ab7e6e8080c83a326242d6aad93e6ebf95c6863d609e088dae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsRenderer.php:492-499 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsRenderer.php:524-531 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsRenderer.php:492\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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsRenderer.php"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d59c83fc4f021a776013d5c11f796cd6879720f119c7304fec8679b8a7b4628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterPrice.php:208-215 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php:190-197 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterPrice.php:208\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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterPrice.php"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"99881d6d6c44c2dfe43744e1a45eafe36039fb9b67f579c404152242dbf74e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:239-246 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:475-482 \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 \u0060wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:239\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":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"4512e6d9e093d72386909bb08cf794432cb2a95cfb953d011155abcd47950616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:386-393 | wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:415-425 \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 \u0060wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php:415\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":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa0fd0a15532098bc330ff4754daa2165e952aec60458b1d79fced65a047b7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/ProductPageIntegration.php:149-156 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/ProductPageIntegration.php:179-186 \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":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/ProductPageIntegration.php"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acc1d1db83c61534a4be725cc553aaa5aa479dc7426e81007e4cb9d1f5413ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php:83-90 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductCategorySchema.php:81-88 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php\u0060 and \u0060wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductCategorySchema.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d7459bc25fe1a492c4bdd4bd5ba3467689b03447bea2ab8d73b300bd56e84c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:249-256 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php:201-208 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:360-366 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php:245-251 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:249\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php:234\u0060 calls \u0060get_slug\u0060 and \u0060wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php:238\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbfea57765c0c307d4f07ac2804ac1ea33799c74da7b28eae14a828daf4bcb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:392-400 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:289-296 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:274-280 | wp-content/plugins/woocommerce/src/Admin/API/Taxes.php:122-130 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:392\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6fd7afaa27207d60184197cebc7f45a941110dfc30fa657a6bdeeba3462a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 4): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:334-339 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php:418-423 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/DataStore.php:215-221 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php:490-495 \u2014 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:334\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3e4eceeb334641a1f5d7f80a20d63bfd2034385a19aa255d2a8dafbd9b9c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/LaunchChecklist.php:52-58 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MobileApp.php:45-51 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsMoreInfoNeeded.php:72-78 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/RealTimeOrderAlerts.php:49-55 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Notes/LaunchChecklist.php:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/LaunchChecklist.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6e1081c29a01ad8ab3038d24f4c52fd55a0c6c9b0a3d1bf6f0ca92901780e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:490-496 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:745-751 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:138-144 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:490\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"9047eb777f5477a720aeaeb038ce989d196b313412f8aa2f54f5fbc6e1220552"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:625-633 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:881-889 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:336-344 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:625\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff0510b3fa705983c1f3e2faa8e89aaca74d7c3a09068fc0e51a5c6bac126ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1453-1459 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:656-662 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:923-929 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 599 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1453\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1453}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e0e137917dfb014d0e2c0fd53ec1e3305620a076e13691bdedba1526fcd595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Controller.php:56-62 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php:44-50 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Controller.php:74-80 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Controller.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Controller.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e945badab1d200509560cb732503b2c3ca2ef6b6253ed712649e6c5be0af7d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:295-301 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php:389-395 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php:178-184 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:295\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:302\u0060 calls \u0060get_segment_selections_order_level\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php:185\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"7554b8ae9bb909eed11f537b0e395c3137fe52e7f5ced8d2a60ffe760a4b4251"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php:78-85 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductSKU.php:53-60 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductStockIndicator.php:81-87 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b33aa6d6b4611d7f680c7c09b38ec9c854b42d625ede437364d08c615756063"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php:33-39 | wp-content/plugins/woocommerce/includes/admin/class-wc-admin-importers.php:30-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php:33\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":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"c858c8adf2e0a26c8755eaac2def451a742835b762270b82628557c778a642d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-admin-report.php:271-285 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-admin-report.php:319-332 \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 \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-admin-report.php:271\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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-admin-report.php"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b749bfdc33f06e96972bc7f954a5b7b274a9b7b17617d88077f8e1c9dd1eb8f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:319-325 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:364-370 \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 \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:319\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:363\u0060 calls \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php:318\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-product.php"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"62174069dccb50310b878a5771acc83a7b30056bf9c5eeeb6f137f07396c1ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php:55-62 | wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php:132-139 \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 \u0060wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php:55\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php:63\u0060 calls \u0060foreach\u0060 and \u0060wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php:139\u0060 does not \u2014 after which the two agree again for 5 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/wc-meta-box-functions.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"404aaafea0993f0681d08be42b755b86441606dc2052ae45130910d465b1d9e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-ajax.php:1799-1806 | wp-content/plugins/woocommerce/includes/class-wc-ajax.php:1900-1907 \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":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":1799}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fec868c6485d83c57e920f47b13cdf1bdd4122d9e3cd5b10a965f1505dc33c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-auth.php:91-97 | wp-content/plugins/woocommerce/includes/class-wc-auth.php:98-104 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-auth.php"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"b459d8c192de91ed47b439c50bd5f942c805be4968ca7b0f5c8c03729785fc8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:588-598 | wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:612-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 \u0060wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:588\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":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f96e306a8f7dc92e9c1c26d49913bbeb8ec4c8a01ab88199931599060f544a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-https.php:91-98 | wp-content/plugins/woocommerce/includes/class-wc-https.php:111-118 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-https.php:91\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":"wp-content/plugins/woocommerce/includes/class-wc-https.php"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c16ca1db7dd3fd27b6e0321442920acbe66beb26f6b925775bb1fe0b423653c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-install.php:2380-2386 | wp-content/plugins/woocommerce/src/Admin/ReportCSVExporter.php:91-97 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-install.php:2380\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":"wp-content/plugins/woocommerce/includes/class-wc-install.php"},"region":{"startLine":2380}}}],"partialFingerprints":{"codehealthFindingId/v1":"e256e23602af8b060ca5c8f106f44940fb9a37ed7dd90989195cb73d220f72a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-tracker.php:1495-1501 | wp-content/plugins/woocommerce/includes/class-wc-tracker.php:1504-1510 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-tracker.php:1495\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":"wp-content/plugins/woocommerce/includes/class-wc-tracker.php"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f32f8c52b721d677b89666f89f6c5ce7ec1299e8046a0ff71fffc8c80835fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:56-62 | wp-content/plugins/woocommerce/includes/shipping/legacy-international-delivery/class-wc-shipping-legacy-international-delivery.php:27-33 \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":"wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ddadcee19d0fe75eb6cd75b7945f9fbbd0fe7af1a944acccaf2b4e9a769b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php:190-196 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/RoyalMailShippingProvider.php:201-207 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/RoyalMailShippingProvider.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php:190\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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f3e6b4254abbe4655a764713b6bbe1639c53eeb5c97dd8238d0c400fcb6832"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:233-239 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:1041-1047 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"040ada83291e35d27dee885d1c88dd355283b11dd226cde367b20fa057443f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php:82-90 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php:91-99 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6a319b2b9837f7bc5939d213029105cd7fabcdfcbf41b776f0de13b7931f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/Reviews.php:438-444 | wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/Reviews.php:449-455 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/Reviews.php:438\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":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/Reviews.php"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a98c8989c08489953854098714bdc0b1db27f7a3afbf6b3e9f0945ebd079bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php:687-693 | wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php:970-976 \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 \u0060wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php:687\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":"wp-content/plugins/woocommerce/src/Internal/CLI/Migrator/Core/WooCommerceProductImporter.php"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d51696b2d37968ab900ec54300c1cde8368276c3465c8f0332dcf62db9f0ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php:188-194 | wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSelectiveApplier.php:256-265 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e8431d9592a184c0f1f752c338015e8bd09fa834354982312eaa391baf06e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:423-429 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:433-439 \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 \u0060wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php:423\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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQuery.php"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"44edb2dea39f545dc67a17aef9a18ed291b5f1cc6c8d82633e6697b988cef28b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 18): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:203-208 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:652-674 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:340-352 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php:140-153 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:426-439 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:443-458 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-shipping-classes-v1-controller.php:54-66 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-tags-v1-controller.php:54-66 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:567-585 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-customer-downloads-v2-controller.php:36-55 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php:90-103 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:258-273 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-reviews-v2-controller.php:81-97 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:335-340 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-methods-v2-controller.php:146-157 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-webhooks-v2-controller.php:42-62 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:36-50 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php:37-53 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:203\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php:138\u0060 calls \u0060get_term_meta\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:339\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0815c6096298523c380f88354858b8f678200743804efc897c3ef672087cc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 14): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:288-293 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:308-313 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php:54-59 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Controller.php:53-58 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php:40-45 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Controller.php:56-61 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Stats/Controller.php:45-50 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:39-44 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:53-58 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:53-58 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Revenue/Stats/Controller.php:45-50 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Stock/Controller.php:55-60 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Controller.php:58-63 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Controller.php:70-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9fa6b5de5b56b44e49b029ab7eeea988b506b9c15f7e0a39a6d6146b7a3fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php:59-64 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:44-49 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:56-61 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:72-77 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:59-64 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b94f4c0799ea53b223d3de4f2077c3d376f09002bb015b909860b0c257e6da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:334-340 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:323-329 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:859-865 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:770-776 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:324\u0060 calls \u0060add_post_meta_fields\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:849\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec815f5629522e5fda2a1e646a1a535ef217e5a087b9986cbaaae4280b059a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): wp-content/plugins/woocommerce/includes/class-wc-query.php:1052-1060 | wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:511-519 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:565-573 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/class-wc-query.php:1048\u0060 calls \u0060is_string\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:564\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1e18a28bd1281f4ee754f64030320c1d2db5045d0c8f259a5e5cce47f466c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:460-465 | wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php:201-206 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:597-602 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"f086f6256cc097dd592e6b5f9b16cc74ee2d947ebd30210dc879bc5f63e1b4ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:52-57 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:66-71 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:69-74 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 295 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b4ef491d6d7aa7c25c8407de642011ba36b0eb168555a19dd18bfc1504dc34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:280-285 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:305-310 | wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:393-398 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php:280\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59f1fb8a681d8984ff91fa4aecc6f554bc7d1b7d3f8b1df2111d27c2ae64493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:127-133 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Notification.php:58-63 \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 \u0060wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:127\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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4945a705c3a6f110771e85b2f84a1506948899ab0cec2e6fe95fee3e56e0ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:1259-1266 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php:1281-1288 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa70b4a6231c8ca6f7851bf44c584ab085a6c7df3e81de77903f04cf7fa841b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:263-268 | wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:312-318 \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 \u0060wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php:263\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":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ce9df57d58bbfe921ef553fffac4f2f91bc941e201a0be6e9fa43a9655f558"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-cart-session.php:627-632 | wp-content/plugins/woocommerce/includes/class-wc-cart.php:1280-1292 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/class-wc-cart-session.php:627\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":"wp-content/plugins/woocommerce/includes/class-wc-cart-session.php"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"270560b9e136f3044cfda3ad37ea72dd0b1474656d180aefd65c861c5691db66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-customer.php:1014-1022 | wp-content/plugins/woocommerce/includes/class-wc-order.php:1176-1184 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-customer.php"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83f9680e00c72b7cac884e6154f1be27809b2871a4bd03b411fb99511ed282e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1231-1236 | wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1298-1303 \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 \u0060wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php:1231\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":"wp-content/plugins/woocommerce/includes/class-wc-geo-ip.php"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb6a8c22d319f092463696c7117001d1744c1667072710753fa91e9e351d173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:277-282 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php:162-167 \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 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php:277\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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffa5f3ceb6202346d7e60d6071748d2f42174b3d3b0c6c4ee7432b6c096a588"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php:1181-1186 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php:413-418 \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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php"},"region":{"startLine":1181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06c2260899ae87fa7337ba8d7a3dff93e107a1cfc2cc4579d5cc5176b78f88f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:520-525 | wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php:574-579 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 115 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:520\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf09c01449c107a51bfd9442641311edc22e724fa8e17dcb5b9c5644fe69c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingHelper.php:87-93 | wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingHelper.php:97-103 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingHelper.php:87\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingHelper.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed7f076d327c90b116673864943ec82c27d8fed672c9dff33b8110dcb6b21df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-includes/PHPMailer/PHPMailer.php:5317-5322 | wp-includes/PHPMailer/PHPMailer.php:5330-5335 \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":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":5317}}}],"partialFingerprints":{"codehealthFindingId/v1":"5276c7c559240001beb8230b08c47fdf8f05b4b358a258f31bf8619e5c636674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php:68-73 | wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleTextGenerationModel.php:75-80 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php:68\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"6879e8cec4346da66afac8504871d46699162bcc64fafb7152288124428275d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:333-337 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php:474-479 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:247-252 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:321-326 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:858-862 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:769-773 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:433-438 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:99-104 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:216-221 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 32 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:324\u0060 calls \u0060add_post_meta_fields\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:849\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b63bc9e56bf9fe1d916a505af7dbfb8e3c4669e27198995f190b5457af53f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php:59-63 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Controller.php:56-60 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php:44-48 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:44-48 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:56-60 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:72-76 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:59-63 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Controller.php:74-78 \u2014 there are 8 copies across 7 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 8 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2914e70c36e439bdf36d982f7c23972d9e1756d0bc1f4ff10e09e9281452ad23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): wp-content/plugins/woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php:54-61 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/LaunchChecklist.php:52-56 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MobileApp.php:45-49 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsMoreInfoNeeded.php:72-76 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PaymentsRemindMeLater.php:72-76 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/PersonalizeStore.php:55-59 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/RealTimeOrderAlerts.php:49-53 | wp-content/plugins/woocommerce/src/Internal/Admin/Notes/TrackingOptIn.php:68-72 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 8 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php:54\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":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/InstallJPAndWCSPlugins.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"936a9d76dd8471379c8d172173e77ff8cbb369bbe8eb1b3ecd543db3f39f4ae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php:61-65 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Controller.php:46-50 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Controller.php:58-62 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:61-65 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Controller.php:73-77 \u2014 there are 5 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"780b2b019ff92bdd390f1b2908bdde43fb1ad12be9da400ddfa8dada4b8890e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 6): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/DataStore.php:223-228 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php:152-154 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php:441-446 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/DataStore.php:234-239 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/DataStore.php:247-251 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/DataStore.php:257-262 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/DataStore.php:223\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/DataStore.php"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3b82acd0345980ed15b2c8e66a6a1cd1a275cb6c8bfdb347a1e33a098d422a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php:158-162 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php:170-174 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php:181-185 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php:192-196 \u2014 all 4 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. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0007113468a193431bb0d75fb4a9df8ab4cab31a9fd528341fa3862af08d35cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php:220-224 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-customers-v2-controller.php:105-109 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:209-215 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-refunds-controller.php:101-107 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-refunds-controller.php:99\u0060 calls \u0060is_null\u0060, \u0060wc_get_price_decimals\u0060, \u0060absint\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php:219\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9af019240ec2d1623ff837c62ba780e69d8c8a4001e1acd05345357d3c4b686"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:259-265 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:53-59 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:69-75 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:85-91 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:255\u0060 calls \u0060check_variation_parent\u0060, \u0060WP_Error\u0060, \u0060__\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php:68\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1e054cbc6300757ed67a78bdb835c4cdfbfb2c16ef3cf5a80888db631eb52d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:224-228 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:299-303 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php:76-80 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-notes-controller.php\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"119187fe86e5d86556ec8b1166e9d65498bb3fb5357e81c6ce6834459cfb26ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): wp-includes/php-ai-client/src/Providers/Http/Exception/ClientException.php:56-60 | wp-includes/php-ai-client/src/Providers/Http/Exception/RedirectException.php:34-38 | wp-includes/php-ai-client/src/Providers/Http/Exception/ServerException.php:34-38 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/Http/Exception/ClientException.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee274a2296711180564b4541c5f6fffe496b1ba71c9521f4b268681fd834e692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:930-934 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:171-175 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6381ed947e602f621c8299566b4b656bdc3a533768b75f8c44f3c78571b5f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:946-950 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:187-191 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc11eb88ab8d60f2647463fd0e8e3a9a01855658f0787e4e499ddd5156c9b77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:962-966 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:203-207 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0433ba061cbf1f20abce7572c9bc480427e5d7fec3e037de88652b1aa5a783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1019-1023 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:443-447 \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 \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1019\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aef490acf8c17dda0f36cd76e8ad0135c5024aa11e9b01169e20afba0edbd51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1648-1649 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:147-151 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:254-258 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1648\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8bf0b5fe33a7823b94a64f1293786baae35b5a8a1a63fb42ba31666c5f8bc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/wc-product-functions.php:1508-1514 | wp-content/plugins/woocommerce/includes/wc-product-functions.php:1598-1604 \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 \u0060wp-content/plugins/woocommerce/includes/wc-product-functions.php:1508\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/wc-product-functions.php:1604\u0060 calls \u0060empty\u0060 and \u0060wp-content/plugins/woocommerce/includes/wc-product-functions.php:1514\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1508}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c85bc27f86cde7eb33180c59c29eb062b93e777b1132c68e71ca362dd3d95f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/src/Api/Utils/SchemaHandle.php:95-100 | wp-content/plugins/woocommerce/src/Api/Utils/SchemaHandle.php:113-118 \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 \u0060wp-content/plugins/woocommerce/src/Api/Utils/SchemaHandle.php:95\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Utils/SchemaHandle.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb0e38e82e10fd43c3131793b5b6326293d559406f5dc169170f2c1871a3dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php:316-320 | wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php:487-491 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php:316\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":"wp-content/plugins/woocommerce/src/Internal/Abilities/REST/RestAbilityFactory.php"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e74f8d2239b3cf727e8b22f4ad4e70181ae2910319502755c01ad5dd55c866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableSearchQuery.php:167-174 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableSearchQuery.php:344-348 \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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableSearchQuery.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f162d45bd833e115c4d19964f6d1cf2fd6a7b43ecdf981b3c4410fcd3d343a55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/EmailActionController.php:168-172 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/EmailActionController.php:206-210 \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":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/EmailActionController.php"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1623dd4657ad3cf2b68c4a2321f082181e355cf8cf8e706e45c37312d2405db9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php:127-131 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Batch.php:126-128 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Checkout.php:164-168 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php:127\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Batch.php:129\u0060 calls \u0060get_route_error_response\u0060, \u0060getMessage\u0060 and \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Checkout.php:168\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/AbstractCartRoute.php"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c1d487fba7141fafe5bf57c61d03998108e74c4766b09e11f55a800ae1bafa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Utilities/AgenticCheckoutUtils.php:205-209 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/AgenticCheckoutUtils.php:281-285 \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 \u0060wp-content/plugins/woocommerce/src/StoreApi/Utilities/AgenticCheckoutUtils.php:205\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":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/AgenticCheckoutUtils.php"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d04fbed54c7993fd5cd7a9ae6ae480496c0717fa0c1a8b664314c514868ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 11): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Query.php:37-56 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Query.php:37-56 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/Stats/Query.php:38-63 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Query.php:37-56 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/Stats/Query.php:27-46 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Query.php:38-57 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Query.php:38-57 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Query.php:37-56 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Query.php:38-57 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Query.php:38-57 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Query.php:38-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 11 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 11 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Query.php:37\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Query.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f25cc202b98e03a7978d569024717c10ff16dfe0e03caecf8718ade20f458ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/MarketingRecommendationsDataSourcePoller.php:36-56 | wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/MiscRecommendationsDataSourcePoller.php:44-64 | wp-content/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/RemoteFreeExtensionsDataSourcePoller.php:32-52 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/MarketingRecommendationsDataSourcePoller.php:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/MarketingRecommendationsDataSourcePoller.php:23\u0060 calls \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/MiscRecommendationsDataSourcePoller.php:31\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/MarketingRecommendationsDataSourcePoller.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec122efd27fad8396ee523b3a3b47ac1e1d6ab50594a6142fd5c5e8e2c12c276"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/PaymentGatewaySuggestionsDataSourcePoller.php:36-64 | wp-content/plugins/woocommerce/src/Internal/Admin/WCPayPromotion/WCPayPromotionDataSourcePoller.php:33-61 \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 \u0060wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/PaymentGatewaySuggestionsDataSourcePoller.php:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/PaymentGatewaySuggestionsDataSourcePoller.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d29f01340fb60deab9a480241403f2ac7a7418ba249eee43aa1b751cc824189"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AllReviews.php:23-41 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ReviewsByCategory.php:23-41 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ReviewsByProduct.php:23-41 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AllReviews.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ReviewsByCategory.php\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AllReviews.php:23\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AllReviews.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b98a251ea2095bca725ae5cea43b877f0edbf27c2f30ee59cbe8d2644182f7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/Payments/Integrations/BankTransfer.php:33-75 | wp-content/plugins/woocommerce/src/Blocks/Payments/Integrations/Cheque.php:34-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/Payments/Integrations/BankTransfer.php:33\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Payments/Integrations/BankTransfer.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8637417fb56968c854fe7c671187b74de3433d2fc7c727ec039e447ddf3feea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/Templates/CartTemplate.php:24-71 | wp-content/plugins/woocommerce/src/Blocks/Templates/CheckoutTemplate.php:24-71 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Blocks/Templates/CartTemplate.php:24\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Templates/CartTemplate.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fea34315c537acd3a4aaf0737ea4c98d3bbe1d89ec8d577720f2afdaf569fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Exceptions/ApiException.php:35-55 | wp-content/plugins/woocommerce/src/StoreApi/Exceptions/RouteException.php:31-51 \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 \u0060wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Exceptions/ApiException.php:35\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/Exceptions/ApiException.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3efa9179c64e31a1a3d1710163dc1314affb03d086554123fe8c18b71487e27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderFeeSchema.php:38-106 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderShippingSchema.php:38-105 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderTaxSchema.php:38-108 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderFeeSchema.php:38\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderFeeSchema.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2847c4dba66831669c7a9c0c0682a55e4be869ce04d717643ebd20c36f6d1a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Exceptions/InvalidCartException.php:41-71 | wp-content/plugins/woocommerce/src/StoreApi/Exceptions/InvalidStockLevelsInCartException.php:41-71 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/StoreApi/Exceptions/InvalidCartException.php\u0060 and \u0060wp-content/plugins/woocommerce/src/StoreApi/Exceptions/InvalidStockLevelsInCartException.php\u0060 as WHOLE FILES: 90% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/src/StoreApi/Exceptions/InvalidCartException.php:41\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Exceptions/InvalidCartException.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c879db42ce6ce60db20fd5ac5dbffc1599737761d2e8e072db37ae3b2562856"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php:182-195 | wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-group-functions.php:173-186 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, 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":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f42d05f22acdcfc7faa70815f236263f429b708e6fc0e6612712092a7075702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php:140-152 | wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php:761-772 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"660d3d51d87149391f099f1af88f404601967d1bf3da8d99ec117967ddae7e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php:162-175 | wp-content/plugins/woocommerce/includes/libraries/wp-background-process.php:414-426 \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":"wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab837de744f15f225463ab6d77218d4bd61bf48f40525cec2037e86533971ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php:683-689 | wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php:510-516 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, 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":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"9587dcbcf609aa020144c4ebccdc44beae7d717efdf4057927bcd4a5e0af1894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:256-261 | wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php:238-243 | wp-content/plugins/woocommerce/includes/class-wc-order-item-tax.php:168-173 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php:228\u0060 calls \u0060get_method_title\u0060 and \u0060wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:255\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea346206b6480a5be591d4bbd48f73da42f533c826b583c8cd33a09c4c0a7cbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php:786-790 | wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php:802-806 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:3074-3078 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:3090-3094 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. 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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dff6a38579d8b40a536f877ce2e0a27fea3eb120413c94e28be5a14fd701b4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php:820-825 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php:3108-3113 \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":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c3c0363e053d7395f2d6170cc80d961d9ab20cdbecb6e7d83e638e6ca2a692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/gateways/class-wc-payment-gateway-cc.php:29-36 | wp-content/plugins/woocommerce/includes/gateways/class-wc-payment-gateway-echeck.php:29-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/class-wc-payment-gateway-cc.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cf9e207f2f1101839a6357cbe8e863af5bd05a5db868eb6e1de6969b533389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 15): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:59-125 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:62-122 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attribute-terms-v1-controller.php:43-126 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php:55-136 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:65-125 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php:52-130 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php:48-134 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-coupons-v2-controller.php:53-134 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:70-142 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:100-196 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-setting-options-v2-controller.php:41-107 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-currencies-controller.php:49-90 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:39-128 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-terms-controller.php:45-126 | wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:42-87 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:58\u0060 calls \u0060add_action\u0060, \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php:52\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be65b09d926827040850685ac058adfe73f4472f286a07e1580c615d0bfe31f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 25): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:50-111 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php:58-112 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:43-123 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-tax-classes-v1-controller.php:41-85 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhook-deliveries-v1-controller.php:44-80 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-refunds-v2-controller.php:64-126 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php:39-74 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-methods-v2-controller.php:39-68 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zones-v2-controller.php:25-83 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php:42-79 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-tax-classes-v2-controller.php:32-81 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php:52-81 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-countries-controller.php:52-81 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-layout-templates-controller.php:38-72 | wp-content/plugins/woocommerce/src/Admin/API/Customers.php:31-63 | wp-content/plugins/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php:41-71 | wp-content/plugins/woocommerce/src/Admin/API/ProductForm.php:39-62 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Export/Controller.php:35-60 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php:95-172 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php:84-138 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php:126-191 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php:119-186 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Controller.php:57-100 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php:72-112 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/Controller.php:82-130 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-refunds-v1-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cd936139b7f7fbf23e8ae9b1890a7855d8ef17f5278e78ff01fe96515f31ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:121-125 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php:136-140 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:56-60 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:70-74 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php:133-137 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-custom-fields-controller.php:135-139 \u2014 there are 6 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 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-order-notes-v1-controller.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"e151ee2c3bf5fa06cc8d35ab00dc2f71a8482094606f03d1e70b9587fb89f0b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:609-613 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:865-869 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php:137-141 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"9277ff2a1304e96da48fb80f98a003676e357798c400da98f7887355929042c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:820-828 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:1119-1127 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c5294d7e2e6b398a983b96ec05cc859204dda28723cb174d9b4ce045217ba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php:520-534 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:752-765 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-reviews-v1-controller.php"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"9129f31e62268ac9736c17f80e770a0dea45e8450cccd9aba8c7773d6ae7ee40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:236-248 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:478-490 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecab46d7b3f17eef87dde725598397682a39817d25153537d6dbfe597ffd3425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:259-269 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:502-512 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"428e1f1957f3dbc2e8caeb73c61abed8418489d6314daf4199cdd19688a4d7f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:994-1002 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1610-1618 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 33 separate duplicated blocks between them, totalling at least 1651 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"292f83245141e6a1306667f2babad046e010dc9d6c50028e8dd3459a2cf3d769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (352 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php:1743-2583 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php:774-1125 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php:1838-2450 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 1094 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1743}}}],"partialFingerprints":{"codehealthFindingId/v1":"645dbdba28d1af6b4c38e80617708c8f01171968900eba798731a18c3dae0d05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php:169-180 | wp-content/plugins/woocommerce/src/Admin/API/DataDownloadIPs.php:134-141 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-order-notes-v2-controller.php"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaecf6b08c9071f0f5fbdc590262606a37aa6dd665465bc791511c012d1c8b05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php:25-93 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-paypal-buttons-controller.php:56-74 | wp-content/plugins/woocommerce/src/Admin/API/AnalyticsImports.php:43-67 | wp-content/plugins/woocommerce/src/Admin/API/MarketingOverview.php:41-73 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingThemes.php:37-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-shipping-zone-methods-v2-controller.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb836282a768f1421082367b64b6ba888694ad27528709fc66773f94bae31a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php:1689-1701 | wp-content/plugins/woocommerce/src/Admin/API/Leaderboards.php:471-482 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php:414-426 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Import/Controller.php:160-171 | wp-content/plugins/woocommerce/src/Admin/API/Themes.php:139-150 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/OnboardingProfile.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Import/Controller.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 263 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c1dfa70d1621ec931de7738bda171487970728fc23ab54a8312acb806e25fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php:215-230 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-countries-controller.php:162-179 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-currencies-controller.php:168-181 | wp-content/plugins/woocommerce/src/Admin/API/DataDownloadIPs.php:97-110 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-countries-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php:240\u0060 calls \u0060strtolower\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/DataDownloadIPs.php:120\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35deb0f93c9f429efdcb05f972ab19dbf2d8376916bf2a13e547b19ab2c692d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php:167-195 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:408-436 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-order-refunds-controller.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f84cc5f0f4139dbd539b765c4941405cd90cafe5ea068c728b6539a928e61c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:815-837 | wp-content/plugins/woocommerce/src/Admin/API/ProductReviews.php:33-53 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f53e59815b058f4e5034108f3d471eac2797d7a8da349b3e39f8b1ee11d3755"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:1104-1121 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductReviews.php:147-164 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductReviews.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 231 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":1104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fe9860220ce1bdd9d633956260ddd4c65dbc0673d55c815e61e8cf4be876d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:89-129 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:127-167 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc67b7257c2e65f5aa03a3c66921e2a7b069f3b8a8921fdc041115d31598b3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:534-550 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:801-817 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"e80d89cd88035ca67d9c0204623c281220c74009048fe6b97a6aca936ea67408"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php:1981-2013 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php:2384-2416 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php\u0060 as WHOLE FILES: this scan already matched 50 separate duplicated blocks between them, totalling at least 1617 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e021808e17f8a6db28be01a0c3715c97c59351a6b39fcdbc4ff7fe4e132d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php:243-249 | wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php:287-293 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06436d577ea3c54c1819d857bb55f6e32cd63f44a64101d337ef169a52ad914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php:54-64 | wp-content/plugins/woocommerce/includes/shipping/local-pickup/class-wc-shipping-local-pickup.php:39-48 \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":"wp-content/plugins/woocommerce/includes/shipping/free-shipping/class-wc-shipping-free-shipping.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ebfc9d86964f5313cab13ca3c5e3fb7cc9e1c20325f6c37f9261a6c7d36cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php:43-47 | wp-content/plugins/woocommerce/includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php:43-47 | wp-content/plugins/woocommerce/includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php:34-38 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1b0c5712fa8e584157cd90db462cb612d8abe2053ce27b7fb384adfb128efa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-description.php:49-61 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-thumbnails.php:49-61 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-description.php"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4bbd8278607e7bc0e87f7dc715be63ff611183271ec97b2c7814e3b5df2d33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 9): wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav-filters.php:20-32 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-product-categories.php:36-87 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-product-search.php:20-32 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-product-tag-cloud.php:22-34 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-products.php:22-83 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-rating-filter.php:20-31 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-recent-reviews.php:20-40 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-recently-viewed.php:22-42 | wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-top-rated-products.php:21-41 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-recently-viewed.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-top-rated-products.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav-filters.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c77d0f3fe59ecd0f6a310fe600880ae40d8c5ce1ba98d1d196785c79dd03a5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/API/AnalyticsImports.php:77-85 | wp-content/plugins/woocommerce/src/Admin/API/MarketingRecommendations.php:76-80 | wp-content/plugins/woocommerce/src/Admin/API/OnboardingPlugins.php:241-249 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/AnalyticsImports.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8b5de9451b46a204795ad8b464be8b2c071a49b3299a505ea2896a20137e0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php:80-92 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Controller.php:74-86 | wp-content/plugins/woocommerce/src/Admin/API/Reports/PerformanceIndicators/Controller.php:481-494 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:74-89 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/Controller.php"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"fea5a301da0df44c5ccc25edca9309b4b2891f525cc28713bfb5fc951e69cfa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php:475-486 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php:671-683 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/DataStore.php:323-335 \u2014 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 36 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"21568f1a41efa505c810b24e34e7c5c526874796224de8c26151d8622734a6f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php:144-174 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Controller.php:188-216 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/Controller.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Controller.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca04c731e7f7574cd2cf006fa0c146d3716a924e23db578698efc1bebcf663d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php:601-608 | wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php:488-495 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00987ea26af7e020867267cc14ffafbcbff90ea939ff92f3ccdabe4b1027396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php:321-345 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php:371-391 \u2014 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 87 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Controller.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"229ac93cfd94201b2dfa851e20a8be8190a6816965e62ea60d766a60129284c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php:336-341 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php:394-399 \u2014 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d6ab5ddef6a63a6cc29b2607ceb0a64ad3faf416cbe349fe985111cf84d39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php:690-694 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php:530-534 \u2014 \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42db73caadcb1a5a38fc1783eae39a09d1a11e8214869cd3e468b981e36ddfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php:53-78 | wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Segmenter.php:52-79 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/Stats/Segmenter.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 81 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"835635d4361f3f5c0e6bb3b8e2cfaf01c4e227db23c016819d630cbab546ac13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php:1402-1406 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Schema/FulfillmentSchema.php:160-164 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d35da71447cb69f6806a672e48884bc216034ae08b24a47e1cc37c2e1095197"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php:129-138 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php:120-129 | wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/RoyalMailShippingProvider.php:133-142 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/CanadaPostShippingProvider.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/AustraliaPostShippingProvider.php"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1ee5248e9f2f8083a2bbab4801e4e49275b6a5977708a12242fa9959e22236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php:90-122 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php:833-863 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 236 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46cd7f1fd8fffe86a459e89da74e45ce21cd4a84517a1dab0be4f4130a3dd61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php:254-260 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php:231-237 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf23a9fb53c4588cb1ff097f1333e6a92ee5d08ea858b301f6ceaf3686668f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:284-296 | wp-content/plugins/woocommerce/src/StoreApi/Utilities/ProductQueryFilters.php:99-111 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa61661d9a1a4e778331f1db859ad9d286b31bc8940d0dbf555c0d9b9c041e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreviewRestController.php:260-268 | wp-content/plugins/woocommerce/src/Internal/Admin/Emails/EmailListingRestController.php:157-165 \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":"wp-content/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreviewRestController.php"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"3838743c69bbc2a7769c94dc7b5f4cad92fc4f042ae8fa1789bfae95202ab216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingProfile.php:40-54 | wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php:134-148 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingProfile.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"673ecb573e2fc595b12562e580696b06e8e9a0160d564d8cdf8d34de3a674c26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/Caches/OrdersVersionStringInvalidator.php:41-47 | wp-content/plugins/woocommerce/src/Internal/Caches/ProductVersionStringInvalidator.php:40-46 | wp-content/plugins/woocommerce/src/Internal/Caches/TaxRateVersionStringInvalidator.php:35-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Internal/Caches/OrdersVersionStringInvalidator.php:22\u0060 calls \u0060array\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/Caches/TaxRateVersionStringInvalidator.php:16\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Caches/OrdersVersionStringInvalidator.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2664bdebdb40cb64a1b1e2da77e98c3d3dfceb78a583dff3617117166942b32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php:262-272 | wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php:285-295 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"155d780b98da0167373d9070abb152631367bfed242071801bb8a717816b3278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php:140-151 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php:154-165 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:136-147 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 6 separate duplicated blocks between them, totalling at least 105 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b74431c5ba12d5c693c94a0c56362c1b4a78121fcbd01bda7d87fc3c558cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/ChequeGatewaySettingsSchema.php:36-74 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/CodGatewaySettingsSchema.php:45-93 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/ChequeGatewaySettingsSchema.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a1266922ac94a3f8a06a662a608c40ad4829fa942658c2c198fe6a9d0223bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php:314-337 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/Controller.php:276-291 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"3461f4d1aafc8e3a88cbeb3c4829a6800271d80cd413a39c8b98b66823732a52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php:347-353 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/Controller.php:301-307 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 130 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"525ef1f2b63eca1648d45193b1790e49ba9450424078c5940dff3275e3a07d18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Agentic/CheckoutSessionsComplete.php:159-173 | wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Agentic/CheckoutSessionsUpdate.php:126-140 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Agentic/CheckoutSessionsComplete.php"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fddd7ac2f7ae172488ac1501356a3bdcbe3314459f329eee3e6655f59f9dfca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php:52-73 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductCategorySchema.php:50-71 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php\u0060 and \u0060wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductCategorySchema.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductBrandSchema.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"71597b34a2baa3b69ea5864a6be55c42c1daf791bd3a34eca74a3c98a992c4f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php:281-287 | wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php:584-590 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"528fe692384ffb262367056b07f9c50287d806232c5858da8a22e4f66f0b0ab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/includes/class-wc-deprecated-action-hooks.php:105-109 | wp-content/plugins/woocommerce/includes/class-wc-deprecated-filter-hooks.php:131-135 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-deprecated-action-hooks.php"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2703632bff26ff7d502aa0f8d287fd271bfdee172c574ac14d64c2d10fc5684f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php:375-393 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:581-606 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ff137deca1cb18f69e294c7784b54e204ceaaac6ae9cd98c73bd2b9e093015"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php:199-203 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-countries-controller.php:146-150 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-currencies-controller.php:142-146 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-countries-controller.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 104 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-data-continents-controller.php"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a85bb21d95b6721fd4b6524e2fbe6dcdc2965796af8f2fe90efbcd02c49bd8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/API/Marketing.php:42-94 | wp-content/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreviewRestController.php:63-105 \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":"wp-content/plugins/woocommerce/src/Admin/API/Marketing.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"327c212f0d8c0573a4f6924747330260b9c5ca06a03f716cc5f012839707f6ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php:398-420 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Wishlist.php:259-281 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Wishlist.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 134 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8f1ef2fac5fce1ea48bc2594a4f6a6a9191efef165c3fdfe8abdaa5a6773a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewOrderNotification.php:44-77 | wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewReviewNotification.php:74-106 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewOrderNotification.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb208eca6943a6050ed63fba717ef5188147500e610525c278c562071161354d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php:271-277 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php:238-244 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 114 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Controller.php"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"312096cb3db9e24510a67e9e84e080aa8367e13b7c1c35f736ac0c0aa424a6e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php:101-110 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php:392-401 | wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Controller.php:371-380 \u2014 \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 84 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a11bf6255e46e54257d2840f347f2ac7e4aee7c3d36669860fe6905bf056eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ShopperListItemSchema.php:51-56 | wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ShopperListSchema.php:47-52 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ShopperListItemSchema.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0d7b9ce153c298ba42a25e707540109f54199c624311e27e8e2fe6bca22d49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php:967-973 | wp-content/plugins/woocommerce/includes/wc-formatting-functions.php:771-777 \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. 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":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"4977421bea41e243bbb42aefcd3b37de80e2a4a98f686e7ff658fbecf5a4567e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:825-833 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php:279-287 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php\u0060 and \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php:825\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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff550111d89a32efd0f5b2465c832bafe564c8e5bcc7a3c0b5d6139310c5ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:422-426 | wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php:572-576 \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":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-reviews-controller.php"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"8140a76d9dcabde7c2fee0d450dedb3f947a70b02edcd4d8e6125a8c25a588c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php:259-264 | wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php:486-491 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php:485\u0060 calls \u0060add\u0060, \u0060filter_var\u0060, \u0060get_option\u0060 and \u0060wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php:258\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6f7c5ccf094bc0f15fd8752d5fa86985dcfe0c0251d5f0534948afda645819"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php:438-442 | wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php:99-103 \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":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a84ba8da8c38688c0fd6d2fa051810a5e1e7c090b9984e988792002be50676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php:235-239 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php:205-209 | wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifyEmail.php:229-233 \u2014 before extracting anything, compare \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php\u0060 and \u0060wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a861d1673722492de770ad24e611d64600b220fef0b62460035b2b9315494475"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/SpecRunner.php:114-142 | wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/SpecRunner.php:154-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/SpecRunner.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed149a7ca5172aa175bef21b4c87479b0b552cec137ad76c9f0a3278ca874f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/ComparisonOperation.php:42-51 | wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/ComparisonOperation.php:58-67 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. 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":"wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/ComparisonOperation.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0298db407e52277384c69883f802931b21d8ab28193b8ae9da6d020f93d860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/BaseLocationCountryRuleProcessor.php:60-68 | wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/BaseLocationStateRuleProcessor.php:45-53 | wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/OrderCountRuleProcessor.php:59-67 | wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/ProductCountRuleProcessor.php:70-78 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, 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":"wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/BaseLocationCountryRuleProcessor.php"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac4216c2548c2232886d6f84c6da05d0ec779628da2a7cdcf4eaeca91526d1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/OnboardingProfileRuleProcessor.php:51-63 | wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/StoredStateRuleProcessor.php:44-56 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, 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":"wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/OnboardingProfileRuleProcessor.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"69350eaa41668d6867713be0dd57376b6cc67bf58fac558bb9711afff846f3de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/PublishAfterTimeRuleProcessor.php:55-65 | wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/PublishBeforeTimeRuleProcessor.php:55-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, 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":"wp-content/plugins/woocommerce/src/Admin/RemoteSpecs/RuleProcessors/PublishAfterTimeRuleProcessor.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"837eb2e899a78cc0316743115f208b2aaf5b0f72e73f78c866d6ae880db17825"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Brands (LCOM4 32): WC_Brands\u0027s methods fall into 32 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 32 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-brands.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88eae0d7662e53d8baae74db245a28bca3f53a13dae743690e53f02efdc9ee7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WooCommerce (LCOM4 28): WooCommerce\u0027s methods fall into 28 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 28 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-woocommerce.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d49604b4fae955b12fb14b7d7c02dc733044c68ee5e126fd5344ef59d1a99b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Brands_Admin (LCOM4 23): WC_Brands_Admin\u0027s methods fall into 23 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 23 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-brands.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"478419afbfc3effa98a6e5cd538428b3286fc2297a9d9dea8c259d1b46a82595"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Admin_List_Table_Products (LCOM4 23): WC_Admin_List_Table_Products\u0027s methods fall into 23 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 23 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a55d93c13c04af3c46d54e8c9c5704369180054ed4392b1a61f3e64e6c0a6b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DataStore (LCOM4 16): DataStore\u0027s methods fall into 16 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 16 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61b50d7b293f0516418da591368e29880523830814643ebd0e762ec98cdea0e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Emails (LCOM4 15): WC_Emails\u0027s methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-emails.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44740c7c69d34682eaebb0f6e8a87b3a6cfe32e288cf8e71848a6342611745f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Countries (LCOM4 12): WC_Countries\u0027s methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-countries.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aecc544221724cce16a60f7dae5bea6989d45efb74401072d3ad92d5aa4fa38"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_REST_Controller (LCOM4 12): WC_REST_Controller\u0027s methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5da6680151d19c53d6b81ce0f5c4489c3236da161c230b5caa38107f5534715"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ShippingController (LCOM4 12): ShippingController\u0027s methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Shipping/ShippingController.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb4bd4386c2bb6e646717bffdb992c8e233f0d5027fd29aa41f03de431a6c5e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ServerRequest (LCOM4 12): ServerRequest\u0027s methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/third-party/Nyholm/Psr7/ServerRequest.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7347c04ffdea8999f50a027d7c37de85469ca8155cb004e2d227d7b595a376f7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Admin_Taxonomies (LCOM4 11): WC_Admin_Taxonomies\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-taxonomies.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0864b99777c19f6ab05b2d3475b8ff686b4c6fb955bfd81499818f64d93d0bed"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Admin_List_Table_Orders (LCOM4 11): WC_Admin_List_Table_Orders\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a67515a4f737cc495d9e1e46aad2e5861db85f2058e6c55393d517be533e0a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Legacy_Cart (LCOM4 11): WC_Legacy_Cart\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-cart.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b732eefe39a0c0bfa0515912c59ae581867bb2a9dc10ee35553e6a2885d06d6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Init (LCOM4 11): Init\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/ProductBlockEditor/Init.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"602d8edca1571dfac04e770fdc0f604101a7c128511c67d475c160b168f607ba"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Gateway_Paypal (LCOM4 10): WC_Gateway_Paypal\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fbbdcbbb801d97c22730f994324f136e7e7e6a36b396367b145eac73b214d2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Fulfillment (LCOM4 10): Fulfillment\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Fulfillment.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90382dff52e4c607b71f1d4b9c3fc1e9046a230651d58a351a6800ce13c040b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Checkout (LCOM4 10): Checkout\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8f97a7d2533b8781fdca471cc6113064ef8e89982b2b30c158d66dc1199b52"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BlockTypesController (LCOM4 10): BlockTypesController\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypesController.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6d635988254ce48e330b3027dab028629a2a0bd7190fa6f0697a651c5ee3d2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Admin_Importers (LCOM4 9): WC_Admin_Importers\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-importers.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f0ac61866ae93169c06c49de796159a716cabb5b97960432b4b6eae5ec3deb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FulfillmentsRenderer (LCOM4 9): FulfillmentsRenderer\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsRenderer.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"00059a9b86dea5ba6c091354f1dc56b9114460d2bc1921f6b30ce15d3f82d5bf"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Cart (LCOM4 9): Cart\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfcd08676827cbdd2ab92ebda4e6788c91fbe59f6bb607b893d1924b131ea1b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Payment_Gateway (LCOM4 8): WC_Payment_Gateway\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd58383870a8751ce8e7fcf0ac449e679aa93211e39e3f4b32a0393b3450da07"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Settings_API (LCOM4 8): WC_Settings_API\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e39910a0debb73d87c876b9acb51e1d8d5d51cf42f5333f65f2ed219361508"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Product_Variable (LCOM4 8): WC_Product_Variable\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-product-variable.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4538d72f6b68d0fda7067cce9410c0bbaa5f3a7b468c8f035747a4c86ee39101"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Data_Store_WP (LCOM4 8): WC_Data_Store_WP\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-data-store-wp.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1519a66b2a71f80a2bfc61368fd640e14acfa3dd91ee34aad52e99f554759bb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Integration (LCOM4 8): Integration\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/Integration.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"622c69f040b3d521289feabcca3848002d5f5a2aae1738ce5e29f8e82f833bac"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Controller (LCOM4 8): Controller\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b28acfadbb8e60500adc3b97cc01a1a4037c3c4f2481936ae66fd4c363dea2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Gateway_COD (LCOM4 7): WC_Gateway_COD\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe775adb40060507e3a79ca4b94131a6bbc0a57d4992e1cb70beaa396f76440"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_REST_Product_Attributes_V1_Controller (LCOM4 7): WC_REST_Product_Attributes_V1_Controller\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7675e4130cde1301eb691913e9be4f5b04ec2b068722a1f99aa3152a8c560ad"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_REST_Products_Controller (LCOM4 7): WC_REST_Products_Controller\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"82433c0d291570890a4b03412a3ded5a350479db56886a77f402bfba9cc1714d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AssetsController (LCOM4 7): AssetsController\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/AssetsController.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"69cd786efe8c1b3571757e7d376c8c1e0ff06a60a34cdd826918cdd92d6dcbb2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FeaturesController (LCOM4 7): FeaturesController\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Features/FeaturesController.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ecfd1d722ac41807e140119db78a79b7c31b8c1a3a93f56f1b933a5a3e5d3d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Admin_Exporters (LCOM4 6): WC_Admin_Exporters\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfcf8fa20f3fd2c498fe9e3ea99ee661ad8d52edae3b513f3ef36f511f767b9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Query (LCOM4 6): WC_Query\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"44499ca24e52ee5a6bab689d10f20d0f39361d0bd855b0f35af5cdcf46c91c44"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Product_Importer (LCOM4 6): WC_Product_Importer\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b10597575260c0fbfc4e0f313032220b4441794b711db438906e31157ce4ad0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LaunchYourStore (LCOM4 6): LaunchYourStore\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/LaunchYourStore.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdb49277f1817aff45501f2df75cbafd3371c985e5e1d8aac94b841060b5213"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RestApi (LCOM4 6): RestApi\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Blueprint/RestApi.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d947b107bc5ac576ed8470a3e52c2771f62118c29665559dcae21582bb415a2b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FulfillmentsManager (LCOM4 6): FulfillmentsManager\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"db41a499b97d0ed70df90a738e43d7cdb8982eb1abc738f539a414c6509d2ee4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DraftOrders (LCOM4 6): DraftOrders\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Domain/Services/DraftOrders.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd02fdbcf7c59c611f95ad3c6a1024c980c19ce812e4ee7f2bf05218c6ddae7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AgenticWebhookManager (LCOM4 6): AgenticWebhookManager\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Agentic/AgenticWebhookManager.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93ec943423856e53582b75735784fe348cee41c19d582620f7568642b32702a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ReviewsListTable (LCOM4 6): ReviewsListTable\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/ProductReviews/ReviewsListTable.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c67d38b71318e40e704a55270c40aaaf6e027630cdcb55a5cabb62188bffb66"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Request (LCOM4 6): Request\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/third-party/Nyholm/Psr7/Request.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4e152d13c6cf3e70c1477bb2e68df6959f5001412856be23f3ab5aa6e661fa"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Admin_Setup_Wizard (LCOM4 5): WC_Admin_Setup_Wizard\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-setup-wizard.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f75fa1b9b92c75faa9f961f5d722b861862a9a57be7e68a9b5182c8de50933be"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Product_CSV_Importer_Controller (LCOM4 5): WC_Product_CSV_Importer_Controller\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2930778e5efa59c3deb61d973eaadad018ea2abaafeb2e20bf897e9d238c24b7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Coupon (LCOM4 5): WC_Coupon\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-coupon.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c894de76ace60d89ae7ce537ce090b5c6a5f7e66e54821d8feee561df2c740a1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Order_Item (LCOM4 5): WC_Order_Item\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc15ad4bdd3f8e75b1a2be1ab1770b4de02a14360617ac5715da67710becd45a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_REST_Product_Variations_Controller (LCOM4 5): WC_REST_Product_Variations_Controller\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d1369742f6da29c8d24a74c491bc720bddbd7d928f1548a587ef1cafd13fa6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Shortcode_Products (LCOM4 5): WC_Shortcode_Products\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56994bfe781dbf4ed06aa9b48fa32328f93ce376dd0642a9ef4f0d14bf382dd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MiniCart (LCOM4 5): MiniCart\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0cc0ee233198462653e5e586214eb156c55c242cfc69636f7af4cc33e43ff2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CheckoutFields (LCOM4 5): CheckoutFields\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFields.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"37918ba3c20e724b5a0fe414213e0b813f07c49a3fdf8a5daa47eb945311ab6a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CLIRunner (LCOM4 5): CLIRunner\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"d876fbed76967f53c82fe0ef38af7530ca3c3a1ed702e6bdd0472db28c1d1ec3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CategoryLookup (LCOM4 5): CategoryLookup\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/CategoryLookup.php"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19289e36707354974b66033273e39f71b7444a364ecd79409f29171a7c0dbc6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: PaymentsController (LCOM4 5): PaymentsController\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsController.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81951c8beee95c96195b3405bcf1737a2ce49482035cbbc56370d988f561cf6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Controller (LCOM4 5): Controller\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a368db2ea58a26a5868dabb0192c1ce7032a71ceb3a82e44e994e31ff0b59ee"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OrderController (LCOM4 5): OrderController\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Utilities/OrderController.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"512e2fee3b58fec45e54d49b1ba8ce41773dc0793ab25e67af70701b488e2d4d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Response (LCOM4 5): Response\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/third-party/Nyholm/Psr7/Response.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8146f5e67355c7582117124f3b0bc38d02d3e9bb8a140e61d45bc09cf2e428"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Abstract_Privacy (LCOM4 4): WC_Abstract_Privacy\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-privacy.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e831b1e3a93431d55061cab9780a88db263076134a2db077b80623c61a42cde4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: WC_Settings_Tracking (LCOM4 4): WC_Settings_Tracking\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/tracks/events/class-wc-settings-tracking.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b321564ce943fad091e8f53e361b42d85cfc4164ace1e6abd3057a8e7ed0e929"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DataStore (LCOM4 4): DataStore\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/DataStore.php"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d8ad70981d861e4a52dbcd2916091a6e124f18bc65fbbf20fd2fffd37069b3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Segmenter (LCOM4 4): Segmenter\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8527dcabbcdba982b3b70154a097a2bb9f1eb3820e2cc9618e3a3f3982e68bea"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CustomMetaBox (LCOM4 4): CustomMetaBox\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Orders/MetaBoxes/CustomMetaBox.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32f64b605cabeb15b67350f26c1321313cedbd2263ecece138230f1bbb39fdd"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TaxonomiesMetaBox (LCOM4 4): TaxonomiesMetaBox\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Orders/MetaBoxes/TaxonomiesMetaBox.php"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"607cca06d6acc6e8076aa485431895ba66de9857c788038cd84908301ae92c9c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ShippingLabelBanner (LCOM4 4): ShippingLabelBanner\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/ShippingLabelBanner.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c244be73fbef913aab3b81480e3061490ddfe7543309ac1ec4a4e9e4d04e692"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CustomOrdersTableController (LCOM4 4): CustomOrdersTableController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e78ed1c36493502a5b15f803369fc1f4534bc505c43f6ca9437adba152b34b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Controller (LCOM4 4): Controller\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/OrderNotes/Controller.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba36291becd28e6819d54a02bf47ce0a6b59d9fa91326f1cc1702805bd39622"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MenusController (LCOM4 4): MenusController\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/MenusController.php"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc84137565cedeaa2b4a8ac7c88c7835256bbf06f4011ab43d28e82a4de6d259"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EligibilityService (LCOM4 4): EligibilityService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Utilities/EligibilityService.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6f7d7e90e0d963798623f5e2fac18d5ebdf8f3332d466adfaf3ab1d8829bb4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TransientFilesEngine (LCOM4 4): TransientFilesEngine\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/TransientFiles/TransientFilesEngine.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a699d81aa58135dc2984acd2be6739130b4957d2e04ab28dd4cf74eea1493ada"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: COTMigrationUtil (LCOM4 4): COTMigrationUtil\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Utilities/COTMigrationUtil.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ab911740bf1e41325747f702fc1054a484e7bafcf26faca9629d939a31d6e5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AbstractSchema (LCOM4 4): AbstractSchema\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/AbstractSchema.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39d9bfb3f3254e0d50cfb30a4e21fda846d55b5e9e2df6a1b5db4d62a44f44e"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"630725f7da3127ef383f9a414198edaf1e2897e190853bb4d8a7e3d3babfb37e"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add support for other capabilities when interfaces are available \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Builders/PromptBuilder.php"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3f628bbdf0a81f42a567bfc2fccbd4389636fe64f8417b73b4def70fc7a5f4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Add the rest of the actions and filters related methods. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Proxies/ActionsProxy.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"b345ff8565a1b705f412bcfe8ce84e317242591a302d13671725dbd155f8b47f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: adjust for non-CPT datastores (this is only used for the progress bar, though). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/CLIRunner.php"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fed18366f18cdb7ba52c4465260bb58233ed39e2026fba7bb84b89023270f9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u0027name\u0027 arg (post_name equivalent) is not yet implemented for HPOS. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b40baeee694842df9cb9b844456bfd28b83e6240ecb2b2d318e1833e5413580b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Need to validate this request more strictly since we\u0027re taking install actions directly? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooCommercePayments.php"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf494b7344343997571acf340cf673e13f5bdff58ef5066454852703690a27d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: The container call can be removed once we migrate this class to the \u0060src\u0060 folder. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Gateways/PayPal/Request.php"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbe272e9b2d9411f0a0c0a2f251d552c7e2317cd4683a8cdf93233fb5d0cd94"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this conditional once the fix is released in WP. https://github.com/woocommerce/gutenberg/pull/4."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilters.php"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea295530a9aea22e8b3e364866b29f471a12f844c76ebfd96760b8343dd9d39f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Submit this caching behavior in core. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"c969861546a070b5b0411c33a78cda6813423eed228f8bb61e5d6c3cf534e9eb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Arrays returned by reference to allow modification without notices. TODO: Remove in 4.0. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-cart.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20d32be1564c3929aac0bcc5d50033cb2e831f990b8583b6c8fed6828caec10"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Deprecated args. TODO: Remove in 4.0. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-cart.php"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"56186ff70f3004fe5127940e135cccf355d15689ffdd172d81d93fa3449eabf5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Check response signatures on certain endpoints. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-api.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a55151aa0e5fbc5c6401d094f89ad288c60c60b313686155f92d21621a62d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: Remove need for this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"21687a7764b95b8a346ff6b5d57c14f30e8ad075016baf667a29c069a3c55e73"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: Remove data-required \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"478d3826ea53f464b00ca713d37d9300f2a8140397cdb06a722cc3d0230067ac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: Move from $wrapper out into $field. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed711ac860292378571f6fb2b4f797f9d52b72c577c59e38fbe060fc9afaccf1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: investigate output-buffer to hide HTML. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/assets.php"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"f136a4dfdb4d3401b85b7ceee3075c3fda0832f523dfa22368d07d85d523e1d3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: Change to post types that support comments. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/locations/class-acf-location-comment.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1e623d8c0c414fe60a4a5c2f7940d2dee46c872b4914425df2f74962e796a1"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // hack customizer function to remove bug caused by WYSIWYG field using aunique ID \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-customizer.php"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"b81a30f52518bdf56b97fc99e8e882454739d96c91bdfdf7f12e803e73f55456"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: Allow message and button text to be generated by CPT settings. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-front.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"016a292549a4c1b12f7db0ee853f2f6e9230d9d2a099d06163694b8302689bf2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // Todo: Return WP_Error and show above form, keeping input values. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-front.php"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3557aafc33940f8f60b36b07d7a8e3c2536f0cb3d1ebdebe5307f696d404fe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: Compare class types instead. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/api/api-helpers.php"},"region":{"startLine":2615}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0064fa137c02e21456b78135320b07fd7224c4e216a4a9ba5e734d594521671"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: Remove this after updating translations. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/admin/admin-notices.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"130c5c2b82829ef1a9d486c09b693e25273fa4bca8cc3b9991182e972494874b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022check for a placeholder option if attached to a select\u0022 repeats the code it sits on: 4 of its 5 words (check, placeholder, option, select) are already in \u0060if (this.select \u0026\u0026 this.getPlaceholderOption() === undefined) return;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"b694bc06e916010f96211ce433972c3784dbd1f40885bbdeab9df2fa42017ac0"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022controlType is string - key to our this._controls\u0022 repeats the code it sits on: 4 of its 5 words (control, type, string, controls) are already in \u0060if (typeof(tp_inst._defaults.controlType) === \u0027string\u0027)\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c25bfa1fedd895273369c67704d0599c74c84cbd45ec694f1ff44436655e49"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022end for loop\u0022 only labels the closing brace of the for. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bb074fd5b0c76b6fb1423f4e573c0454104ef66ddad55a8942891805911f83"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022set menu order\u0022 repeats the code it sits on: 3 of its 3 words (set, menu, order) are already in \u0060this.setFieldMenuOrder( newField );\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":2035}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fac85ac746b23ea99738138e6762dca71dc1774cdb39a9633a26d61c719207b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 11 comments in this file only repeat the code they sit on (lines 1866, 2119, 4932, 5026, 5038, 5923, 6941, 7932, 9253, 9496, 9719), for example \u0022Add map events.\u0022. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1866}}}],"partialFingerprints":{"codehealthFindingId/v1":"168cf3e3ef7ad9702b6dbe5b3b0011c74500ef2857cfd26cb276f2d454a5fb09"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 5 comments in this file only repeat the code they sit on (lines 119, 234, 716, 1348, 1712), for example \u0022add unscoped events\u0022. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead9f5f6ac25b7aab88b16dd812e3d0e0094a4ae7627abdaf02c60d9f2936d9b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Post Status edit click.\u0022 repeats the code it sits on: 4 of its 4 words (post, status, edit, click) are already in \u0060$postStatusSelect.siblings(\u0027a.edit-post-status\u0027).on( \u0027click\u0027, function( event )\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/classic-editor/scripts/post.js"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ec6f263c9b8f052322cf4e06c154c26dd1f466ad581970a0cdf03fe7bc1bb8"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Hide the resize handle.\u0022 repeats the code it sits on: 3 of its 3 words (hide, resize, handle) are already in \u0060$(\u0027#content-resize-handle\u0027).hide();\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/classic-editor/scripts/post.js"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07ca7ce6075bfe56551c49e00ad24ffb5b972190318c8c1be34c061f3cbbd7a"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Remove variation-needs-update classes\u0022 repeats the code it sits on: 5 of its 5 words (remove, variation, needs, update, classes) are already in \u0060$(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac63bb1b5a7d76d496e09952016c869786063b76a20a22e35cb32f493f039300"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check if the field is optional, a checkbox or a search field.\u0022 repeats the code it sits on: 5 of its 5 words (check, field, optional, checkbox, search) are already in \u0060if (\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b7e59293dcca13892e1f7e2222d911ad18f19da20a003ecb934e0710c6b6a0"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check if value is a string and config is provided\u0022 repeats the code it sits on: 4 of its 5 words (check, value, string, config) are already in \u0060if (\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1413f53a9ff7ba53362bf54952a2744aa6f9a1e66901f63432d10b2b11224b1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Save method settings via ajax call\u0022 repeats the code it sits on: 4 of its 5 words (save, method, settings, call) are already in \u0060$.post(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a105ee24c138cf84f5bedc35e49ea98ee8dddbc92d5b92eddb3d0f955093a56"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Add method to zone via ajax call\u0022 repeats the code it sits on: 4 of its 5 words (add, method, zone, call) are already in \u0060$.post( ajaxurl \u002B ( ajaxurl.indexOf( \u0027?\u0027 ) \u003E 0 ? \u0027\u0026\u0027 : \u0027?\u0027 ) \u002B \u0027action=woocommerce_shipping_zone_add_method\u0027, {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":762}}}],"partialFingerprints":{"codehealthFindingId/v1":"0358647725c44a066c28fa4f53e8a47c36cf78d13a707fffc585fc14f22118d7"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Remove method to zone via ajax call\u0022 repeats the code it sits on: 4 of its 5 words (remove, method, zone, call) are already in \u0060$.post( {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51d58a0903bfe7bc9eb135a5fa8863035a3dc97fc62b0ff7f01e82712b439e7"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022wc_input_table tables\u0022 repeats the code it sits on: 4 of its 4 words (wc, input, table, tables) are already in \u0060$( \u0027.wc_input_table.sortable tbody\u0027 ).sortable( {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fb5569d8a605794f0853bca2159aeb831114cd2b2a947ca7e4e5504ec21e67"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Show order items on orders page\u0022 repeats the code it sits on: 4 of its 5 words (show, order, items, orders) are already in \u0060$( document.body ).on( \u0027click\u0027, \u0027.show_order_items\u0027, function ()\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdb707d9a832b968d1cfcaf26004d3f8234f966369a4ad4c9c4df9370455b0c"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Orders list table.\u0022 repeats the code it sits on: 3 of its 3 words (orders, list, table) are already in \u0060this.$list_table = $( \u0027table.wc-orders-list-table\u0027 );\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"a480e6796e8f0a0a732dfb5295c38b6be186030b554b45acbf04dc6ade652833"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Sanitize label for display.\u0022 repeats the code it sits on: 3 of its 3 words (sanitize, label, display) are already in \u0060const sanitizedLabel = sanitizeForDisplay( label );\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d634c979f3d1318a1e0f3555020a45f43c96edaea4d4c0f3b45f02e78edeb3e"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Sanitize input value.\u0022 repeats the code it sits on: 3 of its 3 words (sanitize, input, value) are already in \u0060const sanitizedInput = sanitizeForDisplay( inputValue );\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43c3f88cea4434e0dcc23726c83228c9dff69bf5c967cf8ae89564c18ac6dc3"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check if we have an active provider for this address type.\u0022 repeats the code it sits on: 4 of its 5 words (check, active, provider, address) are already in \u0060if ( ! window.wc.addressAutocomplete.activeProvider[ type ] )\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4cbd3829fc06337202464ab9d09f357cb668e4f4c17f858232aee792f4cde6"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Inputs/selects which update totals\u0022 repeats the code it sits on: 4 of its 4 words (inputs, selects, update, totals) are already in \u0060this.$checkout_form.on(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78ad397a6192f7b7455da3d29daa5f829b249d853364c2ad920b206300408c8"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check if window.wc.addressAutocomplete exists and has an active provider\u0022 repeats the code it sits on: 7 of its 8 words (check, window, wc, address, autocomplete, active, provider) are already in \u0060if (\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe8522094f724b7894a2766d3adee5193d388e144aefd24b160363c6f75820b"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check if window.wc.addressAutocomplete exists and has an active provider\u0022 repeats the code it sits on: 7 of its 8 words (check, window, wc, address, autocomplete, active, provider) are already in \u0060if (\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd66b42b45dcae62ec0399c5afbea590ffb8ff08637fce7959f46a790b43b4fc"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Check if window.wc.addressAutocomplete exists and has an active provider\u0022 repeats the code it sits on: 7 of its 8 words (check, window, wc, address, autocomplete, active, provider) are already in \u0060if (\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a862c8c66167ac2ff90db1e73fa9bb3a46ed2226f73c86c194a40305ec7eac"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Allow password strength meter stop checkout.\u0022 repeats the code it sits on: 5 of its 6 words (password, strength, meter, stop, checkout) are already in \u0060if ( wc_password_strength_meter_params.stop_checkout )\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/password-strength-meter.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe4bf56229236bdf49bf784e78dae2bfcd5587a545dc645077c071000fb2a38c"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Reset the window object and providers before each test\u0022 repeats the code it sits on: 4 of its 5 words (window, object, providers, test) are already in \u0060Object.assign( global.window, {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/test/address-autocomplete.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"31444bf9f5373fbcb9e26a447d577051520ebab4e497c658a0c6600e576fd98e"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Register first provider\u0022 repeats the code it sits on: 3 of its 3 words (register, first, provider) are already in \u0060const firstResult =\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/test/address-autocomplete.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd807e93ee4be1146a961933fa20ebce46f6956eb8476bff22e75de492a58b5"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Register the mock provider\u0022 repeats the code it sits on: 3 of its 3 words (register, mock, provider) are already in \u0060window.wc.addressAutocomplete.registerAddressAutocompleteProvider(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/test/address-autocomplete.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1329b9ff5080f47f17ddb28e00d8ca05acd7d5b0e4465179a2eac985c1741cb"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Click on address input\u0022 repeats the code it sits on: 3 of its 3 words (click, address, input) are already in \u0060billingAddressInput.click();\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/test/address-autocomplete.js"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b15150ffd34ecadc92941068d46da064f55b40e7defe171298e860bf3321f07"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Starting with \u0060no-custom-button-gateway\u0060\u0022 repeats the code it sits on: 4 of its 5 words (no, custom, button, gateway) are already in \u0060selectedGateway = \u0027no-custom-button-gateway\u0027;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/test/custom-place-order-button.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30760557689fcd4f0cdc55fb2344815f9b575108fa09adbb2ad0a1fc09b64db"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Add the product to the cart.\u0022 repeats the code it sits on: 3 of its 3 words (add, product, cart) are already in \u0060const addToCartResponse = await window.wp.apiFetch( {\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/gateways/paypal.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"955f2bf072e8a9d0bee611f8e983e19dd1d5eec2a88661e7e5b730cb3936f0c0"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 8 comments in this file only repeat the code they sit on (lines 62, 85, 88, 91, 109, 124, 127, 133), for example \u0022Dispatch the simulated event to the target element\u0022. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-ui-touch-punch/jquery-ui-touch-punch.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a877d6d075af74d0dc5df0a6f487b81294409665b0a6e0c2de99defb343d1ffa"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Set \u0060user ip\u0060\u0022 repeats the code it sits on: 3 of its 3 words (set, user, ip) are already in \u0060params.user_ip = user.user_ip || terms.none;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5c9730cec09e209f74bdae171942959c6df338f8957620e586e108c547bba9"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022already done so with the same prefix and iconName\u0022 repeats the code it sits on: 4 of its 5 words (already, prefix, icon, name) are already in \u0060if (iconName \u0026\u0026 (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || \u2026\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":4007}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb77a69fce3af06ee654a27cdb286321795558938687a781289fb61e30b2fc8"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94511c12b15d616b57d2f000af69cdb59a08318cd9730245f46ff395233ea5ef"},"properties":{"commitSha":"64140f41cb3505b25c523ae64ecec54852fc278e"}},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ec1fa0b798fa1c6cf81b227b416353d70180d778bce4e3d86aff11ba0fd02018"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ea35633f4d99893d94195a80047ab1dcd41c5e87891866b59b026745322d56dd"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"013e8b05e9e13565415c70c7ca4dd03b56f15124d810994c4e867dca6f0c5c90"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"885265467dae5c98ecdf67243d1a05d454d779f96d81dac9faa47228942a1bd8"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"209d45d6defbf0f0cfd09e007b918fd49ba99a0ff3ab0d5ea948fa3503c9f16e"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c65583407b6b195f2f8804294430288060ff664becdade64604c8976572cdfcd"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f474df63103439c2221cab84f327c000ff83f444752cb9cfa4b5c1946b269817"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b32723ead4a1ed5096ed3fb3dd53b259f49b628d99b2ffdfe8910e80737f617"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db90359b69db81779d2a5c9f80496923f618786216720d86c99a4691cf55ba9f"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3889ab74171050d50c40adf8e7cf90376b89c23f31b7904a6d646d75264e3f17"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"db0342d96f9fe703953de54bb14eb7ba4ff2b6f168becca7beef59951be16643"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c867467ee6990b07859b019fdff779fa7982ec39bf94bca57ec8b43799b3f810"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1437cbe0e2e510fe76f7a7f6e8e6caebc84f58cec4ddf25ef4d596937ce491c5"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3de09b98c3a099f140b1e8f4e0b2fe8e8410747d1888a87135ff182daed4f1cb"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c76a66f84ef911b7bcb424a675f44910d4aec2b8aacba7a37a80b88db25c61d8"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19a1684ed1cdf7d1803470c6c5eec0323790f5d8b8d013cb14a90e6988ae9bc9"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e404c05d46eb096ad5e273046cfbae3d5496648057542135e3f082fa1abbbea4"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8f91dd8723e621dbdeeb30f65530d1dd48fe5c17cc8fd582d9ba5816a191e90b"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ad3e8c7bbb43b7f3a3f7702e4d0cf977bb19d97049b24abeadca47ee9434961"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d9fc5435adc098cb61cb5088afc660754c0e7a7da419cf7b92ff17e83ef284fd"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"04893976b639d8115b029db868f3385a956bbb93d4a6a258005be796148cc665"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fde19e9068ff93bebda9eefb2bd910ffe3937892964aa2b48969138db0bb4dd8"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"10552c309ff74ebb966c3c96318d42083b74a774bbc6a31eba2bdb4f98ac796e"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31b36bbf014de76bf4da0d7e20cab0e79fbe537b969e6efc2701a9eb1d2ea830"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3db0bc2b6255dc42855a795c2ce2b7e8449149bfd115bd8e82dbbaba694901b6"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9da9a7e47d8bb45c4a0119d4b8073ed54eabb45655515e1e13bf117dc09b24a5"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ccd9a279cfa2fb8f7be8e32b1f8e6e716a254d3cebcc1a0652d0d4abbdba9973"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3ba4519a614894d75fabd83dc216396dfeb820a6980bf4716117f4e887613527"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d26c35910b869346c04e83a6dc1364f8985718d484696a707a9bb618caafe82"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a5c2d860fb5895ed6786532f42e1d54e6aca0085ba4d435f4a264403a127e840"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7e715c7772bb65686caf10218f6bfe7ccc38705bdbbe39089367f636b7d87590"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"04ad896e21a73752e8099dc881bfd6c80658b9881617af870e0f6c236eb223fb"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0ef67a9a48500e14a0009dce04ae0f76b129a93f64892001a9200396e7fcf816"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4f55a2344159b7c93ae4578bb41234a6074a821a7d06874a29ba1785eccfdc9b"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa1375b07bfad2f68efa96f5cd9603d489d20213c3947f464087d28eebaa5041"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5196ab252308dd75e2a715b7700ca695d5f5905a92d6bd47b97b7acbf4b086ba"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9bf584085b77348fd6954a857609ad6abcca72c9057d8b538514d36580120c30"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6662b3d5ca9c099a1e13335a7cafbdc53915bd1ba08321eca338b23620ea4b4a"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"655e1f85114131a2ac42ad985fef366f35015dd31edb40d588335d45eb0bf930"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"16d2358451a4bb8a42f0076130344aed863d17520aaaba9c5c9696f494f277c3"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"797caf360d540270eac777dcabd8607f9d793096e05a85751a3e22cc0744d0bf"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"88d81ff7c89300785fdbcd60f72b86f38f2c15b3137d6b1fd680c3deface36b8"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ccf3311202136e9126b1918283b8d0e94637ed8717beb098f9d2e94fcd8ae022"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4667e7f5e0f492efb1ff032822e313b08857919df1636f0bccba07722d3f8756"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6326e1e10175b67ea02eb6b5451498c667b65d8596c0fd01756063ee0c8e8792"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"139671f5ebe8b7391aa07b00d2b73a1134b45c77e9fce9298efb210cca9e46ca"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4d4ddaf046920b69a467ff468c2f31fd318793315825cba0ab0ffc125ba98146"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"97516aed6408fdbde7f1754f607fddaaa0b5b6f312f30879a73aef407399cce5"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f306b21993b4ed164e4b967970291163bf2a76ef4f92fce59541e642f20a8bd"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a93646a4ca84677038c0e1e7008739cd7f5378e2e473e3addde9f04485e0f8e4"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"44836fc37322542199bfbbb3cba96d36fd1568b59b6f5a03212511274135158e"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"0d27e0c15ae9b2b41067a098c67e26c8976951508a00e9f861e577cae5833085"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2c898cceebb0a388b19aae5211684d9ab7ad581042492d514b2d9c2255425e39"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a8474dd353ef8d7b101faf47b23b3b7241a8ef83ff3bdd96d7215cec89abcf17"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"6a36c731b2b71e2878ca480a2e5c6e9be9cdcaf268c234442bb5c0f8176cabf1"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d922e87ff746671fe76bcb5bedbc4a287d405ca2857c02db481b3793f4238538"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"bb5149d1ebd5e2bc6857f1e3ca55447b36850420b2bef2e1fc9ee054ba7b7dd9"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"abaeb4ed494702370a6be5434af15b73cb8906357a404a1ff070c43424680e6f"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"88c369355771b6668ae7b933c92b2606f3f3909fe57f778145b2a14d674c6550"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"f8ab13d9e83748789bf96e5cd0b84aee8489f91df86d4b2e39d948d0080f336d"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"c23b4a27f3e7228a038017a698e3ef8443f38b07e6d9492c096a6162de749311"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8a0dfb95792eaa8d408edb0c8e60107c1b9928280afdcbf4b0a48ef218329654"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"493e818ff8c19ce18a98398d6dad3414f856a09f8070025b5332217deac1d6d3"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"6520aa0eafc3b6e0efbe235f177bdd198abe6b80b157cafc67fc1705cad77fd5"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"6816b5202ec455ac366cab0685c590ac3f5fd753078c100e5f4a8fe078347076"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"e7588d4eb459586aabd57fd14e29ce88d536d7122bd331267ad69474d9d93b7d"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ccb9a9edd517a19273ccaa73c348f2d3a9f1c989414428bdd34b2438010ec75a"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"3caf23d2562b9b5b03e1f0e88bb2c9bcc06a452d456dee2edd4d8913bf87c5da"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"bde0738be73b602d85352746bfbabbb6f25092bfaaa965e95661f92022454548"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"7bfc90087a0f60cde9067edef5df28f0a1fd0ad91d4e34f98b8a0d65e03ae382"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"6721dbe331d30ad47c5beb9262669cc13f7d7d5b26140804ff69abb16b25cf6c"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ef500119bc98b19ff03b23ce1c4bad530b8d6788806198d3274f196689e9697a"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9bae20f0094d7534f2b8a785b70d7b32f0799568700a03d0758a69b2b69f7b96"},"taxa":[{"id":"CWE-470","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"4761b5c583dcee693d5923a323b6368a24ed80a56892a65ffbb413cdccbf72f6"},"taxa":[{"id":"CWE-470","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9f9619600d01135e5abed84f734e1ca5e4905b7048ca9f0671302c4cff9b3d7f"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8ee7aa05c486d1ef2d61d9c1320a7bf6cd6e3eaf55c880b7341bd77f7648280e"},"taxa":[{"id":"CWE-470","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"b755f96acc74a380788271cd65e9b5312d4971817036dbd61710af26943e28f7"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ccecf3aa0d3b9bf0c8175301e974a17b2d026fd0f4c8fa3db636e93ed2a81632"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"28165656e94b35e2291068ac6cf24ff8618da1d7d55e4240a18ab1c539325ec8"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a8322e6ece1531e1da77ebfc3302c22a951a11340c502761a5bf4fc18669eadc"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a659f9f890d08821a546f4d3db3d185333833eb0c0948209b301b838fdecf130"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"7dc15c6a5e01cbaa749064c6f2dfe72e9f7420b51eb7fc4b56f12607e72bd08f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"df7e641406d7a2eea8fd5b77f06d9e9c5b95fb0ade3ed6812327dd62164c7f3e"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9bd26736384d88dbabaa2ddeb1e3a8bdebd101b335791d6c3c6b4b6237dbc85e"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"1299bb2f72fcab49be14040ca53b988d6b7d89427fa98091aa8b8527398a0b2a"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"02e7743caf4659928c0f7c3e29ccd8110cd87e3bfde6ca5c9b4df04ede53c531"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"736d69948987c6ef8da757e751d50df5a7e559e90426220bee7406caee7bd80c"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"699cb3d80cae7f51a44eca5a9b6dbb5124d19d040cf166b4e7049d1b203d20d2"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"705168c923f0ac1f1da7044d14ce7a5e29184cc2a6eb7d981b841240c5ed2914"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"3c3860a552b69aaddb4cb880826b7146cfed17a93562e972cb462029342d0b83"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2318dffcdd52e67ee73a27f676a843394d40e294c4249f915d25dab37699d325"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"09945d0c59853787d893efdc4b82f2288b3b92fd015be06a6fbf19bdbb311894"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"a99a50770e71458d0fd4d1a976171b2d6241da6d4bf6e35a7720f0a0629b9fd0"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"89a1aa4692d230ffd07b1b894da26c8fe383b8314d81d0e0bb6d8f34b9afe187"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8373abff1d12d185fd0f71cc8a49a8ff8c1b2e6122cd630aa904cc9ad9227a04"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"36d5148a3498fb285f6fd8bbc598377f503e883bac3a98944e7ee154aa48a197"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"fedf4778bc7b03932f07284a1745267b36983b273e327fc5f58bd55130fcfbff"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"63e1d8860dad4f044ea97e1fe92315153c2d6096f623b0be49028f02b1c1d35e"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"0192e2188efc63c11add8897525510ed588b2716b73965c268cf11fd82f73073"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"27f77bed0020d57dbf351951a6065e191a3d5c9d2c8650a2e0248101bd6fad36"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"c42da606b15de55b17489398f4b13692f5cee1288f4b1849c8fa1cf2d3023e46"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"2b938d2c7315d33862a5dc86354a19410f451f44af02c95f5fabab34b2cae8de"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"7693d46c400f431c080357d3d23cef38ebc3905c79309f2415647f8332bd6353"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"224ad8245acfb9baac4b53437d3f8c49bd2e471d6975a54bd3f03010040c0be2"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"bd3a526eb8dff5cb9c0ff4fb39989c1d54bf72f6e0b7e29f125a5448944e6998"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"bee87b81697946e8febd9e4c8e0c588b654d6803271b5a5ad4fa79deac72f85a"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"3b34597906337b07ae9fc94ac056ce90f857c1310856bc11f6d0cc402275cfe0"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ca92dc06bc75f6d89969cdaaae7d62cdfc79deff0e1b86abfa8513b9bc773769"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8d0e01d6bf1f79825c34c87963bf8c732c7c5b2f9603ed7e357682136061c522"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"97d57ae58ebb4f24bdcb55c27993da96917bd106ba7224a3c04317c7836f8ded"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"bc22aeb447582817ab03fc160e4353dfc9205d0943376f13aa61fe1d4b0a4be7"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"caa8a1c1a85ca8dc156caf45d796d713136357f45f4e89c79c7f38d13b6e6c51"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"b0fcb199efe1235770b4b2b72dccf654e4a1b69280245fc31d1407e754cf1b0b"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"3f178781879379fac0e250a4023321dc5e5c5bf4f1f1341ccf666c42da079cdb"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"175a01fe46e4f86be097be7c64c6d5e12275d6f168ceb5714050e3edd260c2f2"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ddd303748dbc75d4f89d2701e596d4098b3485336b42114c43e552d514d131ff"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"56121490d6620e6cc80b205ff3c8e3895a3d3a52a5f50a4deddd8f93f02a44cb"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"35f2f2e3e93427f8f3be164439433f997f5731c15912702f58f3125c01f78208"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"d4bdccf578845684fb412e437e69aa0648b75ef827a7653d9500231d48b8fba6"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9193abdbd91606bfcba40a7108611200309d2f4f64b9c6bc046a744f91101f90"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ccbc1214e22f4a4ac8fb1cce9241afbb4b7490cc2d528c3d6a6e82abec5e8b78"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"52070f4ea89489abfe1734b6de66c2f011bb1539db1ba0e4d47561c7863263bb"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"06f4f9f51a7ba89f3681e60b95ae85ce1dffb039678cee3dd36e408e2a8583b5"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"4954743d810ca37a4e64f13b607408a7cc22caa38dee676efd4d8031f30cd146"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"29364dd75188cf0a4a73776aa149555044ef6dda4460f531bb210a9e0af6bc2b"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"f3c8e2046a4654c3e2cfbd2f6cd1603628ced9c8ec918652f6b323ea6607566f"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"f606ffa51052a0193a5d89f0774b0c6be8ee7c720dd7decbb91a23c38990d176"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"375644d021107948d9fd5dfcb64bc2ed3d612efe3c41980dbf6818b55d8e0bf8"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ff71b7b1bf8a8f9995babbf9977724768403df4b40f500ed607ec9c0e339b203"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"6ac2448102ff15c1e0ebb41a3b026dacd80432d4d74a2f09ba463e4a7ec698ba"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ef570d554496831ce0ed0b217467742ce3a9a3e5d3f3c27b145e0483b20e90c7"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"8b9ed1dea65c8dc815958be883b8e57cd748d1a10928fae8672bf18b14e1891b"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"9f09fb0857e1f2b7c8ec30b0d51cd1eee499add2710d2525ea21983f4580148f"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"7ca9cd1d76a3542671feda09c044563e6f9de7b4c85985a3fae37a3218b7105c"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"ed1076a95f51c5d5f52fbb6ae7e0cb64498c0fa09ebccb5d123424400b75a720"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"6b763e68e6fbf113e1f1a8a954d1e87b75082ad551518055ca6aa083caaef9eb"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D32","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":"6458e071d77c370e5af23cbfa482999a9fce6c8f2a9c968ede87cddfacb861f4"}},{"ruleId":"D32","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":"3d65d33334cc4f52a68360370903074c46c6d6367a29f0bee95261b7d4bb55ae"}},{"ruleId":"D32","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":"16e0038d3182ba1e92942aee2806371d8d54913f83ebea19f5baa19064f89e08"}},{"ruleId":"D32","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":"8a4bd87f78768e70f965c9fb14c8333239ded4da9bd714b7337cfd6c2e1bb711"}},{"ruleId":"D32","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":"134839ed3773149f4048e3f16d49621ecb9326091e044ebeee4f89f508af26db"}},{"ruleId":"D32","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":"921a71c4b10a076d16a8539261cd7c94c92e4f12368151bf59cbfdeb0ba1da3d"}},{"ruleId":"D32","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":"3644f9b47e897a80c83d34500cfebdad8b134f278be9ac957b33f231f04fadd5"}},{"ruleId":"D32","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":"d31d7df08ab5cbd61764244c43586a6c5b4be81871cae4a9800e7173eaefba57"}},{"ruleId":"D32","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":"d332a9c8cf857f6fc4d9af569a4f1d0afacdf1736a888278092a80a770961563"}},{"ruleId":"D32","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":"47a98faaca975c42996f0afbc3e7e156f15a28dba2423d0ffca4bc10d22a9406"}},{"ruleId":"D32","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":"3b55eb8611c94b900ccfa74c1f8ee2146968fef0e432f4240b483033bf3f1d43"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb46d0bbb77606128c24472823782ed13b9034dddcfc5620301236943284034a"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-qrcode/jquery.qrcode.js"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"3331b81428269d0d5f074c1700e4d20e54e59e5632016541c06c370f145d8461"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e723ba6ba2bd2c867593c167b83094165018e959e62995496312f5590cbeefd"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cembed\u003E without a text alternative: An \u003Cembed\u003E has no fallback-content mechanism, so it needs an aria-label/aria-labelledby/title to be described."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"009e3c539d88cb458808d21953a9268070f8b0c15a086c19e65a46e9e0baf8ef"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Cembed\u003E without a text alternative: An \u003Cembed\u003E has no fallback-content mechanism, so it needs an aria-label/aria-labelledby/title to be described."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58b16e7cf1a0661323cd30da5c129b3eb9e79d714b74a1d2d0938cc45d13787"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e59a71d8b80c705c62d66bd36629a83b26b2c73a11fb2edcc49ae4b3ccfea7f"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/functions.php"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe44f4e7804dd94655c696ec87266e93d6d6e7418228a2f60fa20b734eaa068e"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/mini-cart.php"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5235f91c4667cfb80ff2da85a280f414f9dab78c7b10ffb6f855c27a150977"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/mini-cart.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4739ab98c77a4185daa1d53394b0574b3743faef3bc17ae9c0288ecb688dc220"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/mini-cart.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"384349391158d596c27ba25ad5d496504465d23597de7e0dfe69eb4c1163bb2e"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/mini-cart.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"3479b50a6c482dcedc5b535ef7294794d4e4a6a542a24d86970f34231bb6f155"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-home.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"883517e760b8b6ed5f707ea4a14fbb6f0dfea211c2448da5cff90e98dd4f5f6b"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-my-account.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda418b9aa3e011a6960353ac4207960f35ea98bf299824f9803bd011511b136"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-my-account.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"83482b8c89f6149ff12687174ca944f72c7484d6a7ea528eee8dfb6be5773586"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-my-account.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd6cb8d547abaf4af27ba083ea6063a22326c845954b2a3d46e8372859f4ad8"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-my-account.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc02b01d6c3063a6be70b988156d342266d9d2aa1b5f0ec38e7be6164497c20b"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-my-account.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"20aaf877ebb6a6340e72981082fba84cefbca445fd70a8aba5a2effe4038f59d"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-my-account.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"90784e3be3542491b3e4f63454e63cfed3350a03b6505c778f6a901ce0649066"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-my-account.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5d15f0c62b90217fcb7733431670b141230352637066532328e03b572665d9"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42933cbb295997290084c127877cd878ec54b6b24a3c06d0996574e04a457ab"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3fd5d08bc976c22eaafbe2ea86949492613f8fcda2dedee0db0e122a321f8c"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfacf41b43cd4acf6d186cf2792b11e74a6c288f8dbaffe54a20be8fc281973e"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58ae3a11224f905ce4fc640ae89342f51666b4679f924974d205b2d56881e67"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3705d20f4f57f7b657c820de4328a20225a60d247b40397d6fed95d8aca3f3b"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f40c2cb216e8164a3271574323fd9aaaa5d9214e68f6351d71377d09716a79"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af2bd9ff774fa31ae1cc709dd25d1d437d58684bbc31e029d66083d5e19edfb"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"39beb49dafd2ff7e98423e4ea86dae13c0ded2df5b63d5d8b6cc5f7d0f4f7e09"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6290a2cbea3e317d93a4cbb9c486bcc7c0bdb819b465d0b360b32e481aa3c091"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"64dcb1bd7fb4d322dac241e14bc24f8b65aa387473695e19aa209ead113cdda1"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3831fbe941a6487543aaf85714c539e077df11c6698ce54522fb9b61ea39dd6"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"339482d7480bc0f7a31cb5d7edb16daa89052f82ba20657d071b0e9d70df05e6"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-user.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3492c4b5ef2e59497aefbe72a0e481d535ff186d1c71a5594a5640393bd33691"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dab968d2baff89d32f6007ff7f3057071276255483a403d9e2f646750f010cc"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3890}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4030bb2ad12a940e06131f87b2b98e071b9ff71faf5cdce0f93456f14dbb1c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5855}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6250412d8330ab798fc3b2340d1659fe1263b8cd91583bade44bbd8e8b52651"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb85b7f94a0096d7995cb6d6f40bc9519bcc17ee85d7803e328da43e0f0c625"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":3890}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f331ffe1fee23fa1d80a9130b0f6648322d9f585d58e0857d1aa70529b4113b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"13d2a6749881200b5f67f840dfa6332cec33a5ceab7ef7aa8289dfc19fa9519a"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":3098}}}],"partialFingerprints":{"codehealthFindingId/v1":"589bc243c39a977527eb1fd4241aefa0d5c8988087949de40fcd0ce7596f633e"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":4299}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b3931a003427519475631a8a34934b81f5a4f40ac28570f199e1165e9af1bc"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":4300}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f641fb8222fcdd69663a84d1f9c7230c3c15f4277e68b9e67211c896a3394d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":4761}}}],"partialFingerprints":{"codehealthFindingId/v1":"979942e7dbccfa0c1fd8fcdcd75a24e1440595313e0f9107114147081648895e"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":5323}}}],"partialFingerprints":{"codehealthFindingId/v1":"408a540e32666e2c05cc6839e7311f5fe350c7dc1e6c56a54f457558bb427715"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":5379}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b03c460d51990cca15be1d555437de778bf28c0c23ac106dafe3acae971191"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":5429}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc89ab430c500aa6f753bea7fbcbdda2618d33d2d3d77e423b5086bf5bc05ccc"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":5456}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece7a5aff52496fc700df83e90b9d4ee6e9fc3a3dcedb7be070be836b373705b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":5628}}}],"partialFingerprints":{"codehealthFindingId/v1":"c917db8ba7003c33a93ea09b2dd1130035e782160bb0df7f178f595bcdb83707"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":5659}}}],"partialFingerprints":{"codehealthFindingId/v1":"c239dacf44eff4aff6387e5b2399ab7bbd253405d9a444d8a4e6cd8460828013"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":6590}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c028344da0f5e9531b53481313159d9172926ef5739489c4b8d05fa95536fc"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b4937e08055e95b251771ac23cc5795923d27efccb79211f0f3b3316582ab0"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3759}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9688e3b9a2d1b8d9f9cdc1a9ea0781468b7002990af111d16a92a1ee1700957"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3875}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9418e2dc2108305cb80072aaa0fc7f631d60b7763c6ddbabb4e5d61d91a021"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":4013}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f0a885dc177ef1ac3aec3bc11e50a2a341bb4939673f69cca0b9a6ebe143f7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/admin/views/field-group-field-conditional-logic.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed21afc1c5b39848dee33cd9126cad44b03ad9f66d71206df0f658d0aa60dbc"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/admin/views/field-group-field-conditional-logic.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3a7f72ed2ff4e10a7fde0b56c5a4fd6e0e1dc6b050667d104108f0b95ffefe"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/admin/views/field-group-locations.php"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b282f69d90056787dffa659fbaedad7b4373d79b69311601e3fdfbd1e51649"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/admin/views/html-location-rule.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea3dbb2ddfd7f3118823d3e832811bf39a04722555b33313fe99119aeb3c58a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/admin/views/html-settings-updates.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ace46e4e01ab4610fbe7322e8fb75516486a200cad41ad42389d4725e988f9d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/admin/views/html-settings-updates.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cc58a5df45b972d5d6ae27ee1487fccb13250428b3f867b375d7206085d004"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/admin/views/html-settings-updates.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"79da05765deb1924d92bdf1c87c7a7330e576a65530c4dac4b10b36a6e0f36ef"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/admin/views/html-settings-updates.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"eefce7a8203c48a9963a547f335166a15ee9267d030a0f022ca53039367de7da"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/admin/views/html-settings-updates.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25fdfd0c3a0363ef3ae11fc483934de106f90944a2fbf1f3c9d658ca0836026"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"032cef23ba7c1d036a516fb188f3e0a25d8d1daccfeccb90721469c1d5e68685"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d577b4745453b43c1d78e849f64f95bf6c511be7c97d9f503d6c7fac8a778a0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbaced72527b69990cfef96b22354835c9dc23556f2fe0d1ebb7c8209a34a59"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be020024e222c3e9fdb6891a118e61a40c79efd32f02b907f1cc9e2b4a2eeac"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba00547fd931c1f1400a47cfdb57b103c8d9e3b777a489e7a5d056ddb2b26a6"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a570387a1ca979a34dad4906842a773f8cea03839ea4a9199da9106c8d3db8"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":3890}}}],"partialFingerprints":{"codehealthFindingId/v1":"985707b620ea4f3cdc923950580a6b926d7af210c87acafb34ff6a7e7d41eeeb"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":5855}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b308e19fa020269be2f61277d820cf98430ca536de0a406c39efad5c6dda04"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":1839}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3729a6c255992a1305d471cf0059e5a048c3e06a335187a9d1081e1835501a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":3890}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ac6871013c097a2e1cc2d95e057c700bb76a0ba64fb07a6a67cb9abc4a18f3"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":1957}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5bbb40645df1d79df94096d7d3e4c87f8845c398fa936e860d10d80a1a220a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":4025}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e279d3c3cff330aeb49023b6d83415fb5b7cef28c372a56a03959bd4fdf5b2f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":6030}}}],"partialFingerprints":{"codehealthFindingId/v1":"41692ba93633810d2de100ba8b6df3b64bd373ff32b831e606548d4e4a06729a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":1941}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d2b71ee3bb75b942023f328205f02f4dbf3a9c38f8b6139270c11cdd26a867"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":4009}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d8d4f83abd11eebaa43c9b78f1977b2d003fa52b260b62c799a6819a2a3195"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/views/html-main.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8cd8de47193cc953af3a4432c3091c3724396cf896b487c35d622ae4e2fe23"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/importers/views/html-csv-import-mapping.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91f3296f96b379abaf6d937f6d9b5f3419abe10cf33756d8586117d4b92b890"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-download-permission.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"470be865d93e4bf4098e80902906ed52670f02ffd8f6dd7df0d69c6ccfece744"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-download-permission.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c543dfa6d0938d7e3a94975b3ffbd436dd99c17970ccdb4c900923dac3cf7e95"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-download-permission.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"93274129a6440714aec0cf06f7b4bcdc01830ad61e947b1b46507f3f77391126"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-download-permission.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2036764173c9e43f2423e1f748b69ba0335055e70d8f86e5ae3ea9015935506"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-download-permission.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73d3c5827c3e4262470fcad1728720be8103b185900a58dc9b2d8db4c89f53b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-download-permission.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1629776c3025b798f930c79b579b3d1124a2bed69b556a81b42ead6d9da4c54"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-refund.php"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b14b3892a0b88b290e25eab233006514c38281cfae880de43b92785105130b8"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-attribute-inner.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7bd08a32c7fcce87b7a5c47e0d831f1512e6cb6df5598fe3bdcbdf3be013c0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-attribute-inner.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1985e870ae53cb03d8710b8275779be61e40f44996f16f2189fec96ad05ac2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-attribute-inner.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"76977ab2a4977477e39de4ebccd6f5b11c4ac1226272e1c06d005fc4a8fb563c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-attribute-inner.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3352a1467bf2988a42c4d9c5bdcc5b9f1639d99f31a3bcb1a4cf312ff8c0960b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-attribute-inner.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd75da6fac44ca661d1c5239b6dcc20f6a8aad8ede1d7c5327da68f34cda7ad"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"450d3ca36f3601c7b39d9509afe557af1e5d1d2242efccfd5e14b9d2a467f546"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-download.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e7d93b8c82b6f7357d0b314d31b0d3aece0d1b3546cdefe342ba96a69f1cb5"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-download.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"729a02b2837c67070c43c33c3c7e18e8c1bbb6c20b805e28fe9b3edd4f768c03"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-variation-download.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5b1ed8c88caa7f276d7c6fc3001fb207d2b12fc72370d89cfb354d37c68b19"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-variation-download.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2fe1dc74340c9137e0c5a4e53d040ef80ab5133490ce8e3e714e0be0d6f540"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-variation-admin.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a8bb0a229ad6fb96830407bae8a16d9bf59121103014d36ddb1e0026f07591"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/views/html-admin-page-shipping-zone-methods.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebbf71824a5c1dd10dc21f42d9c5639698eb2e88f85f1658cabd60c5d397c604"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/views/html-settings-tax.php"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f8313b290e5d650b5df042e0c6700e446df49732a360097257ad202e93592b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/views/html-admin-page-status-logs.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"98be3d539236b94ef19d4e492731fcd525a957a3c991abe09a5fc9ab551f015b"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/views/html-bulk-edit-product.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b047410795ae65d19890145612d25bed1805c5bcd6b537626db186a7049c814c"}},{"ruleId":"AC2","level":"warning","message":{"text":"\u003Cfieldset\u003E without a \u003Clegend\u003E: A fieldset groups related controls but has no \u003Clegend\u003E to name the group. Add a \u003Clegend\u003E as its first child \u2014 or, if the group already has a visible caption beside it (or the fieldset is there only to disable its subtree and carries no group box), point aria-labelledby at that caption\u0027s id instead, which names the group without rendering a second one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/views/html-quick-edit-product.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8755625fee63eac65f3325e8200519b83fe7a05d6fe1eefacb6292b0954f26f4"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/views/html-quick-edit-product.php"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"1559466a900841f5a6123313fbbf42fa906a8adfc7daa5ff92e3c2d98ab3c2e7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/views/html-quick-edit-product.php"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8da8a4667e7732e04c5ec7fcc4b104d1cdf78dd4b4cbefe8ed2057c6b7d4f5"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/views/html-quick-edit-product.php"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"c101b668300a649a777a39b6308989e26692d4ee9db25332b94d5d04fa40c721"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/views/html-quick-edit-product.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd556ee100272966a0d929362b391d0552d34f2a1d73329c8db3bb20387f5c0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/views/html-report-by-date.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd58e29af59b2c375090e56b14c9c739e28440422202fca0cc7e7d0babea2e1f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/views/html-report-by-date.php"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c1a62469bc81986f0bf16bde8a50422059853e0ff9cfa9d42fcd8621f089dc"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/integrations/maxmind-geolocation/views/html-admin-options.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"077ed9eab98232a4b4588ff61dd1db1ef6da0392e0578283a67db2734fe64ebc"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/integrations/maxmind-geolocation/views/html-admin-options.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb8fbe6c307995f80803d9a66ead1ba9f121e774f5906f09bd5ad089c8467e2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-create.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e76748da0f3f52c96e52c156e3e0ae6d801faa2101ddff3bd50278b3d2ed40"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-create.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5717d1f2516569d2056a46f96bb139407066b693b4ec9fa7fb4a02082b1b651"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-create.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78899bb5a3d72d62130d5dd590320718e9c1027708312eb00144e8a752f515f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-create.php"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1040da6abeb8564c3d3f32067dd8f25e0b32cf952592f9adf8c163fdd3b6923d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-create.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"da89af36148e7bd868797d83deb832c231869f515824898927ca21dcf9fc77e5"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-create.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"94cef314b60af637eb764f371894375a89059ed57a1e94e6918c941778355d05"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-edit.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffe986a967af17f9bb098f9e890ea36cd931ff845a56d20043d1fe825613992"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-edit.php"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"80af98035d5b1f14f24b340430ab4a32ea0ac734666eaf70c97e685606eb91f3"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-edit.php"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"7de9c3a6957cbdc40df89748204b660b145c8ac398c0fe34c0b824876f5415e1"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-edit.php"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2396afe2a78695a299cd1ed0501fa8ed0c07bce813d7b23cd09b9fbcb918997"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-edit.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbae4fd1f20fd22fcf9be670054f2fde77118db942a1645a75a8af339d2003a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-edit.php"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf618fcaed844d30e15597186b7c3f2fde3dc54345b323142ab7f42af92ec5e7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notification-edit.php"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"800631238b8741add92ffefb63d53faecb24ba3ca61ce02af87429d5e73826f9"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-admin-notifications.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a505c7f2412223279f9cbdba80b44cac5032830cdab1d450ba66d56be540ca1e"}},{"ruleId":"AC2","level":"error","message":{"text":"Link with no accessible name: A link with no text, aria-label or labelled child (e.g. an icon-only link) has no accessible name, so assistive tech can\u0027t say where it goes. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-product-data-admin.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"3232112a3e6e059d4325f5fa1edba429ad9f8329b87a40ce1511ab5bc3b35dc5"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":3016}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98fa83c44082ddc0bf35e4f56c1fc1276eb67c0bfce49cb52fb82211002ca52"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/footer.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3babc64d65d8c23c5211203e5b10fd93138cde631a57e32e398390cff37a4cef"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/functions.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb40e7b68f32f2f045c434d54af625f3a11f0c3d9e8db3bb821f0918d3bca2b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/header.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea65bd325786ca16cef7bbd7d644c55656c6c7cc215468e41ba5aac574f14d2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/mini-cart.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"70584a1e3f0153390ab212f928c98072470d0dfc57bed93c35c7ff0ef1f130a2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-cart.php"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4222c76b39493167b2d91d4d615d63d4662624e6f98fb5a213a361979a76d9"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-test-code.php"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"de832452ca516cd40b8092ae591f98b98ee18e2c24e91f13795a6d79cfc5191a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-test-code.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e09cd729717dfcf23d14499c7982b0e67faeb0a2dda07d44d768225e15a0cd"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-test-code.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6bbfd57d670eef52f84b30e113df3cb3ec777d54b5e2c35846295babc753ae"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-test-code.php"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ecce461af524264df4108abc1104a59eb838322b3a358b0381cd0865ebd82e"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-test-code.php"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8e5923b7619bd21d065cb578e9d670d4d92f9e60402474f4ab32822f3154f8"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-test-code.php"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b551335dc37c677f69fa21d2eabdc86a08836c4f9b8fdcb1120076eea26231"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch2\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":7144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e326a16f047b2d6bbe6dea8c5794e3b3c67691a15d4e21aade37780a350de6"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch2\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":7161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80c4b9bac6f00ca0fd9e7e5aaf07e03e80a96ef0bf43ef09888ff618acff6c0"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch3\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3759}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fbd57693d93097e359fefbb2dd5887f5e6d112ef130ba0d5af0e377ad1bdf8"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/admin/views/field-group-field-conditional-logic.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a665b9bf7d07b2b22e3be83462711f67b256e0818b1b4e30ef5a6759d83a9dc"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/admin/views/field-group-field.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d656bbd178e440ee39213bb8d3728e39a21f9e743d3a229480beb6914601c0"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/admin/views/html-settings-updates.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eff0050b2c5e4c00a24194b9296ef83cb6b65c04266cf4ff7d74ea10ee78d4d"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/dompurify/purify.js"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a9bb631e4bdbeeeb89e166c3080d8b2d7419174b6678f878e8023b7a3acf67"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/dompurify/purify.js"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a2093f192fb079e662ef3a953c56ead9daf7ff0b2c74ebbf56a55828eb2ad7"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/dompurify/purify.js"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ee7991c8446df3deb50b40b8bfd6356ab3b2fd3b72bf06cb48631950963017"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Ciframe\u003E without a title: An iframe with no title (or an empty one) is announced only as \u0022frame\u0022. Add a non-empty title describing its content, or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b046c74cd4515887c1a3ae4a14a590f8b148ddcdd4ca0b4c5e65da48729c0d"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Ciframe\u003E without a title: An iframe with no title (or an empty one) is announced only as \u0022frame\u0022. Add a non-empty title describing its content, or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bed4e4f201b0c2903ba0209eb172b485f2b08a8c6b7b2ca9eacc25633be0c54"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/views/html-main.php"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"06092ad86083a653087b74054fbb0ebd80e0caf60773931dda835b3a1057a818"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/views/html-main.php"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cd7ad8811e8f60f1188250fd8fcecfc547eb67239a508bb7d2267d2f4464d3"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-download-permission.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4b22cd2ec465e924ba1331a7608cfe663461bcc9d6c4151bef4a3b9949c46d"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7059157cfaefa74fc730584ae4bb3de7c79269e887d6a7c0865c7d99ed4b922f"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5588cb4a9fd6c3ebd167b9d51403a4116d4b1804705e6f3452b7e8f48652d6"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2489fc81fc6a60be823b1a78ea044e06f865fd6afcb960b8d17327ecd4d1536"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f5e48e6be68854bb2b807fc832cb82c1b762089c6af509f01a4606a9be43f4"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-product-attribute-inner.php"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab95a9309e9e786592c7ce81179efdddd7f9d51e8ff7c6914196a3dbf0222cdd"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ReceiptRendering/Templates/order-receipt.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acf10e75a848e981e776c1402e54a42b0e06377aa3067e0710d2dc8d1b9a5cd"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ReceiptRendering/Templates/order-receipt.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a90b2158a8ec9fd7c9444565d4092afdfd3f92e559e10de07c53ff7beb27247"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ReceiptRendering/Templates/order-receipt.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"631ca3118c8c55298b2d055343f20706eded8ad579e6752716340dbdf4e53a65"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ReceiptRendering/Templates/order-receipt.php"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"c489a6ecec5e8592e1ce42122f681c3b1e6c4b6d930d07b5571a92989d212234"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/templates/auth/header.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d344f742627271d6f007cb42e2f4bb10ef76e2978c9a0e5422ad9d8642c0860a"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Ciframe\u003E without a title: An iframe with no title (or an empty one) is announced only as \u0022frame\u0022. Add a non-empty title describing its content, or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":2431}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c45c7489cfdca4f4b3933e22e9cabdebaeeeda24ae8f401c7f7fcdaa5df2132"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/header.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7628a68a3a8b6a9e7b8ac4ab66b8f9f02895a80f08819c7d82d04cf7494e56aa"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/header.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"293096cf88602172cb090d4c86c700c384b42755eec24136f5d6d4491a5ac051"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-sell-well.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2aa72c26e7de89b2c9bf67a635c4552a895c4f0a8c37e39f443e9fb129ddfe8"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page-test-code.php"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3451d2f0d0015b5a7b0108e644715e2f6e2ff60c409fc370639ca8a933448e12"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/page.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cc9ef2cd26c53d4a2b2838bc164648ea05f4ccf36616ecb31f310410900a1f"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Ciframe\u003E without a title: An iframe with no title (or an empty one) is announced only as \u0022frame\u0022. Add a non-empty title describing its content, or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/taxonomy-product_cat.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a653207bd9719ca0f2e03c608cc980acc4d26c2b1a7c3d81c06c51c051c14677"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .acf-accordion-title with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cbbc637c4c1d2174f78c4a1a116a2f2db06b4ce4fd447a5ca91bc6f0af6314"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .acf-rel-item with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":3088}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac7ccaca8bbf63c4850bd6369d79c8e301c57d0e159a89c1bfa5032a340e596"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .acf-rel-item with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":3097}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fe799bd6b97db2c68d58af9987aef9153048efbe979cd1526a368d0f7afbbb3"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .acf-rel-item with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":3409}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5baf43644c3b3d2609dcb4aaa38eaaa020c9fc7d32afcb54d1e9a92b46f988"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .acf-modal-close with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3880}}}],"partialFingerprints":{"codehealthFindingId/v1":"5955440004bcc9c10dee60608535811bc5554dc88557fc39a4cc60f042c7193c"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .acf-gallery-attachment with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js"},"region":{"startLine":1480}}}],"partialFingerprints":{"codehealthFindingId/v1":"081398882fa486931d43542e9374bd06f651b2169e25ccdf0353db70fa57c8eb"}},{"ruleId":"AC4","level":"warning","message":{"text":"Link used as a button (placeholder href): An \u003Ca href=\u0022#\u0022\u003E (or javascript:) with a click handler is a button dressed as a link \u2014 it announces the wrong role and stops working without JS. Use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"22894dda2f8142fc912f7625f1a5898f602c8cb55ed4d7213dd26b1225363826"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b3545b6f85b6c39d059e92898741204e7305735ef54cdf45a636249330ab17"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .form-toggle with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/views/html-main.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4383161eb9fc2ed5bc309f1e69bd319f1f26de00a2391e29fd6a53ddd1cde47"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .form-toggle with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/views/html-main.php"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f5ede8cfd19cf676dd785e2688268cd82bb8879188374797dc844a1aa35bb1"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .tips with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ae3925c6135fdcc606d550d141482ec5f04674c850daa1e1db3239aeddeec1"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/templates/single-product/photoswipe.php"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91fb9f7cadf8ab4a81ffa4e9cf4dcef7fd1e998786ecd71f52873850d8749e0"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/cart.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c29aa2b7f59c16645ed481a1e59d2e97d6cc82288006b5d4a826f11813e978"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .thumb-inner with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/single-product.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1418d5fd4bc80ade4c145657b57ca377bccc06961fc94018ba295392483d014"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .swatch-item with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/single-product.php"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad55af19fdd33c34b23cb70d2e3748a3f45e47ceba72b9dcba5b58d8bf711250"}},{"ruleId":"AC5","level":"error","message":{"text":"aria-expanded on a \u003Cspan\u003E with no role to carry it: A plain \u003Cspan\u003E has the implicit role \u0022generic\u0022, which supports no ARIA states, so this aria-expanded is dropped and assistive tech is never told the state at all. Put aria-expanded on the element that owns the behaviour (the button or control the user operates), or give this \u003Cspan\u003E a role that supports aria-expanded."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4c0447668381019886dced522ee9cb081e40458d7090f679285ca80afbd1df"}},{"ruleId":"AC5","level":"error","message":{"text":"aria-expanded on a \u003Cspan\u003E with no role to carry it: A plain \u003Cspan\u003E has the implicit role \u0022generic\u0022, which supports no ARIA states, so this aria-expanded is dropped and assistive tech is never told the state at all. Put aria-expanded on the element that owns the behaviour (the button or control the user operates), or give this \u003Cspan\u003E a role that supports aria-expanded."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d012a8cb989bf0d609b8a9157dea59f0be43351245d541585b4a0b313e790ca1"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: BlockInterface (18 methods): \u0060BlockInterface\u0060 declares 18 methods: \u0060get_name\u0060, \u0060get_id\u0060, \u0060get_order\u0060, \u0060set_order\u0060, \u0060get_attributes\u0060, \u0060set_attributes\u0060, \u0060set_attribute\u0060, \u0060get_parent\u0060, \u0060get_root_template\u0060, \u0060remove\u0060, \u0060is_detached\u0060, \u0060add_hide_condition\u0060, \u0060remove_hide_condition\u0060, \u0060get_hide_conditions\u0060, \u0060add_disable_condition\u0060, \u0060remove_disable_condition\u0060, \u0060get_disable_conditions\u0060, \u0060get_formatted_template\u0060. Counted over its public instance methods, once per name; constants and static methods are not counted. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/BlockTemplates/BlockInterface.php"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"416aa80ca572377c6165461c38d4ceaef2d89f3a3adb3a286315f0e362928c01"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: UriInterface (16 methods): \u0060UriInterface\u0060 declares 16 methods: \u0060getScheme\u0060, \u0060getAuthority\u0060, \u0060getUserInfo\u0060, \u0060getHost\u0060, \u0060getPort\u0060, \u0060getPath\u0060, \u0060getQuery\u0060, \u0060getFragment\u0060, \u0060withScheme\u0060, \u0060withUserInfo\u0060, \u0060withHost\u0060, \u0060withPort\u0060, \u0060withPath\u0060, \u0060withQuery\u0060, \u0060withFragment\u0060, \u0060__toString\u0060. Counted over its public instance methods, once per name; constants and static methods are not counted. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/third-party/Psr/Http/Message/UriInterface.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"31306dbbb6d7ae014b098ab267afd27d1b113348573e83c17a17ab2c33dd847d"}},{"ruleId":"C2","level":"note","message":{"text":"No named authorization policies: Authorization IS enforced here (by route guards, auth middleware or checks that refuse a caller) \u2014 this is NOT a claim that endpoints are unprotected. What\u0027s missing is a NAMED rule set: who may do what is encoded inline where it is checked, so the rules can\u0027t be listed, reviewed or tested apart from the code that applies them. Recommendation, not a defect."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b048fdf3fa524ac68c7874fdfcdb4c49d5f010013f2cb22a0bd84cb12ceb951f"}},{"ruleId":"M1","level":"note","message":{"text":"Thin README: The root README is 2 words, against a bar of 120. Of the three newcomer-critical sections this check looks for by heading, in the README and in the repository documents it links, it found no a build/run or getting-started section, no a testing section, no an architecture or project-map section. Sections are matched on HEADING text only, so material written under a heading this check does not recognise \u2014 or with no heading at all \u2014 is not seen and this row may understate what the document covers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88b11295dc6ac6146c259ace6043143959f96dc98628f8c8578b6c5f95b8149"}},{"ruleId":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 15 application file(s) sit at the repository root beside the build and tooling files (\u0060index.php\u0060, \u0060wp-activate.php\u0060, \u0060wp-blog-header.php\u0060, \u0060wp-comments-post.php\u0060, \u0060wp-config-sample.php\u0060 and 10 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/themes/monoka/assets/js/custom-slider/jquery.nivo.slider.js\u0060 reports through \u0060console.*\u0060 at line 600 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/custom-slider/jquery.nivo.slider.js"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d8d691b2b9e0f0bf9221b4963c6ecaa4b2896afde0541886230c13bb3d92c4"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/js/frontend/utils/address-autocomplete-common.js\u0060 reports through \u0060console.*\u0060 at line 40 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/utils/address-autocomplete-common.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d371c2ffe97ff35d5157e43b7b0893fcbfa130eca06abb14e25524aea40a043"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/js/frontend/utils/address-autocomplete-common.js\u0060 reports through \u0060console.*\u0060 at line 105 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/utils/address-autocomplete-common.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"23229d1a3facb4507bde0abb5296900756970efdb43a6ed3437824901a380aa3"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/js/frontend/utils/address-autocomplete-common.js\u0060 reports through \u0060console.*\u0060 at line 133 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/utils/address-autocomplete-common.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ce2a05c0a47549786a4d117f825fdf923385f60a00c179fd07818939de04ca"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/add-to-cart-form.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/add-to-cart-form.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93cbc674119e5aeb9f10bc248f5d395463df39929ded4194699df13c19b885c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/add-to-cart-with-options.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/add-to-cart-with-options.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab75526058e07617a4c7b6ac2168d953f3ffed6862a32672cd51cfafb1d754b3"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/blocks-checkout-events.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/blocks-checkout-events.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02499eb8c2e65b7a533219f28eb0a7768844f660d3c8adbac3f697cf1a2ba597"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/product-description.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/product-description.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1e1e6cc8b6c1c43d875d59b61ececa4f1c15fabaf469a60f9c76a3157ec0be"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/product-details.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/product-details.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2935e8130056c56079658aceabe998595d3cd7d2641eccff40a92d191de50d4c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/product-gallery.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/product-gallery.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"535efa6887ec1a1450bbe1042f638784a5a2fa2ba96f0c1ddfbfc046d5074321"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/product-image.js\u0060 reports through \u0060console.*\u0060 at line 4 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/product-image.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"201ef79d0307dbdc3bcd8c10a2769076934a3d3f8ed431c4e50c1698f757b00a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/product-price-frontend.js\u0060 reports through \u0060console.*\u0060 at line 2 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/product-price-frontend.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6daaaf72b737cf8961656cd6dd0dcc3d3d9c8bb7c4dcb359915a590a6f8a3db"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/product-price.js\u0060 reports through \u0060console.*\u0060 at line 2 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/product-price.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dccb849b61cfa4a69fa25d025d0be164e8a6db51b953be8df022e7de046b267"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/product-query.js\u0060 reports through \u0060console.*\u0060 at line 14 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/product-query.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a3eb8725af9fba1ff59f1758b12bb991839013511d089bfbf41cf109e7c3e6"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/product-reviews.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/product-reviews.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ceb3e277d5d542bbf5c21d3ff5a11f5aa252f62fbe1c63853c1e0497918f37"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/product-specifications.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/product-specifications.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"986a7e1696e87e99e75102614d89dcce0b20c74fefe2232f23976180af8e611a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/product-title.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/product-title.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4abb206a1ae199251c4f97ad0b3a30dcb8b47d5ff1ae3b6f83d1a6a4344a04a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-google-analytics.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-google-analytics.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"240b24d8691a525de10391953a010c05f954ca70bea22e23a94d6499f8e4f0e9"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-registry.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/wc-blocks-registry.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e47b53ff0ae82dcffd7c81005d8ea7ab8ced35f7d2c1680e1b9e4ec36136317"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/blocks/woocommerce/product-elements.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/woocommerce/product-elements.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd28a41d96e93994a81047ac874f2db3369fd8e4cae2cc46be46a4abc149401c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/admin/product-editor/blocks/generic/tab/edit.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/product-editor/blocks/generic/tab/edit.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff624d4dcc01c9a386c748f54ee5bcd7a22e9c4a23f6a79ad1b3fa1aab8f482"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/admin/chunks/2999.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/chunks/2999.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1dae1f0c1b62cd8879daaed947edde3cd7f06d8d174243ccd7d32a78b45dd7"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/admin/chunks/5945.js\u0060 reports through \u0060console.*\u0060 at line 2 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/chunks/5945.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc1e42d0a0b07b754f9928d02b85f65fdab89687aead2aaf33ae71a2fc8434a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/woocommerce/assets/client/admin/chunks/analytics-report.js\u0060 reports through \u0060console.*\u0060 at line 1 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/chunks/analytics-report.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1783f1d81babff2b68bf3f43f65006299fca90ccd9b4d903ce4e97829331ab01"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js\u0060 reports through \u0060console.*\u0060 at line 347 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad416f0ae21433267af778351e12dec1c60f08707e78d7b58207c1e043de386"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js\u0060 reports through \u0060console.*\u0060 at line 351 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d2701ba6f9267ca5847b778ce4f097f1449383afed9a73371841458fc9d178"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js\u0060 reports through \u0060console.*\u0060 at line 356 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"5063bb44bce37d1ec21c5f88e77480348fca91deb6b41f816a17e3be742c261c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 770 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":770}}}],"partialFingerprints":{"codehealthFindingId/v1":"942f065f5e89856bc21d7407a653d7152be24a30d5977003fc3076f0587e26b6"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 790 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"b362529820de5f21b80f98d7aa0bf916845117015b28fcd66f9a206526762c57"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 834 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"14af93be980adb2931323ce3b2a0f1f03426131694df0fcd44cedadf11c2fab1"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 1928 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1928}}}],"partialFingerprints":{"codehealthFindingId/v1":"040f9e04dbee262f2e79964f41325b880ce1013f4ba6b0756844572843b35ef8"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 1936 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1936}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca304685081938e463f5a5430768f73f91f8a9bb33f87bc5a8bdfe087f1b105"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 1963 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8976fac5f1b95fe850c420056b61ff9f0128cbb6b53bc9e764efc24d31f265"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 1984 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40e26ed6643d7b38a51d66878f1025ed1152a577c05975890a58c96ecd0cb6c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 2006 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e3ec5618aa2c687bb793f17cbde2a07e4ba30329c1f2a0d07a3851c98a3c0e"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 2033 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":2033}}}],"partialFingerprints":{"codehealthFindingId/v1":"66be80c08574f9028eee8e328d003071b15f8748777ae4a59e8c89ffb2e5b61c"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 6246 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":6246}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd76c13fb58a79f16985750846626df351794bad5af6079433409b2b2429004"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js\u0060 reports through \u0060console.*\u0060 at line 6355 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":6355}}}],"partialFingerprints":{"codehealthFindingId/v1":"e854300103e42b36f26ba17116020f581f77c6798222d206f2393729cf5c93de"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 558 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efa118d2368b48aa516b3019ac3311298a78e01ee7aeef515f9685eca7dcca8"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 559 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"d532431d94918babaaadb0a0af7e3bbe682531cda2f35a0d68ac32524f3aa088"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 560 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4408dff98c76de2f526fb4e1b614eab0ceaf5b94885b4d9ecd2b3f757ee938b"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 561 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c15850110f62df8f85c47645dd67643dbb27b55e13df672d82daab33b8f9ff"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 586 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab267633c913be27056a074062e014459c1db1343979cdf6d950ba5a7c0ea514"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 587 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"68da120ec235b58bc841860a09e940f7e4eacadcb41877b0c404b82efbfd13e4"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 588 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"314fa0e072f72936de49aeddfdc4e230f6c22b414000b96e15e30d26e3c3870a"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 589 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d33e414b6d5a405763008eff441107d39e7f3f51f4f50be743171ff76bc5bf"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 618 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4a22da6760c57abb2567754f49b8fae12e376acafa2049ed7504f7a8a173814"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 619 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"976b295b87284fbf14a130d071e463b21eac2940ff32ad1a0afc736b966d9551"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 620 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b90da234641ae3c58f525f7c740a7a54108c281b478d2e7394dfed8295535ad"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 1655 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"797957a47e96341e396b478a79887ea34aa20d8965aee159e043830159bb568f"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js\u0060 reports through \u0060console.*\u0060 at line 3433 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3433}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54e719be6b7f12b40c071a731a98707b17fb040fcb0acb387d88452c97d37e5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add phpstan or psalm (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 104 plain JS \u2014 the untyped files are wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js, wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js, wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js (\u002B98 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (8 clone groups): 8 of the duplicated blocks reported below have copies in at least two of the sibling directories advanced-custom-fields-pro, woocommerce under wp-content/plugins/. That concentration is one structural fact, not 8 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 8 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":2963}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d22d647b697cac84199bb718602bb977c6aec07d885f26ef7ed7b13e8f147c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (1254 lines \u00D7 4 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js:2963 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js:2963 \u00B7 wp-content/plugins/woocommerce/assets/js/select2/select2.full.js:2963 \u00B7 wp-content/plugins/woocommerce/assets/js/select2/select2.js:2963 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":2963}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e71e1d9400ddf8e918bf23932d435259d8fa8f3200a4f01757071cc5264fe6b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (833 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:3688 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js:3672 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":3688}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02074247d1609a1ec19266c1bd8a2fcc73cdc3ca2f17887d74154e53a2cdf17"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (762 lines \u00D7 2 locations): wp-content/themes/monoka/assets/font-awesome/js/free.js:2261 \u00B7 wp-content/themes/monoka/assets/font-awesome/js/pro.js:318 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":2261}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b10b571cd2f7ccea181e8f8de0bd7fbd9f1df69070025a7edc7903c0c167b1e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (719 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js:4727 \u00B7 wp-content/plugins/woocommerce/assets/js/select2/select2.full.js:4727 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4727}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8bd86545ccb797529794ec5220de54ab3fbc71ae375054a5ecf9b3de0c8bff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (553 lines \u00D7 4 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js:757 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js:757 \u00B7 wp-content/plugins/woocommerce/assets/js/select2/select2.full.js:757 \u00B7 wp-content/plugins/woocommerce/assets/js/select2/select2.js:757 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf611bebf15d23f2286e2223d74ac8fa5b46bbea8c5d22a0952ff078d67b7d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (478 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:4867 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js:4851 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":4867}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e98f611bca053c68cde427c650c2192b4338572fae546cc5f4eb6547f6c45c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (472 lines \u00D7 2 locations): wp-content/themes/monoka/assets/font-awesome/js/free.js:3212 \u00B7 wp-content/themes/monoka/assets/font-awesome/js/pro.js:1414 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":3212}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d15ffe3948409d2999c2e694ecb26b3fb4de32e53ae382fdcdf45f05f2b2f5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (467 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:336 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js:336 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"829553762657ecc7c97ce1235999a4d0a8b0657d54f40328d234f96eab7a748a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (263 matched lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js:62 \u00B7 wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js:662 \u2014 the two spans are one implementation copied and then locally edited \u2014 1553 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8175ac365c7813ce770834ef34ffe360336b90a03a49d58d475412d08517ee40"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (240 lines \u00D7 3 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js:5382 \u00B7 wp-content/plugins/woocommerce/assets/js/select2/select2.js:5382 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js:5537 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":5382}}}],"partialFingerprints":{"codehealthFindingId/v1":"07167a1ab90a6af8f746f3e6694cd1c8d77a7a8281e6286110b6cfc59e941eb8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (223 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:1097 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js:1091 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"319305a8a10c23c0bf259ded44f9e639c031d5d367e5ad87aa247602ed9e0bf3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (219 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:1670 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js:1654 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"66600e1fdf301a15be755abb9ca3fc95acb72559d275ad692397ed3ae9d98406"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (211 lines \u00D7 3 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js:5785 \u00B7 wp-content/plugins/woocommerce/assets/js/select2/select2.full.js:5785 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:5960 \u2014 the 3 copies are spread across 3 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5785}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5a39dba0ef50e87734adbc5421d4e73e56e82c5e5a3521572c2673ecafa03a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (211 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js:6121 \u00B7 wp-content/plugins/woocommerce/assets/js/select2/select2.full.js:6121 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6121}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b1ebd9d438a89ef01e551602c8bacc4c6e3aa088ecf66f8ddf98ffe8df8455"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (153 lines \u00D7 2 locations): wp-content/themes/monoka/assets/font-awesome/js/free.js:2048 \u00B7 wp-content/themes/monoka/assets/font-awesome/js/pro.js:65 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":2048}}}],"partialFingerprints":{"codehealthFindingId/v1":"afeff8ac608d781782f8295727d99e5d130b072a25c191801eef5480002c0ddf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (139 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-classes.js:27 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-providers.js:32 \u2014 the two spans are one implementation copied and then locally edited \u2014 1062 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-classes.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d458ccfa9d4f0dfe6d775a0e10dde362018a08d6d2818a99e1eb0771db88562"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (106 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/settings-views-html-settings-tax.js:37 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zones.js:19 \u2014 the two spans are one implementation copied and then locally edited \u2014 725 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings-views-html-settings-tax.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"819ac34584af749cfb8ab6f5595e45e7ed3db20f3be207681af76a24ab9989a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (82 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:1445 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js:1434 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"a847f5debb190ae4c58b99f27d992dd0aafabf5aea4cc64765223282e8ce11db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (68 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:20 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/users.js:10 \u2014 the two spans are one implementation copied and then locally edited \u2014 539 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bcce223ebce16bf050410a35638f4281005884779009bfe7179e383b2f9548"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:6533 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js:5802 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":6533}}}],"partialFingerprints":{"codehealthFindingId/v1":"60893e29c67f8f96bf80d0f38b9c9c57736fa285b12799a0a86d346677034a5c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (45 matched lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:1704 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:580 \u2014 the two spans are one implementation copied and then locally edited \u2014 263 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f456a24d2bc62cebc0acd342dfe58b7317f56e3fa3ce352009b9d91b6a9c6f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-brands-enhanced-select.js:5 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:4 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-brands-enhanced-select.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff8216a67a4e16d4e7788589bb19c5e891402c178da5f7a8cbb5f9f949f75ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 3 locations): wp-content/themes/monoka/assets/font-awesome/js/free.js:5 \u00B7 wp-content/themes/monoka/assets/font-awesome/js/free.js:586 \u00B7 wp-content/themes/monoka/assets/font-awesome/js/free.js:862 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a0e531ce2f9bdcfe1ae8e174dc66c4645387546027d0b42e0287ede4e07686"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2 locations): wp-content/themes/monoka/assets/font-awesome/js/free.js:1988 \u00B7 wp-content/themes/monoka/assets/font-awesome/js/pro.js:5 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":1988}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abbd33dce4b5c52d0ed12fb7cc28caf9e0b3dc1a274b7678be7704dbb6af22f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:282 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:328 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"856964297ce98bd9e13928a2bc041d940df3a494315e6d97cf3731004e3fdbc8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (36 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/product-ordering.js:25 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/term-ordering.js:63 \u2014 the two spans are one implementation copied and then locally edited \u2014 263 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/product-ordering.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e95915690c1705cd325d3f96da5a5b3c7fb2a2c43ca6f0413ae6684a6d70ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js:208 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js:248 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e8f70762efd81a76506b9b83adb77af7af7fd40d75c7756351fcb02dd61274"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:1695 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-brands-enhanced-select.js:7 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:6 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8129a1296e4f19094c9644cfea50e092c46e7c6e4ef0811f327277358c37d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:165 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:207 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24fefcaa3bef71f29db0a799a9bc0941a9b7ae173b4e6ce418efc3ce1bf60e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-recent-reviews-widget-async.js:4 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-status-widget-async.js:4 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-recent-reviews-widget-async.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bc03ac7cc339bd9503afffd319beb53620ee82e329e85e1879e7acf6af87a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:1507 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:1606 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1507}}}],"partialFingerprints":{"codehealthFindingId/v1":"74380f5d1917150c0e8d521557dfebab69b49f8f4e4751f88f6d22a9288abc16"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): wp-content/themes/monoka/assets/js/owl-setup.js:2 \u00B7 wp-content/themes/monoka/assets/js/owl-setup.js:39 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl-setup.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6327bdea730219922a5ad1213a7a0334373cbbc9c66220101aed1a99cbf6ed26"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:486 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:731 \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":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c69d1ede717b01193b8cfb62b58b60723ea3e06b9955aeb1d713771020157b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:2374 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:2518 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":2374}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4e1f0f7200c5d4b1539d414c173bdeb678087a39df6ccadbb6ae5fa3389135"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:381 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:914 \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":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e68d79646ae9890d230b6df722f088ff81c06ee5698ce4eb0d829d1f1a7c5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js:225 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js:281 \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":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d2a8d86716dfb738707206ae374b9d4d4001103c7326711d898437b1272cf3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (24 matched lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:815 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:4110 \u2014 the two spans are one implementation copied and then locally edited \u2014 114 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77131a0ef6ca72fea439c75f2cc33ed9f01136e741d4ecc35d7c1ff631800d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js:522 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js:548 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3cf32e44dd0937eb4aa24b763379f18e56b934ce52bbf7a2f1a25cf871dc6f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/checkout.js:328 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/checkout.js:365 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22011e39f87c0f09a2e5761d80a86082e16c14c1c08f4f107ca616664f2757d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js:763 \u00B7 wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js:934 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39106f23cade9f71a7b2caa53f9890643e540b01dabfceb7d734b8f759ec380"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:145 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:186 \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":"wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"03935817a2d05fb465c79ae6e281e1225c9f13e70b73ba57d35035647a57c409"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js:727 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js:1216 \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":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee08099738c6b87ef860190780207309c5b95ec7693ba9bcbc096502370feffc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:5889 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:5946 \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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5889}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dabc0caba26dcd43fa48bce457497e82387a94462080737e6ad9f3afc0bf6a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:320 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js:5645 \u00B7 wp-content/plugins/woocommerce/assets/js/select2/select2.full.js:5645 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68375fdb5338518587e994df7afe551190d86af0a08b86cf2d87f70827e8f6f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:640 \u00B7 wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-field-group.js:226 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdd8be3332b8b1f9aaf0e1c3f77cae1f8b9f523a87c998caf5f9a30bf997d3c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:420 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:4813 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cfb4876b47f12e6c344b56f49c8ffc282d67ebb7ba8c6737635d9c2d768de8c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3807 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3904 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3807}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b41a3f8e8d0eec890798d07aebf12fa28921917b1ed319ac1daea82247c136c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:432 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zones.js:219 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0da19b9da481c2940d73d2dd92fae9bdcee6d5daca152f3684e5211dab6e182"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:1394 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:1439 \u2014 the two spans are one implementation copied and then locally edited \u2014 109 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":1394}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dff918d484cf651d5c2279352a813cb8f36ce84b5b7b68690f69ad7ccaf874e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:7851 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:8042 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":7851}}}],"partialFingerprints":{"codehealthFindingId/v1":"742981b370528fe645db07d50909db20b0243a865dc9f23dc444ddda08ac43b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:447 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:595 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd44460cf3ce2aa9862947705f6dff28bee09bcd5ea2f09243d13b7484f8701b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.js:105 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.js:153 \u2014 the two spans are one implementation copied and then locally edited \u2014 83 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7b4c0d2e9f16ac677ec71e669c41827831759d27bc07fe4965355f46df2bcc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:1188 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:4333 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12cc7f16e584b8a67a0903c6e47a4386234220dbbf9f4842bbcb9ea632d878e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:1772 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:1834 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"6342ce929bbcb09fce01bc231544019f27e3e8a770ad81c5214b70f2c22ef0d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js:282 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js:326 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d79e0e06f7a32218fa34cb127368fd979a278ef2805b83c335afc07140f226"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js:288 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js:307 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e8dbb8cd7a74f59b6dc21f112778529175af928304b969121d889ce8af7c99"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:7787 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:7957 \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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":7787}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57d2a43ba34ebe3bd507b51dc8a7ed0f38ce1425ab90f50c580ad335a26459f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3411 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3476 \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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3411}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aeabed7e1cd5027a0ed70e401f990f3f176c01d23ba8b75a462bab73519b857"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 5 locations): wp-content/plugins/woocommerce/assets/js/admin/api-keys.js:25 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-classes.js:47 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-providers.js:55 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:294 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/api-keys.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c63e8520611b973726a7c72d9a14046949d7e12a979de7302331100d4de28db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:905 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:1265 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d4daf383f49a4b11723dfaa43400a6fe82d7768049823f83d6a5473bd338b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:1410 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes.js:67 \u2014 the two spans are one implementation copied and then locally edited \u2014 68 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ddc62aec804bbebf8fc5cf020f088c91c48535498eb9a26f6617ccdd759591"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:82 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:247 \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":"wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8dfeb2689969bc357505c3d014b3fed42052ca3fa28f0984b04bf89ac7dc10"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:123 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:166 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82317425087242b8314f27659d3c80054276ba0cfc7535aaf3f439d5e4c8fe7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-status-widget.js:34 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-status-widget.js:64 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-status-widget.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a36d02ab909db1d432b03a88cba609a54fa483106ac7e9edd531dc6e1ba2649"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:5475 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:5503 \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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":5475}}}],"partialFingerprints":{"codehealthFindingId/v1":"332334d7612d4b94399f8490c40f02ada2f63eb0b06d80c298eb47dc8535a635"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:5619 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:5650 \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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":5619}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c51a45243866ddd5a3af108cd6151036016dfbbc1c1dd44badf558b3d7ab4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js:1667 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js:1690 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6110e25ae1a798cb4d9a40bf7b2c242ade52aafff533507746e5873fe4e9ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:883 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js:390 \u2014 the two spans are one implementation copied and then locally edited \u2014 68 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"981dfaa4148b0d4521b1b03ec3ac578e3d03105360d8e3dece35e3ba2b5798ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js:172 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/price-slider.js:69 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5075808a663cee5df876f3d3a8b772239eb52380fc65c6426572f417b16d499"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/cart.js:187 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/checkout.js:1180 \u2014 the two spans are one implementation copied and then locally edited \u2014 76 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5e3249e5ead575fea50db54acc9b817cc514027dde6a9328c5678f2b29ac74"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/checkout.js:1256 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/checkout.js:1325 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":1256}}}],"partialFingerprints":{"codehealthFindingId/v1":"402cf1c420d6b5514531e630114e9b20ed45623f00284a7840fb56b1ff682f3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js:1308 \u00B7 wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js:2646 \u2014 the two spans are one implementation copied and then locally edited \u2014 90 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94ba4299cd2b9c9edefdfe39a7d50a9642aa13a0aaa84ca34f775f97a9c440c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:5866 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:5923 \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":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5866}}}],"partialFingerprints":{"codehealthFindingId/v1":"2392a74ae701981a0eaecf1155eb1e084e81c5f5060aa569021c56f9a4aa5d08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3789 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3891 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3789}}}],"partialFingerprints":{"codehealthFindingId/v1":"b156f0b5d7d3c6ba2778c42955c16d41be256751e059882df41dd6adae580db7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:785 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:1322 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f5945a20705a42a8b476c8e6586c7006c27a16a9adc9c2e78f2b48314ee197"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:488 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:1144 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"535de4d670105240c10c0f9d5da3ac8c4d6e40ff4ebb5299fb3afbd269c45335"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:812 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/settings.js:203 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"074b825a5203ad12f52de5191a777e5a3721cd2adffb008688b16163efb3264b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/cart.js:351 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/cart.js:727 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bf16b079be565a94853d6be2f4698e7c54d11578f055502d9a33bf5ee3bb92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/cart.js:756 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/cart.js:800 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart.js"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"2724fd73cac0f7edee3584552171076805cdd2c21699746dcfd0c194c02bc50a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:2068 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:2672 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":2068}}}],"partialFingerprints":{"codehealthFindingId/v1":"474762c20764d8d671162ae93880f8d45ad20c5ec34213d3c222338f54ea99a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:2143 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:2769 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":2143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb12da58099aad1d45966f929cfe4a6521f3aa2ff8bc04c91e92cd8feb11567"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:2412 \u00B7 wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js:1589 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":2412}}}],"partialFingerprints":{"codehealthFindingId/v1":"59758465385061284e50866d8996285f030af9564e00461563ea7f80fb3accd8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:5948 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:5969 \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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":5948}}}],"partialFingerprints":{"codehealthFindingId/v1":"048b518c7533da8ce94584add20857467c77eaa4cf33012a1b816b7b13eac9ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js:436 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js:456 \u2014 the two spans are one implementation copied and then locally edited \u2014 80 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b555d4a23b0635d7202489518775c77cf70a5f85b435f0c7ba06bb30e44bcd4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:409 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:1106 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a600182fcd50182a1a0a93a6699e3d6c4ffc5767aae0b374b35fc21ef0f0b6c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:530 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:897 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"9610e992eca5929554e93ecb5abb7052a464ac67e0dbdc4d875444a67331da58"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js:153 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js:170 \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":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e72a80fbed1e27f9fb5ef5a10544cc45b17018d198ba97e6a61c266a0a89e2f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:217 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:768 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c24c93270466280942afbab16e3b631c3f29733370968773892a9e6a9646df8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/cart.js:680 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/cart.js:772 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart.js"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"d480a97ced3758130615c4aa38726af82e613942220204669188c8cdfc85939c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js:997 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js:1551 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"e23bbe6c04dc079c046ef443e3ab8ae53ef2055abcf87359eeb2314d46c81dcc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:864 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:4126 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16685c912ac54239fd6314b88c7eb88f9fbf04a00a3c878c34e7f59c8818698"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:1934 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:2002 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba77a12efc8187a52d58d1fad016b013c18d6984b6abba5f8addb6b93a05e779"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:6300 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:6457 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":6300}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99521a0f35b9f4f32d1ca952a8396cf821b85a2a2b91c27da348e813ac8b1ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:2610 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:2656 \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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":2610}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef072621567d00061cb19fb35ce53eff780a60679c9ae4e83c41771941754f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3983 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:4149 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3983}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ff31710c0435927df0664f8d22bb38d76cac60f7be3af744db85dd7068ac47"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:631 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:660 \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":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ee4a9d42b1d249b1ccf19ce38b145784652c37c48b0b9bca1e79de996132db"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:99 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:145 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2318c1daa35963b2eb1991749193f78ead7dbcb9a803cf4b0cfaead5879b37b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js:306 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js:330 \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":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7db0bb47958db1d93d10fc67a0e0b9878c86b1fef10911cc1f4bb8c82cf60b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js:432 \u00B7 wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js:454 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"5120a01c35efcc5d341bbe300a30fb677738cfdaf54337e79755eba5ebcbedb8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:1918 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js:5170 \u2014 the two spans are one implementation copied and then locally edited \u2014 76 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":1918}}}],"partialFingerprints":{"codehealthFindingId/v1":"39843e0e67eae7e693e8b424fc05a058a8ee6013e50fa1b0ba8fa72382132e77"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:1918 \u00B7 wp-content/plugins/woocommerce/assets/js/select2/select2.js:5170 \u2014 the two spans are one implementation copied and then locally edited \u2014 76 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":1918}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecee3054c31adbe658089888639dffd5e8ab75fd95e7f18183e52b03c35d5a18"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js:1585 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js:1603 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c4d018e7243dd2864abc2bf78ce7f73951f4565911f1e563fd1667b67befaa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:1656 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:4427 \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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e3ed167a3965512c01d35bce75c3d4a9ac12b664a0e25ebddfeca6d19dc98d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:4001 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:4021 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":4001}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8bcb622589201e5f5288bb3696a9af506fc5b084f1890f2c72ffe3d0f90d27"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:6548 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:6569 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":6548}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cffa266453b6cde48a04b097a59c6347abf7011f1115684db56dd6425173f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:6620 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:6712 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":6620}}}],"partialFingerprints":{"codehealthFindingId/v1":"f118dfb792750a4458b1f03a58f3154a361724e48d7c69de9c857865ff2ed731"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:6854 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:6867 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":6854}}}],"partialFingerprints":{"codehealthFindingId/v1":"8075054db693bb9dd8ca79be0bf04b0fc79160a63de99085532379a7b465b883"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:359 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:846 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ed670ee4003ff40b53a118a44c9773167847425078d6c2b40ddcf1acd19de4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:74 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:95 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9da598ff7052fa8457cb274a3660334c0663bd76e71d199ae99c574d674d24e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/settings.js:354 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/settings.js:399 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings.js"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"16601ccb124791636b510a01fed52fd77ab2b1625089164d67576b3c3ccf667f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:165 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zones.js:11 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc798be4e9847d9db4f991c5472940058cf94666d7abbde26e2bde16b7a7fe0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/add-payment-method.js:48 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/checkout.js:277 \u2014 the two spans are one implementation copied and then locally edited \u2014 77 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-payment-method.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fdf24bc5d639b819c5c7b13d735a6232696daca1ed92c2a8577e1353823506"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/checkout.js:729 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/checkout.js:768 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5d2d0203fca41167206e2feae978fb0b43c0bd720349d7d7fa42b8fef1fe62"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6 locations): wp-content/themes/monoka/assets/js/owl.carousel.js:1855 \u00B7 wp-content/themes/monoka/assets/js/owl.carousel.js:2005 \u00B7 wp-content/themes/monoka/assets/js/owl.carousel.js:2466 \u00B7 wp-content/themes/monoka/assets/js/owl.carousel.js:2588 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 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":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c40df892746728382153772b6bb6046b668e3ff722c38f2bd7591c4daf5f059"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): wp-content/themes/monoka/assets/js/owl.carousel.js:2828 \u00B7 wp-content/themes/monoka/assets/js/owl.carousel.js:3235 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":2828}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2c566adad04670d5f2376e7f024e0d1df5462a5e23f8d54a9e937f4354d758"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:1977 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:2862 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":1977}}}],"partialFingerprints":{"codehealthFindingId/v1":"96618826630be49cbd764e85302a910221c6719555e90e710949c75d3090efe3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:2452 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:2480 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":2452}}}],"partialFingerprints":{"codehealthFindingId/v1":"900782a2083364b53562ddc5edbb2d161350bc3f76f36f47e72a245a28849f3d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:9231 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:9258 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":9231}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9d7019441899f7a91c198aa90460771ce0c4453919793f7027577658d12080"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3745 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3989 \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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3745}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b949c87ebf0b134de3b28e1a28f47811042fbe781bc592b03da43471170bc3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:323 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:336 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"917319b4d5109da041f812f5af658c8c2f30d57ec6d4ba9a7829a251d9b870f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:1379 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js:1397 \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":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c671f7e5927a316631d89341b42cc6d86a8e4a9290b5414e21e1b4ec7fa8a29"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): wp-content/plugins/woocommerce/assets/js/admin/settings-views-html-settings-tax.js:204 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/settings-views-html-settings-tax.js:256 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:368 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings-views-html-settings-tax.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6dd4daa5119aca5b5a8f37f22bed43c4b93053930a2469ad474602a2be3c9c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js:319 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js:354 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d5d814ae146dc851fa8b8d48732ce68e92edcfbb695c3eac830d793a808043"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-setup.js:99 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-setup.js:169 \u2014 the two spans are one implementation copied and then locally edited \u2014 59 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-setup.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d981a3c3c812bbc88b8fdd1635c4a19a20f30adead3c40c14a8924e155bc68e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/country-select.js:114 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/country-select.js: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/country-select.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7df41fe2cf11f9e36b42a766ab4c371a3e9519ccef28649796813fb024eac6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/jquery-ui-touch-punch/jquery-ui-touch-punch.js:147 \u00B7 wp-content/plugins/woocommerce/assets/js/jquery-ui-touch-punch/jquery-ui-touch-punch.js:165 \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":"wp-content/plugins/woocommerce/assets/js/jquery-ui-touch-punch/jquery-ui-touch-punch.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"1138e362e31d7f4ef52a70ea1337656f494ddc4ed2a01d5130fcc406ce518394"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe-ui-default.js:10 \u00B7 wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js:4 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe-ui-default.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07bbcce82d6f807efde8eb5c5ad1783eaca8e1f7da9dc1497086557f427b806"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): wp-content/themes/monoka/assets/js/owl.carousel.js:1997 \u00B7 wp-content/themes/monoka/assets/js/owl.carousel.js:2134 \u00B7 wp-content/themes/monoka/assets/js/owl.carousel.js:2580 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":1997}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3138004db17a14005736745e2a7b0ef363c5b1dbb9915c55ce9997bfc78f414"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:2332 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:2596 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":2332}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76656b4108f3b2c49395db7622dd0daa2da8c3105e28d3e3766fac9e9247b7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js:1474 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js:1543 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1474}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a324f1c30d7ec54eb82e5adbd0bf5f0303916a8654700164a713554930de92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:457 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:474 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"05aa2a121d53c8ea7c6518a7908f84c3d537119eb363ac7a24368787a193f580"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:10601 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:10619 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":10601}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5af38294572371ea5e41bf0d3b3dd5a5682bc2ca76723ed0c1b9cab7a64fb98"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3137 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3158 \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":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3137}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e7d47406280a2aef3678b56d29da9fd0c1d1d63e71e6d46c04b3b2186818ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3461 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:3508 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":3461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c002fd5219e79f72baceaa54594b990c70d9d9ea4062f3265096d26ac8b7cca0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:4337 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js:4352 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":4337}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc10715b674d92c758fae89b796b517e39e3ef8a5fd2c7b900dc1ba1beeafe5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:383 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:1090 \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":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6283325fb9fc9ef4a74e3530bf3009c260145bc4f1825d2d55340c011e90346"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/settings.js:23 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js:516 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"e816c272327ccce64dd8f0848b97976f7fe98917a509ea4e380aec3ef60dc711"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/users.js:60 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/country-select.js:143 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/users.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75abda6fdae96ce4f19bf7747d1002ee003026a9e67a6c8957f0c2048afb6de"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/country-select.js:132 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/country-select.js:157 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/country-select.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdbee5d58729f85c2e89420443e73c8b8efb9d1ac0e7d63ffd8ea30b8ea1bd4c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/themes/monoka/assets/js/owl.carousel.js:1802 \u00B7 wp-content/themes/monoka/assets/js/owl.carousel.js:1936 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e3a925e41e8d0e93f6666efe1f52132d8e9f5a567d2c186a9d0d4b7ea1c7f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): wp-content/themes/monoka/assets/js/single-product.js:39 \u00B7 wp-content/themes/monoka/assets/js/single-product.js:58 \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":"wp-content/themes/monoka/assets/js/single-product.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22b1b20b7ed7f1459536fe5fa6890ecc3eed1aa92d453ce02a8d6afcd39a7a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:2255 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:2267 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":2255}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d2a9e2467530b36135e4031448c5e2f117363f157f434ed2b2c7742dce3587"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:2324 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js:2344 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":2324}}}],"partialFingerprints":{"codehealthFindingId/v1":"779434f285e37b603f4ce486ccae6a3424254a6d31c0f0682fe1eeabc4d2c10f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:10488 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js:10503 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":10488}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f8bf2398424769d0fc4727db9bf1f0d35e6ac3e0148040fd8bff120b9f5fc7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/settings.js:23 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-customer-stock-notifications.js:44 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca49995f272d144e67ef4c2e946d41ccc96bf9a543c6e36521f97e7a0797c13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:263 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js:306 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"766a627276a21dcc002136d8c50486f3ed730d6cd8814c08250a06ad49b4debc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:370 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zones.js:191 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8f48de9e45eb51228b6601cbd47b9abbe2ca09806a0b2d5f6eef638fc14ce1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): wp-content/themes/monoka/assets/js/owl.carousel.js:1506 \u00B7 wp-content/themes/monoka/assets/js/owl.carousel.js:1522 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a5221f4fa7f6ab9a6fca2ba2b003cd14f647ce7ed83fdcda504468c2191c42"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): wp-content/themes/monoka/assets/js/owl.carousel.js:2997 \u00B7 wp-content/themes/monoka/assets/js/owl.carousel.js:3005 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":2997}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f2d974efe339e40d3a0eaf87eed666298dc4d5623c5af6c9a7db6181dda09f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:1737 \u00B7 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js:1747 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":1737}}}],"partialFingerprints":{"codehealthFindingId/v1":"056968f3da1ec241c189f0ce43177f8d7299f2c69738a3144f28b2ee6581fde6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:626 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:778 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f002bb45d8d13ca11afab4303df26777f071523812cd634c3691b5001286fc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:777 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js:1315 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1960e48343af7649c52c54c8454257db9b889d739a1d8753bd8aeae22f7cf40"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:318 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zones.js:164 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"91057d6b0409c471f51a171a925cfa9e85395f167af7d42750257bec06ef4178"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/frontend/address-i18n.js:65 \u00B7 wp-content/plugins/woocommerce/assets/js/frontend/address-i18n.js:76 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-i18n.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6272af282b54f6a4c48a273723ba077062c657e46f84271aa3b296abac4e2ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): wp-content/themes/monoka/assets/js/my.js:36 \u00B7 wp-content/themes/monoka/assets/js/my.js:50 \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":"wp-content/themes/monoka/assets/js/my.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3c9d77e2f466288746042823271451b0992c36bf8f221b0fc5ce6ea160332a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/reports.js:92 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/reports.js:102 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/reports.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc931c581ff8cd600fa340233780d85e758590664def3e720240360db9908f5a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js:361 \u00B7 wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zones.js:156 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"a48ce3be30ad56a19b56326485e5af42d2921ff716e1d47db72a3014f4d0ba95"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:5823 \u00B7 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js:5836 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5823}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38ba791606ad862934c58c182284bf5d3cd2cc1081bd577e6dff2640a6c5568"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Va (cyclomatic 80, cognitive 28): Va has cyclomatic complexity 80 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd331ffa553b78048f7567a90aae19c8c0eb95b4d938ee8b777545c6f6e6b98"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Ra (cyclomatic 53, cognitive 67): Ra has cyclomatic complexity 53 and cognitive complexity 67; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b632ab4a82d8cbcd4238c4f170b96deba33c2bedd7d37f82d410c1dbade668c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _limitMinMaxDateTime (cyclomatic 52, cognitive 120): _limitMinMaxDateTime has cyclomatic complexity 52 and cognitive complexity 120; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ec0f9a44576d2fa8e37290efc168cee4ac40ce335b52b3db676610bfa41813"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compute (cyclomatic 50, cognitive 46): compute has cyclomatic complexity 50 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08c79a9164489366f0469d11641a8a050218e72fe8ec03147104008d3fe4258"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 47, cognitive 52): (anonymous) has cyclomatic complexity 47 and cognitive complexity 52; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":2720}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ae4494e8a4e27797f8c2ab52b8ac8285b82a3078bcdfa4b0ec0c19527c1965"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _onDragRelease (cyclomatic 46, cognitive 60): _onDragRelease has cyclomatic complexity 46 and cognitive complexity 60; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":1955}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cc0ef5b8a47471b56ac285d2fc7e83ad984e4b40e1c2fc74e8d6b4cfe12e96"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function b (cyclomatic 45, cognitive 51): b has cyclomatic complexity 45 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"132b12ec31cfea4583f2cef740ad12f2a51da1f068cbaa35e4f12023e4142c9d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _newInst (cyclomatic 43, cognitive 53): _newInst has cyclomatic complexity 43 and cognitive complexity 53; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"487b3036f05bc6197e6b80d79d6e99838b16723bb0627f88f4d5e3f591be7380"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _onTimeChange (cyclomatic 43, cognitive 51): _onTimeChange has cyclomatic complexity 43 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":779}}}],"partialFingerprints":{"codehealthFindingId/v1":"05aa397d6fd54ec88bf252329d56a54801ff173da2e2a7e79a0e9f3a89f9604f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 43, cognitive 41): (anonymous) has cyclomatic complexity 43 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0fecbf3ac0161c36d768ef0306e0eb4ba3987f7e0ca545022a9e9befb9c7c8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _injectTimePicker (cyclomatic 41, cognitive 105): _injectTimePicker has cyclomatic complexity 41 and cognitive complexity 105; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"57124226b1e75f64e4b39d5a9e23611dd480f2da68618a7645155d3c09161cd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apply (cyclomatic 40, cognitive 74): apply has cyclomatic complexity 40 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"61113f00ccfb5699720abeb2b946ae28607fa46336cf6d1a3471af6ce770e5fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apply (cyclomatic 40, cognitive 74): apply has cyclomatic complexity 40 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ba8014bbab2a28164be56e373eb819d06f36a866efc83ec2fd545c1722f7d8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apply (cyclomatic 40, cognitive 74): apply has cyclomatic complexity 40 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c4dfba87ee5fdc972e732b05bbdf1d94d9ebf5f28c77f1eb3ed063f9bfd831"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apply (cyclomatic 40, cognitive 74): apply has cyclomatic complexity 40 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":4565}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5fe6350f805ab943a1be244ba1e02fac762fc5a529a6e43aa811fa36358f44"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apply (cyclomatic 40, cognitive 74): apply has cyclomatic complexity 40 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":4705}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4217a5b8dc4f2f6c470f596f45f6ba752d2242d8832b983a5ee39907f3d213"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apply (cyclomatic 40, cognitive 74): apply has cyclomatic complexity 40 and cognitive complexity 74; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":4689}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0beee92317454d69cd2e7e5ea0f972a5631df3572b1d48de5e1984c7376303b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function n (cyclomatic 40, cognitive 48): n has cyclomatic complexity 40 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60c82b89405c341e45114c886423995ca40458f53ee3d72f660a79ee760d75d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 39, cognitive 380): (anonymous) has cyclomatic complexity 39 and cognitive complexity 380; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5846b27ab826a08d1072c2c2c3321d0e2e514efb96dd489521d27008247941e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getProjectionStyles (cyclomatic 39, cognitive 49): getProjectionStyles has cyclomatic complexity 39 and cognitive complexity 49; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f3462be98aa6837f8852bca645cffed70b756db37ecfe2cfdf21cd956fa31f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 39, cognitive 36): (anonymous) has cyclomatic complexity 39 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc07e79884a88e603742095907483fa0bcbae0b34b4019905a9ab4c445cdd00"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleKeyDown (cyclomatic 38, cognitive 85): handleKeyDown has cyclomatic complexity 38 and cognitive complexity 85; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fb30b42bc6237ae6f8ed0755b39ba963445dad9c5fb9fe8a57e1622c7ca99f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function c (cyclomatic 38, cognitive 84): c has cyclomatic complexity 38 and cognitive complexity 84; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a1cf2f0f359c75d09be2dbbbbd3108046566c2cdb7371e630538f8ed35f8ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 38, cognitive 34): (anonymous) has cyclomatic complexity 38 and cognitive complexity 34; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3a09d44038e79f364ca30de3d7d45015ddfd5f4c2b05fcf36679f468e58146"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 37, cognitive 31): (anonymous) has cyclomatic complexity 37 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a50bd53cbead9d4d14c720d5a76b5ea5f8db45b6aacd2800ced8a7149b11955"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveTargetDelta (cyclomatic 36, cognitive 51): resolveTargetDelta has cyclomatic complexity 36 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"decf53662516573784fb1bfc0ab8e98075459f6388e995415a0e05313436a6b8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _optionDatepicker (cyclomatic 34, cognitive 61): _optionDatepicker has cyclomatic complexity 34 and cognitive complexity 61; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"70213252d73fa7b5afd714a838ff17825c5048229901a281fbb8528bda5c1415"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function do_variation_action (cyclomatic 34, cognitive 36): do_variation_action has cyclomatic complexity 34 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56f4b5a3d9a2f93e4625abf2ad381ec17af3fc08313e4251de65a122de1918f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _panOrMoveMainScroll (cyclomatic 33, cognitive 81): _panOrMoveMainScroll has cyclomatic complexity 33 and cognitive complexity 81; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":1521}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1451e64b36737a6a5ff7c27af7abec20e02aa728374f3322b695308885cefe7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 33, cognitive 31): (anonymous) has cyclomatic complexity 33 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":1988}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c73bffd239dc750595592b8c7b640b3b2e4191df069517416d71fbb26fd6010"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalize (cyclomatic 32, cognitive 63): normalize has cyclomatic complexity 32 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9e1d3cbaa159c32dc2b0a045029c7cff9ef0bc9f91b864087467d63e07a28a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalize (cyclomatic 32, cognitive 63): normalize has cyclomatic complexity 32 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f312a83b53608a8666f576fc1203ea0a092f5cda388fe3cc214eb97f472ebf27"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalize (cyclomatic 32, cognitive 63): normalize has cyclomatic complexity 32 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a107a8a2af9a7c2bdd244b260a9a274b80c7f9e8e5833f0f753eb4cf214bad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalize (cyclomatic 32, cognitive 63): normalize has cyclomatic complexity 32 and cognitive complexity 63; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d985e9720dc9c0683b2b7b013a3fe88ca47d2103711838ac47d7fefab5838aca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalize (cyclomatic 32, cognitive 59): normalize has cyclomatic complexity 32 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff365776bd61b11cbc1149b2078bed29b95c7ccfa21d4c4b40ac94a237d1fe0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalize (cyclomatic 32, cognitive 59): normalize has cyclomatic complexity 32 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b6cf596268b5ed20bdde8ff33130ec9eae135ff7dc4a542e6b6471abd42f05"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 29, cognitive 37): (anonymous) has cyclomatic complexity 29 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb565202e3fa01f8f7c264972c9b05ceaaa44bc4fc6436c741003f7107d86b1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _renderMovement (cyclomatic 28, cognitive 50): _renderMovement has cyclomatic complexity 28 and cognitive complexity 50; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"114f58661c46b904037d39b1402006083432aa07bdc2ec1060ce15ffc513fa35"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetch (cyclomatic 28, cognitive 35): fetch has cyclomatic complexity 28 and cognitive complexity 35; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"b954d1ac740cd2a94d7299951fdd0ef09d0c8ffbfd305c19bfab5e561c798686"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function calcProjection (cyclomatic 28, cognitive 27): calcProjection has cyclomatic complexity 28 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5168cc2daa57835bf0d0ef5dffade189f3b083c8038c847c4662703d2b802c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function init (cyclomatic 28, cognitive 25): init has cyclomatic complexity 28 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"460c7af1349afac744290e7608ef6fb22e3ebd77206697749e51e867fc5bb922"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 28, cognitive 23): (anonymous) has cyclomatic complexity 28 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/single-product.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74f0c7ae485a7049817337292f995c06399d9332b197a9ebc208b7f1c94b14a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getData (cyclomatic 27, cognitive 33): getData has cyclomatic complexity 27 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fd8e0c07212f1866620b89e8bf82d7ff68025651793fdc232c547575118d34"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fn (cyclomatic 27, cognitive 32): fn has cyclomatic complexity 27 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ac1850903182e912178f694ecc0526bf28c5a3291d32886597e11e404bdd49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 27, cognitive 30): (anonymous) has cyclomatic complexity 27 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"725310c5a902933973471f1b8185b1b04f5c632d28d4ff02825b0f2cac8f086e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 27, cognitive 28): handler has cyclomatic complexity 27 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6230}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf062b4d137a93689a7e5e6f164b71aba4a3d66ec3b625b6a1b624387c1be6db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 27, cognitive 28): handler has cyclomatic complexity 27 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":6230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ae855c9b0a0fdc93916e9c8012e18c601522da76d876420049020683ea2aea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handler (cyclomatic 27, cognitive 28): handler has cyclomatic complexity 27 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":6405}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b664ef33f172f95b6de4b692419001fc681fe33a987cf0d137ad7d6cb8f8b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function J (cyclomatic 27, cognitive 26): J has cyclomatic complexity 27 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2fec5410498f7f0f55839b96c9c38101f3bf5d5aa3532a12809609e41f5f2c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dX (cyclomatic 25, cognitive 44): dX has cyclomatic complexity 25 and cognitive complexity 44; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6565cb6d04dd79c6bfa63f99ad7fad56bb749e9794b09594710ed88a336b2b63"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectFeatures (cyclomatic 25, cognitive 42): detectFeatures has cyclomatic complexity 25 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7473634565f512741bdeba494b00a0f8e2aff7e3e8d60b628b266d16010f9da8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updateDateTime (cyclomatic 25, cognitive 37): _updateDateTime has cyclomatic complexity 25 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b7627f23327a4a2ed3c353b7566e2457a6758c13a98207ca9b743340037b8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 37): (anonymous) has cyclomatic complexity 25 and cognitive complexity 37; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9645f090d414f8a719cb51eb45662fd33d91c529c340df7aa97a699c88aef8f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 27): (anonymous) has cyclomatic complexity 25 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"001fb65df8c1ca723da36c01c3b2f46979ee4dba05b77e064e7281d819c2ef20"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fromElement (cyclomatic 24, cognitive 30): fromElement has cyclomatic complexity 24 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5071}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cf29b5c166f325e11c2e1b3e1d4545bcf55f0b8369d678880c12eb30dbed097"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 23): (anonymous) has cyclomatic complexity 24 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f397f976cb8d94ecd33054a5c055df67d33f18da122f28f9a831693fa01b51e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setContent (cyclomatic 23, cognitive 36): setContent has cyclomatic complexity 23 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":3024}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a0be5b960f1c606aa285d1b50167faa847763ef7edad80a26702f8f3831684"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fromElement (cyclomatic 23, cognitive 29): fromElement has cyclomatic complexity 23 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"e249230aa506b6c35b6b12f0aac1c6c6af173d6602c19fcc8030fd5a638aeb14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fromElement (cyclomatic 23, cognitive 29): fromElement has cyclomatic complexity 23 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"28985a583c7d62cff016d134a5624cdead9b3bbdf20936e3cd887c128bc1f5bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fromElement (cyclomatic 23, cognitive 29): fromElement has cyclomatic complexity 23 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"7233204d0375830e53ef00c950fbff40a89bf131341594e41f2488f33761f8a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fromElement (cyclomatic 23, cognitive 29): fromElement has cyclomatic complexity 23 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":4931}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc3874f03beb4166483f530c3bdfba6de3e64c80880a85d0ffd0704c87682b70"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fromElement (cyclomatic 23, cognitive 29): fromElement has cyclomatic complexity 23 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":5055}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80968724c89a1fde7bdd24ea5d6cf722d32c4a70b9d68ce19f75177533019f2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function em (cyclomatic 23, cognitive 27): em has cyclomatic complexity 23 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5339437a3dcf4c4d8e11551be1c2072997120eedf727a5b37f6f958a45d792dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 65): (anonymous) has cyclomatic complexity 22 and cognitive complexity 65; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fe4aac7e8cb9e493a10aaa964daf97fe97a6fa962f9445cf994761dc747297"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 22, cognitive 29): main has cyclomatic complexity 22 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c62e3d537328b99bbb77686f160feed5a3a0a958101991c64cca7424a6d9a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 22, cognitive 29): main has cyclomatic complexity 22 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c27d132ae82488ac64c2062e485a024c3f60b4ae3b0dc2aaae6ebd8729e7088"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 22, cognitive 29): main has cyclomatic complexity 22 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e336e979058ec998e9516774ed157bc68bce1e57e8a6aeb09bb9e1daaf2cad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 22, cognitive 29): main has cyclomatic complexity 22 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e2767d0abc11b3545f3007d8e91a96aded1c542cd6f74b5c7af9bbf6d8e889"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 22, cognitive 29): main has cyclomatic complexity 22 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b7b6ca100156b1a71fcba228e14eb1ae205a5af520034378bd7a7007170b61"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function main (cyclomatic 22, cognitive 29): main has cyclomatic complexity 22 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"df579824ab8c6fd789e162a902719044fcea7faa925d9c3b75fee4724552761e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 28): (anonymous) has cyclomatic complexity 22 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e196e712c0cdc2e70142e9e96466f0ead3f217c9bbcc042d5bf7370a584834c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateResults (cyclomatic 22, cognitive 25): updateResults has cyclomatic complexity 22 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3606ea83bbdd5ec878d6c9184b1051d49eba6bbfc5617ea463007b8f7d4c4e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function c (cyclomatic 22, cognitive 21): c has cyclomatic complexity 22 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67e6df9d5e0a176be342eec91eb761ca915b7a294b46e9f5fa1ccacb0116b96"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Yl (cyclomatic 22, cognitive 19): Yl has cyclomatic complexity 22 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f833b0a1a1eca04e3dfd67ab16dac5e0a83a5cd2b7ac68414a5a98ed9ea3a29"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateSize (cyclomatic 21, cognitive 30): updateSize has cyclomatic complexity 21 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4977f0dfd5464324701be5cc4320ae357029570e27e40bad7fb031b0f16a7e70"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _finishSwipeMainScrollGesture (cyclomatic 21, cognitive 29): _finishSwipeMainScrollGesture has cyclomatic complexity 21 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":2296}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfd2d4f6d769ea3fde7b367c3ba4275c16711749a2e6cee41ff78bd913af69b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 19): (anonymous) has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c906a11c0e1f744e9ceeddc4bf7d5b8c7919bf4e9c816135f3362491c813f86b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 19): (anonymous) has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fd1e02004c4bc2dbf9147b1339c1fd2e8dfb79fc516f4e68a014a48c72462d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Po (cyclomatic 20, cognitive 33): Po has cyclomatic complexity 20 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e087aceca1baa010ce0154348aabf95b75ebc54c78d59fc44c5dae10986eb20"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 27): (anonymous) has cyclomatic complexity 20 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f843562b461867e0b41495577ab121d1109dbe3c1e8d9061e76ba27817c513f1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function displaySuggestions (cyclomatic 20, cognitive 27): displaySuggestions has cyclomatic complexity 20 and cognitive complexity 27; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a280d64ca8ad5c8452f90520519d05dbef80e37464dd13edfee2638b74bd1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function AZ (cyclomatic 20, cognitive 25): AZ has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98cba2ed1ada095107c8cdbd1bd27d0cffd9b1726a026e4dc89d8346eb5312f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fn (cyclomatic 20, cognitive 20): fn has cyclomatic complexity 20 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46eaceb225a27ea6740175a254fd3422b113fd7a0e9bd8b0e92cdbdf3b25c17"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mainData (cyclomatic 20, cognitive 20): mainData has cyclomatic complexity 20 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"6888103860e8d904786038a146debe602e8e03cd6d9d9a7f53f09f0e4a2e7e71"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 18): (anonymous) has cyclomatic complexity 20 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4435c558ff0c967944c6ab511f1ffae2bc82b546bac8162221045b1153d4645b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareOpts (cyclomatic 19, cognitive 32): prepareOpts has cyclomatic complexity 19 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"da67d6c9a69954c427b2e58e639ef7cf835846bfdb5cae3d0a7ab409f4720f3a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 31): (anonymous) has cyclomatic complexity 19 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee07d204d6f5079e10cb71dacfc2677b7ef8bab818ae9cae61a39a31eac9f677"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateText (cyclomatic 19, cognitive 30): updateText has cyclomatic complexity 19 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/classic-editor/scripts/post.js"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f771e285a97d3f53ec5fefabac75524bf515ba7429c78d43b76dc2b4a788bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleMouseWheel (cyclomatic 19, cognitive 24): handleMouseWheel has cyclomatic complexity 19 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":3362}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56054cfb227c1d96117e094ac7cc15b2c9c8351928c20f7fc7fad1cf5ba6996"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 21): (anonymous) has cyclomatic complexity 19 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"88081c0744be8d32a3eda87dce809378c9a8b1ae79194c5df27efe9f1a6d0709"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 18): (anonymous) has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"da3181731d6857fe07e86d5509e7d718c6b3209ac99f9b929067f420bb60c42d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fn (cyclomatic 19, cognitive 16): fn has cyclomatic complexity 19 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ddcf5a99b2fdc25f7b094a9d5ad1f71c7b43dd39bad5c2573f17a64b75494a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 15): (anonymous) has cyclomatic complexity 19 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":2175}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa0b40b5f620e2a1787123d9737fed11a2220fca823288b01e7260d51c7891a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 19, cognitive 15): (anonymous) has cyclomatic complexity 19 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60d3beb45259552bb47c99015a6661f9b9b348d8a62ef003e40911ac500d180"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function strictParse (cyclomatic 18, cognitive 40): strictParse has cyclomatic complexity 18 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b8dc5972669990919a817e8b94d35193131ed63951e69d067da9f29c6c6428"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fn (cyclomatic 18, cognitive 26): fn has cyclomatic complexity 18 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"96942e9517d1354a1f5db37cf36b1622931be4aca7c4ff8f0acea40612f7b0d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 21): (anonymous) has cyclomatic complexity 18 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5499}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd943b7442e02034f05e7a8cf1cf3d106881e12dd7d28b2fde4ab9a1fc9bfb41"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 21): (anonymous) has cyclomatic complexity 18 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":5479}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1ccc89a92286e375aaff16cd1b3ab81a35a1b3efee3bb5ffc4657d2da5b757"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 21): (anonymous) has cyclomatic complexity 18 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/cart.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ae63d1c3ef13ed224e72f77a2d68084b6cff166da73dc972eade5ab01f61b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function xW (cyclomatic 18, cognitive 17): xW has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f5d3f6937e37f191288597cbbbc25189746fc131c415ea42ecc43e18573ea4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wt (cyclomatic 18, cognitive 14): wt has cyclomatic complexity 18 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"916e5e8691d6b73510799ddbc3babc7c5fa59c11fab835e5e09ee849de0859e9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function registerAddressAutocompleteProvider (cyclomatic 18, cognitive 13): registerAddressAutocompleteProvider has cyclomatic complexity 18 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/utils/address-autocomplete-common.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0919c73d0a956902130cbc5ece581e103c9ca6f3d526ba8405c6c91a17fd097c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ON (cyclomatic 18, cognitive 12): ON has cyclomatic complexity 18 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"501d9cadca77e49d3c42094b5c9856dec4129107246b92e2610c819a1cb0405f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function defaultTokenizer (cyclomatic 17, cognitive 31): defaultTokenizer has cyclomatic complexity 17 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c74f9558bd57aa019b08a3002612a00565992fab35bf96e261b5c5a69fe584"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 30): (anonymous) has cyclomatic complexity 17 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":3378}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5a9b467bafcb7293a3a7d214be5f89ca1c6a8c3cd9c7cefda99149272e686e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 25): (anonymous) has cyclomatic complexity 17 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2229}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aef0323bea8edeadc012acb548ed01409d05047962f2ec9e197e0dc62dd26a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 22): (anonymous) has cyclomatic complexity 17 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f828ff27bab9878075f57c6287e163165cce53955bdf476f11528064409c7e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 21): (anonymous) has cyclomatic complexity 17 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":1905}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a4c319a4e6e8e5675c36bb53ac637454375cfaedcc80b050c699e6aeb56dc0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 18): (anonymous) has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":1778}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2954a4ba0ce3e828a729d2a6021e945324599969571e49695c04b6a96c9fc6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 16): (anonymous) has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c99c30cd1b6b455b3b93ffc7e27f1e20cd1e3dbb929b1883dad1481960b015"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function component (cyclomatic 17, cognitive 16): component has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"145f40f75cffc4fb6392ce2d1250ab3fd7bdb476250c94cc2b413f1c47352681"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 13): (anonymous) has cyclomatic complexity 17 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7786a461149473384f4f35bb384fede83bff3e27831bceb715582f942fae48b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function r (cyclomatic 17, cognitive 12): r has cyclomatic complexity 17 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f012347f3d67b504ac38a089059b51132ce4d12a112c68fc87784f328f235976"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 11): (anonymous) has cyclomatic complexity 17 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabb8e52cf34d4e5b0bdf00cd12dc9ecea6b7146bd571f5c79ea8cb5821e989c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 11): (anonymous) has cyclomatic complexity 17 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0c87517ca1c454c9af8471c0c25317131316d9ae8d9c0bf580856689c731c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 29): (anonymous) has cyclomatic complexity 16 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6944ef8b5878e50666d58199024f1caceff8ae894f4b300b722cd20be85076b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onGlobalTap (cyclomatic 16, cognitive 29): onGlobalTap has cyclomatic complexity 16 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe-ui-default.js"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"c157a19b7c29723731432e59346836c0d09ecd359ad738530405094cd660e66b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function yt (cyclomatic 16, cognitive 28): yt has cyclomatic complexity 16 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25914865c04cde285f04ee5158385ec5d8563675156b53f8089098a2fbed75e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Ql (cyclomatic 16, cognitive 25): Ql has cyclomatic complexity 16 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad7685a993d7f3c90739d48d6cae9ea224d950ca1ed5a495e12a928f6684182"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 19): (anonymous) has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c708a7e18b82f50f6784aa534737169a309f5af9a0ddf32f742e606d4a37b2e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function p (cyclomatic 16, cognitive 15): p has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2eadc016c7db84aaa5d1382b5b555422191617f355299c83cdd7f37b40a1d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sG (cyclomatic 16, cognitive 15): sG has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"df120b2bff9d57f465c28586cf8ac952fd6505021c56a871d2d69aa5fe4f27dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function qG (cyclomatic 16, cognitive 15): qG has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94be3f3bcafa06b962d975ab1f999a2ce68e2b9abdc665a286fa2e672dbca0c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pointerUp (cyclomatic 16, cognitive 14): pointerUp has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"13332e8b6be5d07c1213879839bc99165e4cda4d492473be81210e637ce88ad2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Gk (cyclomatic 16, cognitive 14): Gk has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"524931d21ad2fde1485d6f314a8ed5318ce8ae929bb8bbb490e7bd4f04d13990"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 12): (anonymous) has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f12d859f0db74a1aca1624658a9999ee1f028bac1874bf213198562ea31e4fb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _doKeyPress (cyclomatic 15, cognitive 31): _doKeyPress has cyclomatic complexity 15 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e13fa6851db56c16aa02a5be1541e757f718b0a860af4f52f07bb4b0eb16680"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validate_field (cyclomatic 15, cognitive 26): validate_field has cyclomatic complexity 15 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0cde61dbfad22823a3d8246993bd333e30c4fcc0b0f10bb4636373d49abca3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 21): (anonymous) has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":3979}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b2548943ef2dd193d6eab71e97716ef3fa803a727be547f9bc294968080975"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function c (cyclomatic 15, cognitive 20): c has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1690a5c691b0a1fe257c107f26d6a32288737dd3b5ee4e074eab8870d92867"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function on (cyclomatic 15, cognitive 18): on has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f7dce7fdd193704414e064d8336f67366239e9a5474b96e5a3b9cbb4b3f843"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 17): (anonymous) has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3983dd33f1b1c805f1ab6248dd6da687c493a28aba670d7ff4c6a66f3b3b4220"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 17): (anonymous) has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d313861cedd69cd4977b28a1dae96bcc69418d0910c4b669b5586364dde9d5b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wc_variations_image_update (cyclomatic 15, cognitive 17): wc_variations_image_update has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f3d8e2c8b4bc63b97f0b8258aada2699aace4eeadba89dfa5d7f15c1fd0a1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5347}}}],"partialFingerprints":{"codehealthFindingId/v1":"8129dee67f2208c6b3a911675cfab10d6ac9d1bd92ebf97fdca8a48a17ef798a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":5347}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e20169c044eedfcab8135aa8b90b8c8f6c16368cbbec70e292f0539ee6dedb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b724e9ddb474b3cf0b042b6ee6fa9022e8af29cea563c17778865fbe94e2ccb0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d1f41435c687c9b1fe4b791387ea0b462765c7781ce503fb37a67d57eee15f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":5347}}}],"partialFingerprints":{"codehealthFindingId/v1":"10fe39e4218de53f8385fee305997a45e2974b7f2a1bcbbaf4b515262d830c2c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":5347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c475fafebda0d03a02776acd4e847c1dc18a0e9c63ab40d4a920b0053e68fd97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadFeatures (cyclomatic 15, cognitive 14): loadFeatures has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8204210bab5c3cd90df3c0b89b52c2aae972320c741792ab5a79ff89e9634f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function t (cyclomatic 15, cognitive 14): t has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa41e5b6c09b3bbf1eec4fed79ed7a8c83fcb5d0d1287dcbe7883eab70e7966d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wN (cyclomatic 15, cognitive 14): wN has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9864710273c96544b4f23618610c3b2903206431933f858f9df9083ac33c883b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function makeInlineSvgAbstract (cyclomatic 15, cognitive 14): makeInlineSvgAbstract has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3b95b237cc233fbc574628a38f09ae85b8ada3b4572f64aba8c3eabd102599"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function makeInlineSvgAbstract (cyclomatic 15, cognitive 14): makeInlineSvgAbstract has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb9964cc0426124b54ab09da5ec6223aceacf48cb41442a0d94e95fa8b36e43"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function gx (cyclomatic 15, cognitive 13): gx has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ffcdf560c92ba917486810650506b7ca89612e415fcf03721ad7f1fc1335a0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function manageCartForProductPageOrder (cyclomatic 15, cognitive 13): manageCartForProductPageOrder has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/gateways/paypal.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee608985150b49cbc0fe55ee106d493609e892264dc56fb6c360bb978747af9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _onDragStart (cyclomatic 15, cognitive 13): _onDragStart has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":1641}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2aadbdcb8b1aae7ba51e217ef0065e3321c6d62dcbae07aeb7e3803d580f92"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 13): (anonymous) has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf8e5012e6ed1f68c17764c8df81efdf10d32eec08bbec8a0b525e3d33c705b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 13): (anonymous) has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"4126a4ad73838c1d40a096c88e62949fdb7c35369ab14975034a0a8db6f506fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 13): (anonymous) has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b945c0e4d9b7843d2bfabccdfc606553df93fb7e9b11663cc76c828d7c3d49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mount (cyclomatic 15, cognitive 12): mount has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"74899e25438f82cf288176ded893bb433ad15155d37ee7a2a7745abe89d0309f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 12): (anonymous) has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"623bce3c209bb3eda64afede6c3881b0e0d7ed1d080754faed910bbdaf9030a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 12): (anonymous) has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ceb97acf18d3b954dda730e50b23e425ec50aabd944c35dbb277ccc2e1a262c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 12): (anonymous) has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f925dad07ee63427e0927b57580c6364a76615a8a2509804888ef360eb90cf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Yx (cyclomatic 15, cognitive 10): Yx has cyclomatic complexity 15 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac190f72cf36c9f79dfb9a485e5472ed3a3c92e8d63069b2017daedf557ced3e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _calculateItemSize (cyclomatic 14, cognitive 28): _calculateItemSize has cyclomatic complexity 14 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":2744}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ae2fe02771778e2c2c3cb97204152baab1676d0378a8e9e1322c17718d92df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveContainerWidth (cyclomatic 14, cognitive 26): resolveContainerWidth has cyclomatic complexity 14 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"a238fe30c73114e7bcd8b4c32d17035ec9f9357ed2eb5f41b2d939938cd76ede"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function a (cyclomatic 14, cognitive 24): a has cyclomatic complexity 14 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c504df9ca450541cc10590a2408dd6e2e1d9c5eb5628b735bff5b2425397eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pa (cyclomatic 14, cognitive 24): pa has cyclomatic complexity 14 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3286488aade5b61d056b6440e6a99989eae37760c37b4d1c356dc8f60953c1c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wl (cyclomatic 14, cognitive 21): wl has cyclomatic complexity 14 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"482eeb1c9c148313c92851cb6d86813b961f4879aa9112a0dd6f8e4cbb1ae57f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 21): (anonymous) has cyclomatic complexity 14 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96394620b5def6349cc7048413eef3c6188ca655aa9689028b4fd42029f5d8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function positionDropdown (cyclomatic 14, cognitive 20): positionDropdown has cyclomatic complexity 14 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"460df30a2f7bf0abfd39dcb247d9bf16718e85ab155e6af1c968b1d749c822d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function i (cyclomatic 14, cognitive 18): i has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/onboarding/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4894a56839baf07a6a1dd8ca3218d2afe19497c15fc836b5bc1456bba6d07c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildQuicktags (cyclomatic 14, cognitive 17): buildQuicktags has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":8479}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad44975c6545ca440877ff6b44505a40201602042e8fb5d613a592fd40aad0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function constructor (cyclomatic 14, cognitive 17): constructor has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8767d1dd1258dc04cf66035d1027e582019143758470c201223da23a89f6d48"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 17): (anonymous) has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":3433}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f255525b8570ae483c4280d8d53c56de1e2517b16bf71a5fed3b4f37fe931b9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 17): (anonymous) has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abbbbd3b3d4c4ec9cf0338d0b448ed53103b3228569377b3ec308ab8b8dd0ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _onControlsTap (cyclomatic 14, cognitive 15): _onControlsTap has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe-ui-default.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe15d94234e29c0945c83267ea1b9fdc8173e2d131454237c456bc2989dca44"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initializeTinymce (cyclomatic 14, cognitive 14): initializeTinymce has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":8322}}}],"partialFingerprints":{"codehealthFindingId/v1":"99a24d6b2c0fca64e484b3ceb4d2b4df333c99e0a055a5f07d275937d86df45a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73c6029975b338ade0267a94e68bc6ca4f1ce5e2239393751450403795bd2a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 13): (anonymous) has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abdcfa2fe0e5e8f50048610d2090d579a5bc51e1791802103e8e353053bc80d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function success (cyclomatic 14, cognitive 13): success has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c455c5795c022d96e909ba3bbc5144da255367a48fc3a075c207908a50c4aa1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 12): (anonymous) has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"274060a205e3695398fd45fe2688f94bcdcfc0753bde896855ab478afac289ae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function li (cyclomatic 14, cognitive 12): li has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"32cff420112a56cf5e34de7d60a2c91c0a0d3d1dda5c6754ae1419786ff6909c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 12): (anonymous) has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a92f588f7571d7a2a1697662efd0367d6e5d989d64588f286837503df6f5bc6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function PG (cyclomatic 14, cognitive 12): PG has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79da477a71e01e1706c75fb8c009cae21a39611f8fa220e06e9290392bccd57"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveConstraints (cyclomatic 14, cognitive 12): resolveConstraints has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d98130084650aaa4e22821a9480c312e62132ae245c7bfd971aca54285f8a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function G (cyclomatic 14, cognitive 12): G has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee04c48fd2f3b7ff6cbe6f7df53755019f103bed62dd5d39352595464e442b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 12): (anonymous) has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf86c8d410b179e16de38eea3a632253af091cff7f508d2c316a66028babeac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _positionDropdown (cyclomatic 14, cognitive 11): _positionDropdown has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4236}}}],"partialFingerprints":{"codehealthFindingId/v1":"317c784dd0cfa3342ad3a7c02b36e45e087418ef2c72ac52f30f4b502d9003c6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _positionDropdown (cyclomatic 14, cognitive 11): _positionDropdown has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":4236}}}],"partialFingerprints":{"codehealthFindingId/v1":"9459301ea74ad5e2616fe678198fc405b3c2b6a831befe8af320c7fe3b9439d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function convertOffsetParentRelativeRectToViewportRelativeRect (cyclomatic 14, cognitive 11): convertOffsetParentRelativeRectToViewportRelativeRect has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac4a29238d39f9022fe41654ddebadbf56071e1b4976194cdae8519b60b2084"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _positionDropdown (cyclomatic 14, cognitive 11): _positionDropdown has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":4236}}}],"partialFingerprints":{"codehealthFindingId/v1":"f370374f03c43f2b33f24b3af6b4301df4bb0cc5061651aa901bed4549dcfba0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _positionDropdown (cyclomatic 14, cognitive 11): _positionDropdown has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":4236}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff5c157ff276b2d0775cbef316825d4f2c870f29e7b45afb608a1f416a9f6fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _positionDropdown (cyclomatic 14, cognitive 11): _positionDropdown has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":4377}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cce40f2fe8eaed6b4dff43d5145e1758dd2e36409cdbce9725021ec0f3a0d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _positionDropdown (cyclomatic 14, cognitive 11): _positionDropdown has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":4361}}}],"partialFingerprints":{"codehealthFindingId/v1":"228685bde9d71034c0e94a79023905094885aaeb5e1bea2c3c6b7f4ba26a22e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 9): (anonymous) has cyclomatic complexity 14 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"98fa1ccb7173e578667d99b775ceef568a25df8f88acd18f51cff5aded5d4649"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadComplete (cyclomatic 13, cognitive 22): loadComplete has cyclomatic complexity 13 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":3068}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde412f35f93408f8690788fbe9aabb1643a035b8ed2a7a06dc32907b1d39dac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _getDateDatepicker (cyclomatic 13, cognitive 21): _getDateDatepicker has cyclomatic complexity 13 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1727}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a152f65328dc896a18cb2853b9c3c70ec1c18c2e7eb3225d00bc843302cc33"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function bx (cyclomatic 13, cognitive 19): bx has cyclomatic complexity 13 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d622b4766d589d1b1e01210f002f28a387025d88c4ee9f9c9450401c37d435"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 19): (anonymous) has cyclomatic complexity 13 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62331060895019219368cfc7a6bc2320de83f179bef3adf46aba2b9a0b3f6c3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 18): (anonymous) has cyclomatic complexity 13 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cae85cb42d21bbba031bcb0f7112bc46125d3edfabe197b4f65963157428be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Oa (cyclomatic 13, cognitive 18): Oa has cyclomatic complexity 13 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c5403eba97b379611b0e4b353c00edb0edb1fbd4d703a02deb34cd28fd5b103"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ProductGallery (cyclomatic 13, cognitive 16): ProductGallery has cyclomatic complexity 13 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/single-product.js"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc40c1ddf8d3c09b31af308c5fde350fd2b5f17238b1a5470c472b696b3ee16a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function t (cyclomatic 13, cognitive 15): t has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d267a8a5e6cbcbdcbe784dd61c49a2e9d85ff93e6cd15eee5f751b0a85b435"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 15): (anonymous) has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/utils/address-autocomplete-common.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ee0ae81546b939514fd5fc31575a4fed32c5a1bd8597e11dd90dd09664b49a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveCustomIconVersion (cyclomatic 13, cognitive 15): resolveCustomIconVersion has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca7f9c7dccb6eb61c01769b58a3f455b42863bd4ffe046c5dea88ecf36a6172"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function t (cyclomatic 13, cognitive 14): t has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a484401b549a764482fad136b0ba0d7a9d9e1853fdd11e01d6ba25ec94486b72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 14): (anonymous) has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9a03d626a3f3da9d5fdc46c2d85ea6bd4cd542db72172688f860f8cc60751c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 14): (anonymous) has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7342b187de0e2b6a74992d7e0cafca0d4798532d72b19534037b41a21aae03"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 14): (anonymous) has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9175935154d854b311ec3574f621f8de91262977e4389c7f32c1ef5b70ca83a1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 14): (anonymous) has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5ca455c8354430d6608ef352c3b8bae9b55e7a403147741ad4d95ed0a6e4de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _syncSubtree (cyclomatic 13, cognitive 13): _syncSubtree has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5398}}}],"partialFingerprints":{"codehealthFindingId/v1":"4914d7022452824e333fe0e8c18bf3799f9bb38a04fe0029889383cdcb8814e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _syncSubtree (cyclomatic 13, cognitive 13): _syncSubtree has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":5398}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f544b6621f04d5a6c96a37f471bbd77127abc254300fbd795d54c85f2a4b4c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 13): (anonymous) has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/classic-editor/scripts/post.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e521e82944e68d93170c3804354c82bcb0ad2061a9804d293f02cfbe849b26"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function TG (cyclomatic 13, cognitive 13): TG has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccb43c43b2a983a7090bf17bde4c67864e8cf0985018b43e220ebddf3e26c70"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _syncSubtree (cyclomatic 13, cognitive 13): _syncSubtree has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":5398}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bf4ffe19afdd7814cbda4b2e776e8e1154d42184484f5dc14c9642879d954a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _syncSubtree (cyclomatic 13, cognitive 13): _syncSubtree has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":5398}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c105c6f6bf10051228c973d8be54d475027859b168af2ead0cabffb32d06843"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _syncSubtree (cyclomatic 13, cognitive 13): _syncSubtree has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5573}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d9ef9ab55bc95c34a2a67bcf9cb3f7f743b0824c8b4a789f629ba7104adf8e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _syncSubtree (cyclomatic 13, cognitive 13): _syncSubtree has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":5553}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9821b099357490c51c6314f7951a83b5479c81392754ccd92092f94f646f03"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"190f2cd6febc73f4dc7bf3b96da51f4b547015716f0b4e9020ecb0ea2c3f0ce4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function tb (cyclomatic 13, cognitive 12): tb has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"085d7aec24c7ab48b33acecda622a04a34bfa7645e9ff1cb1a7359caa8913ece"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7810a432e537aeea151f0370b317afe26058cede0caf57115197408a75da27df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b199e9d6d54f7a68f293dcdbd69cfe88ef6a2f3efe8e0b3105e829d5d60e97d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function e (cyclomatic 13, cognitive 12): e has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"277cc046cdbd7386a574baff26b19d455fc4601a284298c910011d1a34567337"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e63dab9c0f9681c9a1a6697c5118cad1ba859fe7a4450b7533e87ac89969142"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pointerDown (cyclomatic 13, cognitive 12): pointerDown has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ebc466ffaee9491a508c259296e9e8f379212957e95fcc189f7a115ccdf89c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function uk (cyclomatic 13, cognitive 12): uk has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"354458f32dcf3d92bf5610721e477a9a02453d1833120d1b4d41ebd92ab5da1b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":4267}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2f577467e16e8c0cba853120f9cbf583f9b68c140e8942ce3cfb13a5615231"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87d45cefe4380f41f4d4b948641dd8dce3890cbf81ce760f2b2ad542426a46f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 11): (anonymous) has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c6f9f9db18a44009d674a3909e2167f1697fc76f19c54d62f8608b51d2b3ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hb (cyclomatic 13, cognitive 10): hb has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"58263c09bbf31f9fac175c1c3186c543bb67bcba83ed04ae8c3396271ffa5bd3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mixTargetDelta (cyclomatic 13, cognitive 9): mixTargetDelta has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"97129620e106dee8dc5e7f8c49d3919a94c4e4929c42eebd5a54f5539d63eeb1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dl (cyclomatic 13, cognitive 9): dl has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd27ccebe8ada2cccdb55b3e1da33abd3282ae88444370a1cbfbb36dcc077d81"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ol (cyclomatic 12, cognitive 28): ol has cyclomatic complexity 12 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abd44d9c1920198cb41487452712ab17ff7f65a29f41ec6672398970945fc1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updateAlternate (cyclomatic 12, cognitive 26): _updateAlternate has cyclomatic complexity 12 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf7faa5477e49e2edf1218330330b16f7932d64e9c03875d678f562c2215cdd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 23): (anonymous) has cyclomatic complexity 12 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6690952f8ed3e46948796cb3e3f200073fe0baf775e9007b34b31d178165d915"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 23): (anonymous) has cyclomatic complexity 12 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfa50babe02659f5d95b27b5b3880836d78ecf43bea26a41d9a5337cfb50c40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 22): (anonymous) has cyclomatic complexity 12 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf965a5f18f0feeb72aedc45a68246bfba8ff85b2b2fb36bf567111efa53b72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 22): (anonymous) has cyclomatic complexity 12 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf35bfe76767442bc7817c407837fa4048751cd21a49999b94ae6dc76717c2f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onFoundVariation (cyclomatic 12, cognitive 21): onFoundVariation has cyclomatic complexity 12 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacb49fc7853329e98b578d015f5254b229121bd4f6db79a496c23e83bf287e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onSelect (cyclomatic 12, cognitive 20): onSelect has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":2992}}}],"partialFingerprints":{"codehealthFindingId/v1":"6655fabb13cf56b6dfa0fc2924388d64a50776e331312e40069446ed5bf5a79a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _updateHash (cyclomatic 12, cognitive 19): _updateHash has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":3533}}}],"partialFingerprints":{"codehealthFindingId/v1":"edeeb01b135026d4276ac85fb0312bad5f2467c4c4e50f31e13ae184054c6c17"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function c (cyclomatic 12, cognitive 18): c has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3601279261459f52aa7183e12709db87b7834bd2856d9e7531b53347213ee0d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prevMotionValues (cyclomatic 12, cognitive 17): prevMotionValues has cyclomatic complexity 12 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bfba803eade89b6992934a01e21cb56230119161f75dda5fd1bfe922b5aea3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleMove (cyclomatic 12, cognitive 17): handleMove has cyclomatic complexity 12 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0207d84e6456cd5b272040e93884450817dbb88c5d467aeb983a98f4116fc4eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toName (cyclomatic 12, cognitive 16): toName has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"110447688cc2d8d503a5b9a4ed4b622c49e24b17a9fda5bccb977bfffe925395"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 12, cognitive 16): update has cyclomatic complexity 12 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":3083}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b704fcea6d5911d9c658c5b6e7c423679ba337e76f52d3f9e95f4975c1bc33"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startAnimation (cyclomatic 12, cognitive 15): startAnimation has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":2584}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c143b3f631041e04246af687ba8ef1437bf0a600ace3052d261ec66e3e102c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 15): (anonymous) has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f37dab896ba07e9c8f460accaf633e8513f9b46509ffff37cc771ba70128c75"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _onKeyDown (cyclomatic 12, cognitive 14): _onKeyDown has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc5815591fe1e8a2e70f634597965bf6eb00901fc9e06efff72ea6bdf09f187"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initGestures (cyclomatic 12, cognitive 14): initGestures has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":2434}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abb1420beaf0a9d1e230e5989db430608102ed70fc2830cc14c7e68c8b0034f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 13): (anonymous) has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abf336ee46a9f96709b94e436dcaf7d34e1fd7155b0f1a9a5a6a66a7e0f5f5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function a (cyclomatic 12, cognitive 13): a has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/onboarding/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c070151419ca027cd2177b1b4079bdb792c963615e41e069ddb1cf3040f5acc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function a (cyclomatic 12, cognitive 13): a has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/payment-method-promotions.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c4b1e95ceb0dbed096a37e4f5cacea7e62c34452039652d98b43a8fbf3f5e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function e (cyclomatic 12, cognitive 13): e has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a5547fb851be282391a9f3fd7474b54fb61ecde28bb537d4af0a2f4dde7d48"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function n (cyclomatic 12, cognitive 13): n has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"934e30409dc0adf59230bdaef2db156e52417f3bfeff8c4a4c9fb1b5e7043a4f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 13): (anonymous) has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34d1d2a8bbbcaf4b49242012884d9485ca03b8cf772375ac6129f45ad30fa64"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 12, cognitive 13): update has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/term-ordering.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"315203c638ccd503f75185adb2641458cb7f70f760ba40f49af596b000b4b3f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Gl (cyclomatic 12, cognitive 12): Gl has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d797e3760c0ef56a0742146d0bf7839a06d6e834816fee1d3491d4ee41cd23"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function queue_update_checkout (cyclomatic 12, cognitive 12): queue_update_checkout has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d09f7f3c08d9adbaf3ab11469e95518909ef57c816e6514401738c7070c633d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function draw (cyclomatic 12, cognitive 12): draw has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":3120}}}],"partialFingerprints":{"codehealthFindingId/v1":"42032fd4e1d320468b51e145075c875a9097d08f5f1c0b682f52624286030ad2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function init (cyclomatic 12, cognitive 11): init has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"3619cb21a7e7652e3f788daac0a1447093455f645318427709ff1295af006d38"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initialize (cyclomatic 12, cognitive 11): initialize has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbb5dd526ae070f1871241365db5a1b54d8752a105a568bde6e55b7bde4a108"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pointerMove (cyclomatic 12, cognitive 11): pointerMove has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fbe51ae16ff3179cb7d786b709c2f93578631a53f7375aa2f10622cf4c076e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacd1418e086a1630621548a7401a7b32f7e67ee21934045009aa23bf42cc70b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function FZ (cyclomatic 12, cognitive 11): FZ has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfd7b742283b5752768d541e2c2867288f31db5577e0db179f94733e5b7405f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c97b6576eaa4a6ff4c1c96f27f7c95f9325e52f29655d5b817f5790a9e655c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4f67c723a611fe2f25e97e7934cbb02488d9ea1dcffc38eb365c777560159d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function constructor (cyclomatic 12, cognitive 10): constructor has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa60461e563233006dec4ebf1cf640f85b98a9ae1af42c794397b5fff79b9547"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a743a3975bf0b89a9c42cd3d1a0c04df6384e30e9aec5ccbca32127d1712538f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function DN (cyclomatic 12, cognitive 10): DN has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f61c9445dd1874f8cef6b8a8d399d3425f09bb72360ca3f1b1d29fc3e3bddd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 22): (anonymous) has cyclomatic complexity 11 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":7128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b49aa779b7ab9ed78ef1404b9cac4231bff8375e65aae910292fe92966b7996"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function b (cyclomatic 11, cognitive 21): b has cyclomatic complexity 11 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1944ce362dce47752086452923c9097059d7eca55146e9231e0b88dc02a24cd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 20): (anonymous) has cyclomatic complexity 11 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4507c935a7de4f4c715433273d8ccd4b2ea0a38f5147457df451a91b5de511da"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ct (cyclomatic 11, cognitive 19): ct has cyclomatic complexity 11 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"72412f2102a53d11f8048ad9e8d9f6fc9c4a89cf8e64ff0c0affad9ab8fd9eb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function uB (cyclomatic 11, cognitive 17): uB has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d48a68df8e5cd62f96f41395165f41974932cd555e0f82d0a1841ed44d712df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function transitions (cyclomatic 11, cognitive 16): transitions has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9057ffbb0756314dd70e6b12daf19254c75b94f1166f42229f27e458286c20b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Ll (cyclomatic 11, cognitive 16): Ll has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b43a2a871e40ba96175b3f104c3be4732f146306445b75457778ad47c1e693"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 16): (anonymous) has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/quick-edit.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ab16d314c074f1f0b3d9636e78b4ac34597c5e5809b4d150ef61b999018552"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function b (cyclomatic 11, cognitive 15): b has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfd87c6c9a66152b43d66918605060ccdfdfc4c1e1d3b6be630c816cf11c2c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isOrganic (cyclomatic 11, cognitive 15): isOrganic has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"86003b76d06f86ad0ada41d35ad7adedd979b3147862a96a51fb5d19bf5508a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateCurrItem (cyclomatic 11, cognitive 14): updateCurrItem has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeaa2bffc1b9a22a6230e2d5d627ef9bdac95b40fe89ede2a5b7d21388e252c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _showOrHide (cyclomatic 11, cognitive 14): _showOrHide has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":2520}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff5ab61f618fdef3c9e4b280e3ca94af4e206f343680212fa1c54dbae9965b4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function n (cyclomatic 11, cognitive 13): n has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6319e44548103b92829494d4d306428f2bfb0e0982046225c1c7a36afba0d313"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function HH (cyclomatic 11, cognitive 13): HH has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4733b57078ff6fd50f43e2b5865a5e0e7f90d779e514a98a362774eede7f31e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onTapRelease (cyclomatic 11, cognitive 13): onTapRelease has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":3228}}}],"partialFingerprints":{"codehealthFindingId/v1":"71390e2071f1fb6e8f135eb40f5671c8d8a8f95967ebdf3a954f4562f14723ff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function postprocessResults (cyclomatic 11, cognitive 12): postprocessResults has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":3143}}}],"partialFingerprints":{"codehealthFindingId/v1":"170b2a82b2d852aadace34ca518a14ce07b142861ed3385596d42ffef3a34cdb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"298ecb95f8c3884a1647a254cd65724a4ed96d08259c3ae6d2562b6934a8379e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function update (cyclomatic 11, cognitive 12): update has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d44e480ff987085a323f9f40d4ec406918dcc3de4f39fb731482817dd650cc2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findFields (cyclomatic 11, cognitive 11): findFields has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"84da6682590134fe29eb0a4777edf317e9ff80e013551ee2c7070df70709f5ab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function Me (cyclomatic 11, cognitive 11): Me has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9560d3266c7a3eefd0ff7b243d04623068aa7b3dbd81a0599daf4d79613413"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isTabbable (cyclomatic 11, cognitive 11): isTabbable has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"02113f2d47aa0ab09494ce657afee001f4044e7c818f18a0aeea46cda87266d2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bf7dc533f87847c5dfaff45a976f17f0949d98f287a015690e71c39c79d878"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-i18n.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2af785d5bd9fc39b1b9d196184797a9b08eeb3ac2c82ed6063c53166ce8ee6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function m (cyclomatic 11, cognitive 10): m has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/payment-method-promotions.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"302e67f4d373060b6da133f71660164e857c8c0838a119f3efdae1c5f9fb5063"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function SW (cyclomatic 11, cognitive 10): SW has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6988797f88c3c219c1d3a562d0762686f234c20da464170854899760ffe6f38"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36a86e064b35a2ebd1503c37a057e9992fb99169b3b08e56718f6474384dd76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af1eb62c0579b7383d02bcc4f14583a37eb57bc42be14009ee7fde252c45032"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getBaseTarget (cyclomatic 11, cognitive 10): getBaseTarget has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e24a6ebd318c7eab08d07f98582576eaab31f80b44f636c62eabc0d79b438cc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function i (cyclomatic 11, cognitive 10): i has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f0df666d70523bbfc38dc94e5efd331cbd6b2c8f3893a3473deaa06c47cda3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function willUpdate (cyclomatic 11, cognitive 10): willUpdate has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a010df2cf3f1aa7f308e48bae94c31b407e1b58ce159bfe95ac389d34121faa3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"345234b203d7de5ba82b9c3552e264bb193d5f1b16526817e528c9847a1d0852"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setAnimationOrigin (cyclomatic 11, cognitive 9): setAnimationOrigin has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a606a1c91d8c3fb7a446ee5c4d2e458946147c0e4e4fb6516b17fa451e6e648"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function uc (cyclomatic 11, cognitive 9): uc has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5afffb60cff518c4fd1d7871df78448e95a06f3a91bcc893e249dc8d2bdeabcf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fadb176c13758f63152d8557b421c41960e563df836007ed04ca000f1edb21"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js: 8673 lines of code: wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js has 8673 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"642472667df8aaccc398ff37430c91e2b043dd8fde5bea901719b9de219e6db2"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js: 5331 lines of code: wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js has 5331 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57a5b52458cf2354f3a52e292213ad6a007c02e237c5da70b7c454197a83998"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js: 5168 lines of code: wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js has 5168 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9718da3589289e944104a8d7c341dac6441d20198c4fe97db8f05de4e39831e2"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js: 5168 lines of code: wp-content/plugins/woocommerce/assets/js/select2/select2.full.js has 5168 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb8fd670e4fef47571e4df10c80b91b5d84807563a988bb324ac9b4141c86bc"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js: 4753 lines of code: wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js has 4753 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff2c96fb76d249279283bcb3e2156fea282d450ea3bfb03f2854ffb15a0207a"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js: 4606 lines of code: wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js has 4606 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d0a03c5c9f5e621b364eb949692f4c1412b82562a1ccab0baf81a5b33280c8"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/select2/select2.js: 4606 lines of code: wp-content/plugins/woocommerce/assets/js/select2/select2.js has 4606 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"807149f4bf3659985743abb018e35ffea86ecd760d7025e429cf7a9049a1fd7a"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js: 3748 lines of code: wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js has 3748 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"110110614f652fe7bf59b92d41cf479940953b617195478217f5dd80dc2aeac9"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js: 2982 lines of code: wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js has 2982 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4dafb2c8fd0bbcc056a670c98acbe111bc7dd142575b4e57507c6b443164cd"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/themes/monoka/assets/js/owl.carousel.js: 2958 lines of code: wp-content/themes/monoka/assets/js/owl.carousel.js has 2958 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18318f5e7bc003b90314b9f8cb704e74641773a820179c95876159d19e4c1fa"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js: 2955 lines of code: wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js has 2955 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fd5b000670cc66bb8ce22d5e518901ae75b7b0a0e5f1bec46358e2b07eb42cf"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/themes/monoka/assets/font-awesome/js/pro.js: 2367 lines of code: wp-content/themes/monoka/assets/font-awesome/js/pro.js has 2367 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46367af8ff6dd276659a03350ce5ee05705fe71cfd94cc1be4ec62b917009225"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js: 2085 lines of code: wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js has 2085 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b94a6d1f473c96d272f1fbbe0576b574483bc7a8bc1a6246d709be55969ee31"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js: 1938 lines of code: wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js has 1938 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"073e32c41378b3c0df49fbb0740918582d7bcd35ec3c9137288014cc3cde8375"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js: 1554 lines of code: wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js has 1554 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"524333b4c24ccfbe3941c063d3039c3f8375f2c02932823cb37d45b4e4d3daea"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js: 1534 lines of code: wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js has 1534 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cda7c2f6c930c3b840dd000168d829792f86ad90d4ddd7d2250f235c16be01"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js: 1435 lines of code: wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js has 1435 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"833a8b7d1407f161b773a7cb1af11a2353050e325652fae94fd92cc030b2b2bb"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js: 1318 lines of code: wp-content/plugins/woocommerce/assets/js/frontend/checkout.js has 1318 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/checkout.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e5fe6c10d48461c49b26a7ca73b199f023e5f34271242a51d770e45338194f"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js: 1276 lines of code: wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js has 1276 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ad6bbc9b6e2a6b17dd0ea52b26fb20d2e20e8be7d7b296c05f115c48fa65e5"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js: 1153 lines of code: wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js has 1153 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc73517e4ac3d3b2842f07a44475c1692bca7d07b55db3b14a22fca4ddaae75"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js: 911 lines of code: wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js has 911 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-autocomplete.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"826d575d6559ae81dc0dbe74c2b0e3e127ce91a6494204b1925694d53a4880ef"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js: 862 lines of code: wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js has 862 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"876ab1c5029694e9f42736bf685d1d817bf21ec0af18b5ec9ef7071c8ebc79b7"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js: 829 lines of code: wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js has 829 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d209bff85a3ad8c3aa9018fa59e0cfbdde80d7e9a09ffb33b384a2518ebe33"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js: 768 lines of code: wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js has 768 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09e060bbacaf30fb3a75a4d83a4f86b52d035314264cb6181c034cb524c7107"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js: 762 lines of code: wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js has 762 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6744f3fa4b0822b981d69f58a9677023bf5a924c37a19edbfb2fe147c9e923f1"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/frontend/cart.js: 726 lines of code: wp-content/plugins/woocommerce/assets/js/frontend/cart.js has 726 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d449af468165f83b899868aeb61aec6571909fea4fa0df56289e2e5fd19ab28c"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe-ui-default.js: 708 lines of code: wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe-ui-default.js has 708 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe-ui-default.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61671ebc8b2e01c14529bc414a4a2fdf1d676aa8adc012e82493641c5119207"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/frontend/single-product.js: 472 lines of code: wp-content/plugins/woocommerce/assets/js/frontend/single-product.js has 472 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/single-product.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ab7ee30ae4cacf5956dc967b24948cca2a23ef7cb7d7350b0632a8ce6ff26f"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/frontend/a8c-address-autocomplete-service.js: 429 lines of code: wp-content/plugins/woocommerce/assets/js/frontend/a8c-address-autocomplete-service.js has 429 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/a8c-address-autocomplete-service.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3498cd20725365dc54f7628414654bde83dff0841b255629159985846dd1504"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js: 417 lines of code: wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js has 417 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"582ee184f32c27bc1ab9e438fa2792eb2f7f766be2bc0277c25b7924029897da"}},{"ruleId":"R3","level":"warning","message":{"text":"wp-content/plugins/woocommerce/assets/js/frontend/order-review.js: 413 lines of code: wp-content/plugins/woocommerce/assets/js/frontend/order-review.js has 413 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/order-review.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d81d3f45c4266e046d66e1402be09f59990dcacc50fced2e0c285bd95e8c4ea"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aba5f899bf0818bbedb602df9b0ffe4d8820a7e908e5fdcadd75f587062f6a3"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47236788a4dc329987619db6f645f7194b4aa1ce9a54430949a498350df22c12"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ffea9312788ee0b1a77c5ac3fa44b13fd0c4c0031aa8f7c4d4bacc9e8a6d94"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.full.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf066865413c8a5ea60d2fe4b1b74e60cc7c5c4ad97fb00397f759490084c38"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d096d6a0700df974e4491e0c17e8f5de86fbcab58ebed65e81322e2d4e8296"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9cca618c1fd8e27ef4800c871c411a7a461c35ab690c8d0c32367ee1cffd1cd"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/select2/select2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1019b49640ae0534324a83694e676078a6feee875bd61ad41ebe759db979d622"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c8fafde8545c7f7e06f82428413c313dce2f3bf8b0b127c8f76fb3f4c5ff76"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a556aac08f994f8f4599676b071d1384fbb0a86b4ce29fb9905493e4ac3d721"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3edc882dee1d1df5eddf99669d73f73146c792b7852c08c7327038195bf7384"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/3/select2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a84be6eb6656f350a2494609187bcaf321fed5b8a805620a957be203345dc66"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl.carousel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58abe9ce88b878d618d338c7f5c96c4afdc4f73ce5c01d15598025ae4afd3d2d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2130830483f017cf995cd35f1ae9fda88b1e533a28eb6a05c42b2045d5c1b27"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-field-group.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"036d237f2b33c5b76cafc10ae0fc2d8dff4e010766261e7c95ea693225e0c5b0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c38823dcded1cb6d05fc65a116397faad93446ec2e8e2e5f97cf9e308ef6f6"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e30f2445373020c80edd816d912351fe4bd52e4c47a67e419f816fbcc10cae0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-order.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24a06958bdbd27d0ab6a65d096f40f417045040f9687cd3e3106fcde80070b7"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45cb3257363b8fc987dec18bc20a77adeba24ff04305038ca2aa061625d84ce2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b7f953c9b7bc6d1f937d3c1e7c42229fa3c2e85f629f026db862e0b7ca3cc3"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/classic-editor/scripts/post.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39988db874c4cd27250276d636a301d56d570441e5cfcbf46ceb5e149623ded4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"815082777e4536554c8be61fbca551bb66dccf0303f47a23420168769709015a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd5845e2fc63dfb523dbcddb5532c20c2df0e8c3187874e531439dca822964c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/variation-gallery.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57a2935474b6fe9c1f39d77ea88381f2a79310e1915f23edb686532b335054d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa5a0314e00383ec3124d9d8e45113531d021266407c40563f7b9ac9fbb07b5"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/photoswipe/photoswipe-ui-default.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1171f59e7e583157e023f6e62664a1211dd8da5dc372d077b5474830d07fc537"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/woocommerce_admin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef667cbe1ea3915edb4bb51a1ffa4b4471652e033de6ccefa9d199e33128f9c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f699cd4c9cde60da79105976c03a1a0062bfcaad435d3b9a99e31c794fb87caf"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/single-product.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"140a2d82d2997381873378a83ebc94073acab7c09452b04fde80d7789ee859b9"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/marketplace-suggestions.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac509fa293911aa00e52683b87778689ed031afb8759d0192e446baf1342bfd"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/a8c-address-autocomplete-service.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae15d2e1479511e3045717febcdfed1e6b047eaf8814b620b21c41cd16db50b8"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-field-group.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72042065627a35be7a63cba4368d42fb19a8fd9320e5e5aa6738a2cc71aca59"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/order-review.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38eed499a219206a75dc07805e6702312dc60c160cd17cead9c1fa511090ab8"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b42fd125c32293bd969e4324f3ee6bc4625163d4e5a0edfcf42785e7f92c41"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-enhanced-select.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"89576ea202ed32dcafa0c48013297624b22ad697dbab324e90c98bbca179f71b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/accounting/accounting.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71369f5c3130b26723d2ca8538858a6c822f1ecf9415a120568ce1a832d8d1f0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings-views-html-settings-tax.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a5fdf6c445d3b1b7e38b3e8227439a0619f8aa00a5272223b5f11399e233ce"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-setup.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"024f02e1ba973c790490347ce0cb6acd6399d276d5c29768c57b54f28fe9b95b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac437e940091279e652e1f24d7630aa6622edac218ce01e07d8a890271947f7"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zones.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bb9a33581b7c53df37e5620cc55bd59c7b86f377b5e6cee4a668d41cd91a94"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"517dfb300498c248be8106d3d06870ef811e6d5e3c7b940f7d168387f34cd4f3"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/gateways/paypal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed53feb966ae276e4cd0fa8e90ce9dc3aa3842cff980d0314870ef290cb5716"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/cart.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35a9abb5382e2ece20f863f34d25334a4df306e37e37f5a475ea7fb1acb40312"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/order-attribution.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"803ecb5af0cf88876e559f010ab37acc0c56edcf8873975309bf0b94c736b477"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-providers.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3fd3374dd5fd9235b5d046ad8f9bba22b5af1f9d5cbd5bb33506d95a2d7ba5"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-classes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeec845dccaedd24d4fd0d102bc1cb0cfd3bd472e9b0d306d55865a5a4f77424"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/reports.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"710b9f91a3b665496a6dd3ec4b89dc04f949e7dd4c1d325df0f3cf70f2c234b2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e757fa0fab236f05da69f5dc6c02c583cc2ad548881aea862c468e8f0da0df99"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/system-status.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ef220319558a7513192a9b3e66baf63e2e8a7d587abd9ae6eda98f28fb96fc"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d1f8709e1193651b47922882c439021a1593f65621007a92db7698902593c4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/country-select.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52d39528411e93d40ab64899da95f04a3f665d3ac0c05894f3b55c159ff7bc2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-ui-touch-punch/jquery-ui-touch-punch.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cd15653c01476f7ea057174cb3f9c4d0a8dec96f8fa7518501feeff1629764"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/quick-edit.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6ac14da7abc391577520ddcdb4c301d193fccf858e88900a075a66e85a4987"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/backbone-modal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee44b71e19ed3231a55c29312d4d4484adadd95fb17f8f29b96c137d41d07a05"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/password-strength-meter.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f986e01bb8a07e708be69b89ce49ac88d8bba92b7081c884d093330c70e7ce72"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/api-keys.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32dffb0a5e3ac005a2f0e41369950354cad12458566d08aa3a124a05aa475ba"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/term-ordering.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4593be58845227246671193f2582bcaf6ed3674166bf8a94297fe8d09ce9eaee"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/address-i18n.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8df608b6f8d64615e9033a14b0d05c29b1cf7664a66466aaf779b9efffc9764"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1274e5a0f202f343e5d3f7ac497a794e011f8f01ccac3ca04221a68b8e27ec"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/geolocation.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba23b4b1f93247f571acbc0e06b64320f6d1692066eef9c025679c7a1ff779ec"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/back-in-stock-form.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88acf0d9ffd8f700339198e93b4c8ae3dbaec263abc7abe379a19c3d6e838685"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/users.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7542b56ea51d60b60f7590f0b519286c7dc22759d97595bce78f0af3a9b0dc"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/stupidtable/stupidtable.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ec82f2d85e95c13c789c0ededc6319578e70aed4a1b19ab8fadc5df5bd47fb"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/tokenization-form.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"337309b5bbd665fd7a12f0ea297e02c65ac6bcf1a9b71bd09d83874954860463"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-product-export.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe692c9f4c02b83bf89073a3589a355ecd2c17a1c8eec2b8d15a0641577a678"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/single-product.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"905c96953f3dd37cad728db08b163eb3aa1bf83a0b37b0cc94121c31f61e04f3"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-coupon.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"581e950f745c6f60e23d0dad82289b4cde5080bb528b80e9dc5292ce0c3999e3"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-product-import.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8fc18ded52edd215b6f76be254464abde1563df8f427a398c66d39c4efbc99"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-brands-enhanced-select.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd015eecaacd6857db22859423524c4729c10536810ccbc7481a71386ddef0ec"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-status-widget.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f3ce7622c821c010364b12bb2e241a4a1ae4c2b9d5de4b4fae4736cff8d2c3"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-orders.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf926ee9dd9f7e2c34b27eb5dbca661dd27d28075fcb7e9face484e97e9bb7e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/network-orders.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c6863b5302be49ce5991db18face96fb7ced85a7aca1823a5a423fc9c418bc"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/add-payment-method.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0db38aab7816936b1331687d27791ad36e562c8e2fddf088d11d3334be64fd"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/product-ordering.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d9abb053efee69d1cc1c65be75e476fde6f9373ab7b731a42c7e9d76dd226e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/owl-setup.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e532517be50e1f0a84cf487b11d1ee94cf99d427cdba928867a564dd53791a1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/price-slider.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cd02ab330fa232559c290ec78381b8b6c3011aed422fedee09bd8d80cd9427"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/my.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81eab8173db27e5612fc7cc50bf6129274bd06a6c6c8f8d5e9d7df6d200cd67a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/round/round.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2a8e3e5f6bf2236d143eca72f7e2dd72fe6f44560d772142934e2ede2d2220"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-customer-stock-notifications.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7083e5c12009c6aa9d7a0ea98a6f409b5a9ccc214bc4e8ebf0699298ccae786"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/paypal/assets/js/paypal-admin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95f9cc34cf5e2dcf6ce28e53e066368a4093a95f2f8dbe4928cf735ae835bbb"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-recent-reviews-widget-async.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c89579b03415ef98dcb7806d89123689320e83ddecf6360ced7897a827349b2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-status-widget-async.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"047eef27c80e1b205934209442e7c5a75ac1a191de7e3e3415a7b83a4bb4ca6a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-clipboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea3d03a9935fa6909f6315fb722c3bf89910d49076e18fad9118b01387b7469"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/order-attribution-admin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9faf32a3b6bc36443cf4970ae5c3afb0e9d9b9797baa8bfa32cd8b8183788c5"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/product-category.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e78e810ec63d3592aec76ad1a766bf2e489c83ab977df628972d68dd08b0df"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/classic-editor/js/block-editor-plugin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5444cd940f1bd14bf7b4752b4c18893ee6f8cedc6f5ae146e3bf71d867568f3e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/product-editor.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e089dd9479fb694847ffa1e9a31b7943c8aeb697ef715fc699c3d63c143a169f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/account-i18n.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1489e0c9303525337c8a485c59b7337de177539d051bfbe0b0835342cf2fe3"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/custom-slider/home.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64557d1f3cbad095ebf0f7332ec9767b80fb4b008e11be91009ea1beef47158d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/wp-consent-api-integration.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c011120bed528f0b572b52835d88f16f4212b06f39af25bf9f8acacc16e2387a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/credit-card-form.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc4cbe380f586854b81c4f4be4b18a12e15b84a783ca59842e5f13fcfb790a2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"719ca192bd15c44fd480ededed0fc0409dcd4158c325234a6cbeef6e4a62e5f1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/lost-password.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"04beab72293f2ead08fc997ea9272e7934abb6ecdf50bd59ed0ae6c6c1ef0cca"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/payment-method-promotions.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"feee482aabbfd1cf433798ec8916e087cdfd2c38d32e90214a5e2f9483dff5d2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/chunks/6657.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e2edf0be37ac21c3daf521978aabdaf112498664876a4068323570d29c8b0e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/onboarding/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9c3b48b634aae70449ea3b4c3aa066ebf166870ad35652d3f3c595d93b0cb0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/album.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e896532fe502b7469cadcf79b7f484dd415bc692f69fbba78ad23833db9454"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/home.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b34b82f9744722cd60e8ca98c19900fc2a50c5b3ac100b50ea041e2526f45a0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/js/single.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98a87adf8bdf69bf2becea3b7c882c2e41f1c3aa6f7d771c6fbee8dc6e84289"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~1357 LoC): no import path from any entry point (104 application, 0 tooling, 3 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/classic-editor/scripts/post.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d7ec756bd95000337860ced94d1c4c45bcf12e6013c1188dd75c7b5c72bb4e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~23 LoC): no import path from any entry point (104 application, 0 tooling, 3 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/classic-editor/js/block-editor-plugin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86f9426daff708f479b8fbf1a44820e6951615f9a4736131b7b92d90a25c704"}},{"ruleId":"S1","level":"warning","message":{"text":"Third-party script without Subresource Integrity: \u0060//platform.twitter.com/widgets.js\u0060 is executed by this page with no Subresource Integrity. Whoever can answer that request \u2014 the CDN, anyone who compromises it, anyone on the network path \u2014 runs arbitrary script in this page\u0027s origin, with its session. The URL also names no version, so it resolves to whatever that origin serves at fetch time \u2014 the executed bytes can change with nobody touching this repository. 6 such include(s) across the repository\u0027s markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"47962134042faf7e70f9c9a1961bf133cbea3862b93e15ad967657c2ca926ebc"}},{"ruleId":"S1","level":"note","message":{"text":"Information-disclosure response header set: \u0060product\u0060 is set explicitly here. The OWASP Secure Headers Project lists it among the response headers to REMOVE: it names the server, framework or tooling behind the application, which is exactly what an attacker looks up known exploits for. (No deduction on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/blocks/484.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f974f11422b88876d605cec1c67f885776eb39abc9e709a3a7ddd8121581d1f2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!$option.is(\u0027option\u0027) \u0026\u0026 !$option.is(\u0027optgroup\u0027)\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c58f59cbd04ea8ce3b2c2ac35f52db12a529624af978fd1883eaeaab8ec54fb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!container.isOpen() \u0026\u0026 evt.which \u003E= 48 \u0026\u0026 evt.which \u003C= 90\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c775e8d6612e1d04a66e589f0e900e2ca10a56f5e64126854c0930601c97f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!enoughRoomAbove \u0026\u0026 enoughRoomBelow \u0026\u0026 isCurrentlyAbove\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4292}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac702df9a616313aa00f6e14253e483add5b8adae4b19d2fe197c909e701e30a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!enoughRoomBelow \u0026\u0026 enoughRoomAbove \u0026\u0026 !isCurrentlyAbove\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4290}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ab8f9f7865f983be3c5158a50d3eef712ea5e3e3b4dd348b78be7f67c00543"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!foundStarMap \u0026\u0026 starMap \u0026\u0026 starMap[nameSegment]\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36efdc5ce77c578f2bf4da5db6ea97d2c331fac51aa0686a670b4c10451b1ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!hasProp(defined, name) \u0026\u0026 !hasProp(defining, name)\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"df06f8247ae3c1755e30bccac85f3daa9982b0f608f452f13b1bd98cfac3cb7f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!hasProp(defined, name) \u0026\u0026 !hasProp(waiting, name)\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e7401dd4c8579a8820f3787494a296944859753cdde5c678ec2d23b98ec85b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!results || !results.results || !$.isArray(results.results)\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3460}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46a0eb21514822b3c51e7e89e04cb99ec597f000f5fb230dcdd7a3a1cbc6ab2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$.fn.jquery \u0026\u0026 $.fn.jquery.substr(0, 2) == \u00271.\u0027 \u0026\u0026 $e[0].dataset\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4993}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef0c887e5f062027484fc35dd4952f51d72912cac3ec1130cec2cb344a80bf7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$.fn.select2 != null \u0026\u0026 $.fn.select2.defaults != null\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":6586}}}],"partialFingerprints":{"codehealthFindingId/v1":"afab0cded1c102a79fcae86e08e4a50925f331cbe40b8460c2d6e06f048da873"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$el.innerHeight() \u003C el.scrollHeight || $el.innerWidth() \u003C el.scrollWidth\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14c7388d05481045173c37cd0fc093e4c9372258afddee3f6123f1e0cd8b7d8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$request.status \u0026\u0026 $request.status === \u00270\u0027\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3472}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1676ad8946d8a19adb2f395c0a72903e79c013c881215671751a3941726b0d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027axis\u0027 in orgEvent \u0026\u0026 orgEvent.axis === orgEvent.HORIZONTAL_AXIS\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6249}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acbc9fd84b6804b1bcc651f9db19524a0fc85d59e1e78cc0cd355e14574d160"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027onwheel\u0027 in document || document.documentMode \u003E= 9\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f22d3597418418cadbe38ccafcf383ab3d31816e6cd4da0375bc3fcf0b7bce1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027success\u0027 === textStatus \u0026\u0026 response.success\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/admin/settings-views-html-settings-tax.js, wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/settings-views-html-settings-tax.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e64c23b322011426ad7dd087b0e33b8ae01898a5b2a444d689280958a8bedb9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027undefined\u0027 !== typeof wp \u0026\u0026 wp.customize \u0026\u0026 wp.customize.selectiveRefresh \u0026\u0026 wp.customize.widgetsPreview \u0026\u0026 wp.customize.widgetsPreview.Wid\u2026\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js, wp-content/plugins/woocommerce/assets/js/frontend/price-slider.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf4f7eac5a6e9ead0828a29f108e87f317cfd8cb75cbb1670589c4f5ff73ee9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(data.element != null \u0026\u0026 data.element.selected) || (data.element == null \u0026\u0026 data.selected)\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4414}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4f8e36bf013543f01fac2c3aff370af0a432940453639c8e7c0db4bba02149"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(document.activeElement == self.$selection[0]) || ($.contains(self.$selection[0], document.activeElement))\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1415}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e9ce49eb6b60d3db31d5c522bcfa07d297943a5190d367088fd7a6a638b770"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(item.element != null \u0026\u0026 item.element.selected) || (item.element == null \u0026\u0026 $.inArray(id, selectedIds) \u003E -1)\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d98c60b74a4a8b38dab92e1f59362415c57a5d1d1aacb341c770a7583c35d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attachment.sizes \u0026\u0026 attachment.sizes.thumbnail\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js, wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/meta-boxes-product-variation.js"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5cf4c4044e81e8ab3c471729145fab42e0a2fb9101b0e71c4c0941a4ee47876"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060callbackType === \u0027undefined\u0027 || callbackType === \u0027function\u0027\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"0327852d1f838aa7409985896b6a81061441abb3ca9f7ec662cc8eb1ddb043d1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cjsModule \u0026\u0026 cjsModule.exports !== undef \u0026\u0026 cjsModule.exports !== defined[name]\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"22126e05b3137771247e24e0266fedb7010525d4edc7558b67ed4e1b2e7fc162"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config \u0026\u0026 config.config \u0026\u0026 config.config[name]\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b257f01a0fb83af3c53d4e6b650d2c4087c559fea67c17ca77ed998bfa17e319"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.nodeIdCompat \u0026\u0026 jsSuffixRegExp.test(name[lastIndex])\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"e707a737134dd511d11de051c3a8e52a697a4ce96edf507987bfa89e20d73f03"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060container.dropdown.$search || container.selection.$search || $container.find(\u0027.select2-search__field\u0027)\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3640}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7907407603a0888ca0e6e4171b2835c7259e9b7871170ae636733861dcdd194"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060containerCssAdapter || _containerAdapter\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5707}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e27aec52c9495c03e8a11043e93851b920f8367a5024c2c642196873d25e938"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data.children \u0026\u0026 data.children.length \u003E 0\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4824}}}],"partialFingerprints":{"codehealthFindingId/v1":"577c617acf7821b30ff766d31251957fba5b6348dc6e8b97b1811264cd3d10d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data.length == 1 \u0026\u0026 data[0].id != this.placeholder.id\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1711}}}],"partialFingerprints":{"codehealthFindingId/v1":"81383609da23f06c7ba5e6ca41b41c2d18269213a858beffde01e2b3ca74a669"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data.results == null || data.results.length === 0\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"5913dfb7a58093ae7619c21784ec926b21e81ee6b995f554084370a9082e977a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data.selected || $.inArray(data.id, selectedIds) !== -1\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5867}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef9a61af6aac365bf621c82eda256c61d1f700db9e0091c4ad63a633a9d1f39"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060disableInputEvents \u0026\u0026 evt.type === \u0027input\u0027\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7fa5026c297feffc2840e39a5a5ba2949310d065b38f0a11737bddd96431f6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.deltaY \u003C 0 \u0026\u0026 bottom \u003C= self.$results.height()\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"234e720c455e5ebefa91dbef2e54f5188dc5ac149b279d09194c52fa7bf98ee9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event._type === \u0027select\u0027 || event._type === \u0027unselect\u0027\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4398}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39b0c93d8d8e0ba60114ecb67ad6bb2077b9e126ba5f07bb0db6952d9513ad8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060evt \u0026\u0026 evt.target \u0026\u0026 ( evt.target.nodeName !== \u0027OPTION\u0027 \u0026\u0026 evt.target.nodeName !== \u0027OPTGROUP\u0027 )\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5405}}}],"partialFingerprints":{"codehealthFindingId/v1":"598d74c669ea88a39f6b19cb14fa11ce8bee01bf86c2680c70293ad74db319dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060evt.which == KEYS.DELETE || evt.which == KEYS.BACKSPACE\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"7674924fb47f2c5e1b11110eec9142a29865191f1b0995ea826514c8d8e92017"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasProp(defined, depName) || hasProp(waiting, depName) || hasProp(defining, depName)\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af6dbae528134d42aeb427dd008baa024ddd4aa22796c8895d7dc9d89188bc2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i === 0 || (i === 1 \u0026\u0026 name[2] === \u0027..\u0027) || name[i - 1] === \u0027..\u0027\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0e2005ff367e4096462d87ca4e0e0e11e6eb8545e03f056ef64673d91823b7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060i === 1 \u0026\u0026 (name[2] === \u0027..\u0027 || name[0] === \u0027..\u0027)\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ee2ca097885ace44099b45263076be311c44a13806452e0554f55b3ee12103"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060id !== data.id \u0026\u0026 $.inArray(id, val) === -1\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3dce3b46d6315092c2d266849bdf617249c15df889e592c043627affda6364"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060instance == null \u0026\u0026 window.console \u0026\u0026 console.error\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6389}}}],"partialFingerprints":{"codehealthFindingId/v1":"321ec21b2adfaa3f98936f481e64ae79ffa0682ee46c40f343f7cc15bca1fa5b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item._resultId == null \u0026\u0026 item.id \u0026\u0026 this.container != null\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3292}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b8b0f7453b9079d15b14931ef0e9e8330d90693f2c07b1d22c1f71e79fce08"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060jQuery \u0026\u0026 jQuery.fn \u0026\u0026 jQuery.fn.select2 \u0026\u0026 jQuery.fn.select2.amd\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"897a63e57376dea9cfbdf98a2993f0f326569b7a364175b8ca88a20b694a1775"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key == KEYS.SHIFT || key == KEYS.CTRL || key == KEYS.ALT\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1962}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2e6117189973418a9fbb87583368e0dbe9f7ceb290a6759107dcdf72d49c5e7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key === KEYS.BACKSPACE \u0026\u0026 self.$search.val() === \u0027\u0027\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1905}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d539927d454e89a6f367664693b4517ebf608c6383d3e7f544c803def46da36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key === KEYS.ENTER || key === KEYS.SPACE || (key === KEYS.DOWN \u0026\u0026 evt.altKey)\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5374}}}],"partialFingerprints":{"codehealthFindingId/v1":"371c90d84fb7a559f6ca0dab44e4f46c17eac725260c7e5869270a2ef41d97ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key === KEYS.ENTER || key === KEYS.SPACE || key === KEYS.DOWN\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5543}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c3af2f499936b5a8df25cfac040bfc17b1eeaa7c60b5943ee80bb5df8dcd73"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key === KEYS.ESC || (key === KEYS.UP \u0026\u0026 evt.altKey)\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5502}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8b84646826c03639d2b4d732093274682268435ed4fe901fa153faa2fa71e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key === KEYS.ESC || key === KEYS.TAB || (key === KEYS.UP \u0026\u0026 evt.altKey)\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5351}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea4a08391fc97dcb391657a4ce52c4e43ee530f3de5a87a88105155081e8d7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mutations.addedNodes \u0026\u0026 mutations.addedNodes.length \u003E 0\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5416}}}],"partialFingerprints":{"codehealthFindingId/v1":"e196c8430027cee303ee3d7d94b338f1f3419c4475828f327569e2dab2cb1c75"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mutations.removedNodes \u0026\u0026 mutations.removedNodes.length \u003E 0\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5424}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97cb6f2ad41e98d969ed5c914cab6c1149e92ebdfbad661e45ea2de7cf4f046"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060newDirection == \u0027above\u0027 || (isCurrentlyAbove \u0026\u0026 newDirection !== \u0027below\u0027)\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4296}}}],"partialFingerprints":{"codehealthFindingId/v1":"8584d595b8f497128a72418880f96f73fa6c3976171469a301735ef72c31b209"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060offsetDelta \u003E this.$results.outerHeight() || offsetDelta \u003C 0\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b1eabe1d9a4f09449b9ced630b65dd7f5a94c5ffec60621785799dd1a97984"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.containerCssClass != null || options.containerCss != null || options.adaptContainerCssClass != null\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4725}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c106d95643ee2ab84bd580a2f3abbd8fef76e0829b8c5c18b724ee41c26caf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.debug \u0026\u0026 window.console \u0026\u0026 console.warn\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4778}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db61fe259b07c8233cf028dc04260cfa673cebe1e89452771f3b2b4962dc62f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.dropdownCssClass != null || options.dropdownCss != null || options.adaptDropdownCssClass != null\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4677}}}],"partialFingerprints":{"codehealthFindingId/v1":"828b2eeb212047a66e7eea2a16c732e073e39b4dbe77ebe3b32083c83549ecd0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.get(\u0027debug\u0027) \u0026\u0026 console \u0026\u0026 console.warn\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5851}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2a559190ead7f6f85af26e706108cf93a5be59fd6a3ec9bb00b5c354d54b48"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.get(\u0027debug\u0027) \u0026\u0026 window.console \u0026\u0026 console.warn\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5804}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8a0ffcbcd75011fd4fa5ddb79e0ffc63484ef212fadf0222f77ba991366388"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.get(\u0027dropdownParent\u0027) || $(document.body)\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac38eb0dd2089987095697930df161717adee72b24139f1902aa117be059c140"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060options.tokenSeparators != null || options.tokenizer != null\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4602}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb19e23212458e95328c6c09d94a91911035c8d3c7e7b5a17ce1c3d22cd3484"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060overflowX === \u0027scroll\u0027 || overflowY === \u0027scroll\u0027\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ada1fcf3407b049f513044d750f746e04b9a8fe773799fda54f9412437b395"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060overflowX === overflowY \u0026\u0026 (overflowY === \u0027hidden\u0027 || overflowY === \u0027visible\u0027)\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd936d05d44dc0cf85ff52a0644e78aaf3a08d7c6be5477ec6934d665554a966"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params \u0026\u0026 params.originalSelect2Event != null\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4393}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2ad617935d04430618d0bf80335fd315fe37dc611d10649c6b40f2bea14d6f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.query.term == null || params.query.term === \u0027\u0027\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3950}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0c508a2934fd950d5d5539fe5c47f3946c70e8c23216bf56d7ee4b4491ac86"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.term == null || $.trim(params.term) === \u0027\u0027\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5978}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b7f486e557ad6bb7d791967d76c4acf4bc072fecafc0107068c5e23a36f571"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.term == null || params.page != null\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3535}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ae73d6d251e507acef45fe34c3e3740d4bce1f7e19f54607bf963ff3de3a8e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060params.term == null || params.term.toString().trim() === \u0027\u0027\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":4959}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9a5832d2c59ece2d8061c6ec857c45548cc8de037dd747a3019265d1681429"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parseInt($parent.css(\u0027fontSize\u0027), 10) || parseInt($elem.css(\u0027fontSize\u0027), 10) || 16\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6206}}}],"partialFingerprints":{"codehealthFindingId/v1":"8376ce69fe5da3ee6b51487492deefbf8a77b4d30e55db4bbad752dcf920cc32"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response \u0026\u0026 response.success \u0026\u0026 response.data.content\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/admin/wc-recent-reviews-widget-async.js, wp-content/plugins/woocommerce/assets/js/admin/wc-status-widget-async.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-recent-reviews-widget-async.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2abdf1954c6aef400565010e59da21363866fc70cafc4105595f959c2f25fafb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.maximumSelectionLength \u003E 0 \u0026\u0026 count \u003E= self.maximumSelectionLength\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3819}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c537be23b9148a835ab28d060d956314c3346f5f9ca4f59abca49a351b2429"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.options.get(\u0027debug\u0027) \u0026\u0026 window.console \u0026\u0026 console.error\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3458}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d66a8c95d24439d04715fe8153689abd7dc02099de1aa8effcd467fcb3d645"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060special.settings.adjustOldDeltas \u0026\u0026 orgEvent.type === \u0027mousewheel\u0027 \u0026\u0026 absDelta % 120 === 0\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6355}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e71c06a982485c667725417fe90daf6c16f5d9023af869f17ac76c30d3c166"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060special.settings.normalizeOffset \u0026\u0026 this.getBoundingClientRect\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6313}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb6c54181476362cac3f5b426448086ea3bb30ed902ff02d3d8c10cbf743b61"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.$selection.find(\u0027.select2-selection__placeholder\u0027).length \u003E 0 || data.length === 0\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eaccc5c11574df49707884d4e61f3a7cf4c1892bb73033b35742140bda1ef51"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.ajaxOptions.delay \u0026\u0026 params.term != null\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3484}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3ce0ce5610516c2889bf8e88004718692bb940216c7f528f1f443524d87734"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.isOpen() \u0026\u0026 ! Utils.isTouchscreen()\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js"},"region":{"startLine":5554}}}],"partialFingerprints":{"codehealthFindingId/v1":"d836b04ff0a2f12d68dd7ffb3ec6fd12d504fc81419a5d80e2e3bbf264cef2ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.maximumInputLength \u003E 0 \u0026\u0026 params.term.length \u003E this.maximumInputLength\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":3784}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cd256235d9dad0f3b967f1bf602db3e6809eecb0ff68e4df2539bb74cf42f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.options.debug \u0026\u0026 window.console \u0026\u0026 console.warn\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":4964}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc4c359b5e81670c9d127426b6e6558494ce6b9ebbd61b70466cb3a499db2c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.options.get(\u0027containerCssClass\u0027) || \u0027\u0027\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5700}}}],"partialFingerprints":{"codehealthFindingId/v1":"e644bc5e9346223a67e7d5493db46fb90c8f2fa9c503b47c5b84aff5e1dc29f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.options.get(\u0027debug\u0027) \u0026\u0026 arguments.length \u003E 0 \u0026\u0026 window.console \u0026\u0026 console.warn\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5540}}}],"partialFingerprints":{"codehealthFindingId/v1":"71129d58a3f39db36bfe949cee269b4ac1f71a2089f53f04d5aab956dcb4c047"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.options.get(\u0027debug\u0027) \u0026\u0026 window.console \u0026\u0026 console.error\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":1741}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66cad99da569f01af8472b1ffcd6a3b3ce1335e8d47776f494770e60944386e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.options.get(\u0027debug\u0027) \u0026\u0026 window.console \u0026\u0026 console.warn\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5522}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13f4fcd33d4a8de0b1cc5e35668e2d8ac476ffa57fdca44924b2d045ca37fb9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060this.options.get(\u0027dropdownCssClass\u0027) || \u0027\u0027\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5757}}}],"partialFingerprints":{"codehealthFindingId/v1":"4970390d1d9023bc617a9d31c41d9e8ca2c828148f5e6c91dc8a98b906ec94e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof S2.define === \u0027function\u0027 \u0026\u0026 S2.define.amd\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":6147}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad175683ec53a28647a27c17f600965ec34914a38988026b7bf1173fe97d75f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof args[0] !== \u0027string\u0027 \u0026\u0026 args.length === 1\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ae1c3533e664a3c6ba343305a8f49017de36b78121a2c966e7002ebe207cd3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof define === \u0027function\u0027 \u0026\u0026 define.amd\u0060 appears character-identically in 14 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.js, wp-content/plugins/woocommerce/assets/js/accounting/accounting.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb6b2358d5ef67fb571ed9e293b258ba87bca70b09bfd584c9f74e903be3c63"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js, wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.js, wp-content/plugins/woocommerce/assets/js/select2/select2.full.js, wp-content/plugins/woocommerce/assets/js/select2/select2.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.js"},"region":{"startLine":5223}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bedd7063106e40a3408badee8ff7c86a9c597f424a83eadb70aa31dc09c82b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $dimensions || ! is_array( $dimensions )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php, wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8433e69f980c2db50867ac38d4c9eb1c1ae0b64d5c47d4a11c00f9677051548"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $element || ( 0 === $element-\u003Ecount \u0026\u0026 ! empty( $args[0][\u0027hide_empty\u0027] ) )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/walkers/class-wc-product-cat-dropdown-walker.php, wp-content/plugins/woocommerce/includes/walkers/class-wc-product-cat-list-walker.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/walkers/class-wc-product-cat-dropdown-walker.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b5b8467d79e4db4c45bad37f9e4faf80d77ebf8f5f1d2bfb8d7565e6737fd7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $font_size \u0026\u0026 \u0027\u0027 === $custom_font_size\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Breadcrumbs.php, wp-content/plugins/woocommerce/src/Blocks/Utils/StyleAttributesUtils.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Breadcrumbs.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21c9758355dc1a2a7082a7a671978a3e5b55b0f1bb0d02010b3ca01d42d1a19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $memory_limit || -1 === intval( $memory_limit )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php, wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/class-wc-background-process.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"31114da3d05d70196e5e2e1882289954dae3baa8bb01a8407639eb61f3b63046"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $note_from_db instanceof Note || get_user_locale() === $note_from_db\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-refund-returns.php, wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/RemoteInboxNotificationsEngine.php, wp-content/plugins/woocommerce/src/Internal/Admin/Events.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-refund-returns.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"2948b0e3d3ee2f5fbd30d767f6ba911abf65b59ff5248eb084b24d89ccf48e05"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $order instanceof WC_Order || ! PointOfSaleOrderUtil::is_order_paid_at_pos( $order )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-pos-completed-order.php, wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-pos-refunded-order.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-pos-completed-order.php"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f46497218e916cf58d51037728f1d760888effc9ee518548f9eab75b66fdec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $order || ! $order instanceof WC_Order\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php, wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php, wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/NewOrderNotification.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8b31f0d5043094fd352a92c1795bd358c4b6290144c324b5c1b4e4e08c50a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $product || ! $product instanceof WC_Product\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/StockNotification.php, wp-content/plugins/woocommerce/templates/single-product/product-thumbnails.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/PushNotifications/Notifications/StockNotification.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2edcd633426bd2e160559c77388e516632bf00ab7bfc0d6620316b3b6da690"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $product || ! is_a( $product, \u0027WC_Product\u0027 )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php, wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifiedEmail.php, wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationVerifyEmail.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/CustomerStockNotificationEmail.php"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2213c5a7a5544bd22d5c86e756f26628218051e94d669aa28ea2f5e7dfe4576"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $screen || \u0027woocommerce_page_wc-settings\u0027 !== $screen\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-tax.php, wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/SettingsController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-tax.php"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b4005276274180c62d8ac8cb8284b3d28930d8778e96a92dd094675b840334"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $tracking_number \u0026\u0026 ! $tracking_url \u0026\u0026 ! $shipment_provider\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/templates/emails/email-fulfillment-details.php, wp-content/plugins/woocommerce/templates/emails/plain/email-fulfillment-details.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/templates/emails/email-fulfillment-details.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0c8f8b453fab9572496dc36b6ab83ca3f225a7ae1db9cfe5cdaea7d12d1773"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! $zone || ( 0 !== $zone-\u003Eget_id() \u0026\u0026 ! $zone-\u003Eget_zone_name() )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/Controller.php"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbe5bdf50182b4a1451797b979067e9972d09f6e90b7edf138d9b0e3c11453f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! OrderUtil::custom_orders_table_usage_is_enabled() \u0026\u0026 ! empty( $args[\u0027s\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/CollectionQuery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aef29e396d2c1b5d71b23ba041598c36efa204b5883b0627c1b87be818f8f19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! array_key_exists( $value, $field[\u0027options\u0027] ) \u0026\u0026 \u0027\u0027 !== $value\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c0571a51913b34e87ab2075dcb89edd971aa7d17b8721d198471d70e09973f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! array_key_exists( \u0027properties\u0027, $schema ) || ! is_array( $schema[\u0027properties\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php, wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d854cd715e92c5fbb4a5991ced6cbcdab1e7d1b4c7db38a812838ebc9f6dbdf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! current_user_can( \u0027edit_shop_orders\u0027 ) || ! isset( $_POST[\u0027order_id\u0027], $_POST[\u0027items\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-ajax.php, wp-content/plugins/woocommerce/src/Internal/Orders/TaxesController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-ajax.php"},"region":{"startLine":1632}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d04d77ffc960ef6308e671ad9117e0ccedf99bac1dfe3cdeb38ac1ae0864a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! current_user_can( \u0027manage_woocommerce\u0027 ) || empty( $submenu[\u0027woocommerce\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/PageController.php, wp-content/plugins/woocommerce/src/Internal/Admin/Homescreen.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/PageController.php"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cc7b8dc5ee2138175e601530e43afd8ac45a30eea4179c0db5e985542f5d07"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $block-\u003Econtext[\u0027reviews/paginationArrow\u0027] ) \u0026\u0026 ! empty( $arrow_map[ $block-\u003Econtext[\u0027reviews/paginationArrow\u0027] ] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationNext.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationPrevious.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationNext.php"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafb2d6d6a82eaa31e8f01e9ab1df16c7a5d2dd91d8ee27bb72d3683aa277585"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $block[\u0027innerBlocks\u0027] ) \u0026\u0026 is_array( $block[\u0027innerBlocks\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php, wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSelectiveApplier.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e19be6d28b6ba8bbdf7fe690c2ddd7e563749e261cbeced7a26ff0631b11892"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $meta_attributes ) \u0026\u0026 is_array( $meta_attributes )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php, wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"33583fe18ac61285cf47b2cb09b63fea9bb760a13ded1c757a2db24fcba23d39"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $pos_store_email ) || ! empty( $pos_store_phone_number ) || ! empty( $pos_store_address )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/templates/emails/customer-pos-completed-order.php, wp-content/plugins/woocommerce/templates/emails/customer-pos-refunded-order.php, wp-content/plugins/woocommerce/templates/emails/plain/customer-pos-completed-order.php, wp-content/plugins/woocommerce/templates/emails/plain/customer-pos-refunded-order.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/templates/emails/customer-pos-completed-order.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40aa5d426fb7f2339254869ddcdb83dd328a0f88c479b0dd67814fe1d38eeab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $post-\u003Epost_type ) \u0026\u0026 \u0027product_variation\u0027 === $post\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"9757f33692892367cdcd72c2e11c7262b574f441a57c501d236d53f89cdc998a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $post-\u003Epost_type ) \u0026\u0026 \u0027wp_template\u0027 !== $post\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CheckoutExpressPaymentBlock.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ac53228c6b695bf164d2a7fb9871b53659204f2cdf4ce42ead3351b7cd642f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $posted[\u0027product_id\u0027] ) \u0026\u0026 empty( $posted[\u0027variation_id\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"8387289752291038040003b94a56067b1c39ccc9d69239fe93a0c7064e5235e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $query_vars[ \u0027query_type_\u0027 . $attribute ] ) \u0026\u0026 in_array( $query_vars[ \u0027query_type_\u0027 . $attribute ], array( \u0027and\u0027, \u0027or\u0027 ), true )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php, wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f68358515a6928bc7512a196812d72515539eeea2d9dd1032a1f3d16d5e0a29"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $relation ) \u0026\u0026 \u0027OR\u0027 === strtoupper( $relation )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php, wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed9ef012dd5bedd8ac89467360350593f97d85de1e2d557453e94d5c7102333"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $request[\u0027attribute\u0027] ) \u0026\u0026 ! empty( $request[\u0027attribute_term\u0027] )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"32878b5de53bd8017f78626d993d102a593674ccf8cd85703779cd479f212664"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $request[\u0027min_price\u0027] ) || ! empty( $request[\u0027max_price\u0027] )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8362cb68ba972b522c735b6496aa08067f43dc516eb37a8223aec186952621"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $request[\u0027sku\u0027] ) || ! empty( $request[\u0027search_sku\u0027] ) || $this\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5df63998c200fcf044bd208fe587372d5dd2a335a119d34a713c6e08663e69"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $terms ) \u0026\u0026 ! is_wp_error( $terms )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypesController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":2135}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f60d90a0fcb1744c2a3e067552e4b7b21ff9b1967b2865fbcc248328d18684"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $this-\u003Eexclude_status ) \u0026\u0026 is_array( $this-\u003Eexclude_status )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"3069ad67bbd5de8c1deb8c6c04f41a40d11c84b22c6e2f44da9a48ea97250f01"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! empty( $this-\u003Esettings[\u0027enabled\u0027] ) \u0026\u0026 \u0027yes\u0027 === $this\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-integration.php, wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-payment-gateway.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-integration.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e51c45a2d36d2180235edbfb04e0c5d42c3ca7ebb802d0ae7448a7f71c7ac0b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_admin() || ! function_exists( \u0027get_current_screen\u0027 )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php, wp-content/plugins/woocommerce/src/Internal/EmailEditor/EmailTemplates/TemplatesController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1667d65a419ad184a9a7e9404b6d651807c563ff5ba22f17a7dd1b1b9e639a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_array( $blocks ) || empty( $blocks )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/tracks/events/class-wc-product-collection-block-tracking.php, wp-content/plugins/woocommerce/src/Internal/Utilities/BlocksUtil.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/tracks/events/class-wc-product-collection-block-tracking.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd68ab2c635ec31cf754cf297703c9c9aa7d5dad275a9844cb07bc898d3c0f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_array( $comments ) || empty( $comments )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/OrderReviews/ItemEligibility.php, wp-content/plugins/woocommerce/src/Internal/OrderReviews/SubmissionHandler.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/OrderReviews/ItemEligibility.php"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d1e5c87313230d331ebffa61cc5d4f0b9a1034ce337362f2782532f003797e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_array( $data ) \u0026\u0026 ! is_object( $data )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToWishlistButton.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SavedForLater.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Wishlist.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToWishlistButton.php"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b00e7c929edf1f39f661dd00cbd011e6b826c0f8e6208188803419b5b4a8566"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_array( $params ) || empty( $params )\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"6936cf1bf21487f4cdbf5a8eedc67215d6f85d786fec5a40a77107a867bf700f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_array( $specs ) || 0 === count( $specs )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/Init.php, wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php, wp-content/plugins/woocommerce/src/Internal/Admin/WCPayPromotion/Init.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/MarketingRecommendations/Init.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"40230054018153e390c638b8951b20823c8ee3ac9847c486e18d7c4c805c6477"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_array( $value ) || count( $value ) !== 2\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php, wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43421bc4ba449fa8cf73cf48e0bef41f593a0845b871015590524fec8990c36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_null( $request[\u0027customer_id\u0027] ) \u0026\u0026 0 !== $request[\u0027customer_id\u0027]\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98bd6f13cbfc24ad3773852b226a4c1c6582234eed98113e633b31f9128fc6f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_string( $email_id ) || \u0027\u0027 === $email_id\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php, wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSelectiveApplier.php, wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSyncRegistry.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateChangeSummary.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"944c50b2d783623e779f620b6b2b3d922a76862cef6f8cd7de8171181240e106"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_tax() \u0026\u0026 is_array( $_chosen_attributes ) \u0026\u0026 array_key_exists( $taxonomy, $_chosen_attributes )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php, wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"56db3e86315c41bf93f789e5a574783d75587d40e9b9d854d52a2473664e3321"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_wp_error( $tax ) \u0026\u0026 ! is_null( $tax )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-taxes-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-taxes-v1-controller.php"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"7755092289b78b5b90bb3b971b7466850f22600eca719fe546fd079c7ca237a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! is_wp_error( $term ) \u0026\u0026 is_object( $term ) \u0026\u0026 $term\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-order-item-meta.php, wp-content/plugins/woocommerce/includes/class-wc-order-item.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item-meta.php"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc05ff58930b720727e7bb1c18ee18e777d9c5ecbc56bc915cd5af4271ac649f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! isset( $attributes[\u0027showDesc\u0027] ) || ( isset( $attributes[\u0027showDesc\u0027] ) \u0026\u0026 false !== $attributes[\u0027showDesc\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedCategory.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedProduct.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedCategory.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"2559820fafb75ddb964afb5fb15818702282be94ce33f157c0362fd164b809f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! isset( $onboarding_profile[\u0027setup_client\u0027] ) || $onboarding_profile[\u0027setup_client\u0027]\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/Notes/CustomizeStoreWithBlocks.php, wp-content/plugins/woocommerce/src/Internal/Admin/Notes/FirstProduct.php, wp-content/plugins/woocommerce/src/Internal/Admin/Notes/MagentoMigration.php, wp-content/plugins/woocommerce/src/Internal/Admin/Notes/OnlineClothingStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/CustomizeStoreWithBlocks.php"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6fd1439164b3e78899a4519b8a537601b9dd990f1c93b41a97f5ab8358a86b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! isset( $parent_attributes[ $attribute_name ] ) || ! $parent_attributes[ $attribute_name ]\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/abstract-wc-product-importer.php"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b57d049ea357546e74f8e7d698fc8b308f6d02bf205f6953a511695e5ca024"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! isset( $post ) || \u0027shop_order\u0027 !== $post\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php, wp-content/plugins/woocommerce/includes/class-wc-order-factory.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0458c8e5fd3e7bc7914105d400b4c4cae187ae9fcae5b3ab8d5bad8944ad7f2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! isset( $query_vars[\u0027paginate\u0027] ) || ! $query_vars[\u0027paginate\u0027]\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php, wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php, wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca8078e5715207e58fcf5dd929255b8b6a0870ec6a1bf8454d4a12452359363"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! isset( $theorder ) || ! $theorder instanceof WC_Abstract_Order\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php, wp-content/plugins/woocommerce/includes/class-wc-order-factory.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-post-types.php"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efd851eb60509f553ea9905e1abf02753108acb06dbf94b084d49ba2860d1f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! isset( $this-\u003Equery_args[\u0027product_includes\u0027] ) || ! is_array( $this-\u003Equery_args[\u0027product_includes\u0027] ) || count( $this-\u003Equery_args[\u0027product\u2026\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c445cd31b38fec146175c3681e4ec0129fe4fc0935be13d2859a6a967109de94"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! isset( $this-\u003Equery_args[\u0027segmentby\u0027] ) || \u0027\u0027 === $this\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/Segmenter.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Products/Stats/Segmenter.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Segmenter.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/Stats/Segmenter.php"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa98644655a026ef58a83d7871bc62e599c5e975956985d7258482f02a951f80"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! isset( $value[\u0027completed\u0027] ) || ! $value[\u0027completed\u0027]\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingProfile.php, wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php, wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingSync.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingProfile.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"39451b136e201d04e11a4777522a94484466bd03c66cc98c799d2b7cc832db28"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! wc_ship_to_billing_address_only() \u0026\u0026 $order\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/templates/emails/email-addresses.php, wp-content/plugins/woocommerce/templates/emails/plain/email-addresses.php, wp-content/plugins/woocommerce/templates/order/order-details-customer.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/templates/emails/email-addresses.php"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2352819b181c2686958a0b7888c1b0eae26d5aafc6cc396cf7a7e29050406e9d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! wc_ship_to_billing_address_only() \u0026\u0026 wc_shipping_enabled()\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/wc-account-functions.php, wp-content/plugins/woocommerce/templates/myaccount/my-address.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-account-functions.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe57dd7ed7a3cc062800c11a74d4b5aea314692c6ae3a72e4f78753e868abd1e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060! wc_shipping_enabled() || 0 === wc_get_shipping_method_count( true )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php, wp-content/plugins/woocommerce/includes/class-wc-cart.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":2529}}}],"partialFingerprints":{"codehealthFindingId/v1":"386383f6da165b495d57680e32758f782564097fe053ba68a61cf6243d071f8f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!is_array($choiceData) || array_is_list($choiceData)\u0060 appears character-identically in 2 files \u2014 wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php, wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleTextGenerationModel.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b35009aea3e95073ffdd316379b12a3305b3ef8046cb48590e8026eec41531c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$attribute_subqueries[\u0027join\u0027] \u0026\u0026 $attribute_subqueries[\u0027where\u0027]\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65828edc6b42483a0f11772b8608a52fdb2fd2eb9eee13c5fbc03a54273afb0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$atts[\u0027min_fee\u0027] \u0026\u0026 $calculated_fee \u003C $atts[\u0027min_fee\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php, wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"70904396655bd48677316f7edf86d81f2d86a1e569ab7b21c397b4944abfa6a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$cart_page_id \u0026\u0026 has_block( \u0027woocommerce/cart\u0027, $cart_page_id )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/AssetsController.php, wp-content/plugins/woocommerce/src/Blocks/Utils/CartCheckoutUtils.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/AssetsController.php"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7605d3c3ae56391cfc3291b3420b08c5c439d1571dfaaf72b994386b4d7fab85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$changed_stock \u0026\u0026 ! is_wp_error( $changed_stock )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php, wp-content/plugins/woocommerce/includes/class-wc-ajax.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/wc-admin-functions.php"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5377fca6490048ec01ff9e3b199d3d61bd288cbaa49fc47c9165fa68b5aec4d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$checkout_page_id \u0026\u0026 has_block( \u0027woocommerce/checkout\u0027, $checkout_page_id )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/AssetsController.php, wp-content/plugins/woocommerce/src/Blocks/Utils/CartCheckoutUtils.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/AssetsController.php"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69a68c6bf375adf346bcf4a49e85f844b636878f620fcf5d5fe4f13c410a76a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$customer \u0026\u0026 ! in_array( $customer-\u003Eget_role(), $allowed_roles, true )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"1053f6b8b869e8f5b70eee2fb78eb4bd991c60b9730a44d296407d997e7a6e7a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$field[\u0027maxlength\u0027] \u0026\u0026 (acf_strlen($value) \u003E $field[\u0027maxlength\u0027])\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-text.php, wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-textarea.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-text.php"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"861e7cf3265571aad38f0ca9e14f57e54634199d1ce4ad9037f9336aff90a58a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$field[\u0027value\u0027] \u0026\u0026 !is_numeric($field[\u0027value\u0027])\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-file.php, wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-image.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-file.php"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a6e68e3c150f479afd055755a5ccf8431cdc8235ee51271545f4e618243bee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$field_group[\u0027ID\u0027] \u0026\u0026 acf_current_user_can_admin()\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-comment.php, wp-content/plugins/advanced-custom-fields-pro/pro/admin/admin-options-page.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-comment.php"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ef960dcb87ede3845d41f4168ad77bae40f68da0a3809972d8847e74bad748"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$force || array_key_exists( \u0027attributes\u0027, $changes )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php, wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"c610ee32f52262e91cb312ecafa15b4153f19fed5712e3817be465f05701cfbe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$force || array_key_exists( \u0027shipping_class_id\u0027, $changes )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php, wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variation-data-store-cpt.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"116509560a33f6ebeb392115ee0394f380e1cec967606526aa78186d478f09cd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$image_id \u0026\u0026 wp_attachment_is_image( $image_id )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-categories-controller.php, wp-content/plugins/woocommerce/src/Internal/ProductAttributes/VisualAttributeTermAdmin.php, wp-content/plugins/woocommerce/src/Internal/ProductAttributes/VisualAttributeTermMeta.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d51da0d17aeed2357bc970bdedcc22f8267b9330aed38c9c4dffbfc87503b60"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$is_search \u0026\u0026 empty($args[\u0027orderby\u0027]) \u0026\u0026 isset($args[\u0027s\u0027])\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-page_link.php, wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-post_object.php, wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-relationship.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-page_link.php"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b91360e3a84b94938b26a4587b2c2e77eea243c22cd3c057a50a4a8f0965762"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$item \u0026\u0026 is_callable( array( $item, \u0027get_product\u0027 ) )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php, wp-content/plugins/woocommerce/src/StoreApi/Utilities/OrderController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"53051ef202a6151c3a42e4b1ace398588b228c23b55a095b80ba508f9e7bd9a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$latest_order instanceof WC_Abstract_Order \u0026\u0026 strtotime( (string) $latest_order-\u003Eget_date_created() ) \u003E= strtotime( \u0027-90 days\u0027 )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php, wp-content/plugins/woocommerce/src/Internal/Admin/Suggestions/Incentives/WooPayments.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"50393949f63c47797989231bc6f6391ba287ef29f3e9b694e9c6b4c1d03921b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$next_scheduled_date || ! empty( $_GET[\u0027do_update_woocommerce\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/class-wc-admin-notices.php, wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-run-db-update.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-notices.php"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abd56565a43479fdd1a87b0035843c30e4815eb7da4fa5f5e107732280c83e7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$option_term \u0026\u0026 ! is_wp_error( $option_term )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/export/class-wc-product-csv-exporter.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Variations/DataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/export/class-wc-product-csv-exporter.php"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b6c27ac3db58322c5981ba9ac4c8ea75373feaf8f7ad2f6beaffb80ee16984"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$options \u0026\u0026 isset( $options[\u0027enabled\u0027] ) \u0026\u0026 \u0027yes\u0027 === $options[\u0027enabled\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/class-wc-admin-notices.php, wp-content/plugins/woocommerce/includes/class-wc-shipping.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-notices.php"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf9770a57ac9b2c050898252d8610e66790681cc0fd2fc12515f6c1a536ff37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$order_id \u0026\u0026 ! is_a( $order, \u0027WC_Order\u0027 )\u0060 appears character-identically in 12 files \u2014 wp-content/plugins/woocommerce/includes/emails/class-wc-email-cancelled-order.php, wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-cancelled-order.php, wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-completed-order.php, wp-content/plugins/woocommerce/includes/emails/class-wc-email-customer-failed-order.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/emails/class-wc-email-cancelled-order.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1dcdecd2d3252bc6a4774be78ecd151972a20753d88d9d3d3bcaa526b8437f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$password_generated \u0026\u0026 $set_password_url\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/templates/emails/customer-new-account.php, wp-content/plugins/woocommerce/templates/emails/plain/customer-new-account.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/templates/emails/customer-new-account.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc8ad3b4e541bee2d8d57d7121a29f629c784f419cca242d01378179986f4fb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$permalink_template_requested || $generated_slug_requested\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":2078}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f46b399d9ca08c36e96ad54a073b881bff0bee0c5b72ceb2c0c183177a5f0da"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$query_args[\u0027page\u0027] \u003C 1 || $query_args[\u0027page\u0027] \u003E $total_pages\u0060 appears character-identically in 8 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/DataStore.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Coupons/DataStore.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Customers/DataStore.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Downloads/DataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/DataStore.php"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccfb0bb6388435e2b652011f9cfd779499559b51d6792f7808989bde7478bff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$shipping_class_term \u0026\u0026 $shipping_class_term\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php, wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf503b89b2fa084da80aa985bf0399e0236ce79bb191420e8c5dab924dc9882"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$shop_page_id \u003E 0 \u0026\u0026 get_post( $shop_page_id )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/class-wc-admin-permalink-settings.php, wp-content/plugins/woocommerce/includes/wc-update-functions.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-permalink-settings.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc8243ecabc1b39170996f07175a2e431b9ba7c7e32b838a2d9ed7ea8f173c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$template_part \u0026\u0026 ! empty( $template_part-\u003Econtent )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTemplatesController.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php, wp-content/plugins/woocommerce/src/Blocks/Utils/BlockTemplateUtils.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTemplatesController.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e07d507c1cf46d2e6d4b10b5872d378e2c98b5d79c6972fd7eb243d4a7731fb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$total_posts \u003C 1 \u0026\u0026 isset( $query_args[\u0027paged\u0027] ) \u0026\u0026 absint( $query_args[\u0027paged\u0027] ) \u003E 1\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Stock/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e8b20c5ef225ccb4fc4d986451a3e90c58d73f2996f5a2472d560f41d6703e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$user instanceof WP_User \u0026\u0026 \u0027wptests_capabilities\u0027 === $user\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/tracks/class-wc-tracks-client.php, wp-content/plugins/woocommerce/includes/tracks/class-wc-tracks.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/tracks/class-wc-tracks-client.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"6adb233d29a9a0e4456a2c9d9348d60417de9e7afc7c94613e29c68a4cf048a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$value \u0026\u0026 ! in_array( $value, WC_Tax::get_tax_class_slugs(), true )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php, wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9455ba4e3d695799c59152c922d3948880f664511268bfb37231cc89af5b8f4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$values[\u0027quantity\u0027] \u003E 0 \u0026\u0026 $values[\u0027data\u0027]\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php, wp-content/plugins/woocommerce/includes/shipping/legacy-flat-rate/class-wc-shipping-legacy-flat-rate.php, wp-content/plugins/woocommerce/includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-delivery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/flat-rate/class-wc-shipping-flat-rate.php"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"800b43266cd2ded1d74a9c674e7a0815a73c3a3e3ab51e115701e733dfe77373"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060$wp_db_version \u003E= 34370 \u0026\u0026 $wp_current_db_version \u003C 34370\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/advanced-custom-fields-pro/includes/upgrades.php, wp-content/plugins/woocommerce/includes/wc-term-functions.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/advanced-custom-fields-pro/includes/upgrades.php"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"a527fc7a88e2ff801df46a521b989341e7d094883205e4d2e690da24f1388052"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027\u0027 === $email_id || ! isset( $registry[ $email_id ] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php, wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateSyncBackfill.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6155709c269a40a2d6b3a491d01d74dae100890f09356bfed6620a7244b10f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027BETWEEN\u0027 === $operator || \u0027NOT BETWEEN\u0027 === $operator\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php, wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"025d152feedd55e00763728315efc24ed49c001537d917a6cc1e7ec07c22631f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027core/post-excerpt\u0027 === $block_name || \u0027core/post-title\u0027 === $block_name\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SingleProduct.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"34be9223e7d2837247b9aef374e87f2de84911745a6b12a5652c81ef6e146d9c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027multiselect\u0027 === $field_type \u0026\u0026 ! empty( $field[\u0027options\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Schema/EmailsSettingsSchema.php"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e0ad37410167821c2ba4bfb752fc6ed58bd858b10d7ddd1513176d8c7a645a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027woocommerce/product-template\u0027 === $block[\u0027blockName\u0027] || \u0027core/post-template\u0027 === $block[\u0027blockName\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/SingleProduct.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedItem.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfce49602a34178ae31abe28b9097ec7c9e9144db759ba5973beab17355f8e13"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0027yes\u0027 === get_option( \u0027woocommerce_hide_out_of_stock_items\u0027 ) \u0026\u0026 $product_visibility_term_ids[ ProductStockStatus::OUT_OF_STOCK ]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php, wp-content/plugins/woocommerce/includes/wc-term-functions.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php"},"region":{"startLine":1204}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b06cd22eae5afd3c93e0f1b678b4f16d0c22efdd1a6f184bef8cddc21a9eda"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060( ! $object || 0 === $object-\u003Eget_id() ) \u0026\u0026 ! wc_rest_check_post_permissions( $this-\u003Epost_type, \u0027read\u0027 )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5f01369dbc57c0f9885973dc6c2e710bfae4db3f3e09350c652fd2aa90b715"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060( $is_block_editor || current_user_can( \u0027manage_woocommerce\u0027 ) ) \u0026\u0026 ! $this\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"59adbf9bb47239d9b9aec1902bba26a8e858f2f3e04b83cdaaf8e5457c213639"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u00600 !== strcasecmp( $current_blog-\u003Edomain, $current_site-\u003Edomain ) || 0 !== strcasecmp( $current_blog-\u003Epath, $current_site-\u003Epath )\u0060 appears character-identically in 2 files \u2014 user/admin.php, wp-admin/user/admin.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"user/admin.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a2d3240ae57b851dd3714aa1c391974f6502540f084027251fe897bfee80bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u00600 \u003C $average_rating || false === $product_permalink\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingCounter.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRatingStars.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductRating.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7b2f9d43394cefe265374b9b6958cb5b8d91a23b915141485c818a73f7c575"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u00600 === $attachment_id \u0026\u0026 isset( $image[\u0027src\u0027] )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a341d0afd731b3362fef089e3067ce5f796a20156c65ed5b83d157e14929889"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u006040 === strlen( $hash ) \u0026\u0026 ctype_xdigit( $hash )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php, wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateDivergenceDetector.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WCTransactionalEmails/WCEmailTemplateAutoApplier.php"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"680bfd049685fb8ae82dd92bcf92d1036fa7ffe7ff2a782b03e3c94267c54801"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060EMPTY_TRASH_DAYS \u003E 0 \u0026\u0026 is_callable( array( $object, \u0027get_status\u0027 ) )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"da11e653395aa837e4d2e2623eeae6dde5f5adfac3eded47f7b08ce6fe3c4ba6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060array_key_exists( $key, $item ) \u0026\u0026 is_null( $item[ $key ] )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"d980c016b25e8e47a647c74f688ecaea3f86058a87f1fcba6cf95c75065e6125"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060array_key_exists( \u0027editMode\u0027, $attributes ) \u0026\u0026 is_bool( $attributes[\u0027editMode\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedCategory.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedProduct.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/FeaturedCategory.php"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d7bc58f041e8f4a296db70b542dcdffff447b32bdb52a88bfdc1250ad9ddd1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060array_key_exists( \u0027id\u0027, $option ) \u0026\u0026 array_key_exists( \u0027value\u0027, $option )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php, wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37f0afe8f7da7fc94836f369dee530762e85cca0a77b1b940cfc91f144ef876"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060backorders_require_notification() \u0026\u0026 $product\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php, wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/CartItemSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item-product.php"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f5de5d364a7d1d0b901ba140d2ad078eb1eece16cce77fc64975b8fff33991"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cogs_is_enabled( __METHOD__ ) || ! $this\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php, wp-content/plugins/woocommerce/includes/class-wc-order-item.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php"},"region":{"startLine":2683}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f111feeffd111fdc981ffd3f0c9a1a0c1124f3cf3ee5cfba9631a8e16ba43ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cogs_is_enabled() \u0026\u0026 in_array( \u0027cost_of_goods_sold\u0027, $include_fields, true )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Refunds/Schema/RefundSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/Schema/OrderSchema.php"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae5afb536d7c51530666ead5ae6c892f756b3d355c68260aa783ca9f68edec0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060count( $diff ) === 1 \u0026\u0026 in_array( ProductStockStatus::OUT_OF_STOCK, $diff, true )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc417ed63054977abc36411828fd76659f1621741b0d59699e9a6cef9dd1f2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060custom_orders_table_is_authoritative() \u0026\u0026 ! $this\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php, wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/LegacyDataCleanup.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Database/Migrations/CustomOrderTable/CLIRunner.php"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"af54b7cbf9c621b025441e41a364e4c1e9e69eb874ccb0c0e6d029fed59e8018"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data[ $address_type ][ $prop ] || ( isset( $this-\u003Echanges[ $address_type ] ) \u0026\u0026 array_key_exists( $prop, $this-\u003Echanges[ $address_type ] ) )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-customer.php, wp-content/plugins/woocommerce/includes/class-wc-order.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-customer.php"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ab2a786beeeb2bdcdcedc505fa04a6629a4adf7a8efc996e3c771fae6f0721"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060defined( \u0027SCRIPT_DEBUG\u0027 ) \u0026\u0026 SCRIPT_DEBUG\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminAssets.php, wp-content/plugins/woocommerce/src/Internal/OrderReviews/Endpoint.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminAssets.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cdea41fe6ae2a04d64dc347cac1d24376174189600a3f0da15f4646ddc2d53"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060defined( \u0027WOOCOMMERCE_CALYPSO_ENVIRONMENT\u0027 ) \u0026\u0026 in_array( WOOCOMMERCE_CALYPSO_ENVIRONMENT, array( \u0027development\u0027, \u0027wpcalypso\u0027, \u0027horizon\u0027, \u0027st\u2026\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/Plugins.php, wp-content/plugins/woocommerce/src/Internal/Jetpack/JetpackConnection.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Plugins.php"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c4050a63b6c337854df0f0292ae4367ba92e30effa5c6bbe4c231c007d2aec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060defined( \u0027WP_DEBUG\u0027 ) \u0026\u0026 WP_DEBUG \u0026\u0026 current_user_can( \u0027manage_woocommerce\u0027 )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/StoreApi/Formatters.php, wp-content/plugins/woocommerce/src/StoreApi/Schemas/ExtendSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Formatters.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4248d012b14e8a66b6768956dc3dd7d0a48bde052594e76612032d0cfeb62bdc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $account_status[\u0027isLive\u0027] ) \u0026\u0026 empty( $account_status[\u0027testDrive\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php, wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsService.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments.php"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6526b8252b78cdda77e816f9f3d841d9b72cc7662ded09f0325f989c377b88"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $auth[\u0027access_token\u0027] ) || empty( $auth[\u0027access_token_secret\u0027] )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-api.php, wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-connection-controller.php, wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingSync.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-api.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4323095ad4ba387ae9b6be90fddb20231ffb5947ffbfd13d8f6e9123abd7292"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $field[\u0027title\u0027] ) || empty( $field[\u0027type\u0027] )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-payment-gateways-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/PaymentGateways/Schema/AbstractPaymentGatewaySettingsSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-payment-gateways-v2-controller.php"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"607790507574e44d2cc58e9d61ff3dbaa02b4803e87edb76dcc361074746ef1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $filter_terms ) || ! taxonomy_exists( $taxonomy ) || ! wc_attribute_taxonomy_id_by_name( $attribute )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-query.php, wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php, wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-query.php"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d46761751eda89a8e4fd8812dc49316d31c58efb841342cc71b8005dfd86fdf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $id ) || empty( $post-\u003EID ) || $post\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-posts-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1650}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c875b517e12b1d44924874de1250707414893b6a7f415829cd9aaf73b6bc50"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $min_price_query ) \u0026\u0026 empty( $max_price_query )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a64518f6df1e2857d867f0472d1bd490945ee51ba3eb9ce049f79971318561"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $parsed_filter_rating_values ) || empty( $product_visibility_terms )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"f609683fa63ba5105a1decd333eeba8c4aaec0124498ba971832c1e4036b6226"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $post-\u003Epost_status ) || \u0027inherit\u0027 === $post\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/CheckoutExpressPaymentBlock.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Checkout.php"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cb7226853d316f45d29cda013fa10a2136c955e12de5817be37e73ce46c51b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $post_id ) || get_post_type( $post_id ) !== $this\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-coupons-v1-controller.php"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b865ed5ae1dd1011992f6e23473bbc644d592a0efe722fc5e6a880b22852f2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $query_args[\u0027status_is\u0027] ) \u0026\u0026 empty( $query_args[\u0027status_is_not\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Orders/DataStore.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2411b8c1479c5329cb53ebce2129f55c35096ca199c4cd940886c2248956c318"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $request[\u0027image\u0027][\u0027id\u0027] ) \u0026\u0026 ! empty( $request[\u0027image\u0027][\u0027src\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-categories-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-categories-v1-controller.php"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4584d91c26e51fd509b8b2a6ce4a39c8edecb268f943be34ea0b153908541655"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $sections ) || 1 === count( $sections )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php, wp-content/plugins/woocommerce/src/Internal/Admin/Settings/LegacySettingsPageAdapter.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8fa1b6261694f1c88e6beb42d88059919eeb105d222dc00444e7dff35f0ab7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $username ) || ! validate_username( $username )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/wc-user-functions.php, wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/SignupService.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-user-functions.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"867c3e62b59b433ba07c902ab4fd6fbc1d8bc3aeacc57d2cdfd15c5816986308"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060empty( $webhook ) || is_null( $webhook )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhook-deliveries-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhooks-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-webhooks-v2-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-webhook-deliveries-v1-controller.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb35852216d90a26145a70a991111edf02c65e1cd2551c79522259878f5c4ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060false === $fullsizepath || is_wp_error( $fullsizepath ) || ! file_exists( $fullsizepath )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php, wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"8581a818cd5b7c9bf3ad2a7975c80123cc55d1bfa283afcae64d8b3cf46c0aa0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060false === $should_display \u0026\u0026 true === $force_default\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php, wp-content/plugins/woocommerce/src/Admin/API/ShippingPartnerSuggestions.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/PaymentGatewaySuggestions.php"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"88954c6ee8900f180e25bc97ce17ceaceddcbcc5580a5f8f7e6c24df00bbd9f4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060false === $specs || ! is_array( $specs ) || 0 === count( $specs )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php, wp-content/plugins/woocommerce/src/Admin/Features/ShippingPartnerSuggestions/ShippingPartnerSuggestions.php, wp-content/plugins/woocommerce/src/Internal/Admin/RemoteFreeExtensions/Init.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/PaymentGatewaySuggestions/Init.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"090afdaeff0a6edd41b4b5b22bc2b68cf6243703bc408075958c9e2aa141915a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_current_user_id() \u003E 0 \u0026\u0026 get_current_user_id() === $order\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e513e56683be5aa8772b5105126f755d1b923133d69f6343b7bbffecc2482d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_customer_id() \u0026\u0026 WP_REST_Server::READABLE === $request\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"727e617fee543cef47350b22b4c9f4d8cb93c791b58af762dfddc0faf8c1d280"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_customer_id() \u0026\u0026 is_user_logged_in() \u0026\u0026 get_current_user_id() !== $order\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/OrderReviews/Endpoint.php, wp-content/plugins/woocommerce/src/Internal/OrderReviews/SubmissionHandler.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/OrderReviews/Endpoint.php"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"feec1f2280b2a3397f7c8d1422a28143e1c2e36430e29212c4e77a5ff36f4376"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_id() !== $order_id || ! hash_equals( $order-\u003Eget_order_key(), $order_key )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php, wp-content/plugins/woocommerce/src/StoreApi/Utilities/OrderController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bea8c7286c771dbef8364f47b4a506e501bc4d96809076a961f4f1b4ed39f95"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_id() \u0026\u0026 ! wc_rest_check_post_permissions( $this-\u003Epost_type, \u0027edit\u0027, $object-\u003Eget_id() )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-crud-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6661d41f3b0ff9b24aa2afb27c8833b5f0c070243b55f84b82b219dc1e494f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_id() === $order_id \u0026\u0026 hash_equals( $order-\u003Eget_order_key(), $order_key )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-form-handler.php, wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-checkout.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-form-handler.php"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e20c5bcaae9d5229454f2457aaf32f38127509abe43502fd10c1a12aa2c6494"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060get_id() || ProductStatus::PUBLISH !== $object\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductsById.php, wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductsBySlug.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/ProductsById.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd1b56f7b356ddcb696d70eda6e58004a37e7c8210fa0111fd4e37699fbbc84"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060highlight !== \u0027undefined\u0027 \u0026\u0026 series[ highlight ]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php, wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-sales-by-date.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-coupon-usage.php"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f609d03773c3fc5715c7cf3d111ea56740491935e381673f7dd8f05722766e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060in_array( $shipping_from, $this-\u003Eget_shipping_from_countries(), true ) \u0026\u0026 in_array( $shipping_to, $this-\u003Eget_shipping_to_countries(), true )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/DHLShippingProvider.php, wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/DPDShippingProvider.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Providers/DHLShippingProvider.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f37212e38e17dd9e005ae46376f803b704ef2610e406721ea965bbcd0e7f59"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $first_item ) \u0026\u0026 array_key_exists( \u0027count\u0027, $first_item )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f66c98e92b65216846d795953490f90018490a175591617c689fc716b9ecfeeb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $held_keys ) \u0026\u0026 0 \u003C count( $held_keys )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php, wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"407937ff5b5e08d9ef7d3ea75c7e98e06b26f0f40a3fd223eea11614777d7e93"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $held_keys_for_user ) \u0026\u0026 0 \u003C count( $held_keys_for_user )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php, wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"938ad83d05d9f886d84f3bd64f3651b51e7562c0a8367d4e6d1bf33b32116dc3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $image ) \u0026\u0026 isset( $image[0] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-product-data-admin.php, wp-content/plugins/woocommerce/src/Internal/StockNotifications/Emails/EmailTemplatesController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Admin/Templates/html-product-data-admin.php"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f9259ea06a00e8427bc7ac233cfcf9b600dd7cf3dac66f09862ccc13973f20"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $item ) \u0026\u0026 ! empty( $item[\u0027selected\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8babaf9cb8a6bab197149ee70d931517bfc81edf6ad7eb0eb06639947e6dd74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $item ) \u0026\u0026 array_key_exists( \u0027visual\u0027, $item )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d0127d471123dd2a228a10d54ded6d96058ecbbc38e2f51aec5887041f63bd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $meta ) \u0026\u0026 isset( $meta[\u0027key\u0027], $meta[\u0027value\u0027] ) \u0026\u0026 \u0027_date_fulfilled\u0027 === $meta[\u0027key\u0027] \u0026\u0026 is_string( $meta[\u0027value\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Fulfillments/Schema/FulfillmentSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/OrderFulfillmentsRestController.php"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86146b470f8eb88b04bee3a1d5a3e3e983113e0c3ecc4651bd68e8982948638"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $property_schema ) \u0026\u0026 array_key_exists( \u0027items\u0027, $property_schema )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php, wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b09a842b025a3886759dcd0869ddb2620068b91eaf8ebdabd44951bbb9410cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $property_schema ) \u0026\u0026 array_key_exists( \u0027properties\u0027, $property_schema )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php, wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"61faa3133b7f3b4d60f348def70b76b6437de19e1cc7df44386a8686af3ecbd4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $query ) \u0026\u0026 $taxonomy === $query[\u0027taxonomy\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php, wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b2b7bdec1dd9233fc418b230c264b103fb621a6b3027f559226db643a0b087"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $response_item ) \u0026\u0026 array_key_exists( $key, $response_item )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php, wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsRestController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/PaymentsProviders/WooPayments/WooPaymentsRestController.php"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"47164130dd580c36ba2e41f36ceebc596e638a19cb138a91d7bb5dd9510a227c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_array( $ship_to_countries ) \u0026\u0026 ! in_array( $package[\u0027destination\u0027][\u0027country\u0027], $ship_to_countries, true )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php, wp-content/plugins/woocommerce/includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shipping/legacy-free-shipping/class-wc-shipping-legacy-free-shipping.php"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d61b7dcd0e2b61431e3cc04309339c1682050f300a5c270bece8447ab14f45"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_callable($this-\u003EDebugoutput) \u0026\u0026 !in_array($this-\u003EDebugoutput, [\u0027error_log\u0027, \u0027html\u0027, \u0027echo\u0027])\u0060 appears character-identically in 2 files \u2014 wp-includes/PHPMailer/PHPMailer.php, wp-includes/PHPMailer/SMTP.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a08aeac237e58897e4064f57870d0290280b557d00b1f671eb55cb686e7556"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_countable( $templates_from_db ) \u0026\u0026 count( $templates_from_db ) \u003E 0\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/MiniCart.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AddToCartWithOptions/AddToCartWithOptions.php"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"374eb525c01a725cff15453faa89c24f022aede867039d4e4d4c1c98e92a6fe4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_downloadable() || \u0027edit\u0027 === $context\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6660efb428fde6fd49722f69d044c9616bfc41eb8e67a3fe70b5cd0b2a19c1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_main_query() || \u0027product_query\u0027 !== $wp_query\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php, wp-content/plugins/woocommerce/src/Internal/ProductFilters/QueryClauses.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/QueryFilters.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba43f6efd639c659db0b88d7d5bef7757285b8ce3526f7deeb2877bd25a972f7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_multisite() \u0026\u0026 ! is_user_member_of_blog( $request[\u0027customer_id\u0027] )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Orders/UpdateUtils.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"673505e37e952735577cf8892884d52039e9e027703231eeee600a4cbe53dd1d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_object( $results ) \u0026\u0026 isset( $results-\u003Emax_num_pages )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/OrdersQuery.php, wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/ProductsQuery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/OrdersQuery.php"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0612b6fb8b51297d81bf20f5545d6f1d15b281ae2e8bf12dbdda17091582ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_post_type_archive( \u0027product\u0027 ) || is_page( wc_get_page_id( \u0027shop\u0027 ) )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/wc-conditional-functions.php, wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-brand-nav.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-conditional-functions.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbeefe8b2feaede851c0dadfbb9c9f5771b8bf218eb700e3fd7aa8971ac0a170"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_post_type_viewable( $post_type_obj ) \u0026\u0026 $post_type_obj\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":1835}}}],"partialFingerprints":{"codehealthFindingId/v1":"5356f4ce170a81c71a1b2560451b820eff49e355ad8dfc74ccfbf97376e7072b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_registration_required() \u0026\u0026 ! is_user_logged_in()\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-checkout.php, wp-content/plugins/woocommerce/templates/checkout/form-checkout.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"39852bc212c83b4f7901250cec704a79e16633898968e5f0fc0c97c2e665421f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_string( $attribute_id ) \u0026\u0026 \u0027\u0027 !== $attribute_id\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Dropdown.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Dropdown.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab2b5555c368dc5c65dfaa5e9b33cadb887c345c1d00ef69642185f637b8331"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_type( ProductType::GROUPED ) \u0026\u0026 isset( $request[\u0027grouped_products\u0027] )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb3e85053815dd3ad9b3bc7a68d0226372dd14eda04be5007614918e006fc3a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_type( ProductType::VARIABLE ) \u0026\u0026 $product\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f9d0f91c693ac20204c4e0aa15ae9179e780bc51e287c391b5a43ccd05c6c0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_type( ProductType::VARIATION ) \u0026\u0026 wc_is_attribute_in_product_name( $display_value, $order_item_name )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-order-item.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-item.php"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b579074c241f3d1c674163d4d9aea172fe03bdf961063a986da095318af6af2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_wp_error( $new_metadata ) || empty( $new_metadata )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php, wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b5c21b0f6ae7ae519459dad685fe88c0ca1ef9ce38612dd149581eb44ad50d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_wp_error( $result ) || is_null( $result )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/OnboardingThemes.php, wp-content/plugins/woocommerce/src/Admin/PluginsHelper.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/OnboardingThemes.php"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd63323068edc8a433c607aa70dbf58b88cc363fa829556b7d2a0e22102c2c1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_wp_error( $terms ) || empty( $terms )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php, wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentsManager.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterTaxonomy.php, wp-content/plugins/woocommerce/src/Internal/ProductFilters/TaxonomyHierarchyData.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e5dfd0b1ea5e00e82957fd6df5de29fe72a601b8d954b57bb75031580bb8dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_wp_error( $valid_check ) \u0026\u0026 $valid_check\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php, wp-content/plugins/woocommerce/src/StoreApi/Routes/V1/Checkout.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"80eeff8832f9541e478c7bce28135f70504eba2668921201e20c31fc4a55699a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $_GET[\u0027page\u0027] ) \u0026\u0026 \u0027wc-admin\u0027 === $_GET[\u0027page\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-admin.php, wp-content/plugins/woocommerce/src/Admin/PageController.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper-admin.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b5724fe548d264de9575a22d555a0cfa05477bd9e6096ad78755c748afaad0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $_GET[\u0027s\u0027] ) \u0026\u0026 0 \u003C strlen( sanitize_text_field( wp_unslash( $_GET[\u0027s\u0027] ) ) )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/tracks/events/class-wc-coupons-tracking.php, wp-content/plugins/woocommerce/includes/tracks/events/class-wc-products-tracking.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/tracks/events/class-wc-coupons-tracking.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aed2f9a1723018b6280ddb0f6e5a5f8e475d6895bc25cd2de698a1c28e9b8fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $_REQUEST[\u0027action\u0027] ) \u0026\u0026 \u0027as_async_request_queue_runner\u0027 === $_REQUEST[\u0027action\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/wc-core-functions.php, wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":2542}}}],"partialFingerprints":{"codehealthFindingId/v1":"b740c9e366c3c7b6874048f4dbd83643a62941818466e93604670a9eca788686"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $action-\u003Eurl_is_admin_query ) \u0026\u0026 $action\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/class-wc-admin-addons.php, wp-content/plugins/woocommerce/src/Admin/RemoteInboxNotifications/SpecRunner.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-addons.php"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"277c1cb0e4dafb3be21aea7225fe5315413afa0d5ac93143bf60e8b5eed1b168"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $arg[\u0027value\u0027] ) \u0026\u0026 array() === $arg[\u0027value\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php, wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableMetaQuery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableFieldQuery.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c082817908050970078bc8452e36fe70a0eb69c35bcbe5db6e99e8b0bbf1962"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $attribute[\u0027is_taxonomy\u0027] ) \u0026\u0026 $attribute[\u0027is_taxonomy\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d76d927f79d262d2ed3564bf5e3597807587ef6c9fb2482209330fc2f948dfc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $attribute[\u0027variation\u0027] ) \u0026\u0026 $attribute[\u0027variation\u0027]\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1172}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7ca565ddeb18143d9083773d933a0f07ab672bfde8b7ee0bac7c8146092b81"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $attribute[\u0027visible\u0027] ) \u0026\u0026 $attribute[\u0027visible\u0027]\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d52c5818b07c29a509b507794c1639f8094a72c1ef93a0c28f4eee21bc00af0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $attributes[\u0027label\u0027] ) \u0026\u0026 ! empty( $attributes[\u0027label\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationNext.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationPrevious.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewsPaginationNext.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e06ce205e7a589e8525c69fe33388144baf9a0648d3a5d16e54e3de071885d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $commenter[\u0027comment_author\u0027] ) \u0026\u0026 $commenter[\u0027comment_author\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewAuthorName.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewContent.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Reviews/ProductReviewAuthorName.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d80e390055ef305c97a1646c5c7295e49bdeb39423d1584f7da2b4076d1cd68"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $context[\u0027backtrace\u0027] ) \u0026\u0026 true === filter_var( $context[\u0027backtrace\u0027], FILTER_VALIDATE_BOOLEAN )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-db.php, wp-content/plugins/woocommerce/src/Internal/Admin/Logging/LogHandlerFileV2.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-db.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0eb4ad0221033d00104be8a37b2428a111f58d7789ebd7038a8d395570ed85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $context[\u0027source\u0027] ) \u0026\u0026 $context[\u0027source\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-db.php, wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-file.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/log-handlers/class-wc-log-handler-db.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe48c0f24475e9bd1ac96778f9194b83fa77c293a3eb3a63cf9a1e8c4d92aaa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $data[\u0027virtual\u0027] ) \u0026\u0026 true === $data[\u0027virtual\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc18e21fc351be90976b8b9a9bb15731f37660a3f1203e74029b42dc1780624"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $def[\u0027id\u0027] ) \u0026\u0026 ! in_array( $type, array( \u0027title\u0027, \u0027sectionend\u0027 ), true )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6bb2fc9e207b47b92c111951e85d6a9b58db99cba0849e8bb237a782f0d2d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $item[\u0027taxonomy\u0027] ) \u0026\u0026 in_array( $item[\u0027taxonomy\u0027], $product_taxonomies, true )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductQuery.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductCollection/QueryBuilder.php"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd94536e66b5a5917335f98aaa903027adf3e912f99e5871e4a8d16bea0945db"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $item[\u0027visual\u0027] ) \u0026\u0026 is_array( $item[\u0027visual\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterChips.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterCheckboxList.php"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60ad45ba6a90fdb98de989401a99ad4c61c888cd6a2d35bef5c4116a768eebc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $method-\u003Eenabled ) \u0026\u0026 \u0027yes\u0027 === $method\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/wc-core-functions.php, wp-content/plugins/woocommerce/src/Blocks/Utils/CartCheckoutUtils.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":1670}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f381e32d4a70a7c5536e43d33b14be9332f2860ec09f3e520124cf15e8612a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $method-\u003Einstance_settings ) \u0026\u0026 is_array( $method-\u003Einstance_settings )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/ShippingMethodSchema.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZones/ShippingZoneSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/ShippingZoneMethod/ShippingMethodSchema.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0c3cf4862859d3138d2b2d6b93c4aee58454098dc6012165aae756e7415129"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $old_value[\u0027completed\u0027] ) \u0026\u0026 $old_value[\u0027completed\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingProfile.php, wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Onboarding/OnboardingProfile.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4829c46b9f2fe810e0097b3b9d68a7cf4dd9b35fda37b0158a669cf0dfdc6dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $params[\u0027values\u0027] ) \u0026\u0026 is_array( $params[\u0027values\u0027] )\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Emails/Controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Controller.php"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4116a345ffbcc9809183d57ece32aba30fa65cbdab13c02af11540e38112a159"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $query_args[\u0027category_includes\u0027] ) \u0026\u0026 is_array( $query_args[\u0027category_includes\u0027] ) \u0026\u0026 count( $query_args[\u0027category_includes\u0027] ) \u003E 0\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/DataStore.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/DataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Categories/DataStore.php"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"356cff188c773e304ffaf2ae7e59ba2a5670d51839336908e8d461e495308b66"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $query_args[\u0027taxes\u0027] ) \u0026\u0026 ! empty( $query_args[\u0027taxes\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/DataStore.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/Stats/DataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/Taxes/DataStore.php"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e08a14d0b10f8921eeccd05a846151ad0ad460abb82458897063ed0c81d04b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $query_vars[ $query_var_key ] ) \u0026\u0026 \u0027\u0027 !== $query_vars[ $query_var_key ]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php, wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab85df69c81086359688b14e3069cdb16aab69bab3bf411ce608ca5c9f4497a5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $query_vars[\u0027fields\u0027] ) \u0026\u0026 \u0027all\u0027 !== $query_vars[\u0027fields\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php, wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d72389f0f7a95375ea0f5bbe2a1ab32b11fbfbbe6dec26c642b142acebd4b3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $query_vars[\u0027paginate\u0027] ) \u0026\u0026 $query_vars[\u0027paginate\u0027]\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php, wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php, wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fff167951552d2bdf087ef925a0b597635add7e2b0a11d84cc065fcfb2d470"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $query_vars[\u0027return\u0027] ) \u0026\u0026 \u0027ids\u0027 === $query_vars[\u0027return\u0027]\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php, wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php, wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0670470ac3baa2f7e4d888b99de220c5c39108b773a16a802dc8387ff95624a9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $query_vars[\u0027taxonomy\u0027] ) \u0026\u0026 false !== strpos( $query_vars[\u0027taxonomy\u0027], \u0027pa_\u0027 )\u0060 appears character-identically in 5 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterPrice.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterRating.php, wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterStatus.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/ProductFilterAttribute.php"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c1e5ee190becd3a3abcd12f33f50df3527b5abd8012c866383e64e7cffc889"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $request[ $prop ] ) \u0026\u0026 ( \u0027password\u0027 === $prop || $request[ $prop ] !== $customer_prop[ $prop ] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Customers/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-customers-v1-controller.php"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"338d5edf4fcedbffd7fab211abaa308f22eeb90c0f1f32ba294efbf644d4b107"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $request[\u0027billing\u0027] ) || isset( $request[\u0027shipping\u0027] ) || isset( $request[\u0027line_items\u0027] ) || isset( $request[\u0027shipping_lines\u0027] ) || i\u2026\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb1b8268249667651419816b45f17442416001dac9c93379c525cedb5c1ba47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $request[\u0027categories\u0027] ) \u0026\u0026 is_array( $request[\u0027categories\u0027] )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ed7db2e4a797976b71542891021acd849c2885e58b19a7a6b352877c63f689"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $request[\u0027default_attributes\u0027] ) \u0026\u0026 is_array( $request[\u0027default_attributes\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f581ecf110d3fe4e77926d9d30d6a1df35f354cb219c91774f8ef719044596"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $request[\u0027downloads\u0027] ) \u0026\u0026 is_array( $request[\u0027downloads\u0027] )\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-product-variations-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-product-variations-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"4283034eb9d0d61b866a1c3425f5417497afba491c912b50a26bf7a0e75efb42"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $request[\u0027tags\u0027] ) \u0026\u0026 is_array( $request[\u0027tags\u0027] )\u0060 appears character-identically in 4 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-products-v1-controller.php"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29a983888a9297cdb6b8c64f33563eb3fdfb8197bb58d43b164f247d74b1113"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $result[\u0027result\u0027] ) \u0026\u0026 \u0027success\u0027 === $result[\u0027result\u0027]\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-checkout.php, wp-content/plugins/woocommerce/includes/class-wc-form-handler.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-checkout.php"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"70762bf1aeabeb1eb1ef1c9b166e4df6c43bc565b336c7a7547face74f6d1231"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $setting[\u0027id\u0027] ) \u0026\u0026 $current_group\u0060 appears character-identically in 5 files \u2014 wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Schema/EmailSettingsSchema.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"af738e75be3129fbbdb33dcc2fdac2efa33f3ff0144e81ca72271f6ec81890d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $setting[\u0027options\u0027] ) \u0026\u0026 is_array( $setting[\u0027options\u0027] )\u0060 appears character-identically in 5 files \u2014 wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Email/Schema/EmailSettingsSchema.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/General/Schema/GeneralSettingsSchema.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Products/Schema/ProductSettingsSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Settings/Account/Schema/AccountSettingsSchema.php"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"82421aeaa16014c10fcceb6ff2919ba42510dbb1ae95c05be13edc2cc3847ed6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $templates[0] ) \u0026\u0026 BlockTemplateUtils::template_has_legacy_template_block( $templates[0] )\u0060 appears character-identically in 6 files \u2014 wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php, wp-content/plugins/woocommerce/src/Blocks/Templates/ProductBrandTemplate.php, wp-content/plugins/woocommerce/src/Blocks/Templates/ProductCatalogTemplate.php, wp-content/plugins/woocommerce/src/Blocks/Templates/ProductCategoryTemplate.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/Templates/ProductAttributeTemplate.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d5f1569214587d5faa78b38903a8aecd5c0215cefb97c008c5091f56ba47b5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $this-\u003Eget_properties()[ $key ][\u0027type\u0027] ) \u0026\u0026 \u0027boolean\u0027 === $this\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/BillingAddressSchema.php, wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ShippingAddressSchema.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/BillingAddressSchema.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"5838ae02af95968eeb2252e5645a02be089a8d7fa120e248d0a22fb49cdd5606"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $this-\u003Erequest ) \u0026\u0026 isset( $this-\u003Erequest[\u0027context\u0027] )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":2026}}}],"partialFingerprints":{"codehealthFindingId/v1":"8984206f372c29743906ab45708a79125f91ff50b54ca890072b1872da077464"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset( $transient_value[\u0027value\u0027], $transient_value[\u0027version\u0027] ) \u0026\u0026 $transient_value[\u0027version\u0027] === $transient_version\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php, wp-content/plugins/woocommerce/src/Admin/API/Reports/Cache.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f50edec8ef2d5cc102cea6d6b6fd8ca336449ac4e567abe05158563103e748"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset($responseData[\u0027id\u0027]) \u0026\u0026 is_string($responseData[\u0027id\u0027])\u0060 appears character-identically in 2 files \u2014 wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php, wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleTextGenerationModel.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38998044a9df9cb08ee7b35430e8cd9b1cbc69731ed4bcf962e2dcdacbe1146"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isset($responseData[\u0027usage\u0027]) \u0026\u0026 is_array($responseData[\u0027usage\u0027])\u0060 appears character-identically in 2 files \u2014 wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php, wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleTextGenerationModel.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/php-ai-client/src/Providers/OpenAiCompatibleImplementation/AbstractOpenAiCompatibleImageGenerationModel.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"c246f795c6336a2707021f849b6f0dd103485b24568d98b654c19665ae9701da"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item_is_null( $item ) || ( isset( $item[\u0027quantity\u0027] ) \u0026\u0026 0 === $item[\u0027quantity\u0027] )\u0060 appears character-identically in 3 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-orders-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-orders-v1-controller.php"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"694752ba4273dc50cf87a4f4f5628b62f3db127c7f11ed3dbd26837d5068c58a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060null === $first \u0026\u0026 null === $last \u0026\u0026 null === $after \u0026\u0026 null === $before\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Api/Pagination/Connection.php, wp-content/plugins/woocommerce/src/Api/Utils/Products/ProductMapper.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Pagination/Connection.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2bb173523344863f7bf8d1b757d37ddc76e7bfe345e2a75ccf92d15ab43f8a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060search_sku_arg_value \u0026\u0026 ! ( $this-\u003Esearch_name_or_sku_tokens \u0026\u0026 wc_product_sku_enabled() )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php, wp-content/plugins/woocommerce/src/Internal/RestApi/Routes/V4/Products/Controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-products-controller.php"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d864c58595e16f63afd590b71b11184fad5f69cc9f1bc8656c58fac9eb8d49"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060start_date || strtotime( $customer-\u003Euser_registered ) \u003E $this\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-customers.php, wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-customers.php"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36ba540f547efb74748dfb64b1b72fd07a23ad2cb6f4a311d8731c207f1bc1b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060supports( \u0027ajax_add_to_cart\u0027 ) \u0026\u0026 $product\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractProductGrid.php, wp-content/themes/monoka/product-item-ui.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractProductGrid.php"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"795e58041c12cba613005a4d7908cddcdc0c7663dfdf23a176922a287c9b588b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060supports( PaymentGatewayFeature::ADD_PAYMENT_METHOD ) || $gateway\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php, wp-content/plugins/woocommerce/includes/wc-account-functions.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d767bc0ce547a0b6ef7c2f72b95dff885ef3f2438c35e285e7e8decdd58c72"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060supports( PaymentGatewayFeature::TOKENIZATION ) \u0026\u0026 is_checkout()\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/gateways/class-wc-payment-gateway-cc.php, wp-content/plugins/woocommerce/includes/gateways/class-wc-payment-gateway-echeck.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/gateways/class-wc-payment-gateway-cc.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2282ee900edfdceb8c7741608ca3f8c07817b5f7e3cae76e23c2818900b9840"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060user_can( $user, \u0027install_plugins\u0027 ) \u0026\u0026 user_can( $user, \u0027activate_plugins\u0027 )\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-connection-controller.php, wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-status-controller.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-connection-controller.php"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3fb4b7d3a1c262d1778758f2652e98098849d8fae0a3760b8bbf1d4221a3b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060was_provided( \u0027status\u0027 ) \u0026\u0026 null !== $input\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/src/Api/Mutations/Coupons/UpdateCoupon.php, wp-content/plugins/woocommerce/src/Api/Mutations/Products/UpdateProduct.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Mutations/Coupons/UpdateCoupon.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf560a4fd6bdb9526a67bd1ebaa97f89acd62af19278f5560e0eba98ba63a12"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060wc_tax_enabled() \u0026\u0026 ProductTaxStatus::TAXABLE === $this\u0060 appears character-identically in 2 files \u2014 wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php, wp-content/plugins/woocommerce/includes/class-wc-order-item-shipping.php. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-shipping-method.php"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c638439239ffba6beb7ccc582e76a0e4ce152031e6566386179105070a25bf41"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060mailSend\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the \u0060sendmail_from\u0060 ini setting (changed at line 2118, put back at line 2143) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":2080}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a62affa7832cd96615b81f2fcbc03d8a3977c45e6dcf3b85be26f4c0c4eec1c"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060decodeHeader\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the internal multibyte encoding (changed at line 3812, put back at line 3823) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3802}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1139e2bcdfc9c5c533a7adfcefac6b11e8b3f477e0277e0278ab2442f8db287"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060connect\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 254, reset at line 273) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/POP3.php"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"991e706bf03e5e2ccafc3173a94b9977769e9684efd00aa953eea13fae4d7c33"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060getSMTPConnection\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 420, reset at line 448) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"697794c8e9fa049e8de645d2cd43051379d115ba93f988ada8d26953df9eb507"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060startTLS\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 505, reset at line 513) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b29d5c7b8d5b84a3b32eca1b37578977c178bc644a7c28155fa873aaa23b12"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060client_send\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 1252, reset at line 1256) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b2fc7e90d05a58f415332aa216676e271cfb2ad20874e502182760d977fb5c"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060get_lines\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the error handler (changed at line 1357, reset at line 1361) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/SMTP.php"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"78aedd135f19dce344e9155637f2c22da012151fdb83e6bfe8ed46553044a11a"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060next_week_start\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the default timezone (changed at line 335, put back at line 337) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/API/Reports/TimeInterval.php"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"054554c8721cf351ebe33a3c5fbc3e02b37358ae08912266ba0280431847b6fa"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060wc_string_to_timestamp\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the default timezone (changed at line 747, put back at line 755) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception thrown in between: PHP then keeps the overwritten value for the rest of the request \u2014 and in a CLI command, a queue worker or a long-running server (Octane, Swoole, RoadRunner, FrankenPHP) for the rest of the process\u0027s life \u2014 and every later relative path, child-process launch, date, number format, XML parse or error report in ANY class reads it. That failure is silent and remote from its cause: the function that breaks is not the function that moved the value. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 \u0060cwd\u0060 and \u0060env\u0060 to Symfony \u0060Process\u0060 (\u0060new Process($command, $cwd, $env)\u0060) or \u0060proc_open($command, $spec, $pipes, $cwd, $env)\u0060, absolute paths instead of \u0060chdir\u0060, an explicit \u0060DateTimeZone\u0060 or locale to \u0060DateTimeImmutable\u0060/\u0060IntlDateFormatter\u0060/\u0060NumberFormatter\u0060, an explicit encoding to the \u0060mb_*\u0060 call, \u0060LIBXML_NOERROR\u0060/\u0060libxml_get_errors\u0060 handling in one place. Where the global genuinely must move, wrap it \u0060try\u0060/\u0060finally\u0060 so the restore runs on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-formatting-functions.php"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"b868a7c2ca70f6ddb304683a28f3f5f3dbd99266c24fa6ad609006b207c7beef"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 0/1 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: select: \u0060select\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/frontend/a8c-address-autocomplete-service.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cfec6e3b9712e1b3475aa39d39ece100f8bd0b5f0549c1591f6d94b0731385"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: line 377 walks \u0060$preload_settings\u0060 by value, so the walk is the snapshot taken when the loop began, and line 379 changes that same collection with \u0060$preload_settings = \u2026\u0060 before the next iteration: the loop carries on over the old value while the body now works on the new one. PHP raises nothing, so the loop completes over a different set than the code meant."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Loader.php"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"accdcb7a470fc9650ba91d9ac11cdcb945aae389b519cbc4402262b503aa162e"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: line 169 walks \u0060$preload_settings\u0060 by value, so the walk is the snapshot taken when the loop began, and line 171 changes that same collection with \u0060$preload_settings = \u2026\u0060 before the next iteration: the loop carries on over the old value while the body now works on the new one. PHP raises nothing, so the loop completes over a different set than the code meant."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6da4a28c1d5a041053234121a5c01eb7ef9c28b177bbd276e8f4410591c2e73f"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: line 97 walks \u0060$edges\u0060 by value, so the walk is the snapshot taken when the loop began, and line 99 changes that same collection with \u0060$edges = \u2026\u0060 before the next iteration: the loop carries on over the old value while the body now works on the new one. PHP raises nothing, so the loop completes over a different set than the code meant."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Pagination/Connection.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55808d6ca5197d629c6f7bd53c424f766f3b31b10cfafaa3d0f6e5e3355e310"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: line 999 walks \u0060$page_ids\u0060 by value, so the walk is the snapshot taken when the loop began, and line 1000 changes that same collection with \u0060$page_ids = \u2026\u0060 before the next iteration: the loop carries on over the old value while the body now works on the new one. PHP raises nothing, so the loop completes over a different set than the code meant."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f327c5bb648b0674b8e20da84af14e241bed9ec26fd4661e7810f87f35397f"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: line 1328 walks \u0060$results\u0060 by value, so the walk is the snapshot taken when the loop began, and line 1337 changes that same collection with \u0060$results[] = \u2026\u0060 before the next iteration: the added element is never visited by this loop, so whatever it was added for is not done here. PHP raises nothing, so the loop completes over a different set than the code meant."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-core-functions.php"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d4f11cfcef2261baa87ad455599eb8a0645796cc6e4a32ca6401a2bb36b4e4"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: line 1222 walks \u0060$product_cats\u0060 by value, so the walk is the snapshot taken when the loop began, and line 1223 changes that same collection with \u0060$product_cats = \u2026\u0060 before the next iteration: the loop carries on over the old value while the body now works on the new one. PHP raises nothing, so the loop completes over a different set than the code meant."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ee8c746c8396122a8c9b15f2d253b0cba407b18110dec6cfabe82cd0f62ba2"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: line 502 walks \u0060$term_ids\u0060 by value, so the walk is the snapshot taken when the loop began, and line 503 changes that same collection with \u0060$term_ids = \u2026\u0060 before the next iteration: the loop carries on over the old value while the body now works on the new one. PHP raises nothing, so the loop completes over a different set than the code meant."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-term-functions.php"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db8ba66081d2fcf78feb2d8a2f100c0c0316fd0bf9517361683f3b503bca710"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: line 296 walks \u0060$terms\u0060 by value, so the walk is the snapshot taken when the loop began, and line 299 changes that same collection with \u0060$terms[] = \u2026\u0060 before the next iteration: the added element is never visited by this loop, so whatever it was added for is not done here. PHP raises nothing, so the loop completes over a different set than the code meant."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bc12af06b26f634658599f2de62a453d48df949c5d45564df925e97d564b31"}},{"ruleId":"X27","level":"warning","message":{"text":"Collection is structurally changed while it is being enumerated: line 340 walks \u0060$categories\u0060 by value, so the walk is the snapshot taken when the loop began, and line 343 changes that same collection with \u0060$categories[] = \u2026\u0060 before the next iteration: the added element is never visited by this loop, so whatever it was added for is not done here. PHP raises nothing, so the loop completes over a different set than the code meant."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-products.php"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a88183950adfad887111c75ca8fed5ec3a51323734f349352f8e83429d78e1a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/PHPMailer.php"},"region":{"startLine":3017}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4fbbdf1e294c6b7ef36f2bc26806f3e7a0bf59ebecb1509b905bbbb1b697ed0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/POP3.php"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4901e912dffe353140fa0cace49c2f52e0f5670d3d75707ffe169eefae14ef1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-includes/PHPMailer/POP3.php"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4d51c6f78437c78658157d48d21e19b726cb802f2da0f10fa2702941109174"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"89703d9a29aa9e08d892d606f4f7ecfff7c08cbaa7cc2697e9afe42388ab13c1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77e19598f06dbca5ccbce75cfcdde31a978371f3c954a65fc6d53b7a8b0f6d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8112d69a36f743c2146cdfd522b3e26d41f4a3b2cac45bbded5b67d040c1c4c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":2134}}}],"partialFingerprints":{"codehealthFindingId/v1":"447d8834d804ba49ead2acf778586692f918a0246dbec8a9fc9ac6cc962b6d77"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/free.js"},"region":{"startLine":3924}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47c18eabcf920adf321be5196193ed3535a721c67e2aad97b0cf098da8041b2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e813e7caaba3de5683d22dc56f34d636d4cdbbcfd2bfddff0f1685fbe02565"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/themes/monoka/assets/font-awesome/js/pro.js"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db35a72d5f1a9052a925fb147915a0d273aa9e8344f7514cb4b373edae65f59"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/Frontend/SignupService.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cb618c2d3a3069c959013044e669d97b029f2a6c20a87f04c2591e551b7b8e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/StockNotifications/AsyncTasks/NotificationsProcessor.php"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a22a52b6a4a511fded4889064710da0b21241682b9a5c9379ae1da5b1a9ed5a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ShopperLists/ShopperList.php"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"4caf082416ecbf1ec11bfd49289f2a4249d64a2bafac0b77a5f2dfd81702eef9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/LookupDataStore.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7770567d2eafdc7d78b344f18d9bde77e91d5a5cfd619ac51ab304b5d927dc7e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Orders/MobileMessagingHandler.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c16158b7ffb829d916ec2a0b1f91a9348dde3320cbbf2f571ff061739993f1a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Orders/MobileMessagingHandler.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b52e98618e67c2506ae1025dea60c48539c9e7501ac0a2b02de94f0b61fdf2e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Orders/OrderAttributionController.php"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"968b1d3c5ca19f3f991f28bd00be88c5d1c47f79c319147343c8674599371ed0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/Integration.php"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"93cca22f3f0c86039b68519634d077c045fb6e32b56ca48c7935aca05e4cabe8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/Integration.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ad0236f0d99b3e007d54e392f656cf8a088d9e037911d0a74712fa393b7f92"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/Integration.php"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfe56c624611e539fedfb971df1dcdb906326de91f2513248668c17662e612d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Email/EmailLogger.php"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef699941bef18bddf4f409070ed132a4abdbc95d8ee45240ecc8d363b28bb00"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableDataStore.php"},"region":{"startLine":3192}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f32885e3e2546bae0d06fc25dec3a64b4b6bc9ebfea5a48611cb591c697d23"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"0696a4c8303b5062683e67c0775390f285f6ff6d09e92c0cea6e478778c86d49"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/BatchProcessing/BatchProcessingController.php"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa22ef1538e65e41b2b090f76bec507c56ab7067a446d6731dfa9f6f263b9de"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Api/QueryCache.php"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d077264d4619dad0b5df9ebf944cbf105a38a3e8719fa06855f4048d144f66e9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Api/QueryCache.php"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc66613085cc52ba2b5c7e506964c7f81918a01b24d7104152b184f8727e31b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings.php"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0afb5dca9c104054f55979399bd2a4d6fd7a09dbe04200953a0600fae224ee8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/SiteHealth.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"094f9f0bc48f56672c55895107026c4e5aec4008100d7347118614dde2972c6f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminAssets.php"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db4ae7bc3f2274a70c05fe691dd63dd60d1d220f816bc3174eb5e375fd260b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Settings/SettingsUIRequestContext.php"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3e459c3ee1fbf086d6679656a807f806adfabfb6c43b73fded186cb526300a6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Orders/PageController.php"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f680181252e33156d1b62db6461fb8e0b36161cd6d7b58c859c625e001ee272"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"351362623ee5b1404457eeaa344eb5dd09170d306cd53b448e10e26d4ac2a4aa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Notes/WooSubscriptionsNotes.php"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ce4c7c2640f3e7189ea86f068014913515f039fb5b766be53ad729621102fd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd931a41440137af8bf3b414ba71b599c0734eb9d446361481fb8303d082478"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f47cd3927cfc7c85ad17e916c754271829eaa9f05f1c8d163d16d982772065"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"43170c00596dd3441d72aa18bf7add7fd7ac8da2fe6eb801156902f63d6b08a5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f88eeae2c21c8b838f5ac46c93b9273366b3b3e4e91f6905b86db8a4e59cc0d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"2667af79188ea56251feac29ccfd99d86aae390d7c6aaf6f7fd8177b59bb6a71"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d54011df2babe3a7e78d158cb6c1139111d595fb6caa9df814efc349677600d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbf7f1f89b871b9b27c786d3d4ddcc61a6a4adc5f38d0a7616cfbffde45108a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/Logging/FileV2/FileExporter.php"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"23d932aa6b7f34093093958fb55d39e98ba9109d3a71432c4ae58ad2ff03bc0a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/EmailPreview/EmailPreview.php"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c2c82c39742d09698be4250600269533bf491070eca81115e7aea15b7471d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Abilities/Domain/OrdersQuery.php"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d421ec7283c54d7289469f4ca35792f66ee812d05848d0642053a1f741db47"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Infrastructure/GraphQLControllerBase.php"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"997c91f389e9ccbf2ad9aa0bd8ff13712dd86fa69810f1996e9649f62532bd66"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Infrastructure/GraphQLControllerBase.php"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46854d0c94543435c870cd2f43ec07dcc86d2ff1c041a54eb207d891f96be53"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Api/Infrastructure/MetadataController.php"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"337d403382b826322df93106c49cd8050232e37c8e7ce858468134e992752869"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/Fulfillment.php"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"e943e41c489a4de54e7f5052676ae7245937673760707d3afe209fe911953d56"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/Fulfillments/FulfillmentUtils.php"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2d95ac85f00d7f3562b7f00c07dbbe9f617790d7efadcb9f6e9dbe1f7d1646"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-countries.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09f59b485afd72dc0ccf0d4e0cfa6aed1e57827ba6b2e8aab36e217e28c10ff"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-order-factory.php"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05a1d6aee8c67404913b76246a9ea10c77f38ae8faa7d6359b834696ee8c1e9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-product-factory.php"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9727552fa9e4e12083cd2291c22fa84a537d49a700a3dff22ab308a2a235081a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-shipping-zones.php"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"395fcef28c2a4d087c9854abc22007388d722e60b505a9975b43c8a7090a1c42"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-tracker.php"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc34d574cfe40eee1eff2b6fe717a9707e41edc44cdd46577ccd0617d6c902b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0faf4d198479a7891556e4c973516e73a71011953efa4b68b61279e629b11a4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-product-functions.php"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d92712a1b9f58a8fb8e12e8af62434d9e02415d2d52ff919610eee10d67f1e3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/product-usage/class-wc-product-usage.php"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eacac9229f47e0c87bc1c983c7764b5df6f06e0fddbf98a1fc8d0be3822ad3e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-payment-token.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7ab94238e30a2d0eef3eb725b3990475e6682c4f4fa993a565b70652523ac7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/abstract-wc-legacy-payment-token.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e9889989d1215663b0f996ef97608fad86ee65e36e38f197c8df7423415109"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-shipping-zone.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"124f8a9246c5c59f11e6f849cb59595869db58680217818946b81f2fc0cd495c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/legacy/class-wc-legacy-shipping-zone.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7197b828b0a6510e34236089eb6878c6698de845bf54ab90f297215991b59c84"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"88979be8cfe86a1c82b0107813a4502d5f2acaaeacd9cc0a366296a71b2824a2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/data-stores/class-wc-data-store-wp.php"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"695c94e07d248370e287b26d63468fbda53696dca1806123083f5a5261af6c43"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/cli/class-wc-cli-com-command.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1a3dee967e5b1d28ddc623c9a0a964b41516f4187d6095545dfcc8fa25513a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-marketplace-promotions.php"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cb66b7c1d93f08f328df5277e776651b53bf24ab1ad17effbaf043b732cbaa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/class-wc-admin-marketplace-promotions.php"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"c761a8db2ab48a8be0cb5949048947e35f408fc54f38e36ca3ba3d48c025dfe4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b6187cbca864e88782d68a1460d47be5fd7563b31427196b404c31042d21bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-page.php"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c885cc5f9e0f5fa89fb9b711d76eac019fdf5d26667080eda717e8e8706e996"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/notes/class-wc-notes-run-db-update.php"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a353a74da3db262fdf2261f9abe1bbc1624b30e58d456d8625d50c601415fb1e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8d22364db0d80fd6a86cdf855b033587a6d6dedb8528ec9c1e58afd6d294d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"decdb0a49bb4e667283cd9460e0042c5ef941cdd4206449aa48f2d4e3dd026af"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b3dc8b8dafb60e34743573f681c56cda14768777b1b60cbd7c67080e8b13f1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-helper.php"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cf3b2980aa68d2fc84a40b20dead56d59136dc6f26d0f1d78d99683d1210aa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/admin/helper/class-wc-product-usage-notice.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f55e1fd9e3f858477c4c67b70c9c59753440458cfaa2ec2b63453732bbe3f52"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-data.php"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"57d84e03446e232a9c59ad590058722d0df80133ce8b3323cd0a2c6ffce1c136"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-log-handler.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab44bd37887589314754e4ac3bd8237e5d9e6a0cca510e64f3d8ad7ebe7a4f77"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/sourcebuster/sourcebuster.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e037f9ee503f04998b9e952f050dcc6551ca6ffaddbcf7929722a02ace997d4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f173a6c95643c68c9a09a39322d7c1e73899e95c805b690700636911d09dd6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/jquery-cookie/jquery.cookie.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c0e1e6cc13bf7623ff0156a86db18bd6414382e88c4017881dc0be4b1b14b4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/dompurify/purify.js"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7121381e70e6a37a06fdb2c5a4a0e80b8aa8a3abcbd83058ef9208402188cb4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/dompurify/purify.js"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68cf020819c7b35d5f741528cfa4eb222b89d56a4c31db2396283e0590b0255"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/dompurify/purify.js"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"981e74bbada32ba6849b6a4fa7b4b3b9e653cd1311128a13e68e3976ad6c8327"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/dompurify/purify.js"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be04ee636cc2d3e4beba686395aae156e2364e20dc4c76e7097f4d5fd499856"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (error)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ecce25de923e881df60fb7c337f255853a14e6abe96fe5d135ae35346b818da"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (error)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/js/admin/wc-shipping-zone-methods.js"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56654b6c84822e7ae04f8270248d77945c3491b79d7611471ca5adb8fddbd56"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"c542e8322e0abb484c2ba66492f9cd02f69710cbf2d3ac927053fbd8156ca1a0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"25792da9b8feb2a7246a1b78fd39c4a327beeb29459cd53b9fec93e562f07146"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/settings-embed.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d43b17bf2571fc3e1892200d308bf971c6438546b828fc7293446e3e386326"}},{"ruleId":"X5","level":"note","message":{"text":"PHP static analysis does not check null everywhere: This repository commits no PHPStan or Psalm configuration (\u0060phpstan.neon[.dist]\u0060, \u0060phpstan.dist.neon\u0060, \u0060psalm.xml[.dist]\u0060, or one a composer.json script names with \u0060--configuration\u0060), so nothing checks null: a \u0060?Customer\u0060 reaches \u0060-\u003Ename()\u0060 silently and throws \u0060Error: Call to a member function name() on null\u0060 the first time it is null. If the build passes a level on a command line instead, put it in a committed configuration \u2014 this check reads configuration, and configuration is all it can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4ee877508ebc333ebff2765634874753d7fd67f71ea749a6c333792a59b461d7"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This PHP code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/EmailEditor/WooContentProcessor.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c249bfe71891d1695c99b9ed31356f74fb9fc5e73bc527a76405a6ba6314dd0f"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This PHP code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Admin/Features/LaunchYourStore.php"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b3df2806f9e8a6e971f0d5f28d4a7ebdb6957fa1c0224e50caa9b0c8336c72"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/assets/client/admin/remote-logging/index.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"570a545c22213a31deb9f9145b560d5496e9e7f7596b26ead22c608c7aa9f6f8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_migrator_data\u0060 swallows every exception into \u0060return array()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/class-wc-tracker.php"},"region":{"startLine":989}}}],"partialFingerprints":{"codehealthFindingId/v1":"c678d8ac5fbdeadc2e0e432bc3026368fc44a1e788000d2238fc2de57d97c304"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parse_relative_field\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/import/class-wc-product-csv-importer.php"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"903ccae9259dc6f671a9fef4066cc4a3dbbcbbe4973f7414a2ae24bd5448c634"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060wc_orders_count\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/includes/wc-order-functions.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"503658d19fd701b2cbc9a239c5c15e31ff9228010974984cff590b1159868a57"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_settings_ui_script_dependencies\u0060 swallows every exception into \u0060return array()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"wp-content/plugins/woocommerce/src/Internal/Admin/WCAdminAssets.php"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb5a54ed5ca1c403304adfa7cdfc01b474410a670c5e154fd75c42e44f8f7ae"}}],"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-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.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-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.html"},{"id":"CWE-457","guid":"b62874fe-6222-8b5b-8ade-9527ad1cbb4a","name":"CWE-457","shortDescription":{"text":"CWE-457"},"helpUri":"https://cwe.mitre.org/data/definitions/457.html"},{"id":"CWE-470","guid":"cb7c8905-5e4e-8953-beaa-c539c9922a31","name":"Use of Externally-Controlled Input to Select Classes or Code (\u0027Unsafe Reflection\u0027)","shortDescription":{"text":"Use of Externally-Controlled Input to Select Classes or Code (\u0027Unsafe Reflection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/470.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"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":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-918","guid":"2e9b9091-5a0f-dc57-b644-7ad04bd56e64","name":"Server-Side Request Forgery (SSRF)","shortDescription":{"text":"Server-Side Request Forgery (SSRF)"},"helpUri":"https://cwe.mitre.org/data/definitions/918.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]}],"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":150,"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."]}]}