getSubject() !== 'circle_create') { return; } $this->parseCircleEvent( $event, $params, $this->l10n->t('You created the team {circle}'), $this->l10n->t('{author} created the team {circle}') ); throw new FakeException(); } /** * @param IEvent $event * @param array $params * * @throws FakeException */ public function parseSubjectCircleDelete(IEvent $event, array $params): void { if ($event->getSubject() !== 'circle_delete') { return; } $this->parseCircleEvent( $event, $params, $this->l10n->t('You deleted {circle}'), $this->l10n->t('{author} deleted {circle}') ); throw new FakeException(); } }