Skip to content

Commit

Permalink
Fix bad plugin name result...
Browse files Browse the repository at this point in the history
  • Loading branch information
Laith98Dev committed Mar 5, 2023
1 parent f1ae7bf commit 757541c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Laith98Dev/PluginManager/tasks/GetPluginDataTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ public function onCompletion(): void

if($results == "[]"){
($this->callback)(self::FAILED, [], "Plugin Not Found!");
} elseif($results === null){
($this->callback)(self::FAILED, [], "An error occured while accessing the Poggit API!");
} elseif(is_array(($data = json_decode($results, true)))) {
($this->callback)(self::SUCCESS, $data);
} else {
($this->callback)(self::SUCCESS, json_decode($results, true));
($this->callback)(self::FAILED, [], "An error occured while accessing the Poggit API!");
}
}
}

1 comment on commit 757541c

@jasonw4331
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some problems with the plugin submission form for "PluginManager" (v1.0.1 submitted on 2023-03-05T01:32:47.000Z):

D4 — Beautiful description:

Format your description properly. The description formatting documentation helps formatting according to Poggit's special mechanisms like pagination.

Your release has been reset to draft. Please edit the release to resolve these problems, then click "Submit" on the edit page to have the plugin reviewed again.

This comment is posted here because this is the last commit when the released build was created.

Please sign in to comment.