diff --git a/bootstrap.php b/bootstrap.php index a1f527a01..8d9cbef15 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -20,8 +20,10 @@ return function ( ): ContainerInterface { $modules = ( require "$root_dir/modules.php" )( $root_dir ); - // Use this filter to add custom module or remove some of existing ones. - // Modules able to access container, add services and modify existing ones. + /** + * Use this filter to add custom module or remove some of existing ones. + * Modules able to access container, add services and modify existing ones. + */ $modules = apply_filters( 'woocommerce_paypal_payments_modules', $modules ); $providers = array_map( diff --git a/modules/ppcp-button/src/Assets/SmartButton.php b/modules/ppcp-button/src/Assets/SmartButton.php index f15b8c800..95d818741 100644 --- a/modules/ppcp-button/src/Assets/SmartButton.php +++ b/modules/ppcp-button/src/Assets/SmartButton.php @@ -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( '