Minor code styling and phpdoc changes.

This commit is contained in:
Daniele Alessandri
2014-07-28 12:04:07 +02:00
parent 5c02e4e47b
commit df653a7c00
21 changed files with 34 additions and 65 deletions
+6 -18
View File
@@ -225,7 +225,7 @@ abstract class ClusterStrategy implements StrategyInterface
*
* @param CommandInterface $command Command instance.
*
* @return string
* @return string|null
*/
protected function getKeyFromAllArguments(CommandInterface $command)
{
@@ -234,8 +234,6 @@ abstract class ClusterStrategy implements StrategyInterface
if ($this->checkSameSlotForKeys($arguments)) {
return $arguments[0];
}
return null;
}
/**
@@ -244,7 +242,7 @@ abstract class ClusterStrategy implements StrategyInterface
*
* @param CommandInterface $command Command instance.
*
* @return string
* @return string|null
*/
protected function getKeyFromInterleavedArguments(CommandInterface $command)
{
@@ -258,8 +256,6 @@ abstract class ClusterStrategy implements StrategyInterface
if ($this->checkSameSlotForKeys($keys)) {
return $arguments[0];
}
return null;
}
/**
@@ -267,7 +263,7 @@ abstract class ClusterStrategy implements StrategyInterface
*
* @param CommandInterface $command Command instance.
*
* @return string
* @return string|null
*/
protected function getKeyFromBlockingListCommands(CommandInterface $command)
{
@@ -276,8 +272,6 @@ abstract class ClusterStrategy implements StrategyInterface
if ($this->checkSameSlotForKeys(array_slice($arguments, 0, count($arguments) - 1))) {
return $arguments[0];
}
return null;
}
/**
@@ -285,7 +279,7 @@ abstract class ClusterStrategy implements StrategyInterface
*
* @param CommandInterface $command Command instance.
*
* @return string
* @return string|null
*/
protected function getKeyFromBitOp(CommandInterface $command)
{
@@ -294,8 +288,6 @@ abstract class ClusterStrategy implements StrategyInterface
if ($this->checkSameSlotForKeys(array_slice($arguments, 1, count($arguments)))) {
return $arguments[1];
}
return null;
}
/**
@@ -303,7 +295,7 @@ abstract class ClusterStrategy implements StrategyInterface
*
* @param CommandInterface $command Command instance.
*
* @return string
* @return string|null
*/
protected function getKeyFromZsetAggregationCommands(CommandInterface $command)
{
@@ -313,8 +305,6 @@ abstract class ClusterStrategy implements StrategyInterface
if ($this->checkSameSlotForKeys($keys)) {
return $arguments[0];
}
return null;
}
/**
@@ -322,7 +312,7 @@ abstract class ClusterStrategy implements StrategyInterface
*
* @param CommandInterface $command Command instance.
*
* @return string
* @return string|null
*/
protected function getKeyFromScriptingCommands(CommandInterface $command)
{
@@ -335,8 +325,6 @@ abstract class ClusterStrategy implements StrategyInterface
if ($keys && $this->checkSameSlotForKeys($keys)) {
return $keys[0];
}
return null;
}
/**