mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
🎨 Fix code style issues & add comment
This commit is contained in:
parent
c7e5395e12
commit
a923045eff
2 changed files with 9 additions and 4 deletions
|
@ -15,6 +15,8 @@ use WooCommerce\PayPalCommerce\Button\Endpoint\RequestData;
|
|||
|
||||
/**
|
||||
* Class SwitchSettingsUiEndpoint
|
||||
*
|
||||
* Note: This is an ajax handler, not a REST endpoint
|
||||
*/
|
||||
class SwitchSettingsUiEndpoint {
|
||||
|
||||
|
|
|
@ -88,10 +88,13 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
|||
$endpoint = $container->get( 'settings.switch-ui.endpoint' );
|
||||
assert( $endpoint instanceof SwitchSettingsUiEndpoint );
|
||||
|
||||
add_action( 'wc_ajax_' . SwitchSettingsUiEndpoint::ENDPOINT, array(
|
||||
$endpoint,
|
||||
'handle_request',
|
||||
) );
|
||||
add_action(
|
||||
'wc_ajax_' . SwitchSettingsUiEndpoint::ENDPOINT,
|
||||
array(
|
||||
$endpoint,
|
||||
'handle_request',
|
||||
)
|
||||
);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue