From aa43a1ea3643adad418f03309e888c0c119151f4 Mon Sep 17 00:00:00 2001 From: Phil Young Date: Tue, 22 Jun 2021 11:16:25 +0100 Subject: [PATCH] Move To Shorthand False Checks This seems to be the preferred way to do them --- src/Endpoints/CustomHostnames.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Endpoints/CustomHostnames.php b/src/Endpoints/CustomHostnames.php index 507d41d..f1027fc 100644 --- a/src/Endpoints/CustomHostnames.php +++ b/src/Endpoints/CustomHostnames.php @@ -157,19 +157,19 @@ class CustomHostnames implements API $query['settings'] = $sslSettings; } - if (is_null($wildcard) === false) { + if (!is_null($wildcard)) { $query['wildcard'] = $wildcard; } - if (empty($bundleMethod) === false) { + if (!empty($bundleMethod)) { $query['bundle_method'] = $bundleMethod; } - if (empty($customSsl['key']) === false) { + if (!empty($customSsl['key'])) { $query['custom_key'] = $customSsl['key']; } - if (empty($customSsl['certificate']) === false) { + if (!empty($customSsl['certificate'])) { $query['custom_certificate'] = $customSsl['certificate']; }