Co-authored-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/1546/head
Maxence Lange 2022-12-07 09:45:17 -01:00 zatwierdzone przez GitHub
rodzic 7ff583eb26
commit 0b2f66b210
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
6 zmienionych plików z 9 dodań i 9 usunięć

Wyświetl plik

@ -63,7 +63,7 @@ class AccountDelete extends Base {
$this->configService = $configService;
}
protected function configure() {
protected function configure(): void {
parent::configure();
$this->setName('social:account:delete')
->addArgument('account', InputArgument::REQUIRED, 'Social Local Account')

Wyświetl plik

@ -157,7 +157,7 @@ class ActionsRequest extends ActionsRequestBuilder {
$qb = $this->getActionsDeleteSql();
$qb->limitToDBField('actor_id_prim', $qb->prim($actorId));
$qb->execute();
$qb->executeStatement();
}
@ -168,6 +168,6 @@ class ActionsRequest extends ActionsRequestBuilder {
$qb->limitToDBField('actor_id_prim', $qb->prim($actorId));
$qb->execute();
$qb->executeStatement();
}
}

Wyświetl plik

@ -242,7 +242,7 @@ class CacheDocumentsRequest extends CacheDocumentsRequestBuilder {
$qb->execute();
}
public function deleteByParent(string $parentId) {
public function deleteByParent(string $parentId): void {
$qb = $this->getCacheDocumentsDeleteSql();
$qb->limitToDBField('parent_id_prim', $qb->prim($parentId));
@ -257,6 +257,6 @@ class CacheDocumentsRequest extends CacheDocumentsRequestBuilder {
$qb->limitToDBField('parent_id_prim', $qb->prim($actorId));
$qb->execute();
$qb->executeStatement();
}
}

Wyświetl plik

@ -307,7 +307,7 @@ class FollowsRequest extends FollowsRequestBuilder {
* @param string $actorId
* @param Person $new
*/
public function moveAccountFollowers(string $actorId, Person $new) {
public function moveAccountFollowers(string $actorId, Person $new): void {
$qb = $this->getFollowsUpdateSql();
$qb->set('object_id', $qb->createNamedParameter($new->getId()))
->set('object_id_prim', $qb->createNamedParameter($qb->prim($new->getId())))
@ -324,7 +324,7 @@ class FollowsRequest extends FollowsRequestBuilder {
* @param string $actorId
* @param Person $new
*/
public function moveAccountFollowing(string $actorId, Person $new) {
public function moveAccountFollowing(string $actorId, Person $new): void {
$qb = $this->getFollowsUpdateSql();
$qb->set('actor_id', $qb->createNamedParameter($new->getId()))
->set('actor_id_prim', $qb->createNamedParameter($qb->prim($new->getId())));

Wyświetl plik

@ -200,7 +200,7 @@ class RequestQueueRequest extends RequestQueueRequestBuilder {
$qb->executeStatement();
}
public function deleteByAuthor(string $actorId) {
public function deleteByAuthor(string $actorId): void {
$qb = $this->getRequestQueueDeleteSql();
$qb->limitToDBField('author_prim', $qb->prim($actorId));

Wyświetl plik

@ -798,7 +798,7 @@ class StreamRequest extends StreamRequestBuilder {
->set('attributed_to_prim', $qb->createNamedParameter($qb->prim($newId)));
$qb->limitToAttributedTo($actorId, true);
$qb->execute();
$qb->executeStatement();
}