Kaynağa Gözat

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

Daniele Alessandri 14 yıl önce
ebeveyn
işleme
5f0799ab65

+ 1 - 1
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);
     }
 

+ 1 - 1
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];

+ 1 - 1
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];

+ 1 - 1
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);
     }
 

+ 1 - 1
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;
         }

+ 1 - 1
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);
     }
 }

+ 1 - 1
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);
     }
 

+ 1 - 1
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');
         }

+ 1 - 1
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);
     }
 

+ 1 - 1
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);
     }
 

+ 1 - 1
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]);
         }

+ 1 - 1
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);
     }
 

+ 1 - 1
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);
     }
 

+ 1 - 1
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];

+ 1 - 1
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];
         }

+ 1 - 1
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') {

+ 1 - 1
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])) {