Some cleanups, more usage of ObjectFactory:
[core.git] / inc / classes / main / resolver / command / image / class_ImageCommandResolver.php
index 204aebb5242e40da21ba7aee6321eddb212cc614..d62b3b190e4e49fbbbc2a4855dcd5478eab3696d 100644 (file)
@@ -25,7 +25,7 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve
        /**
         * Last successfull resolved command
         */
-       private $lastCommandInstance = null;
+       private $lastCommandInstance = NULL;
 
        /**
         * Protected constructor
@@ -83,7 +83,7 @@ class ImageCommandResolver extends BaseCommandResolver implements CommandResolve
        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 ImageCommandResolver extends BaseCommandResolver implements CommandResolve
         */
        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 ImageCommandResolver extends BaseCommandResolver implements CommandResolve
         */
        private function loadCommand ($commandName) {
                // Init command instance
-               $commandInstance = null;
+               $commandInstance = NULL;
 
                // Create class name
                $className = $this->getClassPrefix() . $this->convertToClassName($commandName) . 'Command';