Skip to content

Commit

Permalink
Fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
bradp committed Sep 16, 2024
1 parent 58ffcca commit b8f0bc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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 ) );
Expand Down

0 comments on commit b8f0bc4

Please sign in to comment.