PHPCS fixes

This commit is contained in:
Rodrigo Primo 2019-12-04 15:52:20 -03:00
parent fdd391e10e
commit 4af9a94129
3 changed files with 17 additions and 2 deletions

View File

@ -456,7 +456,9 @@ abstract class WC_Payment_Gateway extends WC_Settings_API {
);
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_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' )
);
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
}
/**

View File

@ -1,4 +1,13 @@
<?php
/**
* Class WC_Mock_Payment_Gateway
*
* @package WooCommerce\Tests\Framework
*/
/**
* Class WC_Mock_Payment_Gateway
*/
class WC_Mock_Payment_Gateway extends WC_Payment_Gateway {
/**
* Constructor for the gateway.

View File

@ -4,6 +4,10 @@
*
* @package WooCommerce\Tests\Gateways
*/
/**
* Unit tests for gateways.
*/
class WC_Tests_Gateways extends WC_Unit_Test_Case {
/**