Code Duplication    Length = 5-5 lines in 2 locations

includes/specials/SpecialEditWatchlist.php 2 locations

@@ 209-213 (lines=5) @@
206
				return false;
207
			}
208
209
			if ( count( $toWatch ) > 0 ) {
210
				$this->successMessage .= ' ' . $this->msg( 'watchlistedit-raw-added' )
211
					->numParams( count( $toWatch ) )->parse();
212
				$this->showTitles( $toWatch, $this->successMessage );
213
			}
214
215
			if ( count( $toUnwatch ) > 0 ) {
216
				$this->successMessage .= ' ' . $this->msg( 'watchlistedit-raw-removed' )
@@ 215-219 (lines=5) @@
212
				$this->showTitles( $toWatch, $this->successMessage );
213
			}
214
215
			if ( count( $toUnwatch ) > 0 ) {
216
				$this->successMessage .= ' ' . $this->msg( 'watchlistedit-raw-removed' )
217
					->numParams( count( $toUnwatch ) )->parse();
218
				$this->showTitles( $toUnwatch, $this->successMessage );
219
			}
220
		} else {
221
			$this->clearWatchlist();
222
			$this->getUser()->invalidateCache();