mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-08 21:52:55 +08:00
Fix the cs
This commit is contained in:
parent
df9a0befaa
commit
ae27563274
3 changed files with 9 additions and 9 deletions
|
@ -29,7 +29,7 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
|||
public static function should_use_the_old_ui(): bool {
|
||||
return apply_filters(
|
||||
'woocommerce_paypal_payments_should_use_the_old_ui',
|
||||
( bool ) get_option(SwitchSettingsUiEndpoint::OPTION_NAME_SHOULD_USE_OLD_UI) === true
|
||||
(bool) get_option( SwitchSettingsUiEndpoint::OPTION_NAME_SHOULD_USE_OLD_UI ) === true
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
|||
add_action(
|
||||
'admin_enqueue_scripts',
|
||||
static function () use ( $container ) {
|
||||
$module_url = $container->get('settings.url');
|
||||
$module_url = $container->get( 'settings.url' );
|
||||
$script_asset_file = require dirname( realpath( __FILE__ ) ?: '', 2 ) . '/assets/switchSettingsUi.asset.php';
|
||||
|
||||
wp_register_script(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue