]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/resolver/command/image/class_ImageCommandResolver.php
Refacuring:
[core.git] / framework / main / classes / resolver / command / image / class_ImageCommandResolver.php
index b120dc107ccd254173403198951c40520630e373..8baf41e6c87ad90c75df1970d241d0912cf1b361 100644 (file)
@@ -58,7 +58,7 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve
         * @throws      InvalidArgumentException                Thrown if default command is not set
         * @throws      InvalidCommandException         Thrown if default command is invalid
         */
-       public static final function createImageCommandResolver ($commandName) {
+       public static final function createImageCommandResolver (string $commandName) {
                // Create the new instance
                $resolverInstance = new ImageCommandResolver();
 
@@ -67,6 +67,7 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve
                        // Then thrown an exception here
                        throw new InvalidArgumentException('Parameter "commandName" is empty');
                } elseif ($resolverInstance->isCommandValid($commandName) === false) {
+                       // @TODO Missing namespace!
                        // Invalid command found
                        throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND);
                }