src/Phpass/Strength/Adapter/Base.php
protected function _analyze($password)
    {
        // Reset the class
        $this->_password = $password;
        $this->_score = 0;
        $this->_length = strlen($password);
        $this->_tokens = array ();
        $this->_tokenCounts = array (
            self::CLASS_LETTER => 0,
            self::CLASS_UPPER => 0,
            self::CLASS_LOWER => 0,
            self::CLASS_NUMBER => 0,
            self::CLASS_SYMBOL => 0
        );
        $this->_tokenIndices = array (
            self::CLASS_LETTER => array (),
            self::CLASS_UPPER => array (),
            self::CLASS_LOWER => array (),
            self::CLASS_NUMBER => array (),
            self::CLASS_SYMBOL => array ()
        );

        $this->_parseTokens();
    }
protected function _analyze($password)
    {
        // Reset the class
        $this->_password = $password;
        $this->_score = 0;
        $this->_length = strlen($password);
        $this->_tokens = array ();
        $this->_tokenCounts = array (
            self::CLASS_LETTER => 0,
            self::CLASS_UPPER => 0,
            self::CLASS_LOWER => 0,
            self::CLASS_NUMBER => 0,
            self::CLASS_SYMBOL => 0
        );
        $this->_tokenIndices = array (
            self::CLASS_LETTER => array (),
            self::CLASS_UPPER => array (),
            self::CLASS_LOWER => array (),
            self::CLASS_NUMBER => array (),
            self::CLASS_SYMBOL => array ()
        );

        $this->_parseTokens();
    }
protected function _analyze ( $ password ) { // Reset the class $ this -> _password = $ password ; $ this -> _score = 0 ; $ this -> _length = strlen ( $ password ) ; $ this -> _tokens = array ( ) ; $ this -> _tokenCounts = array ( self :: CLASS_LETTER => 0 , self :: CLASS_UPPER => 0 , self :: CLASS_LOWER => 0 , self :: CLASS_NUMBER => 0 , self :: CLASS_SYMBOL => 0 ) ; $ this -> _tokenIndices = array ( self :: CLASS_LETTER => array ( ) , self :: CLASS_UPPER => array ( ) , self :: CLASS_LOWER => array ( ) , self :: CLASS_NUMBER => array ( ) , self :: CLASS_SYMBOL => array ( ) ) ; $ this -> _parseTokens ( ) ; }
Analyze a string and store relevant metadata.

@param string $password
The string to analyze.
@return void
Analyze a string and store relevant metadata .