From a2ca57a36aaccd6023dedad999bb20092fbec950 Mon Sep 17 00:00:00 2001 From: xqwtxon Date: Fri, 24 Feb 2023 15:07:31 +0800 Subject: [PATCH] Release 0.0.7-BETA --- plugin.yml | 2 +- src/Tasks/UpdateTask.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/plugin.yml b/plugin.yml index 30b8a22..cb55132 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,6 +1,6 @@ --- name: ProfanityFilter -version: 0.0.6-BETA +version: 0.0.7-BETA main: ReinfyTeam\ProfanityFilter\Loader api: 4.0.0 src-namespace-prefix: ReinfyTeam\ProfanityFilter diff --git a/src/Tasks/UpdateTask.php b/src/Tasks/UpdateTask.php index 8b3c706..6ec0f1b 100644 --- a/src/Tasks/UpdateTask.php +++ b/src/Tasks/UpdateTask.php @@ -46,7 +46,9 @@ public function onRun() : void { $api = ""; if ($json !== null) { $releases = json_decode($json->getBody(), true); - if($releases === null) return; // Issue Fix: https://github.com/ReinfyTeam/ProfanityFilter/issues/107 + if ($releases === null) { + return; + } // Issue Fix: https://github.com/ReinfyTeam/ProfanityFilter/issues/107 foreach ($releases as $release) { if (version_compare($highestVersion, $release["version"], ">=")) { continue; @@ -63,7 +65,9 @@ public function onRun() : void { public function onCompletion() : void { $lang = new Language(); [$highestVersion, $artifactUrl, $api, $err] = $this->getResult(); - if($highestVersion === null || $artifactUrl === null || $api === null) return; // Issue: https://github.com/ReinfyTeam/ProfanityFilter/issues/107 + if ($highestVersion === null || $artifactUrl === null || $api === null) { + return; + } // Issue: https://github.com/ReinfyTeam/ProfanityFilter/issues/107 $plugin = Server::getInstance()->getPluginManager()->getPlugin($this->pluginName); if ($plugin === null) { return;