Browse Source

Apply minor code styling change, nothing that really matters.

Daniele Alessandri 13 năm trước cách đây
mục cha
commit
c107d937fa
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      lib/Predis/Profiles/ServerProfile.php

+ 1 - 2
lib/Predis/Profiles/ServerProfile.php

@@ -70,8 +70,7 @@ abstract class ServerProfile implements IServerProfile, IProcessingSupport {
     }
 
     public function supportsCommand($command) {
-        $command = strtolower($command);
-        return isset($this->_registeredCommands[$command]);
+        return isset($this->_registeredCommands[strtolower($command)]);
     }
 
     public function createCommand($method, $arguments = array()) {