Code Duplication    Length = 9-9 lines in 2 locations

includes/Revision.php 2 locations

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