Code Duplication    Length = 5-5 lines in 2 locations

includes/WatchedItemQueryService.php 2 locations

@@ 483-487 (lines=5) @@
480
481
		$conds = [];
482
483
		if ( isset( $options['start'] ) ) {
484
			$after = $options['dir'] === self::DIR_OLDER ? '<=' : '>=';
485
			$conds[] = 'rc_timestamp ' . $after . ' ' .
486
				$db->addQuotes( $db->timestamp( $options['start'] ) );
487
		}
488
		if ( isset( $options['end'] ) ) {
489
			$before = $options['dir'] === self::DIR_OLDER ? '>=' : '<=';
490
			$conds[] = 'rc_timestamp ' . $before . ' ' .
@@ 488-492 (lines=5) @@
485
			$conds[] = 'rc_timestamp ' . $after . ' ' .
486
				$db->addQuotes( $db->timestamp( $options['start'] ) );
487
		}
488
		if ( isset( $options['end'] ) ) {
489
			$before = $options['dir'] === self::DIR_OLDER ? '>=' : '<=';
490
			$conds[] = 'rc_timestamp ' . $before . ' ' .
491
				$db->addQuotes( $db->timestamp( $options['end'] ) );
492
		}
493
494
		return $conds;
495
	}