src/Utils/GroupChecker.php
public function getPrev()
    {
        end($this->groups);
        while ($key = key($this->groups)) {
            $prevGroup = prev($this->groups);

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

        return $this->group;
    }
public function getPrev()
    {
        end($this->groups);
        while ($key = key($this->groups)) {
            $prevGroup = prev($this->groups);

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

        return $this->group;
    }
public function getPrev ( ) { end ( $ this -> groups ) ; while ( $ key = key ( $ this -> groups ) ) { $ prevGroup = prev ( $ this -> groups ) ; if ( $ this -> groups [ $ key ] === $ this -> group && $ prevGroup ) { return $ prevGroup ; } } return $ this -> group ; }
Get prev group
@return string
Get prev group