Code Duplication    Length = 9-9 lines in 2 locations

includes/Revision.php 2 locations

@@ 1180-1188 (lines=9) @@
1177
	 *
1178
	 * @return Revision|null
1179
	 */
1180
	public function getPrevious() {
1181
		if ( $this->getTitle() ) {
1182
			$prev = $this->getTitle()->getPreviousRevisionID( $this->getId() );
1183
			if ( $prev ) {
1184
				return self::newFromTitle( $this->getTitle(), $prev );
1185
			}
1186
		}
1187
		return null;
1188
	}
1189
1190
	/**
1191
	 * Get next revision for this title
@@ 1195-1203 (lines=9) @@
1192
	 *
1193
	 * @return Revision|null
1194
	 */
1195
	public function getNext() {
1196
		if ( $this->getTitle() ) {
1197
			$next = $this->getTitle()->getNextRevisionID( $this->getId() );
1198
			if ( $next ) {
1199
				return self::newFromTitle( $this->getTitle(), $next );
1200
			}
1201
		}
1202
		return null;
1203
	}
1204
1205
	/**
1206
	 * Get previous revision Id for this page_id