public function isGenerated($token)
    {
        $result = false;
        $token = (string) $token;
        if ($token !== '') {
            $this->searchQuery->execute([$token]);
            $row = $this->searchQuery->fetch();
            $this->searchQuery->closeCursor();
            if ($row !== false) {
                $result = true;
            }
        }

        return $result;
    }
public function isGenerated($token)
    {
        $result = false;
        $token = (string) $token;
        if ($token !== '') {
            $this->searchQuery->execute([$token]);
            $row = $this->searchQuery->fetch();
            $this->searchQuery->closeCursor();
            if ($row !== false) {
                $result = true;
            }
        }

        return $result;
    }
public function isGenerated ( $ token ) { $ result = false ; $ token = ( string ) $ token ; if ( $ token !== '' ) { $ this -> searchQuery -> execute ( [ $ token ] ) ; $ row = $ this -> searchQuery -> fetch ( ) ; $ this -> searchQuery -> closeCursor ( ) ; if ( $ row !== false ) { $ result = true ; } } return $ result ; }
Check if a token has been generated.

@param string $token

@return bool
Check if a token has been generated .