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(); } }