public function next($eye = '-')
    {
        if (!isset($this->states[++$this->index])) {
            $this->index = 0;
        }

        $state = $this->states[$this->index];

        foreach ($state as &$line) {
            $line = str_pad(
                str_replace('%', $eye, $line),
                $this->getWidth()
            );
        }

        return $state;
    }
public function next($eye = '-')
    {
        if (!isset($this->states[++$this->index])) {
            $this->index = 0;
        }

        $state = $this->states[$this->index];

        foreach ($state as &$line) {
            $line = str_pad(
                str_replace('%', $eye, $line),
                $this->getWidth()
            );
        }

        return $state;
    }
public function next ( $ eye = '-' ) { if ( ! isset ( $ this -> states [ ++ $ this -> index ] ) ) { $ this -> index = 0 ; } $ state = $ this -> states [ $ this -> index ] ; foreach ( $ state as & $ line ) { $ line = str_pad ( str_replace ( '%' , $ eye , $ line ) , $ this -> getWidth ( ) ) ; } return $ state ; }
Gets the next cat state in the rolling index.

@param string $eye an optional eye for the next cat state.

@return array The next cat state.
Gets the next cat state in the rolling index .