mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Fix phpcs
This commit is contained in:
parent
1294b331ac
commit
32aaad4d32
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ trait AdminContextTrait {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private function is_paypal_order_edit_page(): bool {
|
private function is_paypal_order_edit_page(): bool {
|
||||||
$post_id = wc_clean( wp_unslash( $_GET['id'] ?? $_GET['post'] ?? '' ) );
|
$post_id = wc_clean( wp_unslash( $_GET['id'] ?? $_GET['post'] ?? '' ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
|
||||||
if ( ! $post_id ) {
|
if ( ! $post_id ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,7 +161,7 @@ class OXXO {
|
||||||
* @psalm-suppress UndefinedClass
|
* @psalm-suppress UndefinedClass
|
||||||
* @psalm-suppress UndefinedFunction
|
* @psalm-suppress UndefinedFunction
|
||||||
*/
|
*/
|
||||||
$screen = class_exists(CustomOrdersTableController::class) && wc_get_container()->get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled()
|
$screen = class_exists( CustomOrdersTableController::class ) && wc_get_container()->get( CustomOrdersTableController::class )->custom_orders_table_usage_is_enabled()
|
||||||
? wc_get_page_screen_id( 'shop-order' )
|
? wc_get_page_screen_id( 'shop-order' )
|
||||||
: 'shop_order';
|
: 'shop_order';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue