src/Phpass/Strength/Adapter/Base.php
protected function _getClassIndices($class)
    {
        $indices = array ();
        if ($class == self::CLASS_LETTER) {
            $indices = array_merge(
                $this->_getClassIndices(self::CLASS_LOWER),
                $this->_getClassIndices(self::CLASS_UPPER)
            );
            sort($indices);
        } else {
            if (isset ($this->_tokenIndices[$class])) {
                $indices = $this->_tokenIndices[$class];
            }
        }

        return $indices;
    }
protected function _getClassIndices($class)
    {
        $indices = array ();
        if ($class == self::CLASS_LETTER) {
            $indices = array_merge(
                $this->_getClassIndices(self::CLASS_LOWER),
                $this->_getClassIndices(self::CLASS_UPPER)
            );
            sort($indices);
        } else {
            if (isset ($this->_tokenIndices[$class])) {
                $indices = $this->_tokenIndices[$class];
            }
        }

        return $indices;
    }
protected function _getClassIndices ( $ class ) { $ indices = array ( ) ; if ( $ class == self :: CLASS_LETTER ) { $ indices = array_merge ( $ this -> _getClassIndices ( self :: CLASS_LOWER ) , $ this -> _getClassIndices ( self :: CLASS_UPPER ) ) ; sort ( $ indices ) ; } else { if ( isset ( $ this -> _tokenIndices [ $ class ] ) ) { $ indices = $ this -> _tokenIndices [ $ class ] ; } } return $ indices ; }
Return a map of token indices within the string for a given class.

@param string $class
Token class to map.
@return array
Returns a numerically indexed array of indicies where members of a
given class may be found in the string.
Return a map of token indices within the string for a given class .