public function getUrl($email = null, array $params = [], $secure = true)
    {
        $url  = $secure ? static::SECURE_URL : static::BASE_URL;
        $url .= is_null($email)
            ? str_repeat('0', 32)
            : static::hashEmail($email);

        if ($this->hasFormat())
            $url .= ".{$this->getFormat()}";

        if ( ! empty($params))
            $url .= '?'.http_build_query($params);

        return $url;
    }
public function getUrl($email = null, array $params = [], $secure = true)
    {
        $url  = $secure ? static::SECURE_URL : static::BASE_URL;
        $url .= is_null($email)
            ? str_repeat('0', 32)
            : static::hashEmail($email);

        if ($this->hasFormat())
            $url .= ".{$this->getFormat()}";

        if ( ! empty($params))
            $url .= '?'.http_build_query($params);

        return $url;
    }
public function getUrl ( $ email = null , array $ params = [ ] , $ secure = true ) { $ url = $ secure ? static :: SECURE_URL : static :: BASE_URL ; $ url .= is_null ( $ email ) ? str_repeat ( '0' , 32 ) : static :: hashEmail ( $ email ) ; if ( $ this -> hasFormat ( ) ) $ url .= ".{$this->getFormat()}" ; if ( ! empty ( $ params ) ) $ url .= '?' . http_build_query ( $ params ) ; return $ url ; }
Build the profile URL based on the provided email address.

@param  string  $email
@param  array   $params
@param  bool    $secure

@return string
Build the profile URL based on the provided email address .