PHPCS fixes.

This commit is contained in:
Vedanshu Jain 2024-09-11 17:05:00 +05:30
parent de20835892
commit 919339dc0d
1 changed files with 18 additions and 13 deletions

View File

@ -20,21 +20,26 @@ class WC_Autoloader {
*/
private $include_path = '';
/**
* Known class names and their file paths for autoloading.
*
* @var array
*/
private static array $known_classes_paths = array(
'WC_Product_Usage' => WC_ABSPATH . 'includes/product-usage/class-wc-product-usage.php',
'WC_Product_Usage_Rule_Set' => WC_ABSPATH . 'includes/product-usage/class-wc-product-usage-rule-set.php',
'WC_WCCOM_Site' => WC_ABSPATH . 'includes/wccom-site/class-wc-wccom-site.php',
'WC_Helper' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper.php',
'WC_Helper_Options' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-options.php',
'WC_Helper_API' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-api.php',
'WC_Product_Usage' => WC_ABSPATH . 'includes/product-usage/class-wc-product-usage.php',
'WC_Product_Usage_Rule_Set' => WC_ABSPATH . 'includes/product-usage/class-wc-product-usage-rule-set.php',
'WC_WCCOM_Site' => WC_ABSPATH . 'includes/wccom-site/class-wc-wccom-site.php',
'WC_Helper' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper.php',
'WC_Helper_Options' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-options.php',
'WC_Helper_API' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-api.php',
'WC_Woo_Update_Manager_Plugin' => WC_ABSPATH . 'includes/admin/helper/class-wc-woo-update-manager-plugin.php',
'WC_Helper_Updater' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-updater.php',
'WC_Plugin_Api_Updater' => WC_ABSPATH . 'includes/admin/helper/class-wc-plugin-api-updater.php',
'WC_Helper_Compat' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-compat.php',
'WC_WCCOM_Site_Installer' => WC_ABSPATH . 'includes/wccom-site/class-wc-wccom-site-installer.php',
'WC_Helper_Subscriptions_API' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-subscriptions-api.php',
'WC_Helper_Orders_API' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-orders-api.php',
'WC_Product_Usage_Notice' => WC_ABSPATH . 'includes/admin/helper/class-wc-product-usage-notice.php',
'WC_Helper_Updater' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-updater.php',
'WC_Plugin_Api_Updater' => WC_ABSPATH . 'includes/admin/helper/class-wc-plugin-api-updater.php',
'WC_Helper_Compat' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-compat.php',
'WC_WCCOM_Site_Installer' => WC_ABSPATH . 'includes/wccom-site/class-wc-wccom-site-installer.php',
'WC_Helper_Subscriptions_API' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-subscriptions-api.php',
'WC_Helper_Orders_API' => WC_ABSPATH . 'includes/admin/helper/class-wc-helper-orders-api.php',
'WC_Product_Usage_Notice' => WC_ABSPATH . 'includes/admin/helper/class-wc-product-usage-notice.php',
);
/**