Multi-Currency: Fix unused parameter phpcs sniffs #8655
Labels
focus: multi-currency
priority: low
The issue/PR is low priority—not many people are affected or there’s a workaround, etc.
type: technical debt
This issue/PR represents/solves the technical debt of the project.
Part of #8436.
Description
Remove the
VariableAnalysis.CodeAnalysis.VariableAnalysis
exclude fromphpcs.xml.dist
and fix the issues reported when runningnpm run lint:php
in the following files:includes/multi-currency/FrontendCurrencies.php
includes/multi-currency/Analytics.php
includes/multi-currency/Compatibility/WooCommerceProductAddOns.php
includes/multi-currency/MultiCurrency.php
includes/multi-currency/Compatibility/WooCommerceSubscriptions.php
includes/multi-currency/Settings.php
includes/multi-currency/SettingsOnboardCta.php
includes/multi-currency/Compatibility/WooCommerceNameYourPrice.php
Suggested fixes:
$_unused_
to the variable name. For example$order
→$_unused_order
.$_unused_
var name prefixes in child classes with Psalm static analysis #8956 is fixed.// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
.The text was updated successfully, but these errors were encountered: