]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/resolver/command/class_BaseCommandResolver.php
Continued:
[core.git] / framework / main / classes / resolver / command / class_BaseCommandResolver.php
index f064b30ffe8a4cfd0c5b549e2c49f6cf80b457e8..4dd1861efab2bc83f0d8c0ddb218beaac2b2dc45 100644 (file)
@@ -177,9 +177,6 @@ abstract class BaseCommandResolver extends BaseResolver {
         * @throws      InvalidArgumentException        Thrown if given command is not set
         */
        protected function isCommandValid ($namespace, $commandName) {
-               // By default nothing shall be valid
-               $isValid = false;
-
                // Is namespace and command name set?
                if (empty($namespace)) {
                        // Then thrown an exception here
@@ -187,7 +184,10 @@ abstract class BaseCommandResolver extends BaseResolver {
                } elseif (empty($commandName)) {
                        // Then thrown an exception here
                        throw new InvalidArgumentException('Parameter "commandName" is empty');
-               } // END - if
+               }
+
+               // By default nothing shall be valid
+               $isValid = false;
 
                // Create the full class name
                $className = sprintf(