From c633fdb9e1541386a713a6de12d2ee2ae4239640 Mon Sep 17 00:00:00 2001
From: peptiderepo <273788462+peptiderepo@users.noreply.github.com>
Date: Sat, 13 Jun 2026 10:07:04 +0000
Subject: [PATCH] PHPCS: add IncorrectWarning to ignore list + clean
phpcs.xml.dist
---
includes/core/class-prv-admin-page.php | 2 +-
phpcs.xml.dist | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/includes/core/class-prv-admin-page.php b/includes/core/class-prv-admin-page.php
index ed47d78..b155c70 100644
--- a/includes/core/class-prv-admin-page.php
+++ b/includes/core/class-prv-admin-page.php
@@ -189,7 +189,7 @@ class PRV_Admin_Page {
if ( empty( $_GET['prv_run_done'] ) ) {
return;
}
- $probed = isset( $_GET['prv_probed'] ) ? absint( wp_unslash( $_GET['prv_probed'] ) ) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, Generic.Formatting.MultipleStatementAlignment.NotSameWarning
+ $probed = isset( $_GET['prv_probed'] ) ? absint( wp_unslash( $_GET['prv_probed'] ) ) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, Generic.Formatting.MultipleStatementAlignment.NotSameWarning, Generic.Formatting.MultipleStatementAlignment.IncorrectWarning
// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.ValidatedSanitizedInput.MissingUnslash
$skipped = isset( $_GET['prv_skipped'] ) ? absint( wp_unslash( $_GET['prv_skipped'] ) ) : 0;
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 3e713d9..c5d73f7 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -9,8 +9,6 @@
/tests/*
-
-