public function getNextRoundId($roundId)
    {
       $this->_ensureRounds();

       if ($this->_rounds && $roundId) {
           $next = false;
           foreach ($this->_rounds as $currentRoundId => $round) {
               if ($next) {
                   return $currentRoundId;
               }
               if ($currentRoundId == $roundId) {
                   $next = true;
               }
           }

           return null;

       } elseif ($this->_rounds) {
           end($this->_rounds);
           return key($this->_rounds);
       }
    }
public function getNextRoundId($roundId)
    {
       $this->_ensureRounds();

       if ($this->_rounds && $roundId) {
           $next = false;
           foreach ($this->_rounds as $currentRoundId => $round) {
               if ($next) {
                   return $currentRoundId;
               }
               if ($currentRoundId == $roundId) {
                   $next = true;
               }
           }

           return null;

       } elseif ($this->_rounds) {
           end($this->_rounds);
           return key($this->_rounds);
       }
    }
public function getNextRoundId ( $ roundId ) { $ this -> _ensureRounds ( ) ; if ( $ this -> _rounds && $ roundId ) { $ next = false ; foreach ( $ this -> _rounds as $ currentRoundId => $ round ) { if ( $ next ) { return $ currentRoundId ; } if ( $ currentRoundId == $ roundId ) { $ next = true ; } } return null ; } elseif ( $ this -> _rounds ) { end ( $ this -> _rounds ) ; return key ( $ this -> _rounds ) ; } }
Look up the round id for the next round

@param int $roundId  Gems round id
@return int Gems round id
Look up the round id for the next round