Fix phpcs

This commit is contained in:
Emili Castells Guasch 2023-08-14 14:30:57 +02:00
parent 1294b331ac
commit 32aaad4d32
2 changed files with 2 additions and 2 deletions

View file

@ -20,7 +20,7 @@ trait AdminContextTrait {
* @return 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 ) {
return false;
}

View file

@ -161,7 +161,7 @@ class OXXO {
* @psalm-suppress UndefinedClass
* @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' )
: 'shop_order';