Permalink
Browse files

Fix some errors in phpdocs.

Backported from 25cd430 (master).
  • Loading branch information...
1 parent 317fa42 commit 43bf3096a0eeadcf9c20bea295c46bc0aabc12db @nrk committed Dec 22, 2013
View
@@ -202,7 +202,7 @@ public function getConnection()
/**
* Retrieves a single connection out of an aggregated connections instance.
*
- * @param string $connectionId Index or alias of the connection.
+ * @param string $connectionId Index or alias of the single connection.
* @return Connection\SingleConnectionInterface
*/
public function getConnectionById($connectionId)
@@ -60,8 +60,8 @@ public function __construct(ClientInterface $client, $match = null, $count = nul
* command required to fetch elements from the server to perform
* the iteration.
*
- * @param ClientInterface Client connected to Redis.
- * @param string $commandID Command ID.
+ * @param ClientInterface $client Client connected to Redis.
+ * @param string $commandID Command ID.
*/
protected function requiredCommand(ClientInterface $client, $commandID)
{
@@ -66,8 +66,8 @@ public function __construct(ClientInterface $client, $key, $count = 10)
* command required to fetch elements from the server to perform
* the iteration.
*
- * @param ClientInterface Client connected to Redis.
- * @param string $commandID Command ID.
+ * @param ClientInterface $client Client connected to Redis.
+ * @param string $commandID Command ID.
*/
protected function requiredCommand(ClientInterface $client, $commandID)
{
@@ -59,9 +59,7 @@ public function getArguments()
}
/**
- * Gets the argument from the arguments list at the specified index.
- *
- * @param array $arguments Position of the argument.
+ * {@inheritdoc}
*/
public function getArgument($index)
{
@@ -44,6 +44,7 @@ public function __construct(array $arguments)
*
* @param string $commandID Redis command ID.
* @param string ... Arguments list for the command.
+ * @return CommandInterface
*/
public static function create($commandID /* [ $arg, ... */)
{
@@ -87,9 +88,7 @@ public function getArguments()
}
/**
- * Gets the argument from the arguments list at the specified index.
- *
- * @param array $arguments Position of the argument.
+ * {@inheritdoc}
*/
public function getArgument($index)
{
@@ -50,7 +50,8 @@ public function __destruct()
/**
* Checks some of the parameters used to initialize the connection.
*
- * @param ConnectionParametersInterface $parameters Parameters used to initialize the connection.
+ * @param ConnectionParametersInterface $parameters Initialization parameters for the connection.
+ * @return ConnectionParametersInterface
*/
protected function checkParameters(ConnectionParametersInterface $parameters)
{
@@ -30,7 +30,7 @@ class ConnectionParameters implements ConnectionParametersInterface
);
/**
- * @param string|array Connection parameters in the form of an URI string or a named array.
+ * @param string|array $parameters Connection parameters in the form of an URI string or a named array.
*/
public function __construct($parameters = array())
{

0 comments on commit 43bf309

Please sign in to comment.