summaryrefslogtreecommitdiff
path: root/Postman/PostmanUtils.php
diff options
context:
space:
mode:
authorNiels de Blaauw <niels@level-level.com>2019-03-13 11:44:08 +0100
committerNiels de Blaauw <niels@level-level.com>2019-03-13 11:44:08 +0100
commitd76cdbed13cd8772bed40d327b2894715f966c7b (patch)
treece0ca8316351a860c472026d5049bce871ef74b1 /Postman/PostmanUtils.php
parent42e5e0a2f5af7bbe8a1bdb12ed079e7c62069bb7 (diff)
downloadPost-SMTP-d76cdbed13cd8772bed40d327b2894715f966c7b.zip
Fixes #33, fixes a couple of return type issues
Diffstat (limited to 'Postman/PostmanUtils.php')
-rw-r--r--Postman/PostmanUtils.php10
1 files changed, 5 insertions, 5 deletions
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 <string, unknown>
+ * @return string|mixed
*/
static function postmanGetServerName() {
if ( ! empty( $_SERVER ['SERVER_NAME'] ) ) {