]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/resolver/command/web/class_WebCommandResolver.php
Some cleanups, more usage of ObjectFactory:
[core.git] / inc / classes / main / resolver / command / web / class_WebCommandResolver.php
index 103ea14ecf5833471f77f4c94b4b465234e767ce..a404e9557c6a0647f6828ea0b497d196371fd018 100644 (file)
@@ -25,7 +25,7 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver
        /**
         * Last successfull resolved command
         */
-       private $lastCommandInstance = null;
+       private $lastCommandInstance = NULL;
 
        /**
         * Protected constructor
@@ -83,7 +83,7 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver
        public function resolveCommandByRequest (Requestable $requestInstance) {
                // Init variables
                $commandName = '';
-               $commandInstance = null;
+               $commandInstance = NULL;
 
                // This goes fine so let's resolve the command
                $commandName = $requestInstance->getRequestElement('page');
@@ -124,7 +124,7 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver
         */
        public function resolveCommand ($commandName) {
                // Initiate the instance variable
-               $commandInstance = null;
+               $commandInstance = NULL;
 
                // Is the command empty? Then fall back to default command
                if (empty($commandName)) {
@@ -154,7 +154,7 @@ class WebCommandResolver extends BaseCommandResolver implements CommandResolver
         */
        private function loadCommand ($commandName) {
                // Init command instance
-               $commandInstance = null;
+               $commandInstance = NULL;
 
                // Is this class loaded?
                if (!class_exists($this->getClassName())) {