Code Duplication    Length = 9-9 lines in 2 locations

includes/Revision.php 2 locations

@@ 1168-1176 (lines=9) @@
1165
	 *
1166
	 * @return Revision|null
1167
	 */
1168
	public function getPrevious() {
1169
		if ( $this->getTitle() ) {
1170
			$prev = $this->getTitle()->getPreviousRevisionID( $this->getId() );
1171
			if ( $prev ) {
1172
				return self::newFromTitle( $this->getTitle(), $prev );
1173
			}
1174
		}
1175
		return null;
1176
	}
1177
1178
	/**
1179
	 * Get next revision for this title
@@ 1183-1191 (lines=9) @@
1180
	 *
1181
	 * @return Revision|null
1182
	 */
1183
	public function getNext() {
1184
		if ( $this->getTitle() ) {
1185
			$next = $this->getTitle()->getNextRevisionID( $this->getId() );
1186
			if ( $next ) {
1187
				return self::newFromTitle( $this->getTitle(), $next );
1188
			}
1189
		}
1190
		return null;
1191
	}
1192
1193
	/**
1194
	 * Get previous revision Id for this page_id