fix phpcs
This commit is contained in:
parent
02e3488fd7
commit
fb3d6d2634
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ class Http {
|
||||||
$response = \wp_safe_remote_get( $url, $args );
|
$response = \wp_safe_remote_get( $url, $args );
|
||||||
$code = \wp_remote_retrieve_response_code( $response );
|
$code = \wp_remote_retrieve_response_code( $response );
|
||||||
|
|
||||||
if ( 400 >= $code && 500 <= $code ) {
|
if ( 400 >= $code && 500 <= $code ) {
|
||||||
$response = new WP_Error( $code, __( 'Failed HTTP Request', 'activitypub' ) );
|
$response = new WP_Error( $code, __( 'Failed HTTP Request', 'activitypub' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ class Http {
|
||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send a GET Request with the needed HTTP Headers
|
* Send a GET Request with the needed HTTP Headers
|
||||||
*
|
*
|
||||||
* @param string $url The URL endpoint
|
* @param string $url The URL endpoint
|
||||||
|
@ -82,7 +82,7 @@ class Http {
|
||||||
$response = \wp_safe_remote_get( $url, $args );
|
$response = \wp_safe_remote_get( $url, $args );
|
||||||
$code = \wp_remote_retrieve_response_code( $response );
|
$code = \wp_remote_retrieve_response_code( $response );
|
||||||
|
|
||||||
if ( 400 >= $code && 500 <= $code ) {
|
if ( 400 >= $code && 500 <= $code ) {
|
||||||
$response = new WP_Error( $code, __( 'Failed HTTP Request', 'activitypub' ) );
|
$response = new WP_Error( $code, __( 'Failed HTTP Request', 'activitypub' ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue