瀏覽代碼

Apply minor code styling change, nothing that really matters.

Daniele Alessandri 13 年之前
父節點
當前提交
c107d937fa
共有 1 個文件被更改,包括 1 次插入2 次删除
  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()) {