mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Fix lint
This commit is contained in:
parent
82c143c5b6
commit
59219009c3
2 changed files with 9 additions and 6 deletions
|
@ -121,11 +121,14 @@ class UpdateSignupLinksEndpoint implements EndpointInterface {
|
|||
$data = $this->request_data->read_request( $this->nonce() );
|
||||
|
||||
foreach ( $data['settings'] ?? array() as $field => $value ) {
|
||||
$option = apply_filters( 'ppcp_partner_referrals_option', array(
|
||||
'field' => $field,
|
||||
'value' => $value,
|
||||
'valid' => false,
|
||||
) );
|
||||
$option = apply_filters(
|
||||
'ppcp_partner_referrals_option',
|
||||
array(
|
||||
'field' => $field,
|
||||
'value' => $value,
|
||||
'valid' => false,
|
||||
)
|
||||
);
|
||||
|
||||
if ( $option['valid'] ) {
|
||||
$this->settings->set( $field, $value );
|
||||
|
|
|
@ -200,7 +200,7 @@ return array(
|
|||
return $ppcp_tab ? $ppcp_tab : $section;
|
||||
},
|
||||
|
||||
'wcgateway.settings' => SingletonDecorator::make(
|
||||
'wcgateway.settings' => SingletonDecorator::make(
|
||||
static function ( ContainerInterface $container ): Settings {
|
||||
$default_button_locations = $container->get( 'wcgateway.button.default-locations' );
|
||||
return new Settings( $default_button_locations );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue