less stubs, more really answers (#641)

This commit is contained in:
El psy congroo desu 2022-08-12 01:20:36 +05:00 committed by GitHub
parent 71b9c57030
commit 5bae9d224d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,8 +13,8 @@ final class Account extends VKAPIRequestHandler
"last_name" => $this->getUser()->getLastName(),
"home_town" => $this->getUser()->getHometown(),
"status" => $this->getUser()->getStatus(),
"bdate" => "1.1.1970", # TODO
"bdate_visibility" => 0, # TODO
"bdate" => $this->getUser()->getBirthday()->format('%e.%m.%Y'),
"bdate_visibility" => $this->getUser()->getBirthdayPrivacy(),
"phone" => "+420 ** *** 228", # TODO
"relation" => $this->getUser()->getMaritalStatus(),
"sex" => $this->getUser()->isFemale() ? 1 : 2
@ -25,10 +25,8 @@ final class Account extends VKAPIRequestHandler
{
$this->requireUser();
# Цiй метод є заглушка
return (object) [
"2fa_required" => 0,
"2fa_required" => $this->getUser()->is2faEnabled() ? 1 : 0,
"country" => "CZ", # TODO
"eu_user" => false, # TODO
"https_required" => 1,