* @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
} 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(