X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fresolver%2Fcommand%2Fconsole%2Fclass_HubConsoleCommandResolver.php;h=d998270310818af78ae2f429f89b35b3010c1199;hb=44314097c8abbfef2ee703eeda601dffd22520af;hp=898897a361d147c4fd397b576d01016ab772aaff;hpb=81c90916f7a908c77f8844dff5adc6fae3aed422;p=hub.git diff --git a/application/hub/main/resolver/command/console/class_HubConsoleCommandResolver.php b/application/hub/main/resolver/command/console/class_HubConsoleCommandResolver.php index 898897a36..d99827031 100644 --- a/application/hub/main/resolver/command/console/class_HubConsoleCommandResolver.php +++ b/application/hub/main/resolver/command/console/class_HubConsoleCommandResolver.php @@ -2,11 +2,11 @@ /** * A command resolver for local (non-hubbed) web commands * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2011 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2014 Hub Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -52,7 +52,7 @@ class HubConsoleCommandResolver extends BaseCommandResolver implements CommandRe if (empty($commandName)) { // Then thrown an exception here throw new EmptyVariableException(array($resolverInstance, 'commandName'), self::EXCEPTION_UNEXPECTED_EMPTY_STRING); - } elseif ($resolverInstance->isCommandValid($commandName) === false) { + } elseif ($resolverInstance->isCommandValid($commandName) === FALSE) { // Invalid command found throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND); } @@ -87,7 +87,7 @@ class HubConsoleCommandResolver extends BaseCommandResolver implements CommandRe if (empty($commandName)) $commandName = $this->getConfigInstance()->getConfigEntry('default_console_command'); // Check if command is valid - if ($this->isCommandValid($commandName) === false) { + if ($this->isCommandValid($commandName) === FALSE) { // This command is invalid! throw new InvalidCommandException(array($this, $commandName), self::EXCEPTION_INVALID_COMMAND); } // END - if @@ -123,7 +123,7 @@ class HubConsoleCommandResolver extends BaseCommandResolver implements CommandRe if (empty($commandName)) $commandName = $this->getConfigInstance()->getConfigEntry('default_console_command'); // Check if command is valid - if ($this->isCommandValid($commandName) === false) { + if ($this->isCommandValid($commandName) === FALSE) { // This command is invalid! throw new InvalidCommandException(array($this, $commandName), self::EXCEPTION_INVALID_COMMAND); }