]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/iterator/pool/class_DefaultIterator.php
Continued with hub:
[hub.git] / application / hub / main / iterator / pool / class_DefaultIterator.php
index c40dbd9d6c66bb50b722097d5a173609804b022d..f10d5d4ad8ef882951de4f1cc268442685256705 100644 (file)
@@ -2,11 +2,11 @@
 /**
  * A Default iterator
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 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
@@ -43,7 +43,7 @@ class DefaultIterator extends BaseIterator implements Iterator {
         * @param       $listInstance           A list of a Listable
         * @return      $iteratorInstance       An instance a Iterator class
         */
-       public final static function createDefaultIterator (Listable $listInstance) {
+       public static final function createDefaultIterator (Listable $listInstance) {
                // Get new instance
                $iteratorInstance = new DefaultIterator();
 
@@ -62,7 +62,7 @@ class DefaultIterator extends BaseIterator implements Iterator {
         */
        public function current () {
                // Default is null
-               $current = null;
+               $current = NULL;
 
                // Is the entry valid?
                if (!$this->valid()) {
@@ -105,9 +105,9 @@ class DefaultIterator extends BaseIterator implements Iterator {
        }
 
        /**
-        * Checks wether the current entry is valid (not at the end of the list)
+        * Checks whether the current entry is valid (not at the end of the list)
         *
-        * @return      $isValid        Wether the current entry is there
+        * @return      $isValid        Whether the current entry is there
         */
        public function valid () {
                // Check for total active peers and if we are not at the end