Pārlūkot izejas kodu

Move Predis\Command and Predis\ICommand to the Predis\Commands namespace.

Daniele Alessandri 14 gadi atpakaļ
vecāks
revīzija
0d5fb3319d
100 mainītis faili ar 6 papildinājumiem un 187 dzēšanām
  1. 1 1
      README.markdown
  2. 1 1
      examples/SimpleDebuggableConnection.php
  3. 1 0
      lib/Predis/Client.php
  4. 1 0
      lib/Predis/CommandPipeline.php
  5. 0 2
      lib/Predis/Commands/Append.php
  6. 0 2
      lib/Predis/Commands/Auth.php
  7. 0 2
      lib/Predis/Commands/BackgroundRewriteAppendOnlyFile.php
  8. 0 2
      lib/Predis/Commands/BackgroundSave.php
  9. 1 1
      lib/Predis/Commands/Command.php
  10. 0 2
      lib/Predis/Commands/Config.php
  11. 0 2
      lib/Predis/Commands/DatabaseSize.php
  12. 0 2
      lib/Predis/Commands/Decrement.php
  13. 0 2
      lib/Predis/Commands/DecrementBy.php
  14. 0 1
      lib/Predis/Commands/Delete.php
  15. 0 2
      lib/Predis/Commands/Discard.php
  16. 0 2
      lib/Predis/Commands/DoEcho.php
  17. 0 2
      lib/Predis/Commands/Exec.php
  18. 0 2
      lib/Predis/Commands/Exists.php
  19. 0 2
      lib/Predis/Commands/Expire.php
  20. 0 2
      lib/Predis/Commands/ExpireAt.php
  21. 0 2
      lib/Predis/Commands/FlushAll.php
  22. 0 2
      lib/Predis/Commands/FlushDatabase.php
  23. 0 2
      lib/Predis/Commands/Get.php
  24. 0 2
      lib/Predis/Commands/GetBit.php
  25. 0 1
      lib/Predis/Commands/GetMultiple.php
  26. 0 2
      lib/Predis/Commands/GetRange.php
  27. 0 2
      lib/Predis/Commands/GetSet.php
  28. 0 2
      lib/Predis/Commands/HashDelete.php
  29. 0 2
      lib/Predis/Commands/HashExists.php
  30. 0 2
      lib/Predis/Commands/HashGet.php
  31. 0 1
      lib/Predis/Commands/HashGetAll.php
  32. 0 2
      lib/Predis/Commands/HashGetMultiple.php
  33. 0 2
      lib/Predis/Commands/HashIncrementBy.php
  34. 0 2
      lib/Predis/Commands/HashKeys.php
  35. 0 2
      lib/Predis/Commands/HashLength.php
  36. 0 2
      lib/Predis/Commands/HashSet.php
  37. 0 2
      lib/Predis/Commands/HashSetMultiple.php
  38. 0 2
      lib/Predis/Commands/HashSetPreserve.php
  39. 0 2
      lib/Predis/Commands/HashValues.php
  40. 1 1
      lib/Predis/Commands/ICommand.php
  41. 0 2
      lib/Predis/Commands/Increment.php
  42. 0 2
      lib/Predis/Commands/IncrementBy.php
  43. 0 2
      lib/Predis/Commands/Info.php
  44. 0 2
      lib/Predis/Commands/Keys.php
  45. 0 2
      lib/Predis/Commands/LastSave.php
  46. 0 2
      lib/Predis/Commands/ListIndex.php
  47. 0 2
      lib/Predis/Commands/ListInsert.php
  48. 0 2
      lib/Predis/Commands/ListLength.php
  49. 0 2
      lib/Predis/Commands/ListPopFirst.php
  50. 0 2
      lib/Predis/Commands/ListPopFirstBlocking.php
  51. 0 2
      lib/Predis/Commands/ListPopLast.php
  52. 0 2
      lib/Predis/Commands/ListPopLastBlocking.php
  53. 0 2
      lib/Predis/Commands/ListPopLastPushHead.php
  54. 0 2
      lib/Predis/Commands/ListPopLastPushHeadBlocking.php
  55. 0 2
      lib/Predis/Commands/ListPushHead.php
  56. 0 2
      lib/Predis/Commands/ListPushHeadX.php
  57. 0 2
      lib/Predis/Commands/ListPushTail.php
  58. 0 2
      lib/Predis/Commands/ListPushTailX.php
  59. 0 2
      lib/Predis/Commands/ListRange.php
  60. 0 2
      lib/Predis/Commands/ListRemove.php
  61. 0 2
      lib/Predis/Commands/ListSet.php
  62. 0 2
      lib/Predis/Commands/ListTrim.php
  63. 0 2
      lib/Predis/Commands/MoveKey.php
  64. 0 2
      lib/Predis/Commands/Multi.php
  65. 0 2
      lib/Predis/Commands/Persist.php
  66. 0 2
      lib/Predis/Commands/Ping.php
  67. 0 2
      lib/Predis/Commands/Publish.php
  68. 0 2
      lib/Predis/Commands/Quit.php
  69. 0 2
      lib/Predis/Commands/RandomKey.php
  70. 0 2
      lib/Predis/Commands/Rename.php
  71. 0 2
      lib/Predis/Commands/RenamePreserve.php
  72. 0 2
      lib/Predis/Commands/Save.php
  73. 0 2
      lib/Predis/Commands/SelectDatabase.php
  74. 0 2
      lib/Predis/Commands/Set.php
  75. 0 2
      lib/Predis/Commands/SetAdd.php
  76. 0 2
      lib/Predis/Commands/SetBit.php
  77. 0 2
      lib/Predis/Commands/SetCardinality.php
  78. 0 2
      lib/Predis/Commands/SetDifference.php
  79. 0 2
      lib/Predis/Commands/SetDifferenceStore.php
  80. 0 2
      lib/Predis/Commands/SetExpire.php
  81. 0 1
      lib/Predis/Commands/SetIntersection.php
  82. 0 1
      lib/Predis/Commands/SetIntersectionStore.php
  83. 0 2
      lib/Predis/Commands/SetIsMember.php
  84. 0 2
      lib/Predis/Commands/SetMembers.php
  85. 0 2
      lib/Predis/Commands/SetMove.php
  86. 0 2
      lib/Predis/Commands/SetMultiple.php
  87. 0 2
      lib/Predis/Commands/SetMultiplePreserve.php
  88. 0 2
      lib/Predis/Commands/SetPop.php
  89. 0 2
      lib/Predis/Commands/SetPreserve.php
  90. 0 2
      lib/Predis/Commands/SetRandomMember.php
  91. 0 2
      lib/Predis/Commands/SetRange.php
  92. 0 2
      lib/Predis/Commands/SetRemove.php
  93. 0 2
      lib/Predis/Commands/SetUnion.php
  94. 0 2
      lib/Predis/Commands/SetUnionStore.php
  95. 0 2
      lib/Predis/Commands/Shutdown.php
  96. 0 2
      lib/Predis/Commands/SlaveOf.php
  97. 0 2
      lib/Predis/Commands/Sort.php
  98. 0 2
      lib/Predis/Commands/Strlen.php
  99. 0 2
      lib/Predis/Commands/Subscribe.php
  100. 0 2
      lib/Predis/Commands/SubscribeByPattern.php

