kopia lustrzana https://github.com/nextcloud/social
minor fix
Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/1546/head
rodzic
7ff583eb26
commit
0b2f66b210
|
@ -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')
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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())));
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue