Code Duplication    Length = 7-7 lines in 2 locations

lib/Activity/ActivityManager.php 2 locations

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