+ 1 - 1
README.markdown

@@ -98,7 +98,7 @@ its way into a stable Predis release, then you can start off by creating a new
 class that matches the command type and its behaviour and then bind it to a 
 client instance at runtime. Actually, it is easier done than said:
 
-    class BrandNewRedisCommand extends Predis\Command {
+    class BrandNewRedisCommand extends Predis\Commands\Command {
         public function getCommandId() { return 'NEWCMD'; }
     }
 

+ 1 - 1
examples/SimpleDebuggableConnection.php

@@ -1,8 +1,8 @@
 <?php
 require_once 'SharedConfigurations.php';
 
-use Predis\ICommand;
 use Predis\ConnectionParameters;
+use Predis\Commands\ICommand;
 use Predis\Network\StreamConnection;
 
 class SimpleDebuggableConnection extends StreamConnection {

+ 1 - 0
lib/Predis/Client.php

@@ -2,6 +2,7 @@
 
 namespace Predis;
 
+use Predis\Commands\ICommand;
 use Predis\Network\IConnection;
 use Predis\Network\IConnectionSingle;
 use Predis\Network\ConnectionCluster;

+ 1 - 0
lib/Predis/CommandPipeline.php

@@ -2,6 +2,7 @@
 
 namespace Predis;
 
+use Predis\Commands\ICommand;
 use Predis\Pipeline\IPipelineExecutor;
 
 class CommandPipeline {

+ 0 - 2
lib/Predis/Commands/Append.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Append extends Command {
     public function getCommandId() { return 'APPEND'; }
 }

+ 0 - 2
lib/Predis/Commands/Auth.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Auth extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'AUTH'; }

+ 0 - 2
lib/Predis/Commands/BackgroundRewriteAppendOnlyFile.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class BackgroundRewriteAppendOnlyFile extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'BGREWRITEAOF'; }

+ 0 - 2
lib/Predis/Commands/BackgroundSave.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class BackgroundSave extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'BGSAVE'; }

