mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
Apply some coding style changes.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user