]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/resolver/command/class_BaseCommandResolver.php
Rewritten a lot double-quotes to single-requotes, removed deprecated exception, some...
[core.git] / inc / classes / main / resolver / command / class_BaseCommandResolver.php
index fc662c3aa1cb048a8ac7cc1ed72ba3edcdf10b36..ac9c0cab7b84f4ab65ef533db45a27f93d7bbd7a 100644 (file)
@@ -87,13 +87,13 @@ class BaseCommandResolver extends BaseResolver {
                if (empty($commandName)) {
                        // Then thrown an exception here
                        throw new EmptyVariableException(array($this, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING);
-               }
+               } // END - if
+
+               // Create the full class name
+               $className = $this->commandPrefix . $this->convertToClassName($commandName) . 'Command';
 
                // Now, let us create the full name of the command class
-               $this->setClassName(sprintf("%s%sCommand",
-                       $this->commandPrefix,
-                       $this->convertToClassName($commandName)
-               ));
+               $this->setClassName($className);
 
                // Is this class already loaded?
                if (class_exists($this->getClassName())) {