diff --git a/system/libs/pot/OTS_ServerInfo.php b/system/libs/pot/OTS_ServerInfo.php index 4a1a932a..652e000b 100644 --- a/system/libs/pot/OTS_ServerInfo.php +++ b/system/libs/pot/OTS_ServerInfo.php @@ -14,7 +14,7 @@ /** * Various server status querying methods. - * + * * @package POT * @property-read OTS_InfoRespond|bool $status status() method wrapper. * @property-read OTS_ServerStatus|bool $info Full info() method wrapper. @@ -23,21 +23,21 @@ class OTS_ServerInfo { /** * Server address. - * + * * @var string */ private $server; /** * Connection port. - * + * * @var int */ private $port; /** * Creates handler for new server. - * + * * @param string $server Server IP/domain. * @param int $port OTServ port. */ @@ -49,7 +49,7 @@ class OTS_ServerInfo /** * Sends packet to server. - * + * * @param OTS_Buffer|string $packet Buffer to send. * @return OTS_Buffer|null Respond buffer (null if server is offline). * @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream. @@ -75,7 +75,7 @@ class OTS_ServerInfo // reads respond //$data = stream_get_contents($socket); - $data = ''; + $data = ''; while (!feof($socket)) $data .= fgets($socket, 1024); @@ -97,11 +97,11 @@ class OTS_ServerInfo /** * Queries server status. - * + * *

* Sends 'info' packet to OTS server and return output. Returns {@link OTS_InfoRespond OTS_InfoRespond} (wrapper for XML data) with results or false if server is online. *

- * + * * @return OTS_InfoRespond|bool Respond content document (false when server is offline). * @throws DOMException On DOM operation error. * @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream. @@ -135,11 +135,11 @@ class OTS_ServerInfo /** * Queries server information. - * + * *

* This method uses binary info protocol. It provides more infromation then {@link OTS_Toolbox::serverStatus() XML way}. *

- * + * * @param int $flags Requested info flags. * @return OTS_ServerStatus|bool Respond content document (false when server is offline). * @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream. @@ -169,11 +169,11 @@ class OTS_ServerInfo /** * Checks player online status. - * + * *

* This method uses binary info protocol. *

- * + * * @param string $name Player name. * @return bool True if player is online, false if player or server is online. * @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream. @@ -204,7 +204,7 @@ class OTS_ServerInfo /** * Magic PHP5 method. - * + * * @param string $name Property name. * @param mixed $value Property value. * @throws OutOfBoundsException For non-supported properties.