+ 1 - 1
lib/Predis/Command.php → lib/Predis/Commands/Command.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace Predis;
+namespace Predis\Commands;
 
 use Predis\Distribution\IDistributionStrategy;
 

+ 0 - 2
lib/Predis/Commands/Config.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Config extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'CONFIG'; }

+ 0 - 2
lib/Predis/Commands/DatabaseSize.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class DatabaseSize extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'DBSIZE'; }

+ 0 - 2
lib/Predis/Commands/Decrement.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Decrement extends Command {
     public function getCommandId() { return 'DECR'; }
 }

+ 0 - 2
lib/Predis/Commands/DecrementBy.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class DecrementBy extends Command {
     public function getCommandId() { return 'DECRBY'; }
 }

+ 0 - 1
lib/Predis/Commands/Delete.php

@@ -3,7 +3,6 @@
 namespace Predis\Commands;
 
 use Predis\Utils;
-use Predis\Command;
 
 class Delete extends Command {
     public function getCommandId() { return 'DEL'; }

+ 0 - 2
lib/Predis/Commands/Discard.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Discard extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'DISCARD'; }

+ 0 - 2
lib/Predis/Commands/DoEcho.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class DoEcho extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'ECHO'; }

+ 0 - 2
lib/Predis/Commands/Exec.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Exec extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'EXEC'; }

