mirror of
https://github.com/predis/predis.git
synced 2026-09-05 07:16:44 +00:00
Predis\Commands\Command::filterArguments() is protected.
This commit is contained in:
@@ -9,7 +9,7 @@ class HashDeleteV24x extends Command {
|
||||
return 'HDEL';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return Helpers::filterVariadicValues($arguments);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ class HashGetMultiple extends Command {
|
||||
return 'HMGET';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
if (count($arguments) === 2 && is_array($arguments[1])) {
|
||||
$flattenedKVs = array($arguments[0]);
|
||||
$args = $arguments[1];
|
||||
|
||||
@@ -7,7 +7,7 @@ class HashSetMultiple extends Command {
|
||||
return 'HMSET';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
if (count($arguments) === 2 && is_array($arguments[1])) {
|
||||
$flattenedKVs = array($arguments[0]);
|
||||
$args = $arguments[1];
|
||||
|
||||
@@ -9,7 +9,7 @@ class KeyDelete extends Command {
|
||||
return 'DEL';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return Helpers::filterArrayArguments($arguments);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ class KeySort extends Command {
|
||||
return 'SORT';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
if (count($arguments) === 1) {
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ class ListPushTailV24x extends Command {
|
||||
return 'RPUSH';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return Helpers::filterVariadicValues($arguments);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ class PubSubSubscribe extends Command {
|
||||
return 'SUBSCRIBE';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return Helpers::filterArrayArguments($arguments);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ class ServerSlaveOf extends Command {
|
||||
return 'SLAVEOF';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
if (count($arguments) === 0 || $arguments[0] === 'NO ONE') {
|
||||
return array('NO', 'ONE');
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ class SetAddV24x extends Command {
|
||||
return 'SADD';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return Helpers::filterVariadicValues($arguments);
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class SetIntersection extends Command {
|
||||
return 'SINTER';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return Helpers::filterArrayArguments($arguments);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ class SetIntersectionStore extends Command {
|
||||
return 'SINTERSTORE';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
if (count($arguments) === 2 && is_array($arguments[1])) {
|
||||
return array_merge(array($arguments[0]), $arguments[1]);
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ class SetRemoveV24x extends Command {
|
||||
return 'SREM';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return Helpers::filterVariadicValues($arguments);
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ class StringGetMultiple extends Command {
|
||||
return 'MGET';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
return Helpers::filterArrayArguments($arguments);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ class StringSetMultiple extends Command {
|
||||
return 'MSET';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
if (count($arguments) === 1 && is_array($arguments[0])) {
|
||||
$flattenedKVs = array();
|
||||
$args = $arguments[0];
|
||||
|
||||
@@ -7,7 +7,7 @@ class TransactionWatch extends Command {
|
||||
return 'WATCH';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
if (isset($arguments[0]) && is_array($arguments[0])) {
|
||||
return $arguments[0];
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ class ZSetRange extends Command {
|
||||
return 'ZRANGE';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
if (count($arguments) === 4) {
|
||||
$lastType = gettype($arguments[3]);
|
||||
if ($lastType === 'string' && strtolower($arguments[3]) === 'withscores') {
|
||||
|
||||
@@ -7,7 +7,7 @@ class ZSetUnionStore extends Command {
|
||||
return 'ZUNIONSTORE';
|
||||
}
|
||||
|
||||
public function filterArguments(Array $arguments) {
|
||||
protected function filterArguments(Array $arguments) {
|
||||
$options = array();
|
||||
$argc = count($arguments);
|
||||
if ($argc > 2 && is_array($arguments[$argc - 1])) {
|
||||
|
||||
Reference in New Issue
Block a user