Hackzilla\PasswordGenerator\Generator\HumanPasswordGenerator::findWordListLength PHP Method

findWordListLength() private method

private findWordListLength ( )
    private function findWordListLength()
    {
        $words = $this->getParameter(self::PARAMETER_WORD_CACHE);
        $this->minWordLength = INF;
        $this->maxWordLength = 0;
        foreach ($words as $word) {
            $wordLength = \strlen($word);
            $this->minWordLength = min($wordLength, $this->minWordLength);
            $this->maxWordLength = max($wordLength, $this->maxWordLength);
        }
    }