Apply some coding style changes.

This commit is contained in:
Daniele Alessandri
2011-10-18 15:03:04 +02:00
parent 4251664095
commit 20d872a306
222 changed files with 2789 additions and 1281 deletions
+9 -3
View File
@@ -2,21 +2,27 @@
namespace Predis\Commands;
class HashSetMultiple extends Command {
public function getId() {
class HashSetMultiple extends Command
{
public function getId()
{
return 'HMSET';
}
protected function filterArguments(Array $arguments) {
protected function filterArguments(Array $arguments)
{
if (count($arguments) === 2 && is_array($arguments[1])) {
$flattenedKVs = array($arguments[0]);
$args = $arguments[1];
foreach ($args as $k => $v) {
$flattenedKVs[] = $k;
$flattenedKVs[] = $v;
}
return $flattenedKVs;
}
return $arguments;
}
}