Code Duplication    Length = 7-7 lines in 2 locations

includes/api/ApiQueryInfo.php 2 locations

@@ 455-461 (lines=7) @@
452
			$pageInfo['watched'] = isset( $this->watched[$ns][$dbkey] );
453
		}
454
455
		if ( $this->fld_watchers ) {
456
			if ( $this->watchers !== null && $this->watchers[$ns][$dbkey] !== 0 ) {
457
				$pageInfo['watchers'] = $this->watchers[$ns][$dbkey];
458
			} elseif ( $this->showZeroWatchers ) {
459
				$pageInfo['watchers'] = 0;
460
			}
461
		}
462
463
		if ( $this->fld_visitingwatchers ) {
464
			if ( $this->visitingwatchers !== null && $this->visitingwatchers[$ns][$dbkey] !== 0 ) {
@@ 463-469 (lines=7) @@
460
			}
461
		}
462
463
		if ( $this->fld_visitingwatchers ) {
464
			if ( $this->visitingwatchers !== null && $this->visitingwatchers[$ns][$dbkey] !== 0 ) {
465
				$pageInfo['visitingwatchers'] = $this->visitingwatchers[$ns][$dbkey];
466
			} elseif ( $this->showZeroWatchers ) {
467
				$pageInfo['visitingwatchers'] = 0;
468
			}
469
		}
470
471
		if ( $this->fld_notificationtimestamp ) {
472
			$pageInfo['notificationtimestamp'] = '';