From 61f81442802358250254ac491d6b11526f575844 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 20 Jan 2022 19:21:04 +0000 Subject: [PATCH] Replace disallowed operators in src/updater/ --- src/updater/UpdateCheckTask.php | 2 +- src/updater/UpdateChecker.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/updater/UpdateCheckTask.php b/src/updater/UpdateCheckTask.php index 6b571b2fe..fb308eec3 100644 --- a/src/updater/UpdateCheckTask.php +++ b/src/updater/UpdateCheckTask.php @@ -53,7 +53,7 @@ class UpdateCheckTask extends AsyncTask{ if($response !== null){ $response = json_decode($response->getBody(), true); if(is_array($response)){ - if(isset($response["error"]) and is_string($response["error"])){ + if(isset($response["error"]) && is_string($response["error"])){ $this->error = $response["error"]; }else{ $mapper = new \JsonMapper(); diff --git a/src/updater/UpdateChecker.php b/src/updater/UpdateChecker.php index 6edced2e0..9c530dedb 100644 --- a/src/updater/UpdateChecker.php +++ b/src/updater/UpdateChecker.php @@ -68,9 +68,9 @@ class UpdateChecker{ $this->showConsoleUpdate(); } }else{ - if(!VersionInfo::IS_DEVELOPMENT_BUILD and $this->getChannel() !== "stable"){ + if(!VersionInfo::IS_DEVELOPMENT_BUILD && $this->getChannel() !== "stable"){ $this->showChannelSuggestionStable(); - }elseif(VersionInfo::IS_DEVELOPMENT_BUILD and $this->getChannel() === "stable"){ + }elseif(VersionInfo::IS_DEVELOPMENT_BUILD && $this->getChannel() === "stable"){ $this->showChannelSuggestionBeta(); } }