mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Fix phpcs
I guess the @since comments are not very critical for our hooks, and anyway it should not be an error, finding the first version for every hook would take lots of time now. not sure if there is a better way to suppress it in phpcs
This commit is contained in:
parent
770f8e558b
commit
c59683b5ea
3 changed files with 13 additions and 3 deletions
|
@ -680,8 +680,12 @@ class SmartButton implements SmartButtonInterface {
|
|||
return;
|
||||
}
|
||||
|
||||
// phpcs:ignore WordPress.WP.I18n.TextDomainMismatch
|
||||
/**
|
||||
* The WC filter returning the WC order button text.
|
||||
* phpcs:disable WordPress.WP.I18n.TextDomainMismatch
|
||||
*/
|
||||
$label = 'checkout' === $this->context() ? apply_filters( 'woocommerce_order_button_text', __( 'Place order', 'woocommerce' ) ) : __( 'Pay for order', 'woocommerce' );
|
||||
// phpcs:enable WordPress.WP.I18n.TextDomainMismatch
|
||||
|
||||
printf(
|
||||
'<div id="%1$s" style="display:none;">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue