From b8f0bc40587bb341a57d78b7960d10be2cd51d6c Mon Sep 17 00:00:00 2001 From: Brad Parbs Date: Mon, 16 Sep 2024 10:08:12 -0500 Subject: [PATCH] Fix phpcs --- includes/Data.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Data.php b/includes/Data.php index 2fd8c6f..0309424 100644 --- a/includes/Data.php +++ b/includes/Data.php @@ -37,7 +37,7 @@ class Data { * @param Container $container The module container. */ public function __construct( $container ) { - self::$instance = $this; + self::$instance = $this; $this->container = $container; } @@ -146,7 +146,7 @@ public function delete_token_on_401_response( array $response, array $args, stri * * @hooked rest_authentication_errors * - * @param bool|null|\WP_Error $errors + * @param bool|null|\WP_Error $errors The authentication error object. * * @return bool|null|\WP_Error * @see WP_REST_Server::check_authentication() @@ -187,7 +187,7 @@ public function authenticate( $errors ) { // Allow access if token is valid if ( $is_valid ) { - if ( isset( $_GET['user_id'] ) ) { + if ( isset( $_GET['user_id'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended // If a user ID is provided, use it to find the desired user. $user = get_user_by( 'id', filter_input( INPUT_GET, 'user_id', FILTER_SANITIZE_NUMBER_INT ) );