mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix phpcs errors
This commit is contained in:
parent
db4e1422d8
commit
362b782387
2 changed files with 1 additions and 2 deletions
|
@ -122,7 +122,7 @@ class SettingsPageAssets {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} catch ( RuntimeException $exception ) {
|
} catch ( RuntimeException $exception ) {
|
||||||
// Already displaying an admin message in SettingsListener.
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,7 +160,6 @@ class SettingsListener {
|
||||||
'admin_notices',
|
'admin_notices',
|
||||||
function () use ( $exception ) {
|
function () use ( $exception ) {
|
||||||
printf(
|
printf(
|
||||||
// translators: %s is the error message.
|
|
||||||
'<div class="notice notice-error"><p>%s</p></div>',
|
'<div class="notice notice-error"><p>%s</p></div>',
|
||||||
$exception->getMessage()
|
$exception->getMessage()
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue