|
8 | 8 | namespace OCA\Forms\Activity; |
9 | 9 |
|
10 | 10 | use Exception; |
11 | | - |
12 | 11 | use OCA\Forms\Db\FormMapper; |
13 | 12 | use OCA\Forms\Service\CirclesService; |
14 | 13 | use OCP\Activity\Exceptions\UnknownActivityException; |
@@ -79,16 +78,12 @@ public function getSubjectString(IL10N $l10n, string $subject): string { |
79 | 78 | switch ($subject) { |
80 | 79 | case ActivityConstants::SUBJECT_NEWSHARE: |
81 | 80 | return $l10n->t('{user} has shared the form {formTitle} with you'); |
82 | | - |
83 | 81 | case ActivityConstants::SUBJECT_NEWGROUPSHARE: |
84 | 82 | return $l10n->t('{user} has shared the form {formTitle} with group {group}'); |
85 | | - |
86 | 83 | case ActivityConstants::SUBJECT_NEWCIRCLESHARE: |
87 | 84 | return $l10n->t('{user} has shared the form {formTitle} with team {circle}'); |
88 | | - |
89 | 85 | case ActivityConstants::SUBJECT_NEWSUBMISSION: |
90 | 86 | return $l10n->t('Your form {formTitle} was answered by {user}'); |
91 | | - |
92 | 87 | default: |
93 | 88 | $this->logger->warning('Some unknown activity has been found: ' . $subject); |
94 | 89 | throw new UnknownActivityException(); |
@@ -269,10 +264,8 @@ public function getEventIcon(string $subject): string { |
269 | 264 | case ActivityConstants::SUBJECT_NEWSHARE: |
270 | 265 | case ActivityConstants::SUBJECT_NEWGROUPSHARE: |
271 | 266 | return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/shared.svg')); |
272 | | - |
273 | 267 | case ActivityConstants::SUBJECT_NEWSUBMISSION: |
274 | 268 | return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('core', 'actions/add.svg')); |
275 | | - |
276 | 269 | default: |
277 | 270 | return $this->urlGenerator->getAbsoluteURL($this->urlGenerator->imagePath('forms', 'forms-dark.svg')); |
278 | 271 | } |
|
0 commit comments