From d76cdbed13cd8772bed40d327b2894715f966c7b Mon Sep 17 00:00:00 2001 From: Niels de Blaauw Date: Wed, 13 Mar 2019 11:44:08 +0100 Subject: Fixes #33, fixes a couple of return type issues --- Postman/PostmanUtils.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Postman/PostmanUtils.php') diff --git a/Postman/PostmanUtils.php b/Postman/PostmanUtils.php index 226e6a9..5b42270 100644 --- a/Postman/PostmanUtils.php +++ b/Postman/PostmanUtils.php @@ -100,7 +100,7 @@ class PostmanUtils { * Detect if the host is NOT a domain name * * @param mixed $ipAddress - * @return number + * @return bool */ public static function isHostAddressNotADomainName( $host ) { // IPv4 / IPv6 test from http://stackoverflow.com/a/17871737/4368109 @@ -117,7 +117,7 @@ class PostmanUtils { * * @param mixed $url * @param mixed $args - * @return the HTML body + * @return string the HTML body */ static function remotePostGetBodyOnly( $url, $parameters, array $headers = array() ) { $response = PostmanUtils::remotePost( $url, $parameters, $headers ); @@ -132,7 +132,7 @@ class PostmanUtils { * * @param mixed $url * @param mixed $args - * @return the HTTP response + * @return array|WP_Error the HTTP response */ static function remotePost( $url, $parameters = array(), array $headers = array() ) { $args = array( @@ -325,7 +325,7 @@ class PostmanUtils { * Validate an e-mail address * * @param mixed $email - * @return number + * @return string|bool */ static function validateEmail( $email ) { if ( PostmanOptions::getInstance()->isEmailValidationDisabled() ) { @@ -364,7 +364,7 @@ class PostmanUtils { /** * - * @return Ambigous + * @return string|mixed */ static function postmanGetServerName() { if ( ! empty( $_SERVER ['SERVER_NAME'] ) ) { -- cgit v1.2.3