]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/resolver/web/class_WebCommandResolver.php
More style convensions applied, interface updated
[shipsimu.git] / inc / classes / main / resolver / web / class_WebCommandResolver.php
index edfcbe3f7acd0edada98ab09790a79aacd75f6e3..d1bc85e5f69302144a967fa974f2dec43ff1bfc6 100644 (file)
@@ -94,10 +94,10 @@ class WebCommandResolver extends BaseResolver implements CommandResolver {
                // Test if the required parameter is set
                try {
                        // This goes fine so let's resolv the command
-                       $commandName = $requestInstance->getRequestElement($this->getConfigInstance()->readConfig("command_parameter"));
+                       $commandName = $requestInstance->getRequestElement($this->getConfigInstance()->readConfig('command_parameter'));
 
                        // Is the command empty? Then fall back to default command
-                       if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig("default_command");
+                       if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_command');
 
                        // Check if the command is valid
                        if (!$this->isCommandValid($commandName)) {
@@ -136,7 +136,7 @@ class WebCommandResolver extends BaseResolver implements CommandResolver {
                $commandInstance = null;
 
                // Is the command empty? Then fall back to default command
-               if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig("default_command");
+               if (empty($commandName)) $commandName = $this->getConfigInstance()->readConfig('default_command');
 
                // Check if the command is valid
                if (!$this->isCommandValid($commandName)) {
@@ -161,7 +161,7 @@ class WebCommandResolver extends BaseResolver implements CommandResolver {
         */
        private function loadCommand ($commandName) {
                // Cache default command
-               $defaultCommand = $this->getConfigInstance()->readConfig("default_command");
+               $defaultCommand = $this->getConfigInstance()->readConfig('default_command');
 
                // Init command instance
                $commandInstance = null;