Remove whitespaces

This commit is contained in:
slawkens 2023-07-20 18:13:06 +02:00
parent a8a2c72381
commit ac3a6c36d5

View File

@ -14,7 +14,7 @@
/** /**
* Various server status querying methods. * Various server status querying methods.
* *
* @package POT * @package POT
* @property-read OTS_InfoRespond|bool $status status() method wrapper. * @property-read OTS_InfoRespond|bool $status status() method wrapper.
* @property-read OTS_ServerStatus|bool $info Full info() method wrapper. * @property-read OTS_ServerStatus|bool $info Full info() method wrapper.
@ -23,21 +23,21 @@ class OTS_ServerInfo
{ {
/** /**
* Server address. * Server address.
* *
* @var string * @var string
*/ */
private $server; private $server;
/** /**
* Connection port. * Connection port.
* *
* @var int * @var int
*/ */
private $port; private $port;
/** /**
* Creates handler for new server. * Creates handler for new server.
* *
* @param string $server Server IP/domain. * @param string $server Server IP/domain.
* @param int $port OTServ port. * @param int $port OTServ port.
*/ */
@ -49,7 +49,7 @@ class OTS_ServerInfo
/** /**
* Sends packet to server. * Sends packet to server.
* *
* @param OTS_Buffer|string $packet Buffer to send. * @param OTS_Buffer|string $packet Buffer to send.
* @return OTS_Buffer|null Respond buffer (null if server is offline). * @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. * @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream.
@ -75,7 +75,7 @@ class OTS_ServerInfo
// reads respond // reads respond
//$data = stream_get_contents($socket); //$data = stream_get_contents($socket);
$data = ''; $data = '';
while (!feof($socket)) while (!feof($socket))
$data .= fgets($socket, 1024); $data .= fgets($socket, 1024);
@ -97,11 +97,11 @@ class OTS_ServerInfo
/** /**
* Queries server status. * Queries server status.
* *
* <p> * <p>
* Sends 'info' packet to OTS server and return output. Returns {@link OTS_InfoRespond OTS_InfoRespond} (wrapper for XML data) with results or <var>false</var> if server is online. * Sends 'info' packet to OTS server and return output. Returns {@link OTS_InfoRespond OTS_InfoRespond} (wrapper for XML data) with results or <var>false</var> if server is online.
* </p> * </p>
* *
* @return OTS_InfoRespond|bool Respond content document (false when server is offline). * @return OTS_InfoRespond|bool Respond content document (false when server is offline).
* @throws DOMException On DOM operation error. * @throws DOMException On DOM operation error.
* @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream. * @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream.
@ -135,11 +135,11 @@ class OTS_ServerInfo
/** /**
* Queries server information. * Queries server information.
* *
* <p> * <p>
* This method uses binary info protocol. It provides more infromation then {@link OTS_Toolbox::serverStatus() XML way}. * This method uses binary info protocol. It provides more infromation then {@link OTS_Toolbox::serverStatus() XML way}.
* </p> * </p>
* *
* @param int $flags Requested info flags. * @param int $flags Requested info flags.
* @return OTS_ServerStatus|bool Respond content document (false when server is offline). * @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. * @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. * Checks player online status.
* *
* <p> * <p>
* This method uses binary info protocol. * This method uses binary info protocol.
* </p> * </p>
* *
* @param string $name Player name. * @param string $name Player name.
* @return bool True if player is online, false if player or server is online. * @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. * @throws E_OTS_OutOfBuffer When there is read attemp after end of packet stream.
@ -204,7 +204,7 @@ class OTS_ServerInfo
/** /**
* Magic PHP5 method. * Magic PHP5 method.
* *
* @param string $name Property name. * @param string $name Property name.
* @param mixed $value Property value. * @param mixed $value Property value.
* @throws OutOfBoundsException For non-supported properties. * @throws OutOfBoundsException For non-supported properties.