Move To Shorthand False Checks

This seems to be the preferred way to do them
This commit is contained in:
Phil Young
2021-06-22 11:16:25 +01:00
parent 63b11374f2
commit aa43a1ea36

View File

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