Predis\Commands\Command::filterArguments() is protected.

This commit is contained in:
Daniele Alessandri
2011-05-05 17:30:05 +02:00
parent e97e13bde5
commit 5f0799ab65
17 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ class HashDeleteV24x extends Command {
return 'HDEL';
}
public function filterArguments(Array $arguments) {
protected function filterArguments(Array $arguments) {
return Helpers::filterVariadicValues($arguments);
}
+1 -1
View File
@@ -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];
+1 -1
View File
@@ -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];
+1 -1
View File
@@ -9,7 +9,7 @@ class KeyDelete extends Command {
return 'DEL';
}
public function filterArguments(Array $arguments) {
protected function filterArguments(Array $arguments) {
return Helpers::filterArrayArguments($arguments);
}
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -9,7 +9,7 @@ class ListPushTailV24x extends Command {
return 'RPUSH';
}
public function filterArguments(Array $arguments) {
protected function filterArguments(Array $arguments) {
return Helpers::filterVariadicValues($arguments);
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ class PubSubSubscribe extends Command {
return 'SUBSCRIBE';
}
public function filterArguments(Array $arguments) {
protected function filterArguments(Array $arguments) {
return Helpers::filterArrayArguments($arguments);
}
+1 -1
View File
@@ -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');
}
+1 -1
View File
@@ -9,7 +9,7 @@ class SetAddV24x extends Command {
return 'SADD';
}
public function filterArguments(Array $arguments) {
protected function filterArguments(Array $arguments) {
return Helpers::filterVariadicValues($arguments);
}
+1 -1
View File
@@ -9,7 +9,7 @@ class SetIntersection extends Command {
return 'SINTER';
}
public function filterArguments(Array $arguments) {
protected function filterArguments(Array $arguments) {
return Helpers::filterArrayArguments($arguments);
}
+1 -1
View File
@@ -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]);
}
+1 -1
View File
@@ -9,7 +9,7 @@ class SetRemoveV24x extends Command {
return 'SREM';
}
public function filterArguments(Array $arguments) {
protected function filterArguments(Array $arguments) {
return Helpers::filterVariadicValues($arguments);
}
+1 -1
View File
@@ -9,7 +9,7 @@ class StringGetMultiple extends Command {
return 'MGET';
}
public function filterArguments(Array $arguments) {
protected function filterArguments(Array $arguments) {
return Helpers::filterArrayArguments($arguments);
}
+1 -1
View File
@@ -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];
+1 -1
View File
@@ -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];
}
+1 -1
View File
@@ -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') {
+1 -1
View File
@@ -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])) {