PHPCS fixes
This commit is contained in:
parent
fdd391e10e
commit
4af9a94129
|
@ -456,7 +456,9 @@ abstract class WC_Payment_Gateway extends WC_Settings_API {
|
||||||
);
|
);
|
||||||
|
|
||||||
wp_localize_script(
|
wp_localize_script(
|
||||||
'woocommerce-tokenization-form', 'wc_tokenization_form_params', array(
|
'woocommerce-tokenization-form',
|
||||||
|
'wc_tokenization_form_params',
|
||||||
|
array(
|
||||||
'is_registration_required' => WC()->checkout()->is_registration_required(),
|
'is_registration_required' => WC()->checkout()->is_registration_required(),
|
||||||
'is_logged_in' => is_user_logged_in(),
|
'is_logged_in' => is_user_logged_in(),
|
||||||
)
|
)
|
||||||
|
@ -538,7 +540,7 @@ abstract class WC_Payment_Gateway extends WC_Settings_API {
|
||||||
esc_html__( 'Save to account', 'woocommerce' )
|
esc_html__( 'Save to account', 'woocommerce' )
|
||||||
);
|
);
|
||||||
|
|
||||||
echo apply_filters( 'woocommerce_payment_gateway_save_new_payment_method_option_html', $html, $this );
|
echo apply_filters( 'woocommerce_payment_gateway_save_new_payment_method_option_html', $html, $this ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Class WC_Mock_Payment_Gateway
|
||||||
|
*
|
||||||
|
* @package WooCommerce\Tests\Framework
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class WC_Mock_Payment_Gateway
|
||||||
|
*/
|
||||||
class WC_Mock_Payment_Gateway extends WC_Payment_Gateway {
|
class WC_Mock_Payment_Gateway extends WC_Payment_Gateway {
|
||||||
/**
|
/**
|
||||||
* Constructor for the gateway.
|
* Constructor for the gateway.
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
*
|
*
|
||||||
* @package WooCommerce\Tests\Gateways
|
* @package WooCommerce\Tests\Gateways
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unit tests for gateways.
|
||||||
|
*/
|
||||||
class WC_Tests_Gateways extends WC_Unit_Test_Case {
|
class WC_Tests_Gateways extends WC_Unit_Test_Case {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue