original_string: 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);
         }
      }
code: 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);
         }
      }
code_tokens: 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 ) ; } }
docstring: Look up the round id for the next round
  
  @param int $roundId  Gems round id
  @return int Gems round id
docstring_tokens: Look up the round id for the next round