X-Git-Url: https://git.mxchange.org/?p=hub.git;a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fiterator%2Fnetwork%2Fclass_NetworkListenIterator.php;h=18c2e8018a6a172240d43b9caa49fa542273f9e4;hp=82aae67231be0f014267c9be13e06c5fd754e70a;hb=73aff29b9bc78031853b0b8c0fe0a8e04f66ac29;hpb=623221e8b97d0bb7a044265ce7418d0fe7894712 diff --git a/application/hub/main/iterator/network/class_NetworkListenIterator.php b/application/hub/main/iterator/network/class_NetworkListenIterator.php index 82aae6723..18c2e8018 100644 --- a/application/hub/main/iterator/network/class_NetworkListenIterator.php +++ b/application/hub/main/iterator/network/class_NetworkListenIterator.php @@ -2,11 +2,11 @@ /** * A NetworkListen iterator * - * @author Roland Haeder + * @author Roland Haeder * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Hub Developer Team * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.shipsimu.org * @todo This current implementation is not recommended, use a * @todo latency-based iteration or similar approaches * @@ -45,7 +45,7 @@ class NetworkListenIterator extends BaseIterator implements Iterator { * @param $listInstance A list of a Listable * @return $iteratorInstance An instance a Iterator class */ - public final static function createNetworkListenIterator (Listable $listInstance) { + public static final function createNetworkListenIterator (Listable $listInstance) { // Get new instance $iteratorInstance = new NetworkListenIterator(); @@ -64,7 +64,7 @@ class NetworkListenIterator extends BaseIterator implements Iterator { */ public function current () { // Default is null - $current = null; + $current = NULL; // Is the entry valid? if (!$this->valid()) { @@ -107,12 +107,12 @@ class NetworkListenIterator 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 clients and if we are not at the end + // Check for total active peers and if we are not at the end $isValid = ($this->key() < $this->getListInstance()->count()); // Return result