Skip to content

Commit

Permalink
🎨 Apply phpcs styles
Browse files Browse the repository at this point in the history
  • Loading branch information
stracker-phil committed Feb 12, 2025
1 parent 275c28b commit f8d5213
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions modules/ppcp-settings/src/SettingsModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static function () use ( $container ) {

add_action(
'woocommerce_paypal_payments_gateway_migrate_on_update',
static fn () => ! get_option( SwitchSettingsUiEndpoint::OPTION_NAME_SHOULD_USE_OLD_UI )
static fn() => ! get_option( SwitchSettingsUiEndpoint::OPTION_NAME_SHOULD_USE_OLD_UI )
&& update_option( SwitchSettingsUiEndpoint::OPTION_NAME_SHOULD_USE_OLD_UI, 'yes' )
);

Expand Down Expand Up @@ -311,7 +311,7 @@ static function () use ( $container ) : void {

add_filter(
'woocommerce_paypal_payments_payment_methods',
function( array $payment_methods ) use ( $container ) : array {
function ( array $payment_methods ) use ( $container ) : array {
$all_payment_methods = $payment_methods;

$dcc_product_status = $container->get( 'wcgateway.helper.dcc-product-status' );
Expand Down Expand Up @@ -380,7 +380,7 @@ function( array $payment_methods ) use ( $container ) : array {
*
* @psalm-suppress MissingClosureParamType
*/
static function ( $methods ) use ( $container ): array {
static function ( $methods ) use ( $container ) : array {
if ( ! is_array( $methods ) ) {
return $methods;
}
Expand Down Expand Up @@ -408,15 +408,15 @@ static function ( $methods ) use ( $container ): array {

add_filter(
'woocommerce_paypal_payments_gateway_title',
function( string $title, WC_Payment_Gateway $gateway ) {
function ( string $title, WC_Payment_Gateway $gateway ) {
return $gateway->get_option( 'title', $title );
},
10,
2
);
add_filter(
'woocommerce_paypal_payments_gateway_description',
function( string $description, WC_Payment_Gateway $gateway ) {
function ( string $description, WC_Payment_Gateway $gateway ) {
return $gateway->get_option( 'description', $description );
},
10,
Expand All @@ -427,7 +427,7 @@ function( string $description, WC_Payment_Gateway $gateway ) {

add_filter(
'woocommerce_paypal_payments_credit_card_gateway_form_fields',
function( array $form_fields ) {
function ( array $form_fields ) {
$form_fields['enabled'] = array(
'title' => __( 'Enable/Disable', 'woocommerce-paypal-payments' ),
'type' => 'checkbox',
Expand All @@ -444,15 +444,15 @@ function( array $form_fields ) {

add_filter(
'woocommerce_paypal_payments_credit_card_gateway_title',
function( string $title, WC_Payment_Gateway $gateway ) {
function ( string $title, WC_Payment_Gateway $gateway ) {
return $gateway->get_option( 'title', $title );
},
10,
2
);
add_filter(
'woocommerce_paypal_payments_credit_card_gateway_description',
function( string $description, WC_Payment_Gateway $gateway ) {
function ( string $description, WC_Payment_Gateway $gateway ) {
return $gateway->get_option( 'description', $description );
},
10,
Expand All @@ -462,15 +462,15 @@ function( string $description, WC_Payment_Gateway $gateway ) {
add_filter( 'woocommerce_paypal_payments_axo_gateway_should_update_enabled', '__return_false' );
add_filter(
'woocommerce_paypal_payments_axo_gateway_title',
function( string $title, WC_Payment_Gateway $gateway ) {
function ( string $title, WC_Payment_Gateway $gateway ) {
return $gateway->get_option( 'title', $title );
},
10,
2
);
add_filter(
'woocommerce_paypal_payments_axo_gateway_description',
function( string $description, WC_Payment_Gateway $gateway ) {
function ( string $description, WC_Payment_Gateway $gateway ) {
return $gateway->get_option( 'description', $description );
},
10,
Expand Down

0 comments on commit f8d5213

Please sign in to comment.