mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
phpdoc armageddon for master, pass 1
This commit is contained in:
@ -49,10 +49,6 @@ class AutoUpdater{
|
||||
/** @var \Logger */
|
||||
private $logger;
|
||||
|
||||
/**
|
||||
* @param Server $server
|
||||
* @param string $endpoint
|
||||
*/
|
||||
public function __construct(Server $server, string $endpoint){
|
||||
$this->server = $server;
|
||||
$this->logger = new \PrefixedLogger($server->getLogger(), "Auto Updater");
|
||||
@ -69,8 +65,6 @@ class AutoUpdater{
|
||||
|
||||
/**
|
||||
* Callback used at the end of the update checking task
|
||||
*
|
||||
* @param array $updateInfo
|
||||
*/
|
||||
public function checkUpdateCallback(array $updateInfo) : void{
|
||||
$this->updateInfo = $updateInfo;
|
||||
@ -91,8 +85,6 @@ class AutoUpdater{
|
||||
|
||||
/**
|
||||
* Returns whether there is an update available.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function hasUpdate() : bool{
|
||||
return $this->newVersion !== null;
|
||||
@ -115,8 +107,6 @@ class AutoUpdater{
|
||||
|
||||
/**
|
||||
* Shows a warning to a player to tell them there is an update available
|
||||
*
|
||||
* @param Player $player
|
||||
*/
|
||||
public function showPlayerUpdate(Player $player) : void{
|
||||
$player->sendMessage(TextFormat::DARK_PURPLE . "The version of " . $this->server->getName() . " that this server is running is out of date. Please consider updating to the latest version.");
|
||||
@ -148,8 +138,6 @@ class AutoUpdater{
|
||||
|
||||
/**
|
||||
* Returns the last retrieved update data.
|
||||
*
|
||||
* @return array|null
|
||||
*/
|
||||
public function getUpdateInfo() : ?array{
|
||||
return $this->updateInfo;
|
||||
@ -185,8 +173,6 @@ class AutoUpdater{
|
||||
|
||||
/**
|
||||
* Returns the channel used for update checking (stable, beta, dev)
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getChannel() : string{
|
||||
$channel = strtolower($this->server->getProperty("auto-updater.preferred-channel", "stable"));
|
||||
@ -199,8 +185,6 @@ class AutoUpdater{
|
||||
|
||||
/**
|
||||
* Returns the host used for update checks.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getEndpoint() : string{
|
||||
return $this->endpoint;
|
||||
|
Reference in New Issue
Block a user