Code Duplication    Length = 9-9 lines in 2 locations

includes/Revision.php 2 locations

@@ 1210-1218 (lines=9) @@
1207
	 *
1208
	 * @return Revision|null
1209
	 */
1210
	public function getPrevious() {
1211
		if ( $this->getTitle() ) {
1212
			$prev = $this->getTitle()->getPreviousRevisionID( $this->getId() );
1213
			if ( $prev ) {
1214
				return self::newFromTitle( $this->getTitle(), $prev );
1215
			}
1216
		}
1217
		return null;
1218
	}
1219
1220
	/**
1221
	 * Get next revision for this title
@@ 1225-1233 (lines=9) @@
1222
	 *
1223
	 * @return Revision|null
1224
	 */
1225
	public function getNext() {
1226
		if ( $this->getTitle() ) {
1227
			$next = $this->getTitle()->getNextRevisionID( $this->getId() );
1228
			if ( $next ) {
1229
				return self::newFromTitle( $this->getTitle(), $next );
1230
			}
1231
		}
1232
		return null;
1233
	}
1234
1235
	/**
1236
	 * Get previous revision Id for this page_id