]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/stacker/class_BaseStacker.php
Made lower to upper case:
[core.git] / inc / classes / main / stacker / class_BaseStacker.php
index 1bfd88063616920d943e4430c44d2c9798af975e..147ae9d88086189643d25823baf963368ac94613 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 - 2011 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2012 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -52,9 +52,9 @@ class BaseStacker extends BaseFrameworkSystem {
         * @return      void
         * @throws      AlreadyInitializedStackerException      If the stack is already initialized
         */
-       public final function initStacker ($stackerName, $forceReInit = false) {
+       public final function initStacker ($stackerName, $forceReInit = FALSE) {
                // Is the stack already initialized?
-               if (($forceReInit === false) && ($this->isStackInitialized($stackerName))) {
+               if (($forceReInit === FALSE) && ($this->isStackInitialized($stackerName))) {
                        // Then throw the exception
                        throw new AlreadyInitializedStackerException(array($this, $stackerName), self::EXCEPTION_STACKER_ALREADY_INITIALIZED);
                } // END - if
@@ -67,10 +67,10 @@ class BaseStacker extends BaseFrameworkSystem {
        }
 
        /**
-        * Checks wether the given stack is initialized (set in array $stackers)
+        * Checks whether the given stack is initialized (set in array $stackers)
         *
         * @param       $stackerName    Name of the stack
-        * @return      $isInitialized  Wether the stack is initialized
+        * @return      $isInitialized  Whether the stack is initialized
         */
        public final function isStackInitialized ($stackerName) {
                // Is is there?
@@ -81,10 +81,10 @@ class BaseStacker extends BaseFrameworkSystem {
        }
 
        /**
-        * Checks wether the given stack is full
+        * Checks whether the given stack is full
         *
         * @param       $stackerName    Name of the stack
-        * @return      $isFull                 Wether the stack is full
+        * @return      $isFull                 Whether the stack is full
         * @throws      NoStackerException      If given stack is missing
         */
        protected final function isStackFull ($stackerName) {
@@ -102,10 +102,10 @@ class BaseStacker extends BaseFrameworkSystem {
        }
 
        /**
-        * Checks wether the given stack is empty
+        * Checks whether the given stack is empty
         *
-        * @param       $stackerName    Name of the stack
-        * @return      $isEmpty                        Wether the stack is empty
+        * @param       $stackerName            Name of the stack
+        * @return      $isEmpty                        Whether the stack is empty
         * @throws      NoStackerException      If given stack is missing
         */
        public final function isStackEmpty ($stackerName) {
@@ -116,10 +116,10 @@ class BaseStacker extends BaseFrameworkSystem {
                } // END - if
 
                // So, is the stack empty?
-               $isFull = (($this->getStackCount($stackerName)) == 0);
+               $isEmpty = (($this->getStackCount($stackerName)) == 0);
 
                // Return result
-               return $isFull;
+               return $isEmpty;
        }
 
        /**