Code Duplication    Length = 7-7 lines in 2 locations

lib/Activity/ActivityManager.php 2 locations

@@ 156-162 (lines=7) @@
153
			case self::SUBJECT_BOARD_UPDATE_TITLE:
154
				$subject = $ownActivity ? $this->l10n->t('You have renamed the board {before} to {board}') : $this->l10n->t('{user} has renamed the board {before} to {board}');
155
				break;
156
			case self::SUBJECT_BOARD_UPDATE_ARCHIVED:
157
				if (isset($subjectParams['after']) && $subjectParams['after']) {
158
					$subject = $ownActivity ? $this->l10n->t('You have archived the board {board}') : $this->l10n->t('{user} has archived the board {before}');
159
				} else {
160
					$subject = $ownActivity ? $this->l10n->t('You have unarchived the board {board}') : $this->l10n->t('{user} has unarchived the board {before}');
161
				}
162
				break;
163
			case self::SUBJECT_STACK_CREATE:
164
				$subject = $ownActivity ? $this->l10n->t('You have created a new stack {stack} on board {board}') : $this->l10n->t('{user} has created a new stack {stack} on board {board}');
165
				break;
@@ 184-190 (lines=7) @@
181
			case self::SUBJECT_CARD_UPDATE_TITLE:
182
				$subject = $ownActivity ? $this->l10n->t('You have renamed the card {before} to {card}') : $this->l10n->t('{user} has renamed the card {before} to {card}');
183
				break;
184
			case self::SUBJECT_CARD_UPDATE_DESCRIPTION:
185
				if (!isset($subjectParams['before'])) {
186
					$subject = $ownActivity ? $this->l10n->t('You have added a description to card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has added a description to card {card} in stack {stack} on board {board}');
187
				} else {
188
					$subject = $ownActivity ? $this->l10n->t('You have updated the description of card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has updated the description of the card {card} in stack {stack} on board {board}');
189
				}
190
				break;
191
			case self::SUBJECT_CARD_UPDATE_ARCHIVE:
192
				$subject = $ownActivity ? $this->l10n->t('You have archived card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has archived card {card} in stack {stack} on board {board}');
193
				break;