Skip to content

Commit

Permalink
fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Sep 1, 2023
1 parent 152bcee commit feef0c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/class-oauth-response.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function to_log() {
}
}

//phpcs:ignore
function get_oauth_error( $obj ) {
if ( is_array( $obj ) ) {
// When checking the result of wp_remote_post
Expand All @@ -69,11 +70,12 @@ function get_oauth_error( $obj ) {
return false;
}

//phpcs:ignore
function is_oauth_error( $obj ) {
return ( $obj instanceof WP_OAuth_Response );
}


//phpcs:ignore
function wp_error_to_oauth_response( $error ) {
if ( is_wp_error( $error ) ) {
$data = $error->get_error_data();
Expand Down

0 comments on commit feef0c5

Please sign in to comment.