Refactor ApplePay notices

Refactor AppleProductStatus
This commit is contained in:
Pedro Silva 2023-10-19 11:32:12 +01:00
parent 5d406ea612
commit 20f64d63ed
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
8 changed files with 438 additions and 155 deletions

View file

@ -45,7 +45,6 @@ class GooglepayModule implements ModuleInterface {
function( Settings $settings = null ) use ( $c ): void {
$apm_status = $c->get( 'googlepay.helpers.apm-product-status' );
assert( $apm_status instanceof ApmProductStatus );
$apm_status->clear( $settings );
}
);

View file

@ -107,7 +107,6 @@ class AvailabilityNotice {
* @psalm-suppress MissingClosureParamType
*/
static function ( $notices ): array {
$message = sprintf(
// translators: %1$s and %2$s are the opening and closing of HTML <a> tag.
__(
@ -142,7 +141,6 @@ class AvailabilityNotice {
* @psalm-suppress MissingClosureParamType
*/
static function ( $notices ): array {
$message = sprintf(
__(
'Google Pay is not available on your PayPal seller account.',