]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/resolver/command/html/class_HtmlCommandResolver.php
Refacuring:
[core.git] / framework / main / classes / resolver / command / html / class_HtmlCommandResolver.php
index d28e3d83b97418a702d89a85b1422ca65d9a026a..294b68cb13f1a1b397d0eaafb0e055736e263592 100644 (file)
@@ -58,7 +58,7 @@ class HtmlCommandResolver extends BaseCommandResolver implements CommandResolver
         * @throws      InvalidArgumentException        Thrown if default command is not set
         * @throws      InvalidCommandException         Thrown if default command is invalid
         */
-       public static final function createHtmlCommandResolver ($commandName) {
+       public static final function createHtmlCommandResolver (string $commandName) {
                // Create the new instance
                $resolverInstance = new HtmlCommandResolver();
 
@@ -68,6 +68,7 @@ class HtmlCommandResolver extends BaseCommandResolver implements CommandResolver
                        throw new InvalidArgumentException('Parameter "commandName" is empty');
                } elseif ($resolverInstance->isCommandValid($commandName) === false) {
                        // Invalid command found
+                       // @TODO Missing namespace!
                        throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND);
                }