src/Utils/GroupChecker.php
public function getNext()
    {
        reset($this->groups);
        while ($key = key($this->groups)) {
            $nextGroup = next($this->groups);

            if ($this->groups[$key] === $this->group && $nextGroup) {
                return $nextGroup;
            }
        }

        return $this->group;
    }
public function getNext()
    {
        reset($this->groups);
        while ($key = key($this->groups)) {
            $nextGroup = next($this->groups);

            if ($this->groups[$key] === $this->group && $nextGroup) {
                return $nextGroup;
            }
        }

        return $this->group;
    }
public function getNext ( ) { reset ( $ this -> groups ) ; while ( $ key = key ( $ this -> groups ) ) { $ nextGroup = next ( $ this -> groups ) ; if ( $ this -> groups [ $ key ] === $ this -> group && $ nextGroup ) { return $ nextGroup ; } } return $ this -> group ; }
Get next group
@return string
Get next group