]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/request/console/class_ConsoleRequest.php
'public static final' is correct
[core.git] / inc / classes / main / request / console / class_ConsoleRequest.php
index aaa1540e44979ff826d76b47b918c0032c7095d1..830b034f15072ca305ab3726a13bd954edfc1a58 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -37,7 +37,7 @@ class ConsoleRequest extends BaseRequest implements Requestable {
         *
         * @return      $httpInstance   An instance of this class
         */
-       public final static function createConsoleRequest () {
+       public static final function createConsoleRequest () {
                // Create an instance
                $httpInstance = new ConsoleRequest();
 
@@ -65,7 +65,7 @@ class ConsoleRequest extends BaseRequest implements Requestable {
                } // END - if
 
                // Is the first element "index.php" ?
-               if ($args[0] == "index.php") {
+               if ($args[0] == 'index.php') {
                        // Then remove it
                        array_shift($args);
                } // END - if
@@ -73,12 +73,12 @@ class ConsoleRequest extends BaseRequest implements Requestable {
                // Try to determine next parameters
                foreach ($args as $arg) {
                        // Seperate arguemnt name from value
-                       $argArray = explode("=", $arg);
+                       $argArray = explode('=', $arg);
 
                        // Is the second one set?
                        if (!isset($argArray[1])) {
                                // Add it likewise, but empty value
-                               $this->setRequestElement($argArray[0], "");
+                               $this->setRequestElement($argArray[0], '');
                        } else {
                                // Set a name=value pair escaped and secured
                                $this->setRequestElement($argArray[0], escapeshellcmd($argArray[1]));
@@ -93,7 +93,7 @@ class ConsoleRequest extends BaseRequest implements Requestable {
         * @return      $headerValue    Value of the header or 'null' if not found
         */
        public function getHeader ($headerName) {
-               $this->partialStub("Please implement this method.");
+               $this->partialStub('Please implement this method.');
        }
 
        /**
@@ -102,7 +102,7 @@ class ConsoleRequest extends BaseRequest implements Requestable {
         * @return      $requestMethod  Used request method
         */
        public final function getRequestMethod () {
-               return "LOCAL";
+               return 'LOCAL';
        }
 
        /**