+ 0 - 2
lib/Predis/Commands/Exists.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Exists extends Command {
     public function getCommandId() { return 'EXISTS'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/Expire.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Expire extends Command {
     public function getCommandId() { return 'EXPIRE'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/ExpireAt.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ExpireAt extends Command {
     public function getCommandId() { return 'EXPIREAT'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/FlushAll.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class FlushAll extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'FLUSHALL'; }

+ 0 - 2
lib/Predis/Commands/FlushDatabase.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class FlushDatabase extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'FLUSHDB'; }

+ 0 - 2
lib/Predis/Commands/Get.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Get extends Command {
     public function getCommandId() { return 'GET'; }
 }

+ 0 - 2
lib/Predis/Commands/GetBit.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class GetBit extends Command {
     public function getCommandId() { return 'GETBIT'; }
 }

+ 0 - 1
lib/Predis/Commands/GetMultiple.php

@@ -3,7 +3,6 @@
 namespace Predis\Commands;
 
 use Predis\Utils;
-use Predis\Command;
 
 class GetMultiple extends Command {
     public function canBeHashed()  { return false; }

+ 0 - 2
lib/Predis/Commands/GetRange.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class GetRange extends Command {
     public function getCommandId() { return 'GETRANGE'; }
 }

+ 0 - 2
lib/Predis/Commands/GetSet.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class GetSet extends Command {
     public function getCommandId() { return 'GETSET'; }
 }

+ 0 - 2
lib/Predis/Commands/HashDelete.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashDelete extends Command {
     public function getCommandId() { return 'HDEL'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/HashExists.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashExists extends Command {
     public function getCommandId() { return 'HEXISTS'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/HashGet.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashGet extends Command {
     public function getCommandId() { return 'HGET'; }
 }

+ 0 - 1
lib/Predis/Commands/HashGetAll.php

@@ -2,7 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
 use Predis\Iterators\MultiBulkResponseTuple;
 
 class HashGetAll extends Command {

+ 0 - 2
lib/Predis/Commands/HashGetMultiple.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashGetMultiple extends Command {
     public function getCommandId() { return 'HMGET'; }
     public function filterArguments(Array $arguments) {

+ 0 - 2
lib/Predis/Commands/HashIncrementBy.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashIncrementBy extends Command {
     public function getCommandId() { return 'HINCRBY'; }
 }

+ 0 - 2
lib/Predis/Commands/HashKeys.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashKeys extends Command {
     public function getCommandId() { return 'HKEYS'; }
 }

+ 0 - 2
lib/Predis/Commands/HashLength.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashLength extends Command {
     public function getCommandId() { return 'HLEN'; }
 }

+ 0 - 2
lib/Predis/Commands/HashSet.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashSet extends Command {
     public function getCommandId() { return 'HSET'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/HashSetMultiple.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashSetMultiple extends Command {
     public function getCommandId() { return 'HMSET'; }
     public function filterArguments(Array $arguments) {

+ 0 - 2
lib/Predis/Commands/HashSetPreserve.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashSetPreserve extends Command {
     public function getCommandId() { return 'HSETNX'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/HashValues.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class HashValues extends Command {
     public function getCommandId() { return 'HVALS'; }
 }

+ 1 - 1
lib/Predis/ICommand.php → lib/Predis/Commands/ICommand.php

@@ -1,6 +1,6 @@
 <?php
 
-namespace Predis;
+namespace Predis\Commands;
 
 use Predis\Distribution\IDistributionStrategy;
 

+ 0 - 2
lib/Predis/Commands/Increment.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Increment extends Command {
     public function getCommandId() { return 'INCR'; }
 }

+ 0 - 2
lib/Predis/Commands/IncrementBy.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class IncrementBy extends Command {
     public function getCommandId() { return 'INCRBY'; }
 }

+ 0 - 2
lib/Predis/Commands/Info.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Info extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'INFO'; }

+ 0 - 2
lib/Predis/Commands/Keys.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Keys extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'KEYS'; }

+ 0 - 2
lib/Predis/Commands/LastSave.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class LastSave extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'LASTSAVE'; }

+ 0 - 2
lib/Predis/Commands/ListIndex.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListIndex extends Command {
     public function getCommandId() { return 'LINDEX'; }
 }

+ 0 - 2
lib/Predis/Commands/ListInsert.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListInsert extends Command {
     public function getCommandId() { return 'LINSERT'; }
 }

+ 0 - 2
lib/Predis/Commands/ListLength.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListLength extends Command {
     public function getCommandId() { return 'LLEN'; }
 }

+ 0 - 2
lib/Predis/Commands/ListPopFirst.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListPopFirst extends Command {
     public function getCommandId() { return 'LPOP'; }
 }

+ 0 - 2
lib/Predis/Commands/ListPopFirstBlocking.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListPopFirstBlocking extends Command {
     public function getCommandId() { return 'BLPOP'; }
 }

+ 0 - 2
lib/Predis/Commands/ListPopLast.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListPopLast extends Command {
     public function getCommandId() { return 'RPOP'; }
 }

+ 0 - 2
lib/Predis/Commands/ListPopLastBlocking.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListPopLastBlocking extends Command {
     public function getCommandId() { return 'BRPOP'; }
 }

+ 0 - 2
lib/Predis/Commands/ListPopLastPushHead.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListPopLastPushHead extends Command {
     public function getCommandId() { return 'RPOPLPUSH'; }
 }

+ 0 - 2
lib/Predis/Commands/ListPopLastPushHeadBlocking.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListPopLastPushHeadBlocking extends Command {
     public function getCommandId() { return 'BRPOPLPUSH'; }
 }

+ 0 - 2
lib/Predis/Commands/ListPushHead.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListPushHead extends Command {
     public function getCommandId() { return 'LPUSH'; }
 }

+ 0 - 2
lib/Predis/Commands/ListPushHeadX.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListPushHeadX extends Command {
     public function getCommandId() { return 'LPUSHX'; }
 }

+ 0 - 2
lib/Predis/Commands/ListPushTail.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListPushTail extends Command {
     public function getCommandId() { return 'RPUSH'; }
 }

+ 0 - 2
lib/Predis/Commands/ListPushTailX.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListPushTailX extends Command {
     public function getCommandId() { return 'RPUSHX'; }
 }

+ 0 - 2
lib/Predis/Commands/ListRange.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListRange extends Command {
     public function getCommandId() { return 'LRANGE'; }
 }

+ 0 - 2
lib/Predis/Commands/ListRemove.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListRemove extends Command {
     public function getCommandId() { return 'LREM'; }
 }

+ 0 - 2
lib/Predis/Commands/ListSet.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListSet extends Command {
     public function getCommandId() { return 'LSET'; }
 }

+ 0 - 2
lib/Predis/Commands/ListTrim.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class ListTrim extends Command {
     public function getCommandId() { return 'LTRIM'; }
 }

+ 0 - 2
lib/Predis/Commands/MoveKey.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class MoveKey extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'MOVE'; }

+ 0 - 2
lib/Predis/Commands/Multi.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Multi extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'MULTI'; }

+ 0 - 2
lib/Predis/Commands/Persist.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Persist extends Command {
     public function getCommandId() { return 'PERSIST'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/Ping.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Ping extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'PING'; }

+ 0 - 2
lib/Predis/Commands/Publish.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Publish extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'PUBLISH'; }

+ 0 - 2
lib/Predis/Commands/Quit.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Quit extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'QUIT'; }

+ 0 - 2
lib/Predis/Commands/RandomKey.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class RandomKey extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'RANDOMKEY'; }

+ 0 - 2
lib/Predis/Commands/Rename.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Rename extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'RENAME'; }

+ 0 - 2
lib/Predis/Commands/RenamePreserve.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class RenamePreserve extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'RENAMENX'; }

+ 0 - 2
lib/Predis/Commands/Save.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Save extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'SAVE'; }

+ 0 - 2
lib/Predis/Commands/SelectDatabase.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SelectDatabase extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'SELECT'; }

+ 0 - 2
lib/Predis/Commands/Set.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Set extends Command {
     public function getCommandId() { return 'SET'; }
 }

+ 0 - 2
lib/Predis/Commands/SetAdd.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetAdd extends Command {
     public function getCommandId() { return 'SADD'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/SetBit.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetBit extends Command {
     public function getCommandId() { return 'SETBIT'; }
 }

+ 0 - 2
lib/Predis/Commands/SetCardinality.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetCardinality extends Command {
     public function getCommandId() { return 'SCARD'; }
 }

+ 0 - 2
lib/Predis/Commands/SetDifference.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetDifference extends SetIntersection {
     public function getCommandId() { return 'SDIFF'; }
 }

+ 0 - 2
lib/Predis/Commands/SetDifferenceStore.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetDifferenceStore extends SetIntersectionStore {
     public function getCommandId() { return 'SDIFFSTORE'; }
 }

+ 0 - 2
lib/Predis/Commands/SetExpire.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetExpire extends Command {
     public function getCommandId() { return 'SETEX'; }
 }

+ 0 - 1
lib/Predis/Commands/SetIntersection.php

@@ -3,7 +3,6 @@
 namespace Predis\Commands;
 
 use Predis\Utils;
-use Predis\Command;
 
 class SetIntersection extends Command {
     public function getCommandId() { return 'SINTER'; }

+ 0 - 1
lib/Predis/Commands/SetIntersectionStore.php

@@ -3,7 +3,6 @@
 namespace Predis\Commands;
 
 use Predis\Utils;
-use Predis\Command;
 
 class SetIntersectionStore extends Command {
     public function getCommandId() { return 'SINTERSTORE'; }

+ 0 - 2
lib/Predis/Commands/SetIsMember.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetIsMember extends Command {
     public function getCommandId() { return 'SISMEMBER'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/SetMembers.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetMembers extends Command {
     public function getCommandId() { return 'SMEMBERS'; }
 }

+ 0 - 2
lib/Predis/Commands/SetMove.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetMove extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'SMOVE'; }

+ 0 - 2
lib/Predis/Commands/SetMultiple.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetMultiple extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'MSET'; }

+ 0 - 2
lib/Predis/Commands/SetMultiplePreserve.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetMultiplePreserve extends SetMultiple {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'MSETNX'; }

+ 0 - 2
lib/Predis/Commands/SetPop.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetPop  extends Command {
     public function getCommandId() { return 'SPOP'; }
 }

+ 0 - 2
lib/Predis/Commands/SetPreserve.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetPreserve extends Command {
     public function getCommandId() { return 'SETNX'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/SetRandomMember.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetRandomMember extends Command {
     public function getCommandId() { return 'SRANDMEMBER'; }
 }

+ 0 - 2
lib/Predis/Commands/SetRange.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetRange extends Command {
     public function getCommandId() { return 'SETRANGE'; }
 }

+ 0 - 2
lib/Predis/Commands/SetRemove.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetRemove extends Command {
     public function getCommandId() { return 'SREM'; }
     public function parseResponse($data) { return (bool) $data; }

+ 0 - 2
lib/Predis/Commands/SetUnion.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetUnion extends SetIntersection {
     public function getCommandId() { return 'SUNION'; }
 }

+ 0 - 2
lib/Predis/Commands/SetUnionStore.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SetUnionStore extends SetIntersectionStore {
     public function getCommandId() { return 'SUNIONSTORE'; }
 }

+ 0 - 2
lib/Predis/Commands/Shutdown.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Shutdown extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'SHUTDOWN'; }

+ 0 - 2
lib/Predis/Commands/SlaveOf.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SlaveOf extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'SLAVEOF'; }

+ 0 - 2
lib/Predis/Commands/Sort.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Sort extends Command {
     public function getCommandId() { return 'SORT'; }
     public function filterArguments(Array $arguments) {

+ 0 - 2
lib/Predis/Commands/Strlen.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Strlen extends Command {
     public function getCommandId() { return 'STRLEN'; }
 }

+ 0 - 2
lib/Predis/Commands/Subscribe.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class Subscribe extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'SUBSCRIBE'; }

+ 0 - 2
lib/Predis/Commands/SubscribeByPattern.php

@@ -2,8 +2,6 @@
 
 namespace Predis\Commands;
 
-use Predis\Command;
-
 class SubscribeByPattern extends Command {
     public function canBeHashed()  { return false; }
     public function getCommandId() { return 'PSUBSCRIBE'; }

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels