Code Duplication    Length = 5-5 lines in 2 locations

includes/specials/SpecialEditWatchlist.php 2 locations

@@ 226-230 (lines=5) @@
223
				return false;
224
			}
225
226
			if ( count( $toWatch ) > 0 ) {
227
				$this->successMessage .= ' ' . $this->msg( 'watchlistedit-raw-added' )
228
					->numParams( count( $toWatch ) )->parse();
229
				$this->showTitles( $toWatch, $this->successMessage );
230
			}
231
232
			if ( count( $toUnwatch ) > 0 ) {
233
				$this->successMessage .= ' ' . $this->msg( 'watchlistedit-raw-removed' )
@@ 232-236 (lines=5) @@
229
				$this->showTitles( $toWatch, $this->successMessage );
230
			}
231
232
			if ( count( $toUnwatch ) > 0 ) {
233
				$this->successMessage .= ' ' . $this->msg( 'watchlistedit-raw-removed' )
234
					->numParams( count( $toUnwatch ) )->parse();
235
				$this->showTitles( $toUnwatch, $this->successMessage );
236
			}
237
		} else {
238
			$this->clearWatchlist();
239
			$this->getUser()->invalidateCache();