Code Duplication    Length = 7-7 lines in 2 locations

lib/Activity/ActivityManager.php 2 locations

@@ 151-157 (lines=7) @@
148
			case self::SUBJECT_BOARD_UPDATE_TITLE:
149
				$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}');
150
				break;
151
			case self::SUBJECT_BOARD_UPDATE_ARCHIVED:
152
				if (isset($subjectParams['after']) && $subjectParams['after']) {
153
					$subject = $ownActivity ? $this->l10n->t('You have archived the board {board}') : $this->l10n->t('{user} has archived the board {before}');
154
				} else {
155
					$subject = $ownActivity ? $this->l10n->t('You have unarchived the board {board}') : $this->l10n->t('{user} has unarchived the board {before}');
156
				}
157
				break;
158
159
			case self::SUBJECT_STACK_CREATE:
160
				$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}');
@@ 180-186 (lines=7) @@
177
			case self::SUBJECT_CARD_UPDATE_TITLE:
178
				$subject = $ownActivity ? $this->l10n->t('You have renamed the card {before} to {card}') : $this->l10n->t('{user} has renamed the card {before} to {card}');
179
				break;
180
			case self::SUBJECT_CARD_UPDATE_DESCRIPTION:
181
				if (!isset($subjectParams['before'])) {
182
					$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}');
183
				} else {
184
					$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}');
185
				}
186
				break;
187
			case self::SUBJECT_CARD_UPDATE_ARCHIVE:
188
				$subject = $ownActivity ? $this->l10n->t('You have archived {card} in {stack} on {board}') : $this->l10n->t('{user} has archived {card} in {stack} on {board}');
189
				break;