mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Fix the coding styles
This commit is contained in:
parent
a803467b96
commit
8514f3a49c
2 changed files with 25 additions and 25 deletions
|
@ -232,7 +232,7 @@ return array(
|
|||
/**
|
||||
* The list of Fastlane incompatible plugins.
|
||||
*
|
||||
* @returns array<array{name: string, isActive: bool}>
|
||||
* @returns array<array{name: string, is_active: bool}>
|
||||
*/
|
||||
'axo.fastlane-incompatible-plugins' => static function () : array {
|
||||
/**
|
||||
|
@ -243,47 +243,47 @@ return array(
|
|||
array(
|
||||
array(
|
||||
'name' => 'Elementor',
|
||||
'isActive' => did_action( 'elementor/loaded' ),
|
||||
'is_active' => did_action( 'elementor/loaded' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'CheckoutWC',
|
||||
'isActive' => defined( 'CFW_NAME' ),
|
||||
'is_active' => defined( 'CFW_NAME' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'Direct Checkout for WooCommerce',
|
||||
'isActive' => defined( 'QLWCDC_PLUGIN_NAME' ),
|
||||
'is_active' => defined( 'QLWCDC_PLUGIN_NAME' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'Multi-Step Checkout for WooCommerce',
|
||||
'isActive' => class_exists( 'WPMultiStepCheckout' ),
|
||||
'is_active' => class_exists( 'WPMultiStepCheckout' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'Fluid Checkout for WooCommerce',
|
||||
'isActive' => class_exists( 'FluidCheckout' ),
|
||||
'is_active' => class_exists( 'FluidCheckout' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'MultiStep Checkout for WooCommerce',
|
||||
'isActive' => class_exists( 'THWMSCF_Multistep_Checkout' ),
|
||||
'is_active' => class_exists( 'THWMSCF_Multistep_Checkout' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'WooCommerce Subscriptions',
|
||||
'isActive' => class_exists( 'WC_Subscriptions' ),
|
||||
'is_active' => class_exists( 'WC_Subscriptions' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'CartFlows',
|
||||
'isActive' => class_exists( 'Cartflows_Loader' ),
|
||||
'is_active' => class_exists( 'Cartflows_Loader' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'FunnelKit Funnel Builder',
|
||||
'isActive' => class_exists( 'WFFN_Core' ),
|
||||
'is_active' => class_exists( 'WFFN_Core' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'WooCommerce One Page Checkout',
|
||||
'isActive' => class_exists( 'PP_One_Page_Checkout' ),
|
||||
'is_active' => class_exists( 'PP_One_Page_Checkout' ),
|
||||
),
|
||||
array(
|
||||
'name' => 'All Products for Woo Subscriptions',
|
||||
'isActive' => class_exists( 'WCS_ATT' ),
|
||||
'is_active' => class_exists( 'WCS_ATT' ),
|
||||
),
|
||||
)
|
||||
);
|
||||
|
@ -295,7 +295,7 @@ return array(
|
|||
$active_plugins_list = array_filter(
|
||||
$incompatible_plugins,
|
||||
function( array $plugin ): bool {
|
||||
return (bool) $plugin['isActive'];
|
||||
return (bool) $plugin['is_active'];
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ class SettingsNoticeGenerator {
|
|||
public function generate_shipping_notice(): string {
|
||||
$shipping_settings_link = admin_url( 'admin.php?page=wc-settings&tab=shipping§ion=options' );
|
||||
|
||||
$notice_content = 'asd';
|
||||
$notice_content = '';
|
||||
|
||||
if ( wc_shipping_enabled() && wc_ship_to_billing_address_only() ) {
|
||||
$notice_content = sprintf(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue