Continued:
- added more type-hints - added some missing documentation
This commit is contained in:
parent
a587217f47
commit
2766c7d9cf
3 changed files with 8 additions and 5 deletions
|
@ -57,7 +57,7 @@ class Account extends BaseFactory
|
|||
* @throws HTTPException\InternalServerErrorException
|
||||
* @throws ImagickException|HTTPException\NotFoundException
|
||||
*/
|
||||
public function createFromContactId(int $contactId, $uid = 0): \Friendica\Object\Api\Mastodon\Account
|
||||
public function createFromContactId(int $contactId, int $uid = 0): \Friendica\Object\Api\Mastodon\Account
|
||||
{
|
||||
$contact = Contact::getById($contactId, ['uri-id']);
|
||||
if (empty($contact)) {
|
||||
|
@ -74,7 +74,7 @@ class Account extends BaseFactory
|
|||
* @throws HTTPException\InternalServerErrorException
|
||||
* @throws ImagickException|HTTPException\NotFoundException
|
||||
*/
|
||||
public function createFromUriId(int $contactUriId, $uid = 0): \Friendica\Object\Api\Mastodon\Account
|
||||
public function createFromUriId(int $contactUriId, int $uid = 0): \Friendica\Object\Api\Mastodon\Account
|
||||
{
|
||||
$account = DBA::selectFirst('account-user-view', [], ['uri-id' => $contactUriId, 'uid' => [0, $uid]], ['order' => ['id' => true]]);
|
||||
if (empty($account)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue