diff --git a/lib/Predis/Commands/HashDeleteV24x.php b/lib/Predis/Commands/HashDeleteV24x.php index 93103290..4b757d51 100644 --- a/lib/Predis/Commands/HashDeleteV24x.php +++ b/lib/Predis/Commands/HashDeleteV24x.php @@ -9,7 +9,7 @@ class HashDeleteV24x extends Command { return 'HDEL'; } - public function filterArguments(Array $arguments) { + protected function filterArguments(Array $arguments) { return Helpers::filterVariadicValues($arguments); } diff --git a/lib/Predis/Commands/HashGetMultiple.php b/lib/Predis/Commands/HashGetMultiple.php index 0cea1c17..44d2a424 100644 --- a/lib/Predis/Commands/HashGetMultiple.php +++ b/lib/Predis/Commands/HashGetMultiple.php @@ -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]; diff --git a/lib/Predis/Commands/HashSetMultiple.php b/lib/Predis/Commands/HashSetMultiple.php index aaf75b61..bf1d1793 100644 --- a/lib/Predis/Commands/HashSetMultiple.php +++ b/lib/Predis/Commands/HashSetMultiple.php @@ -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]; diff --git a/lib/Predis/Commands/KeyDelete.php b/lib/Predis/Commands/KeyDelete.php index 12246291..152782d6 100644 --- a/lib/Predis/Commands/KeyDelete.php +++ b/lib/Predis/Commands/KeyDelete.php @@ -9,7 +9,7 @@ class KeyDelete extends Command { return 'DEL'; } - public function filterArguments(Array $arguments) { + protected function filterArguments(Array $arguments) { return Helpers::filterArrayArguments($arguments); } diff --git a/lib/Predis/Commands/KeySort.php b/lib/Predis/Commands/KeySort.php index b5e65d9a..cbad4a77 100644 --- a/lib/Predis/Commands/KeySort.php +++ b/lib/Predis/Commands/KeySort.php @@ -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; } diff --git a/lib/Predis/Commands/ListPushTailV24x.php b/lib/Predis/Commands/ListPushTailV24x.php index 9f7e960d..f4d2454b 100644 --- a/lib/Predis/Commands/ListPushTailV24x.php +++ b/lib/Predis/Commands/ListPushTailV24x.php @@ -9,7 +9,7 @@ class ListPushTailV24x extends Command { return 'RPUSH'; } - public function filterArguments(Array $arguments) { + protected function filterArguments(Array $arguments) { return Helpers::filterVariadicValues($arguments); } } diff --git a/lib/Predis/Commands/PubSubSubscribe.php b/lib/Predis/Commands/PubSubSubscribe.php index e1abc479..67c04adb 100644 --- a/lib/Predis/Commands/PubSubSubscribe.php +++ b/lib/Predis/Commands/PubSubSubscribe.php @@ -9,7 +9,7 @@ class PubSubSubscribe extends Command { return 'SUBSCRIBE'; } - public function filterArguments(Array $arguments) { + protected function filterArguments(Array $arguments) { return Helpers::filterArrayArguments($arguments); } diff --git a/lib/Predis/Commands/ServerSlaveOf.php b/lib/Predis/Commands/ServerSlaveOf.php index 53628810..aed87b0f 100644 --- a/lib/Predis/Commands/ServerSlaveOf.php +++ b/lib/Predis/Commands/ServerSlaveOf.php @@ -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'); } diff --git a/lib/Predis/Commands/SetAddV24x.php b/lib/Predis/Commands/SetAddV24x.php index 7a58bd68..b130a4d0 100644 --- a/lib/Predis/Commands/SetAddV24x.php +++ b/lib/Predis/Commands/SetAddV24x.php @@ -9,7 +9,7 @@ class SetAddV24x extends Command { return 'SADD'; } - public function filterArguments(Array $arguments) { + protected function filterArguments(Array $arguments) { return Helpers::filterVariadicValues($arguments); } diff --git a/lib/Predis/Commands/SetIntersection.php b/lib/Predis/Commands/SetIntersection.php index 1cccf9a4..10414e5a 100644 --- a/lib/Predis/Commands/SetIntersection.php +++ b/lib/Predis/Commands/SetIntersection.php @@ -9,7 +9,7 @@ class SetIntersection extends Command { return 'SINTER'; } - public function filterArguments(Array $arguments) { + protected function filterArguments(Array $arguments) { return Helpers::filterArrayArguments($arguments); } diff --git a/lib/Predis/Commands/SetIntersectionStore.php b/lib/Predis/Commands/SetIntersectionStore.php index a761dbee..1ba38a76 100644 --- a/lib/Predis/Commands/SetIntersectionStore.php +++ b/lib/Predis/Commands/SetIntersectionStore.php @@ -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]); } diff --git a/lib/Predis/Commands/SetRemoveV24x.php b/lib/Predis/Commands/SetRemoveV24x.php index 5936dd62..b58bf307 100644 --- a/lib/Predis/Commands/SetRemoveV24x.php +++ b/lib/Predis/Commands/SetRemoveV24x.php @@ -9,7 +9,7 @@ class SetRemoveV24x extends Command { return 'SREM'; } - public function filterArguments(Array $arguments) { + protected function filterArguments(Array $arguments) { return Helpers::filterVariadicValues($arguments); } diff --git a/lib/Predis/Commands/StringGetMultiple.php b/lib/Predis/Commands/StringGetMultiple.php index dbac7da4..7771dabe 100644 --- a/lib/Predis/Commands/StringGetMultiple.php +++ b/lib/Predis/Commands/StringGetMultiple.php @@ -9,7 +9,7 @@ class StringGetMultiple extends Command { return 'MGET'; } - public function filterArguments(Array $arguments) { + protected function filterArguments(Array $arguments) { return Helpers::filterArrayArguments($arguments); } diff --git a/lib/Predis/Commands/StringSetMultiple.php b/lib/Predis/Commands/StringSetMultiple.php index 54163238..c5cb53ad 100644 --- a/lib/Predis/Commands/StringSetMultiple.php +++ b/lib/Predis/Commands/StringSetMultiple.php @@ -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]; diff --git a/lib/Predis/Commands/TransactionWatch.php b/lib/Predis/Commands/TransactionWatch.php index 8adc8688..d3cf3164 100644 --- a/lib/Predis/Commands/TransactionWatch.php +++ b/lib/Predis/Commands/TransactionWatch.php @@ -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]; } diff --git a/lib/Predis/Commands/ZSetRange.php b/lib/Predis/Commands/ZSetRange.php index 73bb1ef0..964e3839 100644 --- a/lib/Predis/Commands/ZSetRange.php +++ b/lib/Predis/Commands/ZSetRange.php @@ -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') { diff --git a/lib/Predis/Commands/ZSetUnionStore.php b/lib/Predis/Commands/ZSetUnionStore.php index 7797ff9f..8fa45ab7 100644 --- a/lib/Predis/Commands/ZSetUnionStore.php +++ b/lib/Predis/Commands/ZSetUnionStore.php @@ -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])) {