Explorar el Código

Apply minor code styling change, nothing that really matters.

Daniele Alessandri hace 13 años
padre
commit
c107d937fa
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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()) {