fix phpcs

This commit is contained in:
Matthias Pfefferle 2023-04-27 14:49:39 +02:00
parent 02e3488fd7
commit fb3d6d2634

View file

@ -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' ) );
} }